{"remainingRequest":"/home/cmiss/Jenkins/workspace/mapintegratedvuer/node_modules/babel-loader/lib/index.js!/home/cmiss/Jenkins/workspace/mapintegratedvuer/node_modules/cache-loader/dist/cjs.js??ref--1-0!/home/cmiss/Jenkins/workspace/mapintegratedvuer/node_modules/vue-loader/lib/index.js??vue-loader-options!/home/cmiss/Jenkins/workspace/mapintegratedvuer/node_modules/@abi-software/flatmapvuer/src/components/FlatmapVuer.vue?vue&type=script&lang=js&","dependencies":[{"path":"/home/cmiss/Jenkins/workspace/mapintegratedvuer/node_modules/@abi-software/flatmapvuer/src/components/FlatmapVuer.vue","mtime":499162500000},{"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/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/home/cmiss/Jenkins/workspace/mapintegratedvuer/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:aW1wb3J0IF9jcmVhdGVGb3JPZkl0ZXJhdG9ySGVscGVyIGZyb20gIi9ob21lL2NtaXNzL0plbmtpbnMvd29ya3NwYWNlL21hcGludGVncmF0ZWR2dWVyL25vZGVfbW9kdWxlcy9AYmFiZWwvcnVudGltZS9oZWxwZXJzL2VzbS9jcmVhdGVGb3JPZkl0ZXJhdG9ySGVscGVyLmpzIjsKaW1wb3J0IF9yZWdlbmVyYXRvclJ1bnRpbWUgZnJvbSAiL2hvbWUvY21pc3MvSmVua2lucy93b3Jrc3BhY2UvbWFwaW50ZWdyYXRlZHZ1ZXIvbm9kZV9tb2R1bGVzL0BiYWJlbC9ydW50aW1lL2hlbHBlcnMvZXNtL3JlZ2VuZXJhdG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gIHRoaXMuY29sb3VyUmFkaW8gPSBmbGFnOwogICAgICBpZiAodGhpcy5tYXBJbXApIHsKICAgICAgICB0aGlzLm1hcEltcC5zZXRDb2xvdXIoewogICAgICAgICAgY29sb3VyOiBmbGFnLAogICAgICAgICAgb3V0bGluZTogdGhpcy5vdXRsaW5lc1JhZGlvCiAgICAgICAgfSk7CiAgICAgIH0KICAgIH0sCiAgICAvKioNCiAgICAgKiBGdW5jdGlvbiB0byB0b2dnbGUgb3V0bGluZXMgZiBvcmdhbnMuDQogICAgICovCiAgICBzZXRPdXRsaW5lczogZnVuY3Rpb24gc2V0T3V0bGluZXMoZmxhZykgewogICAgICB0aGlzLm91dGxpbmVSYWRpbyA9IGZsYWc7CiAgICAgIGlmICh0aGlzLm1hcEltcCkgewogICAgICAgIHRoaXMubWFwSW1wLnNldENvbG91cih7CiAgICAgICAgICBjb2xvdXI6IHRoaXMuY29sb3VyUmFkaW8sCiAgICAgICAgICBvdXRsaW5lOiBmbGFnCiAgICAgICAgfSk7CiAgICAgIH0KICAgIH0sCiAgICAvKioNCiAgICAgKiBGdW5jdGlvbiB0byB0b2dnbGUgcGF0aHMgdG8gZGVmYXVsdC4NCiAgICAgKiBBbHNvIGNhbGxlZCB3aGVuIHRoZSBhc3NvY2lhdGVkIGJ1dHRvbiBpcyBwcmVzc2VkLg0KICAgICAqLwogICAgcmVzZXRWaWV3OiBmdW5jdGlvbiByZXNldFZpZXcoKSB7CiAgICAgIGlmICh0aGlzLm1hcEltcCkgewogICAgICAgIHRoaXMubWFwSW1wLnJlc2V0TWFwKCk7CiAgICAgICAgaWYgKHRoaXMuJHJlZnMuY2VudHJlbGluZXNTZWxlY3Rpb24pIHsKICAgICAgICAgIHRoaXMuJHJlZnMuY2VudHJlbGluZXNTZWxlY3Rpb24ucmVzZXQoKTsKICAgICAgICB9CiAgICAgICAgaWYgKHRoaXMuJHJlZnMuc2tjYW5TZWxlY3Rpb24pIHsKICAgICAgICAgIHRoaXMuJHJlZnMuc2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ICAgICAgcGF5bG9hZC5rZXlzLmZvckVhY2goZnVuY3Rpb24gKGtleSkgewogICAgICAgICAgcmV0dXJuIF90aGlzNC5tYXBJbXAuZW5hYmxlQ29ubmVjdGl2aXR5QnlUYXhvbklkcyhrZXksIHBheWxvYWQudmFsdWUpOwogICAgICAgIH0pOwogICAgICB9CiAgICB9LAogICAgcGF0aHdheXNTZWxlY3RlZDogZnVuY3Rpb24gcGF0aHdheXNTZWxlY3RlZChwYXlsb2FkKSB7CiAgICAgIGlmICh0aGlzLm1hcEltcCkgewogICAgICAgIHRoaXMubWFwSW1wLmVuYWJsZVBhdGgocGF5bG9hZC5rZXksIHBheWxvYWQudmFsdWUpOwogICAgICB9CiAgICB9LAogICAgY2hlY2tBbGxQYXRod2F5czogZnVuY3Rpb24gY2hlY2tBbGxQYXRod2F5cyhwYXlsb2FkKSB7CiAgICAgIHZhciBfdGhpczUgPSB0aGlzOwogICAgICBpZiAodGhpcy5tYXBJbXApIHsKICAgICAgICBwYXlsb2FkLmtleXMuZm9yRWFjaChmdW5jdGlvbiAoa2V5KSB7CiAgICAgICAgICByZXR1cm4gX3RoaXM1Lm1hcEltcC5lbmFibGVQYXRoKGtleSwgcGF5bG9hZC52YWx1ZSk7CiAgICAgICAgfSk7CiAgICAgIH0KICAgIH0sCiAgICBlbmFibGVQYW5ab29tRXZlbnRzOiBmdW5jdGlvbiBlbmFibGVQYW5ab29tRXZlbnRzKGZsYWcpIHsKICAgICAgdGhpcy5tYXBJbXAuZW5hYmxlUGFuWm9vbUV2ZW50cyhmbGFnKTsKICAgIH0sCiAgICBldmVudENhbGxiYWNrOiBmdW5jdGlvbiBldmVudENhbGxiYWNrKCkgewogICAgICB2YXIgX3RoaXM2ID0gdGhpczsKICAgICAgcmV0dXJuIGZ1bmN0aW9uIChldmVudFR5cGUsIGRhdGEpIHsKICAgICAgICBpZiAoZXZlbnRUeXBlICE9PSAicGFuLXpvb20iKSB7CiAgICAgICAgICB2YXIgbGFiZWwgPSBkYXRhLmxhYmVsOwogICAgICAgICAgdmFyIHJlc291cmNlID0gW2RhdGEubW9kZWxzXTsKICAgICAgICAgIHZhciB0YXhvbm9teSA9IF90aGlzNi5lbnRyeTsKICAgICAgICAgIHZhciBiaW9sb2dpY2FsU2V4ID0gX3RoaXM2LmJpb2xvZ2ljYWxTZXg7CiAgICAgICAgICBmb3IgKHZhciBfbGVuID0gYXJndW1lbnRzLmxlbmd0aCwgYXJncyA9IG5ldyBBcnJheShfbGVuID4gMiA/IF9sZW4gLSAyIDogMCksIF9rZXkgPSAyOyBfa2V5IDwgX2xlbjsgX2tleSsrKSB7CiAgICAgICAgICAgIGFyZ3NbX2tleSAtIDJdID0gYXJndW1lbnRzW19rZXldOwogICAgICAgICAgfQogICAgICAgICAgdmFyIHBheWxvYWQgPSB7CiAgICAgICAgICAgIGRhdGFzZXQ6IGRhdGEuZGF0YXNldCwKICAgICAgICAgICAgYmlvbG9naWNhbFNleDogYmlvbG9naWNhbFNleCwKICAgICAgICAgICAgdGF4b25vbXk6IHRheG9ub215LAogICAgICAgICAgICByZXNvdXJjZTogcmVzb3VyY2UsCiAgICAgICAgICAgIGxhYmVsOiBsYWJlbCwKICAgICAgICAgICAgZmVhdHVyZTogZGF0YSwKICAgICAgICAgICAgdXNlckRhdGE6IGFyZ3MsCiAgICAgICAgICAgIGV2ZW50VHlwZTogZXZlbnRUeXBlLAogICAgICAgICAgICBwcm92ZW5hbmNlVGF4b25vbXk6IGRhdGEudGF4b25zID8gSlNPTi5wYXJzZShkYXRhLnRheG9ucykgOiB1bmRlZmluZWQKICAgICAgICAgIH07CiAgICAgICAgICBpZiAoZXZlbnRUeXBlID09PSAiY2xpY2siKSB7CiAgICAgICAgICAgIF90aGlzNi5jdXJyZW50QWN0aXZlID0gZGF0YS5tb2RlbHMgPyBkYXRhLm1vZGVscyA6ICIiOwogICAgICAgICAgfSBlbHNlIGlmIChldmVudFR5cGUgPT09ICJtb3VzZWVudGVyIikgewogICAgICAgICAgICBfdGhpczYuY3VycmVudEhvdmVyID0gZGF0YS5tb2RlbHMgPyBkYXRhLm1vZGVscyA6ICIiOwogICAgICAgICAgfQogICAgICAgICAgaWYgKGRhdGEgJiYgZGF0YS50eXBlICE9PSAibWFya2VyIiAmJiBldmVudFR5cGUgPT09ICJjbGljayIpIHsKICAgICAgICAgICAgX3RoaXM2LmNoZWNrQW5kQ3JlYXRlUG9wdXBzKHBheWxvYWQpOwogICAgICAgICAgfQogICAgICAgICAgX3RoaXM2LiRlbWl0KCJyZXNvdXJjZS1zZWxlY3RlZCIsIHBheWxvYWQpOwogICAgICAgIH0gZWxzZSB7CiAgICAgICAgICBfdGhpczYuJGVtaXQoInBhbi16b29tLWNhbGxiYWNrIiwgZGF0YSk7CiAgICAgICAgfQogICAgICB9OwogICAgfSwKICAgIC8vIGNoZWNrTmV1cm9uQ2xpY2tlZCBzaG93cyBhIG5ldXJvbiBwYXRoIHBvcCB1cCBpZiBhIHBhdGggd2FzIHJlY2VudGx5IGNsaWNrZWQKICAgIGNoZWNrQW5kQ3JlYXRlUG9wdXBzOiBmdW5jdGlvbiAoKSB7CiAgICAgIHZhciBfY2hlY2tBbmRDcmVhdGVQb3B1cHMgPSBfYXN5bmNUb0dlbmVyYXRvciggLyojX19QVVJFX18qL19yZWdlbmVyYXRvclJ1bnRpbWUoKS5tYXJrKGZ1bmN0aW9uIF9jYWxsZWUoZGF0YSkgewogICAgICAgIHZhciByZXN1bHRzOwogICAgICAgIHJldHVybiBfcmVnZW5lcmF0b3JSdW50aW1lKCkud3JhcChmdW5jdGlvbiBfY2FsbGVlJChfY29udGV4dCkgewogICAgICAgICAgd2hpbGUgKDEpIHN3aXRjaCAoX2NvbnRleHQucHJldiA9IF9jb250ZXh0Lm5leHQpIHsKICAgICAgICAgICAgY2FzZSAwOgogICAgICAgICAgICAgIF9jb250ZXh0Lm5leHQgPSAyOwogICAgICAgICAgICAgIHJldHVybiB0aGlzLmZsYXRtYXBRdWVyaWVzLnJldHJpZXZlRmxhdG1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Y29udGV4dDIucHJldiA9IF9jb250ZXh0Mi5uZXh0KSB7CiAgICAgICAgICAgIGNhc2UgMDoKICAgICAgICAgICAgICBfY29udGV4dDIubmV4dCA9IDI7CiAgICAgICAgICAgICAgcmV0dXJuIHRoaXMuZmxhdG1hcFF1ZXJpZXMuY3JlYXRlVG9vbHRpcERhdGEoZGF0YSk7CiAgICAgICAgICAgIGNhc2UgMjoKICAgICAgICAgICAgICB0aGlzLnRvb2x0aXBFbnRyeSA9IF9jb250ZXh0Mi5zZW50OwogICAgICAgICAgICAgIHRoaXMuZGlzcGxheVRvb2x0aXAoKTsKICAgICAgICAgICAgY2FzZSA0OgogICAgICAgICAgICBjYXNlICJlbmQiOgogICAgICAgICAgICAgIHJldHVybiBfY29udGV4dDIuc3RvcCgpOwogICAgICAgICAgfQogICAgICAgIH0sIF9jYWxsZWUyLCB0aGlzKTsKICAgICAgfSkpOwogICAgICBmdW5jdGlvbiBjcmVhdGVUb29sdGlwRnJvbU5ldXJvbkN1cmF0aW9uKF94MikgewogICAgICAgIHJldHVybiBfY3JlYXRlVG9vbHRpcEZyb21OZXVyb25DdXJhdGlvbi5hcHBseSh0aGlzLCBhcmd1bWVudHMpOwogICAgICB9CiAgICAgIHJldHVybiBjcmVhdGVUb29sdGlwRnJvbU5ldXJvbkN1cmF0aW9uOwogICAgfSgpLAogICAgLy8gS2VlcGluZyB0aGlzIGFzIGFuIEFQSQogICAgc2hvd1BvcHVwOiBmdW5jdGlvbiBzaG93UG9wdXAoZmVhdHVyZUlkLCBub2RlLCBvcHRpb25zKSB7CiAgICAgIHZhciBteU9wdGlvbnMgPSBvcHRpb25zOwogICAgICBpZiAodGhpcy5tYXBJbXApIHsKICAgICAgICBpZiAobXlPcHRpb25zKSB7CiAgICAgICAgICBpZiAoIW15T3B0aW9ucy5jbGFzc05hbWUpIG15T3B0aW9ucy5jbGFzc05hbWUgPSAiY3VzdG9tLXBvcHVwIjsKICAgICAgICB9IGVsc2UgewogICAgICAgICAgbXlPcHRpb25zID0gewogICAgICAgICAgICBjbGFzc05hbWU6ICJjdXN0b20tcG9wdXAiLAogICAgICAgICAgICBwb3NpdGlvbkF0TGFzdENsaWNrOiB0cnVlCiAgICAgICAgICB9OwogICAgICAgIH0KICAgICAgICB0aGlzLm1hcEltcC5zaG93UG9wdXAoZmVhdHVyZUlkLCBub2RlLCBteU9wdGlvbnMpOwogICAgICB9CiAgICB9LAogICAgc2hvd01hcmtlclBvcHVwOiBmdW5jdGlvbiBzaG93TWFya2VyUG9wdXAoZmVhdHVyZUlkLCBub2RlLCBvcHRpb25zKSB7CiAgICAgIGlmICh0aGlzLm1hcEltcCkgewogICAgICAgIHRoaXMubWFwSW1wLnNob3dNYXJrZXJQb3B1cChmZWF0dXJlSWQsIG5vZGUsIG9wdGlvbnMpOwogICAgICB9CiAgICB9LAogICAgY2xvc2VNaW5pbWFwOiBmdW5jdGlvbiBjbG9zZU1pbmltYXAoKSB7CiAgICAgIHZhciBtaW5pbWFwRWwgPSB0aGlzLiRyZWZzLmZsYXRtYXBDb250YWluZXIucXVlcnlTZWxlY3RvcignLm1hcGxpYnJlZ2wtY3RybC1taW5pbWFwJyk7IC8vIGZpbmQgbWluaW1hcAogICAgICBpZiAodGhpcy5taW5pbWFwU21hbGwpIHsKICAgICAgICAvL3N3aXRjaCB0aGUgY2xhc3NlcyBvbiB0aGUgbWluaW1hcAogICAgICAgIG1pbmltYXBFbC5jbGFzc0xpc3QuYWRkKCdlbmxhcmdlJyk7CiAgICAgICAgbWluaW1hcEVsLmNsYXNzTGlzdC5yZW1vdmUoJ3NocmluaycpOwogICAgICB9IGVsc2UgewogICAgICAgIG1pbmltYXBFbC5jbGFzc0xpc3QuYWRkKCdzaHJpbmsnKTsKICAgICAgICBtaW5pbWFwRWwuY2xhc3NMaXN0LnJlbW92ZSgnZW5sYXJnZScpOwogICAgICB9CiAgICAgIHRoaXMubWluaW1hcFNtYWxsID0gIXRoaXMubWluaW1hcFNtYWxsOwogICAgfSwKICAgIGF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hbHVlcygpKSwKICAgICAgICAgIF9zdGVwOwogICAgICAgIHRyeSB7CiAgICAgICAgICBmb3IgKF9pdGVyYXRvci5zKCk7ICEoX3N0ZXAgPSBfaXRlcmF0b3IubigpKS5kb25lOykgewogICAgICAgICAgICB2YXIgdmFsdWUgPSBfc3RlcC52YWx1ZTsKICAgICAgICAgICAgaWYgKHZhbHVlLmxhYmVsKSBsYWJlbHMucHVzaCh2YWx1ZS5sYWJlbCk7CiAgICAgICAgICB9CiAgICAgICAgfSBjYXRjaCAoZXJyKSB7CiAgICAgICAgICBfaXRlcmF0b3IuZShlcnIpOwogICAgICAgIH0gZmluYWxseSB7CiAgICAgICAgICBfaXRlcmF0b3IuZigpOwogICAgICAgIH0KICAgICAgICByZXR1cm4gQXJyYXkuZnJvbShuZXcgU2V0KGxhYmVscykpOwogICAgICB9CiAgICB9LAogICAgZ2V0U3RhdGU6IGZ1bmN0aW9uIGdldFN0YXRlKCkgewogICAgICBpZiAodGhpcy5tYXBJbXApIHsKICAgICAgICB2YXIgc3RhdGUgPSB7CiAgICAgICAgICBlbnRyeTogdGhpcy5lbnRyeSwKICAgICAgICAgIHZpZXdwb3J0OiB0aGlzLm1hcEltcC5nZXRTdGF0ZSgpCiAgICAgICAgfTsKICAgICAgICB2YXIgaWRlbnRpZmllciA9IHRoaXMubWFwSW1wLmdldElkZW50aWZpZXIoKTsKICAgICAgICBpZiAodGhpcy5iaW9sb2dpY2FsU2V4KSBzdGF0ZVsnYmlvbG9naWNhbFNleCddID0gdGhpcy5iaW9sb2dpY2FsU2V4O2Vsc2UgaWYgKGlkZW50aWZpZXIgJiYgaWRlbnRpZmllci5iaW9sb2dpY2FsU2V4KSBzdGF0ZVsnYmlvbG9naWNhbFNleCddID0gaWRlbnRpZmllci5iaW9sb2dpY2FsU2V4OwogICAgICAgIGlmIChpZGVudGlmaWVyICYmIGlkZW50aWZpZXIudXVpZCkgc3RhdGVbJ3V1aWQnXSA9IGlkZW50aWZpZXIudXVpZDsKICA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gICAgICAgICAgICAgaWRlbnRpZmllclsiYmlvbG9naWNhbFNleCJdID0gc3RhdGUuYmlvbG9naWNhbFNleDsKICAgICAgICAgICAgfSBlbHNlIGlmIChpZGVudGlmaWVyLnRheG9uID09PSAiTkNCSVRheG9uOjk2MDYiKSB7CiAgICAgICAgICAgICAgLy9Gb3IgYmFja3dhcmQgY29tcGF0aWJpbGl0eQogICAgICAgICAgICAgIGlkZW50aWZpZXJbImJpb2xvZ2ljYWxTZXgiXSA9ICJQQVRPOjAwMDAzODQiOwogICAgICAgICAgICB9CiAgICAgICAgICB9CiAgICAgICAgfSBlbHNlIHsKICAgICAgICAgIC8vIFNldCB0aGUgYmlvbG9pY2FsU2V4IG5vdyBpZiBtYXAgaXMgbm90IHJlc3VtZWQgZnJvbQogICAgICAgICAgLy8gYSBzYXZlZCBzdGF0ZQogICAgICAgICAgaWYgKHRoaXMuYmlvbG9naWNhbFNleCkgewogICAgICAgICAgICBpZGVudGlmaWVyWyJiaW9sb2dpY2FsU2V4Il0gPSB0aGlzLmJpb2xvZ2ljYWxTZXg7CiAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIHZhciBwcm9taXNlMSA9IHRoaXMubWFwTWFuYWdlci5sb2FkTWFwKGlkZW50aWZpZXIsIHRoaXMuJHJlZnMuZGlzcGxheSwgdGhpcy5ldmVudENhbGxiYWNrKCksIHsKICAgICAgICAgIC8vZnVsbHNjcmVlbkNvbnRyb2w6IGZhbHNlLAogICAgICAgICAgLy9hbm5vdGF0YWJsZTogZmFsc2UsCiAgICAgICAgICAvL2RlYnVnOiB0cnVlLAogICAgICAgICAgZmVhdHVyZUluZm86IHRoaXMuZmVhdHVyZUluZm8sCiAgICAgICAgICAibWluLXpvb20iOiB0aGlzLm1pblpvb20sCiAgICAgICAgICBsYXllckNvbnRyb2w6IHRydWUsCiAgICAgICAgICBwYXRoQ29udHJvbHM6IHRydWUsCiAgICAgICAgICBzZWFyY2hhYmxlOiB0aGlzLnNlYXJjaGFibGUs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iA0CiAgICB9LAogICAgcGF0aENvbnRyb2xzOiB7CiAgICAgIHR5cGU6IEJvb2xlYW4sCiAgICAgIGRlZmF1bHQ6IGZhbHNlCiAgICB9LAogICAgc2VhcmNoYWJsZTogewogICAgICB0eXBlOiBCb29sZWFuLAogICAgICBkZWZhdWx0OiBmYWxzZQogICAgfSwKICAgIGxheWVyQ29udHJvbDogewogICAgICB0eXBlOiBCb29sZWFuLAogICAgICBkZWZhdWx0OiBmYWxzZQogICAgfSwKICAgIHRvb2x0aXBzOiB7CiAgICAgIHR5cGU6IEJvb2xlYW4sCiAgICAgIGRlZmF1bHQ6IHRydWUKICAgIH0sCiAgICBoZWxwTW9kZTogewogICAgICB0eXBlOiBCb29sZWFuLAogICAgICBkZWZhdWx0OiBmYWxzZQogICAgfSwKICAgIHJlbmRlckF0TW91bnRlZDogewogICAgICB0eXBlOiBCb29sZWFuLAogICAgICBkZWZhdWx0OiB0cnVlCiAgICB9LAogICAgZGlzcGxheU1pbmltYXA6IHsKICAgICAgdHlwZTogQm9vbGVhbiwKICAgICAgZGVmYXVsdDogZmFsc2UKICAgIH0sCiAgICBkaXNwbGF5V2FybmluZzogewogICAgICB0eXBlOiBCb29sZWFuLAogICAgICBkZWZhdWx0OiBmYWxzZQogICAgfSwKICAgIC8qKg0KICAgICAqIEZsYWcgdG8gZGV0ZXJtaW5lIHJhdGhlciBvcGVuIG1hcCBVSSBzaG91bGQgYmUNCiAgICAgKiBwcmVzZW50ZWQgb3Igbm90Lg0KICAgICAqLwogICAgZW5hYmxlT3Blbk1hcFVJOiB7CiAgICAgIHR5cGU6IEJvb2xlYW4sCiAgICAgIGRlZmF1bHQ6IGZhbHNlCiAgICB9LAogICAgb3Blbk1hcE9wdGlvbnM6IHsKICAgICAgdHlwZTogQXJyYXksCiAgICAgIGRlZmF1bHQ6IGZ1bmN0aW9uIF9kZWZhdWx0KCkgewogICAgICAgIHJldHVybiBbewogICAgICAgICAgZGlzcGxheTogIk9wZW4gQUMgTWFwI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ogICAgfSwKICAgIHNwYXJjQVBJOiB7CiAgICAgIHR5cGU6IFN0cmluZywKICAgICAgZGVmYXVsdDogImh0dHBzOi8vYXBpLnNwYXJjLnNjaWVuY2UvIgogICAgfQogIH0sCiAgcHJvdmlkZTogZnVuY3Rpb24gcHJvdmlkZSgpIHsKICAgIHJldHVybiB7CiAgICAgIHNwYXJjQVBJOiB0aGlzLnNwYXJjQVBJLAogICAgICBmbGF0bWFwQVBJOiB0aGlzLmZsYXRtYXBBUEkKICAgIH07CiAgfSwKICBkYXRhOiBmdW5jdGlvbiBkYXRhKCkgewogICAgcmV0dXJuIHsKICAgICAgbGF5ZXJzOiBbXSwKICAgICAgcGF0aHdheXM6IFtdLAogICAgICBzY2thbkRpc3BsYXk6IFt7CiAgICAgICAgbGFiZWw6ICJEaXNwbGF5IFBhdGggd2l0aCBTQ0tBTiIsCiAgICAgICAga2V5OiAiVkFMSUQiCiAgICAgIH1dLAogICAgICBjZW50cmVMaW5lczogW3sKICAgICAgICBsYWJlbDogIkRpc3BsYXkgTmVydmVzIiwKICAgICAgICBrZXk6ICJjZW50cmVsaW5lcyIsCiAgICAgICAgZW5hYmxlZDogZmFsc2UKICAgICAgfV0sCiAgICAgIHN5c3RlbXM6IFtdLAogICAgICB0YXhvbkNvbm5lY3Rpdml0eTogW10sCiAgICAgIHBhdGh3YXlzTWF4SGVpZ2h0OiAxMDAwLAogICAgICBob3ZlclZpc2liaWxpdGllczogW3sKICAgICAgICB2YWx1ZTogZmFsc2UKICAgICAgfSwgewogICAgICAgIHZhbHVlOiBmYWxzZQogICAgICB9LCB7CiAgICAgICAgdmFsdWU6IGZhbHNlCiAgICAgIH0sIHsKICAgICAgICB2YWx1ZTogZmFsc2UKICAgICAgfSwgewogICAgICAgIHZhbHVlOiBmYWxzZQogICAgICB9LCB7CiAgICAgICAgdmFsdWU6IGZhbHNlCiAgICAgIH0sIHsKICAgICAgICB2YWx1ZTogZmFsc2UKICAgICAgfSwgewogICAgICAgIHZhbHVl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5zZXRTdGF0ZShzdGF0ZSk7CiAgICAgICAgfSBlbHNlIHsKICAgICAgICAgIC8vdGhpcyBjb21wb25lbnQgaGFzIG5vdCBiZWVuIG1vdW50ZWQgeWV0CiAgICAgICAgICB0aGlzLnNldFN0YXRlUmVxdWlyZWQgPSB0cnVlOwogICAgICAgIH0KICAgICAgfSwKICAgICAgaW1tZWRpYXRlOiB0cnVlLAogICAgICBkZWVwOiB0cnVlCiAgICB9CiAgfSwKICBtb3VudGVkOiBmdW5jdGlvbiBtb3VudGVkKCkgewogICAgdmFyIGZsYXRtYXAgPSByZXF1aXJlKCJAYWJpLXNvZnR3YXJlL2ZsYXRtYXAtdmlld2VyIik7CiAgICB0aGlzLnRvb2x0aXBXYWl0ID0gW107CiAgICB0aGlzLnRvb2x0aXBXYWl0Lmxlbmd0aCA9IHRoaXMuaG92ZXJWaXNpYmlsaXRpZXMubGVuZ3RoOwogICAgdGhpcy5tYXBNYW5hZ2VyID0gbmV3IGZsYXRtYXAuTWFwTWFuYWdlcih0aGlzLmZsYXRtYXBBUEkpOwogICAgdGhpcy5mbGF0bWFwUXVlcmllcyA9IG5ldyBGbGF0bWFwUXVlcmllcygpOwogICAgdGhpcy5mbGF0bWFwUXVlcmllcy5pbml0aWFsaXNlKHRoaXMuZmxhdG1hcEFQSSk7CiAgICBpZiAodGhpcy5zdGF0ZSkgewogICAgICAvL1N0YXRlIGlzIHNldCBhbmQgcmVxdWlyZSB0byBzZXQgdGhlIHN0YXRlCiAgICAgIGlmICh0aGlzLnNldFN0YXRlUmVxdWlyZWQpIHsKICAgICAgICB0aGlzLnNldFN0YXRlKHRoaXMuc3RhdGUpOwogICAgICB9CiAgICB9IGVsc2UgaWYgKHRoaXMucmVuZGVyQXRNb3VudGVkKSB7CiAgICAgIHRoaXMuY3JlYXRlRmxhdG1hcCgpOwogICAgfQogIH0KfTs="},{"version":3,"names":["Vue","Tooltip","SelectionsGroup","TreeControls","MapSvgIcon","MapSvgSpriteColor","SvgLegends","lang","locale","flatmapMarker","FlatmapQueries","findTaxonomyLabel","use","_Button","_Col","_Loading","directive","_Radio","_RadioGroup","_Row","ResizeSensor","require","processTaxon","flatmapAPI","taxonIdentifiers","processed","forEach","taxon","then","value","item","label","push","processFTUs","parent","key","ftus","items","organs","children","filter","obj","index","findIndex","undefined","child","data","models","concat","grandChildren","length","processSystems","systems","allSystems","system","colour","enabled","id","createUnfilledTooltipData","destinations","origins","components","destinationsWithDatasets","originsWithDatasets","componentsWithDatasets","resource","name","beforeCreate","mapManager","mapImp","setStateRequired","methods","viewLatestMap","biologicalSex","entry","state","viewport","getState","$emit","backgroundChangeCallback","currentBackground","setBackgroundColour","toggleDrawer","drawerOpen","setColour","flag","colourRadio","outline","outlinesRadio","setOutlines","outlineRadio","resetView","resetMap","$refs","centrelinesSelection","reset","skcanSelection","layersSelection","systemsSelection","pathwaysSelection","zoomIn","zoomOut","centreLinesSelected","payload","enableCentrelines","sckanSelected","enableSckanPath","checkAllSCKAN","_this","keys","systemSelected","enableSystem","checkAllSystems","_this2","ftuSelected","searchAndShowResult","layersSelected","enableLayer","checkAllLayers","_this3","taxonsSelected","enableConnectivityByTaxonIds","checkAllTaxons","_this4","pathwaysSelected","enablePath","checkAllPathways","_this5","enablePanZoomEvents","eventCallback","_this6","eventType","taxonomy","_len","arguments","args","Array","_key","dataset","feature","userData","provenanceTaxonomy","taxons","JSON","parse","currentActive","currentHover","type","checkAndCreatePopups","_checkAndCreatePopups","_asyncToGenerator","_regeneratorRuntime","mark","_callee","results","wrap","_callee$","_context","prev","next","flatmapQueries","retrieveFlatmapKnowledgeForEvent","sent","hyperlinks","resourceForTooltip","createTooltipFromNeuronCuration","stop","_x","apply","popUpCssHacks","ftooltip","document","querySelector","style","display","tooltip","$el","onclick","_createTooltipFromNeuronCuration","_callee2","_callee2$","_context2","createTooltipData","tooltipEntry","displayTooltip","_x2","showPopup","featureId","node","options","myOptions","className","positionAtLastClick","showMarkerPopup","closeMinimap","minimapEl","flatmapContainer","minimapSmall","classList","add","remove","addResizeButtonToMinimap","minimapResize","parentNode","removeChild","appendChild","minimapResizeShow","setHelpMode","helpMode","inHelp","hoverVisibilities","openFlatmapHelpPopup","closeFlatmapHelpPopup","showToolitip","tooltipNumber","_this7","clearTimeout","tooltipWait","setTimeout","hideToolitip","_this8","modelFeatureIds","heartId","featureIdsForModel","elm","anchor","querySelectorAll","click","getLabels","labels","annotations","_iterator","_createForOfIteratorHelper","values","_step","s","n","done","err","e","f","from","Set","identifier","getIdentifier","uuid","setState","createFlatmap","restoreMapState","searchTerm","_this9","loading","minimap","displayMinimap","position","promise1","loadMap","featureInfo","minZoom","layerControl","pathControls","searchable","tooltips","returnedObject","onFlatmapReady","_stateToBeSet","computePathControlsMaximumHeight","elem","computed","getComputedStyle","padding","parseInt","paddingTop","paddingBottom","height","clientHeight","pathwaysMaxHeight","mapResize","resize","showMinimap","_minimap","_unused","console","error","sensor","isFC","setBackgroundOpacity","pathways","pathTypes","getSystems","taxonConnectivity","showPathwaysDrawer","term","displayLabel","clearSearchResults","searchResults","search","showSearchResults","text","annotation","preserveSelection","searchSuggestions","props","String","default","Boolean","Number","renderAtMounted","displayWarning","enableOpenMapUI","openMapOptions","_default","isLegacy","displayLatestChanges","latestChangesMessage","Object","sparcAPI","provide","layers","sckanDisplay","centreLines","availableBackground","connectivityTooltipVisible","watch","val","handler","immediate","deep","mounted","flatmap","MapManager","initialise"],"sources":["node_modules/@abi-software/flatmapvuer/src/components/FlatmapVuer.vue"],"sourcesContent":["\r\n\r\n\r\n\r\n\r\n\r\n\r\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0WA;AACA,OAAAA,GAAA;AACA,OAAAC,OAAA;AACA,OAAAC,eAAA;AACA,OAAAC,YAAA;AACA,SAAAC,UAAA,EAAAC,iBAAA;AACA,OAAAC,UAAA;AASA,OAAAC,IAAA;AACA,OAAAC,MAAA;AACA,OAAAC,aAAA;AACA,SAAAC,cAAA,EAAAC,iBAAA;A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