{"remainingRequest":"/home/cmiss/Jenkins/workspace/mapintegratedvuer/node_modules/babel-loader/lib/index.js!/home/cmiss/Jenkins/workspace/mapintegratedvuer/node_modules/eslint-loader/index.js??ref--14-0!/home/cmiss/Jenkins/workspace/mapintegratedvuer/src/components/SimulatedData.js","dependencies":[{"path":"/home/cmiss/Jenkins/workspace/mapintegratedvuer/src/components/SimulatedData.js","mtime":1684261475133},{"path":"/home/cmiss/Jenkins/workspace/mapintegratedvuer/babel.config.js","mtime":1684261475125},{"path":"/home/cmiss/Jenkins/workspace/mapintegratedvuer/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/home/cmiss/Jenkins/workspace/mapintegratedvuer/node_modules/babel-loader/lib/index.js","mtime":456789000000},{"path":"/home/cmiss/Jenkins/workspace/mapintegratedvuer/node_modules/eslint-loader/index.js","mtime":499162500000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:aW1wb3J0ICJjb3JlLWpzL21vZHVsZXMvZXMuc3ltYm9sLmpzIjsKaW1wb3J0ICJjb3JlLWpzL21vZHVsZXMvZXMuc3ltYm9sLmRlc2NyaXB0aW9uLmpzIjsKaW1wb3J0ICJjb3JlLWpzL21vZHVsZXMvZXMuYXJyYXkuZmluZC5qcyI7CmltcG9ydCAiY29yZS1qcy9tb2R1bGVzL2VzLm9iamVjdC50by1zdHJpbmcuanMiOwppbXBvcnQgImNvcmUtanMvbW9kdWxlcy9lcy5hcnJheS5pbmNsdWRlcy5qcyI7CmltcG9ydCAiY29yZS1qcy9tb2R1bGVzL2VzLnN0cmluZy5pbmNsdWRlcy5qcyI7CnZhciBuZXJ2ZU1hcHMgPSBbewogICJpZCI6ICJpbHh0cjpuZXVyb24tdHlwZS1rZWFzdC0xMyIsCiAgImNlbnRyZWxpbmVzIjogWyJuXzcxIl0KfSwgewogICJpZCI6ICJpbHh0cjpuZXVyb24tdHlwZS1rZWFzdC0yIiwKICAiY2VudHJlbGluZXMiOiBbImJsYWRkZXJfbiJdCn0sIHs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ICAgICAgICAgc2VhcmNoOiB7CiAgICAgICAgICAgIHRpdGxlOiAiRXhwbG9yZSBkYXRhIiwKICAgICAgICAgICAgbGFiZWw6ICJDb2xvbiIsCiAgICAgICAgICAgIHJlc291cmNlOiAiaHR0cHM6Ly9zcGFyYy5zY2llbmNlL2RhdGE/dHlwZT1kYXRhc2V0JnE9Y29sb24iLAogICAgICAgICAgICB0eXBlOiAiU2VhcmNoIiwKICAgICAgICAgICAgZmlsdGVyOiB7CiAgICAgICAgICAgICAgZmFjZXQ6ICdnZW5vdHlwZScsCiAgICAgICAgICAgICAgdGVybTogJ2NvbG9uJwogICAgICAgICAgICB9CiAgICAgICAgICB9LAogICAgICAgICAgc2NhZmZvbGQ6IHsKICAgICAgICAgICAgdGl0bGU6ICJWaWV3IDNEIHNjYWZmb2xkIiwKICAgICAgICAgICAgbGFiZWw6ICJDb2xvbiIsCiAgICAgICAgICAgIHJlc291cmNlOiAiaHR0cHM6Ly9tYXBjb3JlLWJ1Y2tldDEuczMtdXMtd2VzdC0yLmFtYXpvbmF3cy5jb20vR2VuZXJpYytTY2FmZm9sZC9Db2xvbi9odW1hbi9odW1hbkNvbG9uX21ldGFkYXRhLmpzb24iLAogICAgICAgICAgICB0eXBlOiAiU2NhZmZvbGQiCiAgICAgICAgICB9CiAgICAgICAgfTsKICAgICAgICBicmVhazsKICAgICAgY2FzZSAiVUJFUk9OOjAwMDA5NDgiOgogICAgICBjYXNlICJVQkVST046MDAwMjA4MCI6CiAgICAgICAgewogICAgICAgICAgZGF0YS50aXRsZSA9ICJIZWFydCI7CiAgICAgICAgICBkYXRhLmRlc2NyaXB0aW9uID0gIiI7CiAgICAgICAgICBkYXRhLmFjdGlvbnMgPSB7CiAgICAgICAgICAgIHNlYXJjaDogewogICAgICAgICAgICAgIHRpdGxlOiAiRXhwbG9yZSBkYXRhIiwKICAgICAgICAgICAgICBsYWJlbDogIkhlYXJ0IiwKICAgICAgICAgICAgICByZXNvdXJjZTogImh0dHBzOi8vc3BhcmMuc2NpZW5jZS9kYXRhP3R5cGU9ZGF0YXNldCZxPWNvbG9uIiwKICAgICAgICAgICAgICB0eXBlOiAiU2VhcmNoIiwKICAgICAgICAgICAgICBmaWx0ZXI6IHsKICAgICAgICAgICAgICAgIGZhY2V0OiAnZ2Vub3R5cGUnLAogICAgICAgICAgICAgICAgdGVybTogJ2hlYXJ0JwogICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSwKICAgICAgICAgICAgc2NhZmZvbGQ6IHsKICAgICAgICAgICAgICB0aXRsZTogIlZpZXcgM0Qgc2NhZmZvbGQiLAogICAgICAgICAgICAgIGxhYmVsOiAiSGVhcnQiLAogICAgICAgICAgICAgIHJlc291cmNlOiAiaHR0cHM6Ly9tYXBjb3JlLWJ1Y2tldDEuczMtdXMtd2VzdC0yLmFtYXpvbmF3cy5jb20vR2VuZXJpYytTY2FmZm9sZC9IZWFydC9odW1hbi9odW1hbkhlYXJ0X21ldGFkYXRhLmpzb24iLAogICAgICAgICAgICAgIHR5cGU6ICJTY2FmZm9sZCIKICAgICAgICAgICAgfQogICAgICAgICAgfTsKICAgICAgICB9CiAgICAgICAgYnJlYWs7CiAgICAgIGNhc2UgIlVCRVJPTjowMDAyMDQ4IjoKICAgICAgICBkYXRhLnRpdGxlID0gIkx1bmciOwogICAgICAgIGRhdGEuZGVzY3JpcHRpb24gPSAiIjsKICAgICAgICBkYXRhLmFjdGlvbnMgPSB7CiAgICAgICAgICBzZWFyY2g6IHsKICAgICAgICAgICAgdGl0bGU6ICJFeHBsb3JlIGRhdGEiLAogICAgICAgICAgICBsYWJlbDogIkx1bmciLAogICAgICAgICAgICByZXNvdXJjZTogImh0dHBzOi8vc3BhcmMuc2NpZW5jZS9kYXRhP3R5cGU9ZGF0YXNldCZxPWx1bmciLAogICAgICAgICAgICB0eXBlOiAiU2VhcmNoIgogICAgICAgICAgfSwKICAgICAgICAgIHNjYWZmb2xkOiB7CiAgICAgICAgICAgIHRpdGxlOiAiVmlldyAzRCBzY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dGE/dHlwZT1kYXRhc2V0JnE9aGVhcnQiLAogICAgICAgICAgICAgIHR5cGU6ICJTZWFyY2giLAogICAgICAgICAgICAgIGZpbHRlcjogewogICAgICAgICAgICAgICAgZmFjZXQ6ICdnZW5vdHlwZScsCiAgICAgICAgICAgICAgICB0ZXJtOiAnaGVhcnQnCiAgICAgICAgICAgICAgfQogICAgICAgICAgICB9LAogICAgICAgICAgICBzY2FmZm9sZDogewogICAgICAgICAgICAgIHRpdGxlOiAiVmlldyAzRCBzY2FmZm9sZCIsCiAgICAgICAgICAgICAgbGFiZWw6ICJIZWFydCIsCiAgICAgICAgICAgICAgcmVzb3VyY2U6ICJodHRwczovL21hcGNvcmUtYnVja2V0MS5zMy11cy13ZXN0LTIuYW1hem9uYXdzLmNvbS9HZW5lcmljK1NjYWZmb2xkL0hlYXJ0L3JhdC9yYXRIZWFydF9tZXRhZGF0YS5qc29uIiwKICAgICAgICAgICAgICB0eXBlOiAiU2NhZmZvbGQiCiAgICAgICAgICAgIH0sCiAgICAgICAgICAgIHNpbXVsYXRpb246IHsKICAgICAgICAgICAgICB0aXRsZTogIkV4cGxvcmUgc2ltdWxhdGlvbnMiLAogICAgICAgICAgICAgIGxhYmVsOiAiSGVhcnQiLAogICAgICAgICAgICAgIHJlc291cmNlOiAiaHR0cHM6Ly9zcGFyYy5zY2llbmNlL2RhdGE/dHlwZT1zaW11bGF0aW9uJnE9aGVhcnQiLAogICAgICAgICAgICAgIHR5cGU6ICJVUkwiCiAgICAgICAgICAgIH0KICAgICAgICAgIH07CiAgICAgICAgfSBlbHNlIHsKICAgICAgICAgIGRhdGEgPSBnZXRHZW5lcmljTWFya2VySW5mbyh0ZXJtLCBsYWJlbCwgZGF0YXNldCwgc2NhZmZvbGQsIHNpbXVsYXRpb25zKTsKICAgICAgICB9CiAgICAgICAgYnJlYWs7CiAgICAgIGNhc2UgIlVCRVJPTjowMDAxMTU2IjoKICAgICAgICBkYXRhLnRpdGxlID0gIkNvbG9uIjsKICAgICAgICBkYXRhLmRlc2NyaXB0aW9uID0gIiI7CiAgICAgICAgZGF0YS5hY3Rpb25zID0gewogICAgICAgICAgc2VhcmNoOiB7CiAgICAgICAgICAgIHRpdGxlOiAiRXhwbG9yZSBkYXRhIiwKICAgICAgICAgICAgbGFiZWw6ICJDb2xvbiIsCiAgICAgICAgICAgIHJlc291cmNlOiAiaHR0cHM6Ly9zcGFyYy5zY2llbmNlL2RhdGE/dHlwZT1kYXRhc2V0JnE9Y29sb24iLAogICAgICAgICAgICB0eXBlOiAiU2VhcmNoIgogICAgICAgICAgfQogICAgICAgIH07CiAgICAgICAgYnJlYWs7CiAgICAgIGNhc2UgIlVCRVJPTjowMDAyMTA4IjoKICAgICAgICBkYXRhLnRpdGxlID0gIlNtYWxsIGludGVzdGluZXMiOwogICAgICAgIGRhdGEuZGVzY3JpcHRpb24gPSAiIjsKICAgICAgICBkYXRhLmFjdGlvbnMgPSB7CiAgICAgICAgICBzZWFyY2g6IHsKICAgICAgICAgICAgdGl0bGU6ICJFeHBsb3JlIGRhdGEiLAogICAgICAgICAgICBsYWJlbDogIkNvbG9uIiwKICAgICAgICAgICAgcmVzb3VyY2U6ICJodHRwczovL3NwYXJjLnNjaWVuY2UvZGF0YT90eXBlPWRhdGFzZXQmcT1zbWFsbCtpbnRlc3RpbmVzIiwKICAgICAgICAgICAgdHlwZTogIlNlYXJjaCIKICAgICAgICAgIH0KICAgICAgICB9OwogICAgICAgIGJyZWFrOwogICAgICBjYXNlICJVQkVST046MDAwMTI1NSI6CiAgICAgICAgZGF0YS50aXRsZSA9ICJVcmluYXJ5IGJsYWRkZXIiOwogICAgICAgIGRhdGEuZGVzY3JpcHRpb24gPSAiIjsKICAgICAgICBkYXRhLmFjdGlvbnMgPSB7CiAgICAgICAgICBzZWFyY2g6IHsKICAgICAgICAgICAgdGl0bGU6ICJFeHBsb3JlIGRhdGEiLAogICAgICAgICAgICBsYWJlbDogIlVyaW5hcnkgQmxhZGRlciIsCiAgICAgICAgICAgIHJlc291cmNlOiAiaHR0cHM6Ly9zcGFyYy5zY2llbmNlL2RhdGE/dHlwZT1kYXRhc2V0JnE9YmxhZGRlciIsCiAgICAgICAgICAgIHR5cGU6ICJTZWFyY2giCiAgICAgICAgICB9LAogICAgICAgICAgc2NhZmZvbGQ6IHsKICAgICAgICAgICAgdGl0bGU6ICJWaWV3IDNEIHNjYWZmb2xkIiwKICAgICAgICAgICAgbGFiZWw6ICJCbGFkZGVyIiwKICAgICAgICAgICAgcmVzb3VyY2U6ICJodHRwczovL21hcGNvcmUtYnVja2V0MS5zMy11cy13ZXN0LTIuYW1hem9uYXdzLmNvbS9HZW5lcmljK1NjYWZmb2xkL0JsYWRkZXIvcmF0L3JhdEJsYWRkZXJfbWV0YWRhdGEuanNvbiIsCiAgICAgICAgICAgIHR5cGU6ICJTY2FmZm9sZCIKICAgICAgICAgIH0KICAgICAgICB9OwogICAgICAgIGJyZWFrOwogICAgICBjYXNlICJVQkVST046MDAwMjA0OCI6CiAgICAgICAgZGF0YS50aXRsZSA9ICJMdW5nIjsKICAgICAgICBkYXRhLmRlc2NyaXB0aW9uID0gIiI7CiAgICAgICAgZGF0YS5hY3Rpb25zID0gewogICAgICAgICAgc2VhcmNoOiB7CiAgICAgICAgICAgIHRpdGxlOiAiRXhwbG9yZSBkYXRhIiwKICAgICAgICAgICAgbGFiZWw6ICJMdW5nIiwKICAgICAgICAgICAgcmVzb3VyY2U6ICJodHRwczovL3NwYXJjLnNjaWVuY2UvZGF0YT90eXBlPWRhdGFzZXQmcT1sdW5nIiwKICAgICAgICAgICAgdHlwZTogIlNlYXJjaCIKICAgICAgICAgIH0KICAgICAgICB9OwogICAgICAgIGJyZWFrOwogICAgICBjYXNlICJJQ04iOgogICAgICAgIGRhdGEudGl0bGUgPSAiUk5BIjsKICAgICAgICBkYXRhLmRlc2NyaXB0aW9uID0gIlRoZSBkaXN0cmlidXRpb24gb2YgbmV1cm9ucyBpbiB0aGUgaW50cmluc2ljIGNhcmRpYWMgb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Z2VuZXJhdGVkIDNEIGNvbnRleHQuIiwKICAgICAgICAgICAgZGF0YXNldFVybDogImh0dHBzOi8vZGlzY292ZXIucGVubnNpZXZlLmlvL2RhdGFzZXRzLzI5IiwKICAgICAgICAgICAgZGF0YXNldEltYWdlOiAiaHR0cHM6Ly9hc3NldHMuZGlzY292ZXIucGVubnNpZXZlLmlvL2RhdGFzZXQtYXNzZXRzLzI5LzYvcmV2aXNpb25zLzEvYmFubmVyLmpwZyIKICAgICAgICAgIH0KICAgICAgICB9OwogICAgICAgIGJyZWFrOwogICAgICBjYXNlICJVQkVST046MDAwMDk0NSI6CiAgICAgIGNhc2UgIlVCRVJPTjowMDAxMTYwIjoKICAgICAgY2FzZSAiVUJFUk9OOjAwMDExNjEiOgogICAgICAgIGRhdGEudGl0bGUgPSAiU3RvbWFjaCI7CiAgICAgICAgZGF0YS5kZXNjcmlwdGlvbiA9ICIiOwogICAgICAgIGRhdGEuYWN0aW9ucyA9IHsKICAgICAgICAgIHNlYXJjaDogewogICAgICAgICAgICB0aXRsZTogIkV4cGxvcmUgZGF0YSIsCiAgICAgICAgICAgIGxhYmVsOiAiU3RvbWFjaCIsCiAgICAgICAgICAgIHJlc291cmNlOiAiaHR0cHM6Ly9zcGFyYy5zY2llbmNlL2RhdGE/dHlwZT1kYXRhc2V0JnE9c3RvbWFjaCIsCiAgICAgICAgICAgIHR5cGU6ICJTZWFyY2giCiAgICAgICAgICB9LAogICAgICAgICAgc2NhZmZvbGQ6IHsKICAgICAgICAgICAgdGl0bGU6ICJWaWV3IDNEIHNjYWZmb2xkIiwKICAgICAgICAgICAgbGFiZWw6ICJTdG9tYWNoIiwKICAgICAgICAgICAgcmVzb3VyY2U6ICJodHRwczovL21hcGNvcmUtYnVja2V0MS5zMy11cy13ZXN0LTIuYW1hem9uYXdzLmNvbS9HZW5lcmljK1NjYWZmb2xkL1N0b21hY2gvcmF0L3JhdFN0b21hY2hfbWV0YWRhdGEuanNvbiIsCiAgICAgICAgICAgIHR5cGU6ICJTY2FmZm9sZCIKICAgICAgICAgIH0KICAgICAgICB9OwogICAgICAgIGJyZWFrOwogICAgICBjYXNlICJVQkVST046MDAwMTc1OSI6CiAgICAgICAgaWYgKGxhYmVsKSBkYXRhLnRpdGxlID0gbGFiZWw7ZWxzZSBkYXRhLnRpdGxlID0gIlZhZ3VzIG5lcnZlIjsKICAgICAgICBkYXRhLmFjdGlvbnMgPSB7CiAgICAgICAgICBzZWFyY2g6IHsKICAgICAgICAgICAgdGl0bGU6ICJFeHBsb3JlIGRhdGEiLAogICAgICAgICAgICBsYWJlbDogIlZhZ3VzIG5lcnZlIiwKICAgICAgICAgICAgcmVzb3VyY2U6ICJodHRwczovL3NwYXJjLnNjaWVuY2UvZGF0YT90eXBlPWRhdGFzZXQmcT12YWd1cytuZXJ2ZSIsCiAgICAgICAgICAgIHR5cGU6ICJTZWFyY2giCiAgICAgICAgICB9LAogICAgICAgICAgc2ltdWxhdGlvbjogewogICAgICAgICAgICB0aXRsZTogIkV4cGxvcmUgc2ltdWxhdGlvbnMiLAogICAgICAgICAgICBsYWJlbDogIlZhZ3VzIG5lcnZlIiwKICAgICAgICAgICAgcmVzb3VyY2U6ICJodHRwczovL3NwYXJjLnNjaWVuY2UvZGF0YT90eXBlPXNpbXVsYXRpb24mcT12YWd1cyUyMG5lcnZlIiwKICAgICAgICAgICAgdHlwZTogInNpbXVsYXRpb24iCiAgICAgICAgICB9CiAgICAgICAgfTsKICAgICAgICBicmVhazsKICAgICAgZGVmYXVsdDoKICAgICAgICBkYXRhID0gZ2V0R2VuZXJpY01hcmtlckluZm8odGVybSwgbGFiZWwsIGRhdGFzZXQsIHNjYWZmb2xkLCBzaW11bGF0aW9ucyk7CiAgICAgICAgYnJlYWs7CiAgICB9CiAgICByZXR1cm4gZGF0YTsKICB9CiAgcmV0dXJuIHVuZGVmaW5lZDsKfQpmdW5jdGlvbiBnZXRNb3VzZURhdGEodGVybSwgbGFiZWwsIGRhdGFzZXQsIHNjYWZmb2xkLCBzaW11bGF0aW9ucykgewogIGlmICh0ZXJtIHx8IGxhYmVsKSB7CiAgICB2YXIgZGF0YSA9IHt9OwogICAgc3dpdGNoICh0ZXJtKSB7CiAgICAgIGNhc2UgIlVCRVJPTjowMDAxMTU2IjoKICAgICAgICBkYXRhLnRpdGxlID0gIkNvbG9uIjsKICAgICAgICBkYXRhLmRlc2NyaXB0aW9uID0gIiI7CiAgICAgICAgZGF0YS5hY3Rpb25zID0gewogICAgICAgICAgc2VhcmNoOiB7CiAgICAgICAgICAgIHRpdGxlOiAiRXhwbG9yZSBkYXRhIiwKICAgICAgICAgICAgbGFiZWw6ICJDb2xvbiIsCiAgICAgICAgICAgIHJlc291cmNlOiAiaHR0cHM6Ly9zcGFyYy5zY2llbmNlL2RhdGE/dHlwZT1kYXRhc2V0JnE9Y29sb24iLAogICAgICAgICAgICB0eXBlOiAiU2VhcmNoIgogICAgICAgICAgfSwKICAgICAgICAgIHNjYWZmb2xkOiB7CiAgICAgICAgICAgIHRpdGxlOiAiVmlldyAzRCBzY2FmZm9sZCIsCiAgICAgICAgICAgIGxhYmVsOiAiQ29sb24iLAogICAgICAgICAgICByZXNvdXJjZTogImh0dHBzOi8vbWFwY29yZS1idWNrZXQxLnMzLXVzLXdlc3QtMi5hbWF6b25hd3MuY29tL0dlbmVyaWMrU2NhZmZvbGQvQ29sb24vbW91c2UvbW91c2VDb2xvbl9tZXRhZGF0YS5qc29uIiwKICAgICAgICAgICAgdHlwZTogIlNjYWZmb2xkIgogICAgICAgICAgfQogICAgICAgIH07CiAgICAgICAgYnJlYWs7CiAgICAgIGNhc2UgIlVCRVJPTjowMDAyMDQ4IjoKICAgICAgICBkYXRhLnRpdGxlID0gIkx1bmciOwogICAgICAgIGRhdGEuZGVzY3JpcHRpb24gPSAiIjsKICAgICAgICBkYXRhLmFjdGlvbnMgPSB7CiAgICAgICAgICBzZWFyY2g6IHsKICAgICAgICAgICAgdGl0bGU6ICJFeHBsb3JlIGRhdGEiLAogICAgICAgICAgICBsYWJlbDogIkx1bmciLAogICAgICAgICAgICByZXNvdXJjZTogImh0dHBzOi8vc3BhcmMuc2NpZW5jZS9kYXRhP3R5cGU9ZGF0YXNldCZxPWx1bmciLAogICAgICAgICAgICB0eXBlOiAiU2VhcmNoIgogICAgICAgICAgfSwKICAgICAgICAgIHNjYWZmb2xkOiB7CiAgICAgICAgICAgIHRpdGxlOiAiVmlldyAzRCBzY2FmZm9sZCIsCiAgICAgICAgICAgIGxhYmVsOiAiTHVuZyIsCiAgICAgICAgICAgIHJlc291cmNlOiAiaHR0cHM6Ly9tYXBjb3JlLWJ1Y2tldDEuczMtdXMtd2VzdC0yLmFtYXpvbmF3cy5jb20vR2VuZXJpYytTY2FmZm9sZC9MdW5ncy9tb3VzZS9tb3VzZUxlZnRMdW5nX21ldGFkYXRhLmpzb24iLAogICAgICAgICAgICB0eXBlOiAiU2NhZmZvbGQiCiAgICAgICAgICB9CiAgICAgICAgfTsKICAgICAgICBicmVhazsKICAgICAgY2FzZSAiVUJFUk9OOjAwMDIxMDgiOgogICAgICAgIGRhdGEudGl0bGUgPSAiU21hbGwgaW50ZXN0aW5lcyI7CiAgICAgICAgZGF0YS5kZXNjcmlwdGlvbiA9ICIiOwogICAgICAgIGRhdGEuYWN0aW9ucyA9IHsKICAgICAgICAgIHNlYXJjaDogewogICAgICAgICAgICB0aXRsZTogIkV4cGxvcmUgZGF0YSIsCiAgICAgICAgICAgIGxhYmVsOiAiQ29sb24iLAogICAgICAgICAgICByZXNvdXJjZTogImh0dHBzOi8vc3BhcmMuc2NpZW5jZS9kYXRhP3R5cGU9ZGF0YXNldCZxPXNtYWxsK2ludGVzdGluZXMiLAogICAgICAgICAgICB0eXBlOiAiU2VhcmNoIgogICAgICAgICAgfQogICAgICAgIH07CiAgICAgICAgYnJlYWs7CiAgICAgIGRlZmF1bHQ6CiAgICAgICAgZGF0YSA9IGdldEdlbmVyaWNNYXJrZXJJbmZvKHRlcm0sIGxhYmVsLCBkYXRhc2V0L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CiAgICAgICAgZGF0YS50aXRsZSA9ICJTbWFsbCBpbnRlc3RpbmVzIjsKICAgICAgICBkYXRhLmRlc2NyaXB0aW9uID0gIiI7CiAgICAgICAgZGF0YS5hY3Rpb25zID0gewogICAgICAgICAgc2VhcmNoOiB7CiAgICAgICAgICAgIHRpdGxlOiAiRXhwbG9yZSBkYXRhIiwKICAgICAgICAgICAgbGFiZWw6ICJDb2xvbiIsCiAgICAgICAgICAgIHJlc291cmNlOiAiaHR0cHM6Ly9zcGFyYy5zY2llbmNlL2RhdGE/dHlwZT1kYXRhc2V0JnE9c21hbGwraW50ZXN0aW5lcyIsCiAgICAgICAgICAgIHR5cGU6ICJTZWFyY2giCiAgICAgICAgICB9CiAgICAgICAgfTsKICAgICAgICBicmVhazsKICAgICAgY2FzZSAiVUJFUk9OOjAwMDA5NDgiOgogICAgICBjYXNlICJVQkVST046MDAwMjA4MCI6CiAgICAgICAgewogICAgICAgICAgZGF0YS50aXRsZSA9ICJIZWFydCI7CiAgICAgICAgICBkYXRhLmRlc2NyaXB0aW9uID0gIiI7CiAgICAgICAgICBkYXRhLmFjdGlvbnMgPSB7CiAgICAgICAgICAgIHNlYXJjaDogewogICAgICAgICAgICAgIHRpdGxlOiAiRXhwbG9yZSBkYXRhIiwKICAgICAgICAgICAgICBsYWJlbDogIkhlYXJ0IiwKICAgICAgICAgICAgICByZXNvdXJjZTogImh0dHBzOi8vc3BhcmMuc2NpZW5jZS9kYXRhP3R5cGU9ZGF0YXNldCZxPWNvbG9uIiwKICAgICAgICAgICAgICB0eXBlOiAiU2VhcmNoIiwKICAgICAgICAgICAgICBmaWx0ZXI6IHsKICAgICAgICAgICAgICAgIGZhY2V0OiAnZ2Vub3R5cGUnLAogICAgICAgICAgICAgICAgdGVybTogJ2hlYXJ0JwogICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSwKICAgICAgICAgICAgc2NhZmZvbGQ6IHsKICAgICAgICAgICAgICB0aXRsZTogIlZpZXcgM0Qgc2NhZmZ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Jlc291cmNlLmZlYXR1cmUubW9kZWxzOwogICAgICBsYWJlbCA9IHJlc291cmNlLmZlYXR1cmUubGFiZWw7CiAgICAgIGRhdGFzZXQgPSByZXNvdXJjZS5mZWF0dXJlLmRhdGFzZXQ7CiAgICAgIHNjYWZmb2xkID0gcmVzb3VyY2UuZmVhdHVyZS5zY2FmZm9sZDsKICAgICAgc2ltdWxhdGlvbnMgPSByZXNvdXJjZS5mZWF0dXJlLnNpbXVsYXRpb25zOwogICAgfQogICAgaWYgKHRlcm0gfHwgbGFiZWwpIHsKICAgICAgdmFyIGRhdGEgPSBzaW11bGF0ZWREYXRhKHRlcm0sIHRheG9ub215LCBsYWJlbCwgZGF0YXNldCwgc2NhZmZvbGQsIHNpbXVsYXRpb25zKTsKICAgICAgaWYgKGRhdGEgJiYgZGF0YS5hY3Rpb25zKSB7CiAgICAgICAgcmV0dXJuIGRhdGEuYWN0aW9uc1thY3Rpb25dOwogICAgICB9CiAgICB9CiAgfQogIHJldHVybiB1bmRlZmluZWQ7Cn0KZXhwb3J0IHsgc2ltdWxhdGVkRGF0YSB9Ow=="},{"version":3,"names":["nerveMaps","getGenericMarkerInfo","term","label","dataset","scaffold","simulations","data","title","description","actions","search","resource","type","filter","facet","plot","plotType","datasetTitle","datasetDescription","datasetUrl","datasetImage","getHumanData","undefined","getRatData","simulation","getMouseData","getPigData","simulatedData","taxonomy","getRatTerms","id","name","getAvailableTermsForSpecies","getNerveNames","i","length","centrelines","found","find","element","getParentsRegion","lName","toLowerCase","includes","getInteractiveAction","result","action","Array","isArray","feature","models"],"sources":["/home/cmiss/Jenkins/workspace/mapintegratedvuer/src/components/SimulatedData.js"],"sourcesContent":["const nerveMaps = [\n {\n \"id\": \"ilxtr:neuron-type-keast-13\",\n \"centrelines\": [\n \"n_71\"\n ]\n },\n {\n \"id\": \"ilxtr:neuron-type-keast-2\",\n \"centrelines\": [\n \"bladder_n\"\n ]\n },\n {\n \"id\": \"ilxtr:neuron-type-keast-3\",\n \"centrelines\": [\n \"bladder_n\",\n \"hypogastric_n\"\n ]\n },\n {\n \"id\": \"ilxtr:neuron-type-keast-15\",\n \"centrelines\": [\n \"n_73\"\n ]\n },\n {\n \"id\": \"ilxtr:neuron-type-keast-1\",\n \"centrelines\": [\n \"bladder_n\"\n ]\n },\n {\n \"id\": \"ilxtr:neuron-type-keast-7\",\n \"centrelines\": [\n \"L1_ventral_root_ramus\",\n \"L1_spinal_n-1\",\n \"lumbar_splanchnic_n\",\n \"L2_spinal_n\",\n \"L2_ventral_root_ramus\"\n ]\n },\n {\n \"id\": \"ilxtr:neuron-type-keast-9\",\n \"centrelines\": [\n \"L6_spinal_n-1\",\n \"L6_ventral_root\",\n \"pudendal_n\",\n \"L5_spinal_n\",\n \"L5_ventral_root\"\n ]\n },\n {\n \"id\": \"ilxtr:neuron-type-keast-10\",\n \"centrelines\": [\n \"S1_dorsal_root\",\n \"S1_spinal_n-2\",\n \"pelvic_splanchnic_n\",\n \"L6_spinal_n-2\",\n \"L6_dorsal_root\",\n \"bladder_n\"\n ]\n },\n {\n \"id\": \"ilxtr:neuron-type-keast-11\",\n \"centrelines\": [\n \"lumbar_splanchnic_n\",\n \"L2_spinal_n\",\n \"L1_spinal_n-1\",\n \"hypogastric_n\",\n \"bladder_n\",\n \"L1_dorsal_root\",\n \"L2_dorsal_root\"\n ]\n },\n {\n \"id\": \"ilxtr:neuron-type-keast-12\",\n \"centrelines\": [\n \"L6_spinal_n-1\",\n \"L6_dorsal_root\",\n \"pudendal_n\",\n \"S1_spinal_n-1\",\n \"S1_dorsal_root\"\n ]\n },\n {\n \"id\": \"ilxtr:neuron-type-keast-8\",\n \"centrelines\": [\n \"L1_ventral_root_paravertebral_ganglion\",\n \"L1-L2_interganglionic_segment\",\n \"sympathetic_trunk_T13-L1\",\n \"L2_ventral_root_paravertebral_ganglion\",\n \"sympathetic_trunk_L2-L3\",\n \"sympathetic_trunk_L4-L5\",\n \"sympathetic_trunk_L3-L4\",\n \"sympathetic_trunk_L5-L6\",\n \"sympathetic_trunk_T12-T13\"\n ]\n },\n {\n \"id\": \"ilxtr:neuron-type-keast-20\",\n \"centrelines\": [\n \"T1_T2_cns\",\n \"C8_T1_cns\",\n \"T2_T3_cns\",\n \"T10_T11_cns\",\n \"T9_T10_cns\",\n \"T11_T12_cns\",\n \"T8_T9_cns\",\n \"C7_C8_cns\",\n \"C6_C7_cns\",\n \"C4_C5_cns\",\n \"C3_C4_cns\",\n \"C5_C6_cns\",\n \"medulla_C1_cns\",\n \"pons_medulla_cns\",\n \"C1_C2_cns\",\n \"T5_T6_cns\",\n \"T4_T5_cns\",\n \"T6_T7_cns\",\n \"L3_L4_cns\",\n \"L2_L3_cns\",\n \"L4_L5_cns\",\n \"L5_L6_cns\",\n \"T13_L1_cns\",\n \"T12_T13_cns\",\n \"L1_L2_cns\",\n \"T3_T4_cns\",\n \"n_69\",\n \"C2_C3_cns\",\n \"T7_T8_cns\"\n ]\n },\n {\n \"id\": \"ilxtr:neuron-type-keast-16\",\n \"centrelines\": [\n \"n_74\"\n ]\n },\n {\n \"id\": \"ilxtr:neuron-type-keast-4\",\n \"centrelines\": [\n \"sympathetic_trunk_L6-S1\",\n \"L6_gray_ramus-spinal_n\",\n \"sympathetic_trunk_L5-L6\",\n \"S1_gray_ramus-spinal_n\",\n \"S1_spinal_n-2\",\n \"pelvic_splanchnic_n\",\n \"L6_spinal_n-2\",\n \"L1-L2_interganglionic_segment\",\n \"sympathetic_trunk_T13-L1\",\n \"sympathetic_trunk_L2-L3\",\n \"bladder_n\",\n \"sympathetic_trunk_L4-L5\",\n \"sympathetic_trunk_L3-L4\",\n \"sympathetic_trunk_T12-T13\"\n ]\n },\n {\n \"id\": \"ilxtr:neuron-type-keast-17\",\n \"centrelines\": [\n \"n_75\"\n ]\n },\n {\n \"id\": \"ilxtr:neuron-type-keast-5\",\n \"centrelines\": [\n \"S1_ventral_root\",\n \"S1_spinal_n-2\",\n \"pelvic_splanchnic_n\",\n \"L6_spinal_n-2\",\n \"L6_ventral_root\"\n ]\n },\n {\n \"id\": \"ilxtr:neuron-type-keast-18\",\n \"centrelines\": [\n \"n_70\"\n ]\n },\n {\n \"id\": \"ilxtr:neuron-type-keast-6\",\n \"centrelines\": [\n \"L1_ventral_root_ramus\",\n \"L1_spinal_n-1\",\n \"lumbar_splanchnic_n\",\n \"L2_spinal_n\",\n \"hypogastric_n\",\n \"L2_ventral_root_ramus\"\n ]\n },\n {\n \"id\": \"ilxtr:neuron-type-keast-19\",\n \"centrelines\": [\n \"n_69\"\n ]\n },\n {\n \"id\": \"ilxtr:neuron-type-keast-14\",\n \"centrelines\": [\n \"n_72\"\n ]\n }\n];\n\n\n\n/* eslint-disable no-alert, no-console */\nfunction getGenericMarkerInfo(term ,label, dataset, scaffold, simulations) {\n let data = {};\n data.dataset = dataset;\n data.scaffold = scaffold;\n data.simulations = simulations;\n if (label)\n data.title = label;\n else\n data.title = term;\n data.description = \"\";\n data.actions = [];\n if (term) {\n switch (term) {\n case \"ICN\":\n data.title = \"RNA\";\n data.description = \"The distribution of neurons in the intrinsic cardiac nervous system (ICN) were mapped and visualized in a 3D reconstruction of a male rat heart.\";\n data.actions = {\n search: {\n title: \"Explore data\",\n resource: \"icn\",\n type: \"Search\",\n label: \"ICN\",\n filter: {\n facet: 'genotype',\n term: 'heart'\n },\n },\n plot: {\n title: \"View plot\",\n label: \"ICN\",\n resource: \"https://mapcore-bucket1.s3-us-west-2.amazonaws.com/ISAN/csv-data/use-case-4/RNA_Seq.csv\",\n type: \"Plot\",\n plotType: \"heatmap\",\n datasetTitle: \"Molecular Phenotype Distribution of Single Rat Intracardiac Neurons\",\n datasetDescription: \"Images collected from serial cryostat sectioning of a cryopreserved heart was used to reconstruct the 3D context. Transcriptional profiles taken from isolated single neurons and mapped back into the previously generated 3D context.\",\n datasetUrl: \"https://discover.pennsieve.io/datasets/29\",\n datasetImage: \"https://assets.discover.pennsieve.io/dataset-assets/29/6/revisions/1/banner.jpg\"\n },\n };\n break;\n default:\n break;\n }\n } else {\n data.actions = [];\n }\n return data;\n}\n\n\nfunction getHumanData(term, label, dataset, scaffold, simulations) {\n if (term || label) {\n let data = {};\n switch (term) {\n case \"UBERON:0001157\":\n data.title = \"Colon\";\n data.description = \"\";\n data.actions = {\n search: {\n title: \"Explore data\",\n label: \"Colon\",\n resource: \"https://sparc.science/data?type=dataset&q=colon\",\n type: \"Search\",\n filter: {\n facet: 'genotype',\n term: 'colon'\n },\n },\n scaffold: {\n title: \"View 3D scaffold\",\n label: \"Colon\",\n resource: \"https://mapcore-bucket1.s3-us-west-2.amazonaws.com/Generic+Scaffold/Colon/human/humanColon_metadata.json\",\n type: \"Scaffold\"\n },\n };\n break;\n case \"UBERON:0000948\":\n case \"UBERON:0002080\": {\n data.title = \"Heart\";\n data.description = \"\";\n data.actions = {\n search: {\n title: \"Explore data\",\n label: \"Heart\",\n resource: \"https://sparc.science/data?type=dataset&q=colon\",\n type: \"Search\",\n filter: {\n facet: 'genotype',\n term: 'heart'\n },\n },\n scaffold: {\n title: \"View 3D scaffold\",\n label: \"Heart\",\n resource: \"https://mapcore-bucket1.s3-us-west-2.amazonaws.com/Generic+Scaffold/Heart/human/humanHeart_metadata.json\",\n type: \"Scaffold\"\n },\n };\n }\n break;\n case \"UBERON:0002048\":\n data.title = \"Lung\";\n data.description = \"\";\n data.actions = {\n search: {\n title: \"Explore data\",\n label: \"Lung\",\n resource: \"https://sparc.science/data?type=dataset&q=lung\",\n type: \"Search\"\n },\n scaffold: {\n title: \"View 3D scaffold\",\n label: \"Lung\",\n resource: \"https://mapcore-bucket1.s3-us-west-2.amazonaws.com/Generic+Scaffold/Lungs/human/humanLeftLung_metadata.json\",\n type: \"Scaffold\"\n },\n };\n break;\n default:\n data = getGenericMarkerInfo(term, label, dataset, scaffold, simulations);\n break;\n }\n return data;\n }\n return undefined;\n}\n\nfunction getRatData(term, label, dataset, scaffold, simulations) {\n if (term || label) {\n let data = {};\n switch (term) {\n case \"UBERON:0000948\":\n case \"UBERON:0002080\":\n if (!simulations) {\n data.title = \"Heart\";\n data.description = \"\";\n data.actions = {\n search: {\n title: \"Explore data\",\n label: \"Heart\",\n resource: \"https://sparc.science/data?type=dataset&q=heart\",\n type: \"Search\",\n filter: {\n facet: 'genotype',\n term: 'heart'\n },\n },\n scaffold: {\n title: \"View 3D scaffold\",\n label: \"Heart\",\n resource: \"https://mapcore-bucket1.s3-us-west-2.amazonaws.com/Generic+Scaffold/Heart/rat/ratHeart_metadata.json\",\n type: \"Scaffold\"\n },\n simulation: {\n title: \"Explore simulations\",\n label: \"Heart\",\n resource: \"https://sparc.science/data?type=simulation&q=heart\",\n type: \"URL\"\n },\n };\n } else {\n data = getGenericMarkerInfo(term, label, dataset, scaffold, simulations);\n }\n break;\n case \"UBERON:0001156\":\n data.title = \"Colon\";\n data.description = \"\";\n data.actions = {\n search: {\n title: \"Explore data\",\n label: \"Colon\",\n resource: \"https://sparc.science/data?type=dataset&q=colon\",\n type: \"Search\"\n },\n };\n break;\n case \"UBERON:0002108\":\n data.title = \"Small intestines\";\n data.description = \"\";\n data.actions = {\n search: {\n title: \"Explore data\",\n label: \"Colon\",\n resource: \"https://sparc.science/data?type=dataset&q=small+intestines\",\n type: \"Search\"\n },\n };\n break;\n case \"UBERON:0001255\":\n data.title = \"Urinary bladder\";\n data.description = \"\";\n data.actions = {\n search: {\n title: \"Explore data\",\n label: \"Urinary Bladder\",\n resource: \"https://sparc.science/data?type=dataset&q=bladder\",\n type: \"Search\"\n },\n scaffold: {\n title: \"View 3D scaffold\",\n label: \"Bladder\",\n resource: \"https://mapcore-bucket1.s3-us-west-2.amazonaws.com/Generic+Scaffold/Bladder/rat/ratBladder_metadata.json\",\n type: \"Scaffold\"\n },\n };\n break;\n case \"UBERON:0002048\":\n data.title = \"Lung\";\n data.description = \"\";\n data.actions = {\n search: {\n title: \"Explore data\",\n label: \"Lung\",\n resource: \"https://sparc.science/data?type=dataset&q=lung\",\n type: \"Search\"\n },\n };\n break;\n case \"ICN\":\n data.title = \"RNA\";\n data.description = \"The distribution of neurons in the intrinsic cardiac nervous system (ICN) were mapped and visualized in a 3D reconstruction of a male rat heart.\";\n data.actions = {\n search: {\n title: \"Explore data\",\n resource: \"icn\",\n type: \"Search\"\n },\n plot: {\n title: \"View plot\",\n label: \"ICN\",\n resource: \"https://mapcore-bucket1.s3-us-west-2.amazonaws.com/ISAN/csv-data/use-case-4/RNA_Seq.csv\",\n type: \"Plot\",\n plotType: \"heatmap\",\n datasetTitle: \"Molecular Phenotype Distribution of Single Rat Intracardiac Neurons\",\n datasetDescription: \"Images collected from serial cryostat sectioning of a cryopreserved heart was used to reconstruct the 3D context. Transcriptional profiles taken from isolated single neurons and mapped back into the previously generated 3D context.\",\n datasetUrl: \"https://discover.pennsieve.io/datasets/29\",\n datasetImage: \"https://assets.discover.pennsieve.io/dataset-assets/29/6/revisions/1/banner.jpg\"\n },\n };\n break;\n case \"UBERON:0000945\":\n case \"UBERON:0001160\":\n case \"UBERON:0001161\":\n data.title = \"Stomach\";\n data.description = \"\";\n data.actions = {\n search: {\n title: \"Explore data\",\n label: \"Stomach\",\n resource: \"https://sparc.science/data?type=dataset&q=stomach\",\n type: \"Search\"\n },\n scaffold: {\n title: \"View 3D scaffold\",\n label: \"Stomach\",\n resource: \"https://mapcore-bucket1.s3-us-west-2.amazonaws.com/Generic+Scaffold/Stomach/rat/ratStomach_metadata.json\",\n type: \"Scaffold\"\n },\n };\n break;\n case \"UBERON:0001759\":\n if (label)\n data.title = label;\n else\n data.title = \"Vagus nerve\";\n data.actions = {\n search: {\n title: \"Explore data\",\n label: \"Vagus nerve\",\n resource: \"https://sparc.science/data?type=dataset&q=vagus+nerve\",\n type: \"Search\"\n },\n simulation: {\n title: \"Explore simulations\",\n label: \"Vagus nerve\",\n resource: \"https://sparc.science/data?type=simulation&q=vagus%20nerve\",\n type: \"simulation\"\n },\n };\n break;\n default:\n data = getGenericMarkerInfo(term, label, dataset, scaffold, simulations);\n break;\n }\n return data;\n }\n return undefined;\n}\n\nfunction getMouseData(term, label, dataset, scaffold, simulations) {\n if (term || label) {\n let data = {};\n switch (term) {\n case \"UBERON:0001156\":\n data.title = \"Colon\";\n data.description = \"\";\n data.actions = {\n search: {\n title: \"Explore data\",\n label: \"Colon\",\n resource: \"https://sparc.science/data?type=dataset&q=colon\",\n type: \"Search\"\n },\n scaffold: {\n title: \"View 3D scaffold\",\n label: \"Colon\",\n resource: \"https://mapcore-bucket1.s3-us-west-2.amazonaws.com/Generic+Scaffold/Colon/mouse/mouseColon_metadata.json\",\n type: \"Scaffold\"\n },\n };\n break;\n case \"UBERON:0002048\":\n data.title = \"Lung\";\n data.description = \"\";\n data.actions = {\n search: {\n title: \"Explore data\",\n label: \"Lung\",\n resource: \"https://sparc.science/data?type=dataset&q=lung\",\n type: \"Search\"\n },\n scaffold: {\n title: \"View 3D scaffold\",\n label: \"Lung\",\n resource: \"https://mapcore-bucket1.s3-us-west-2.amazonaws.com/Generic+Scaffold/Lungs/mouse/mouseLeftLung_metadata.json\",\n type: \"Scaffold\"\n },\n };\n break;\n case \"UBERON:0002108\":\n data.title = \"Small intestines\";\n data.description = \"\";\n data.actions = {\n search: {\n title: \"Explore data\",\n label: \"Colon\",\n resource: \"https://sparc.science/data?type=dataset&q=small+intestines\",\n type: \"Search\"\n },\n };\n break;\n default:\n data = getGenericMarkerInfo(term, label, dataset, scaffold, simulations);\n break;\n }\n return data;\n }\n return undefined;\n}\n\nfunction getPigData(term, label, dataset, scaffold, simulations) {\n if (term || label) {\n let data = {};\n switch (term) {\n case \"UBERON:0008972\":\n data.title = \"Colon\";\n data.description = \"\";\n data.actions = {\n search: {\n title: \"Explore data\",\n label: \"Colon\",\n resource: \"https://sparc.science/data?type=dataset&q=colon\",\n type: \"Search\"\n },\n scaffold: {\n title: \"View 3D scaffold\",\n label: \"Colon\",\n resource: \"https://mapcore-bucket1.s3-us-west-2.amazonaws.com/Generic+Scaffold/Colon/pig/pigColon_metadata.json\",\n type: \"Scaffold\"\n },\n };\n break;\n case \"UBERON:0002108\":\n data.title = \"Small intestines\";\n data.description = \"\";\n data.actions = {\n search: {\n title: \"Explore data\",\n label: \"Colon\",\n resource: \"https://sparc.science/data?type=dataset&q=small+intestines\",\n type: \"Search\"\n },\n };\n break;\n case \"UBERON:0000948\":\n case \"UBERON:0002080\": {\n data.title = \"Heart\";\n data.description = \"\";\n data.actions = {\n search: {\n title: \"Explore data\",\n label: \"Heart\",\n resource: \"https://sparc.science/data?type=dataset&q=colon\",\n type: \"Search\",\n filter: {\n facet: 'genotype',\n term: 'heart'\n },\n },\n scaffold: {\n title: \"View 3D scaffold\",\n label: \"Heart\",\n resource: \"https://mapcore-bucket1.s3-us-west-2.amazonaws.com/Generic+Scaffold/Heart/pig/pigHeart_metadata.json\",\n type: \"Scaffold\"\n },\n };\n }\n break;\n default:\n data = getGenericMarkerInfo(term, label, dataset, scaffold, simulations);\n break;\n }\n return data;\n }\n return undefined;\n}\n\nfunction simulatedData(term, taxonomy, label, dataset, scaffold, simulations) {\n switch (taxonomy) {\n case \"NCBITaxon:9606\":\n return getHumanData(term, label, dataset, scaffold, simulations);\n case \"NCBITaxon:9823\":\n return getPigData(term, label, dataset, scaffold, simulations);\n case \"NCBITaxon:10090\":\n return getMouseData(term, label, dataset, scaffold, simulations);\n case \"NCBITaxon:10114\":\n return getRatData(term, label, dataset, scaffold, simulations);\n default:\n return getGenericMarkerInfo(term, taxonomy, label, dataset, scaffold, simulations);\n }\n}\n\nfunction getRatTerms() {\n return [\n {id: \"UBERON:0000948\", name: \"Heart\", type:\"simulation\"},\n {id: \"UBERON:0001156\", name: \"Colon\", type:\"simulation\"},\n {id: \"UBERON:0001255\", name: \"Bladder\", type:\"simulation\"},\n {id: \"UBERON:0000945\", name: \"Stomach\", type:\"simulation\"},\n {id: \"UBERON:0001759\", name: \"Vagus nerve\", type:\"simulation\"},\n {id: \"UBERON:0002108\", name: \"Small intestines\", type:\"simulation\"},\n {id: \"UBERON:0002107\", name: \"Liver\", type:\"simulation\"},\n ];\n}\n\nexport function getAvailableTermsForSpecies() {\n return getRatTerms();\n}\n\n// Find the id/centre lines for the matchin centre lines/id\nexport function getNerveNames(name) {\n if (name) {\n for (let i = 0; i < nerveMaps.length ; i++) {\n if (nerveMaps[i].id == name) {\n return nerveMaps[i].centrelines;\n }\n const found = nerveMaps[i].centrelines.find(element => element === name);\n if (found)\n return [nerveMaps[i].id];\n }\n }\n return [];\n}\n\nexport function getParentsRegion(name) {\n if (name) {\n const lName = name.toLowerCase()\n if (lName.includes('heart')) {\n return {id: 'UBERON:0000948', name: 'Heart'};\n } else if (lName.includes('liver')) {\n return {id: 'UBERON:0002107', name: 'Liver'};\n } else if (lName.includes('stomach')) {\n return {id: 'UBERON:0000945', name: 'Stomach'};\n } else if (lName.includes('colon')) {\n return {id: 'UBERON:0001156', name: 'Colon'};\n } else if (lName.includes('bladder')) {\n return {id: 'UBERON:0001255', name: 'Bladder'};\n }\n }\n return undefined;\n}\n\nexport function getInteractiveAction(result, action) {\n if (result && result.resource) {\n let resource = result.resource;\n if (Array.isArray(resource) && resource[0])\n resource = resource[0];\n let term = undefined;\n let label = undefined;\n let dataset = undefined;\n let scaffold = undefined;\n let simulations = undefined;\n let taxonomy = resource.taxonomy;\n if (resource.data && resource.data.id) {\n term = resource.data.id;\n label = resource.data.id;\n } else if (resource.feature) {\n term = resource.feature.models;\n label = resource.feature.label;\n dataset = resource.feature.dataset;\n scaffold = resource.feature.scaffold;\n simulations = resource.feature.simulations;\n }\n if (term || label) {\n let data = simulatedData(term, taxonomy, label, dataset, scaffold, simulations);\n if (data && data.actions) {\n return data.actions[action];\n }\n }\n }\n return undefined;\n}\n\nexport { simulatedData };\n"],"mappings":";;;;;;AAAA,IAAMA,SAAS,GAAG,CAChB;EACI,IAAI,EAAE,4BAA4B;EAClC,aAAa,EAAE,CACX,MAAM;AAEd,CAAC,EACD;EACI,IAAI,EAAE,2BAA2B;EACjC,aAAa,EAAE,CACX,WAAW;AAEnB,CAAC,EACD;EACI,IAA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