// Generated by go_embed_data for //internal/ibazel/profiler:js. DO NOT EDIT. package profiler var js = []byte("// Copyright 2017 The Bazel Authors. All rights reserved.\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\n(function(){\n function extractUrl() {\n return [...window.document.getElementsByTagName('script') ]\n .filter(function(e) { return e.src; })\n .map(function(e) {\n const a = document.createElement('a');\n a.href = e.src;\n return a;\n })\n .filter(function (a) { return a.pathname == \"/profiler.js\"; })\n .map(function (a) { return `${a.protocol}//${a.host}/profiler-event`; })\n .reduce(function(acc, u) { return acc || u; });\n };\n\n const profilerEventUrl = extractUrl();\n if (!profilerEventUrl) {\n this.console.error(\"iBazel profiler disabled because it could not find its own