{
  "version": 3,
  "sources": ["route_profile.js"],
  "sourcesContent": ["/*\n * static/js/route_profile.js \u2014 the route profile: one drawing, three pages\n * (SNOW-1215).\n *\n * The lane the map's route panel draws \u2014 one fill per leg under one\n * outline, distance ticks along its foot, and, while a point is placed, a\n * vertical cursor line with a dot where it crosses the outline and the\n * point's elevation and distance beside it. Until SNOW-1215 the drawing\n * lived inside route_rail.js, and the trip pages drew a different profile\n * of their own (trip_map.js's single-colour area). The Plan page and the\n * trip page now draw THIS, from the same markup\n * (templates/includes/_route_profile.html), so a route reads the same on\n * the map, while planning, and on the page the group is sent.\n *\n * DRAWING ONLY. What places the point \u2014 a tap, a scrub, the map's line \u2014\n * is the caller's; route_rail.js owns all of that for the map. A caller\n * hands `cursor(index)` the index it wants drawn, or null to clear it.\n * All the arithmetic is route_rail_core.js's.\n *\n * WHY THE FIGURES ARE HTML. The lane is stretched with\n * `preserveAspectRatio=\"none\"`, which would squash a circle or a glyph, so\n * the tick labels, the dot and the readout are HTML placed by percentage\n * over and under it.\n *\n * Publishes (frozen `window.pwaRouteProfile`):\n *\n *   mount(root, strings) \u2192 view, or null when `root` holds no lane\n *     view.draw(profile, legs, sampleCount, spanM, name, lifts?, stops?)\n *                  \u2014 draw the lane for one route: a `readProfile` result,\n *                    its wire legs, N (the segments the legs index; 0 for\n *                    the outline alone), the route's length for the\n *                    ticks, its name for the lane's label, and its lift\n *                    rides (SNOW-994), a teal band each, with the\n *                    partial's \"Lift\" key shown only when there is one,\n *                    and its stops (SNOW-1537), a pause mark each on the\n *                    outline, cloned from the partial's template\n *     view.stopAt(clientX, clientY, tolerancePx)\n *                  \u2014 the stop whose pause mark a press is within\n *                    `tolerancePx` of, or null (SNOW-1537)\n *     view.cursor(index)\n *                  \u2014 draw the cursor line and readout at a sample index,\n *                    or clear them with null\n *     view.indexAt(clientX)\n *                  \u2014 the sample under a viewport x on the lane, clamped\n *                    to the route; null before a draw with legs, or while\n *                    the lane has no width\n *     view.edit(state)\n *                  \u2014 draw an edit over the lane (SNOW-1536), or clear it\n *                    with null: `{side, boundary, snapped, changeovers}`,\n *                    the part `side` removes hatched in the cut's red\n *                    with its outline red, the cut line and its handle at\n *                    `boundary` (filled while `snapped`), and a dot on\n *                    the outline at each changeover. route_edit.js is the\n *                    caller; draw() clears it, so it draws again after\n *     view.highlight(target)\n *                  \u2014 SNOW-1545: mark one stretch of the lane, `{from, to}`\n *                    in segment indices (both inclusive), as a band over\n *                    the profile, or one stop, `{stop}` (a stop with its\n *                    `along_m`), by marking its pause mark active\n *                    (`data-active`; a line across the lane when no mark\n *                    was drawn for it); the GPX Explorer's breakdown is\n *                    the caller. draw() clears it\n *     view.clearHighlight()\n *                  \u2014 remove the mark\n *     view.lane    \u2014 the lane's <svg>, for the caller's pointer handlers\n *\n *   read(feature) \u2192 {profile, legs, slope, sampleCount, spanM, lifts, stops}\n *                  \u2014 what `draw` takes, read off a route Feature whose\n *                    nested properties may arrive JSON-encoded\n *   readJson(value) \u2192 a feature property, parsed when it arrived\n *                    JSON-encoded (null when it will not parse); the rail\n *                    reads its own properties through it (SNOW-1537)\n *   sampleCountOf(slope, legs) \u2192 N\n *                  \u2014 `slope.angles`' length when the route has one, else\n *                    the last leg's `to` plus one: legs ride on an\n *                    unsampled route too, in the segment indices its\n *                    record will have (apps/routes/services/leg_wire.py)\n *\n *   `strings` holds `unit-m`, `unit-km` and `lane-label`, the partial's\n *   strings template's keys.\n */\n\n(function routeProfileInit() {\n  'use strict';\n\n  var SVG_NS = 'http://www.w3.org/2000/svg';\n  /** The space between the cursor line and its figures, px: clear of the dot. */\n  var READOUT_GAP_PX = 9;\n  /** Lanes mounted so far, which numbers each one's hatch pattern. */\n  var mountCount = 0;\n\n  /**\n   * Create one SVG element with attributes.\n   *\n   * @param {string} tag\n   * @param {Object<string, string>} attrs\n   * @returns {SVGElement}\n   */\n  function svgEl(tag, attrs) {\n    var el = document.createElementNS(SVG_NS, tag);\n    Object.keys(attrs).forEach(function (key) {\n      el.setAttribute(key, attrs[key]);\n    });\n    return el;\n  }\n\n  /**\n   * Read a feature property that may arrive JSON-encoded.\n   *\n   * The routes cache holds real objects, but a feature MapLibre handed\n   * back stringifies nested properties, and a caller may pass either.\n   *\n   * @param {*} value\n   * @returns {*}\n   */\n  function readJson(value) {\n    if (typeof value !== 'string') return value;\n    try {\n      return JSON.parse(value);\n    } catch (_err) {\n      return null;\n    }\n  }\n\n  /**\n   * N, the segments a route's legs index.\n   *\n   * @param {?{angles?: Array}} slope The route's slope record, or null.\n   * @param {Array} legs The route's wire legs.\n   * @returns {number} 0 with neither.\n   */\n  function sampleCountOf(slope, legs) {\n    if (slope && Array.isArray(slope.angles) && slope.angles.length) {\n      return slope.angles.length;\n    }\n    var last = legs.length ? legs[legs.length - 1] : null;\n    return last && Number.isInteger(last.to) ? last.to + 1 : 0;\n  }\n\n  /**\n   * Read what `draw` takes off one route Feature.\n   *\n   * A route with no legs at all \u2014 no elevation, or too short \u2014 reads as\n   * N = 0 and no legs: the outline alone, with no point to place.\n   *\n   * @param {{geometry?: {coordinates?: Array}, properties?: object}} feature\n   * @returns {{profile: object, legs: Array, slope: *, sampleCount: number,\n   *   spanM: number, lifts: Array, stops: Array}}\n   */\n  function read(feature) {\n    var props = (feature && feature.properties) || {};\n    var slope = readJson(props.slope);\n    var wireLegs = readJson(props.legs);\n    var legs = Array.isArray(wireLegs) ? wireLegs : [];\n    var sampleCount = sampleCountOf(slope, legs);\n    if (!(sampleCount > 0)) legs = [];\n    // SNOW-994: the lift rides, in the legs' sample indices.\n    var liftsCore = self.pwaRouteLiftsCore;\n    var lifts = liftsCore && sampleCount > 0\n      ? liftsCore.ranges({ lift_ranges: readJson(props.lift_ranges) })\n      : [];\n    var coordinates = feature && feature.geometry && feature.geometry.coordinates;\n    var profile = self.pwaElevationProfileCore.readProfile(\n      Array.isArray(coordinates) ? coordinates : [],\n    );\n    var spanM = typeof props.distance_m === 'number' ? props.distance_m : profile.distanceM;\n    // SNOW-1537: a recorded route's stops, at metres along the line.\n    var summary = readJson(props.timing_summary);\n    var stops = summary && Array.isArray(summary.stops) ? summary.stops : [];\n    return {\n      profile: profile,\n      legs: legs,\n      slope: slope,\n      sampleCount: sampleCount,\n      spanM: spanM,\n      lifts: lifts,\n      stops: stops,\n    };\n  }\n\n  /**\n   * Bind a view to one profile's markup.\n   *\n   * @param {ParentNode} root An element holding _route_profile.html.\n   * @param {Object<string, string>} strings The partial's strings.\n   * @returns {?{draw: Function, cursor: Function, indexAt: function(number): ?number, lane: Element}}\n   */\n  function mount(root, strings) {\n    var lane = root && root.querySelector('[data-route-rail-lane]');\n    var ticksEl = root && root.querySelector('[data-route-rail-ticks]');\n    if (!lane || !ticksEl) return null;\n    var readoutEl = /** @type {HTMLElement|null} */ (root.querySelector('[data-route-rail-readout]'));\n    // SNOW-994: the \"Lift\" key, shown only while a ride is drawn.\n    var liftKeyEl = /** @type {HTMLElement|null} */ (root.querySelector('[data-route-profile-lift-key]'));\n    var dotEl = /** @type {HTMLElement|null} */ (root.querySelector('[data-route-rail-dot]'));\n    var elevationEl = /** @type {HTMLElement|null} */ (root.querySelector('[data-route-rail-elevation]'));\n    var distanceEl = /** @type {HTMLElement|null} */ (root.querySelector('[data-route-rail-distance]'));\n    // SNOW-1537: one pause mark, cloned per stop.\n    var stopTemplate = /** @type {HTMLTemplateElement|null} */ (\n      root.querySelector('template[data-route-profile-stop-template]')\n    );\n    var interpolate = self.pwaStrings.interpolate;\n    var units = { m: strings['unit-m'], km: strings['unit-km'] };\n    /** The drawn route's pause marks, with the element drawn for each. */\n    var stopMarks = [];\n\n    /** The drawn route's readProfile result, or null. */\n    var profile = null;\n    /** N, the segments the drawn route's legs index; 0 with no legs. */\n    var sampleCount = 0;\n    /** The route's length a point's distance is a share of. */\n    var spanM = 0;\n    /** This lane's own hatch pattern id: two lanes may share a page. */\n    var hatchId = 'route-edit-hatch-' + (mountCount += 1);\n\n    /**\n     * Draw the lane: the leg fills, the outline, the tick marks, and the\n     * tick labels under it.\n     *\n     * @param {object} nextProfile A readProfile result.\n     * @param {Array} legs The route's wire legs.\n     * @param {number} nextSampleCount N; 0 when the route has no legs.\n     * @param {number} nextSpanM The route's length for the tick labels.\n     * @param {string} name The route's name, for the lane's label.\n     * @param {Array} [lifts] The route's lift rides (SNOW-994), drawn in\n     *   teal over the leg fills; none when omitted.\n     * @param {Array} [stops] The route's stops (SNOW-1537), a pause mark\n     *   each; none when omitted.\n     */\n    function draw(nextProfile, legs, nextSampleCount, nextSpanM, name, lifts, stops) {\n      var core = self.pwaRouteRailCore;\n      var box = core.BOX;\n      profile = nextProfile;\n      sampleCount = nextSampleCount;\n      spanM = nextSpanM;\n      lane.replaceChildren();\n      ticksEl.replaceChildren();\n      editMarks.forEach(function (el) { el.remove(); });\n      editMarks = [];\n      drawStops(stops || []);\n      clearHighlight();\n      lane.setAttribute('viewBox', '0 0 ' + box.width + ' ' + box.height);\n      lane.setAttribute('aria-label', interpolate(strings['lane-label'], { name: name }));\n\n      var paths = core.legPaths(profile, legs, sampleCount, box);\n\n      paths.legs.forEach(function (fill) {\n        lane.appendChild(svgEl('path', {\n          d: fill.d,\n          class: 'route-rail-leg',\n          'data-climbing': fill.climbing ? 'true' : 'false',\n        }));\n      });\n\n      if (paths.outline) {\n        lane.appendChild(svgEl('path', {\n          d: paths.outline,\n          fill: 'none',\n          stroke: 'currentColor',\n          'stroke-width': '1.5',\n          'stroke-linejoin': 'round',\n          'vector-effect': 'non-scaling-stroke',\n          'pointer-events': 'none',\n        }));\n      }\n\n      // SNOW-994: each lift ride, its fill and its stretch of outline in\n      // the lift's teal, over the legs and the route's own outline.\n      var rides = core.liftPaths\n        ? core.liftPaths(profile, lifts || [], sampleCount, box)\n        : [];\n      rides.forEach(function (ride) {\n        lane.appendChild(svgEl('path', { d: ride.d, class: 'route-rail-lift', 'pointer-events': 'none' }));\n        if (!ride.outline) return;\n        lane.appendChild(svgEl('path', {\n          d: ride.outline,\n          fill: 'none',\n          class: 'route-rail-lift-outline',\n          'stroke-width': '2',\n          'stroke-linejoin': 'round',\n          'vector-effect': 'non-scaling-stroke',\n          'pointer-events': 'none',\n        }));\n      });\n      if (liftKeyEl) liftKeyEl.hidden = rides.length === 0;\n\n      if (!(spanM > 0)) return;\n      core.ticks(spanM, units).forEach(function (tick) {\n        var fraction = tick.d / spanM;\n        var x = (fraction * box.width).toFixed(2);\n        lane.appendChild(svgEl('line', {\n          x1: x,\n          x2: x,\n          y1: String(box.height - (tick.major ? 8 : 4)),\n          y2: String(box.height),\n          stroke: 'currentColor',\n          'stroke-opacity': tick.major ? '0.5' : '0.25',\n          'vector-effect': 'non-scaling-stroke',\n          'pointer-events': 'none',\n          class: 'text-text-3',\n        }));\n        if (!tick.label) return;\n        var label = document.createElement('span');\n        // The first label hangs right of its tick and the rest are centred\n        // on theirs, so \"0 km\" is not cut off at the lane's left edge. None\n        // wraps: an absolute box near the right edge shrinks to the space\n        // left, which broke \"15 km\" over two lines on a phone.\n        label.className = fraction === 0\n          ? 'absolute top-0 whitespace-nowrap'\n          : 'absolute top-0 -translate-x-1/2 whitespace-nowrap';\n        label.style.left = (fraction * 100).toFixed(3) + '%';\n        label.textContent = tick.label;\n        ticksEl.appendChild(label);\n      });\n    }\n\n    /**\n     * Draw a pause mark at each stop on the outline (SNOW-1537), replacing\n     * the last route's. HTML over the lane, for the dot's reason: the lane\n     * is stretched, which would squash a glyph.\n     *\n     * @param {Array} stops The route's stops.\n     */\n    function drawStops(stops) {\n      stopMarks.forEach(function (mark) { mark.el.remove(); });\n      stopMarks = [];\n      var holder = lane.parentElement;\n      var core = self.pwaRouteRailCore;\n      if (!holder || !stopTemplate || !core.stopMarks) return;\n      var box = core.BOX;\n      core.stopMarks(profile, stops, box).forEach(function (mark) {\n        var el = /** @type {HTMLElement} */ (\n          stopTemplate.content.firstElementChild.cloneNode(true)\n        );\n        el.style.left = (mark.fraction * 100).toFixed(3) + '%';\n        el.style.top = ((mark.y / box.height) * 100).toFixed(3) + '%';\n        holder.appendChild(el);\n        stopMarks.push({ stop: mark.stop, fraction: mark.fraction, y: mark.y, el: el });\n      });\n    }\n\n    /**\n     * The stop whose pause mark a press is on (SNOW-1537).\n     *\n     * @param {number} clientX The press's x.\n     * @param {number} clientY The press's y.\n     * @param {number} tolerancePx How far from a mark's centre counts.\n     * @returns {?Object} The stop, or null.\n     */\n    function stopAt(clientX, clientY, tolerancePx) {\n      if (!stopMarks.length) return null;\n      var rect = lane.getBoundingClientRect();\n      var mark = self.pwaRouteRailCore.stopAt(\n        stopMarks,\n        clientX - rect.left,\n        clientY - rect.top,\n        rect.width,\n        rect.height,\n        tolerancePx,\n      );\n      return mark ? mark.stop : null;\n    }\n\n    /**\n     * Place the dot and the two figures for the cursor index, or hide them.\n     *\n     * The dot sits where the line crosses the outline (`profileY`); a point\n     * on a stretch with no elevation gets no dot and no elevation, and\n     * still its distance. The figures go right of the line, left-aligned,\n     * unless they would not fit before the lane's right edge\n     * (`readoutSide`).\n     *\n     * @param {?number} index The cursor index; null to hide.\n     */\n    function paintReadout(index) {\n      if (!readoutEl || !dotEl || !elevationEl || !distanceEl) return;\n      var core = self.pwaRouteRailCore;\n      if (index === null || !(sampleCount > 0) || !profile) {\n        readoutEl.hidden = true;\n        return;\n      }\n      var fraction = (index + 0.5) / sampleCount;\n      var percent = fraction * 100;\n      var elevation = core.pointElevation(profile, index, sampleCount, units);\n      var distance = core.pointDistance(index, sampleCount, spanM, units);\n      var y = core.profileY(profile, fraction * profile.distanceM);\n\n      elevationEl.textContent = elevation || '';\n      elevationEl.hidden = !elevation;\n      distanceEl.textContent = distance || '';\n      distanceEl.hidden = !distance;\n      dotEl.hidden = y === null;\n      if (y !== null) {\n        dotEl.style.left = percent.toFixed(3) + '%';\n        dotEl.style.top = ((y / core.BOX.height) * 100).toFixed(3) + '%';\n      }\n      readoutEl.hidden = false;\n\n      // Measured once shown, so the widths are the rendered ones.\n      var laneWidth = lane.getBoundingClientRect().width;\n      var widest = Math.max(\n        elevationEl.getBoundingClientRect().width,\n        distanceEl.getBoundingClientRect().width,\n      );\n      var side = core.readoutSide(fraction * laneWidth, laneWidth, widest, READOUT_GAP_PX);\n      readoutEl.setAttribute('data-side', side);\n      [elevationEl, distanceEl].forEach(function (label) {\n        if (side === 'right') {\n          label.style.left = 'calc(' + percent.toFixed(3) + '% + ' + READOUT_GAP_PX + 'px)';\n          label.style.right = '';\n        } else {\n          label.style.right = 'calc(' + (100 - percent).toFixed(3) + '% + ' + READOUT_GAP_PX + 'px)';\n          label.style.left = '';\n        }\n      });\n    }\n\n    /**\n     * Draw the cursor index as a vertical line across the lane (SNOW-1019),\n     * with its dot and its figures (2026-10-02).\n     *\n     * Placed by share, the rule the leg fills follow: sample i owns the\n     * i-th of N shares, and the line sits at its middle. Removed while the\n     * index is null.\n     *\n     * @param {?number} index The cursor index.\n     */\n    function cursor(index) {\n      var line = lane.querySelector('[data-route-rail-cursor]');\n      if (index === null || index === undefined || !(sampleCount > 0)) {\n        if (line) line.remove();\n        paintReadout(null);\n        return;\n      }\n      var box = self.pwaRouteRailCore.BOX;\n      if (!line) {\n        line = svgEl('line', {\n          'data-route-rail-cursor': '',\n          y1: '0',\n          y2: String(box.height),\n          stroke: 'currentColor',\n          'stroke-width': '1.5',\n          'vector-effect': 'non-scaling-stroke',\n          'pointer-events': 'none',\n          class: 'text-text-1',\n        });\n        lane.appendChild(line);\n      }\n      var x = (((index + 0.5) / sampleCount) * box.width).toFixed(2);\n      line.setAttribute('x1', x);\n      line.setAttribute('x2', x);\n      paintReadout(index);\n    }\n\n    /**\n     * The sample under a viewport x on the lane, clamped to the route.\n     *\n     * The inverse of `cursor`'s placement: sample i owns the i-th of N\n     * equal shares of the lane's width.\n     *\n     * @param {number} clientX The pointer's x.\n     * @returns {?number} Null with no legs drawn or no lane width.\n     */\n    function indexAt(clientX) {\n      if (!(sampleCount > 0)) return null;\n      var rect = lane.getBoundingClientRect();\n      if (!(rect.width > 0)) return null;\n      var at = Math.floor(((clientX - rect.left) / rect.width) * sampleCount);\n      return Math.min(sampleCount - 1, Math.max(0, at));\n    }\n\n    /** The edit's HTML marks over the lane: the handle and the dots. */\n    var editMarks = [];\n\n    /**\n     * Draw an edit over the lane (SNOW-1536), or clear it.\n     *\n     * The removed part is the profile's own fill and outline between the\n     * cut and the end it removes, hatched and stroked in the cut's red\n     * (static/css/map.css). The handle and the changeover dots are HTML\n     * over the lane, for the readout's reason: the lane is stretched.\n     *\n     * @param {?{side: string, boundary: number, snapped: ?Object,\n     *   changeovers: Array<{boundary: number}>}} state\n     */\n    function edit(state) {\n      lane.querySelectorAll('[data-route-edit-mark]').forEach(function (el) { el.remove(); });\n      editMarks.forEach(function (el) { el.remove(); });\n      editMarks = [];\n      if (!state || !(sampleCount > 0) || !profile || !profile.hasElevation) return;\n      var core = self.pwaRouteRailCore;\n      var box = core.BOX;\n      var from = state.side === 'start' ? 0 : state.boundary;\n      var to = state.side === 'start' ? state.boundary : sampleCount;\n      var startD = (from / sampleCount) * profile.distanceM;\n      var endD = (to / sampleCount) * profile.distanceM;\n\n      if (!lane.querySelector('[data-route-edit-hatch]')) {\n        var defs = svgEl('defs', { 'data-route-edit-hatch': '' });\n        var pattern = svgEl('pattern', {\n          id: hatchId,\n          patternUnits: 'userSpaceOnUse',\n          width: '8',\n          height: '8',\n          patternTransform: 'rotate(45)',\n        });\n        pattern.appendChild(svgEl('line', {\n          x1: '0', y1: '0', x2: '0', y2: '8', class: 'route-edit-hatch-line',\n        }));\n        defs.appendChild(pattern);\n        lane.insertBefore(defs, lane.firstChild);\n      }\n\n      var removed = core.legPaths(\n        profile,\n        [{ i: 0, from: from, to: to - 1, climbing: false }],\n        sampleCount,\n        box,\n      );\n      if (removed.legs.length) {\n        lane.appendChild(svgEl('path', {\n          d: removed.legs[0].d,\n          'data-route-edit-mark': '',\n          class: 'route-edit-removed',\n          fill: 'url(#' + hatchId + ')',\n          'pointer-events': 'none',\n        }));\n      }\n      /** @param {number} d */\n      var x = function (d) { return ((d / profile.distanceM) * box.width).toFixed(2); };\n      profile.runs.forEach(function (run) {\n        var piece = core.clipRun(run, startD, endD);\n        if (piece.length < 2) return;\n        var d = piece.map(function (p, i) {\n          return (i === 0 ? 'M' : 'L') + x(p.d) + ' ' + core.profileY(profile, p.d, box).toFixed(2);\n        }).join(' ');\n        lane.appendChild(svgEl('path', {\n          d: d,\n          'data-route-edit-mark': '',\n          class: 'route-edit-removed-line',\n          fill: 'none',\n          'vector-effect': 'non-scaling-stroke',\n          'pointer-events': 'none',\n        }));\n      });\n      var cutX = ((state.boundary / sampleCount) * box.width).toFixed(2);\n      lane.appendChild(svgEl('line', {\n        'data-route-edit-mark': '',\n        class: 'route-edit-cut-line',\n        x1: cutX,\n        x2: cutX,\n        y1: '0',\n        y2: String(box.height),\n        'vector-effect': 'non-scaling-stroke',\n        'pointer-events': 'none',\n      }));\n\n      var holder = lane.parentElement;\n      if (!holder) return;\n      (state.changeovers || []).forEach(function (point) {\n        var share = point.boundary / sampleCount;\n        var y = core.profileY(profile, share * profile.distanceM, box);\n        if (y === null) return;\n        var dot = document.createElement('span');\n        dot.className = 'route-edit-changeover';\n        dot.setAttribute('data-route-edit-changeover', '');\n        dot.style.left = (share * 100).toFixed(3) + '%';\n        dot.style.top = ((y / box.height) * 100).toFixed(3) + '%';\n        holder.appendChild(dot);\n        editMarks.push(dot);\n      });\n      var handle = document.createElement('span');\n      handle.className = 'route-edit-handle';\n      handle.setAttribute('data-route-edit-handle', '');\n      handle.toggleAttribute('data-snapped', !!state.snapped);\n      handle.style.left = ((state.boundary / sampleCount) * 100).toFixed(3) + '%';\n      holder.appendChild(handle);\n      editMarks.push(handle);\n    }\n\n    /**\n     * Mark one stretch, or one stop's place, on the lane (SNOW-1545).\n     *\n     * A stretch is a band over the profile's own fill between the two\n     * segments, in the highlight's class (src/css/main.css); a stop is\n     * its pause mark, marked active, or a line across the lane at its\n     * metres when none was drawn. A second call replaces the first.\n     *\n     * A stretch with a `kind` (lift, climb or descent) is drawn in that\n     * kind's colour, and the lane is marked `data-highlighting` so the\n     * other fills fade (src/css/main.css; Hugo, 23 Nov 2026).\n     *\n     * @param {?{from?: number, to?: number, kind?: string, stop?: {along_m: number}}} target\n     */\n    function highlight(target) {\n      clearHighlight();\n      if (!target || !profile) return;\n      var core = self.pwaRouteRailCore;\n      var box = core.BOX;\n      if (target.stop) {\n        // The stop's own pause mark, marked active (src/css/main.css);\n        // a line at its metres when the lane drew no mark for it.\n        var drawnMark = stopMarks.find(function (mark) {\n          return mark.stop && mark.stop.along_m === target.stop.along_m;\n        });\n        if (drawnMark) {\n          drawnMark.el.setAttribute('data-active', '');\n          return;\n        }\n        var marks = core.stopMarks ? core.stopMarks(profile, [target.stop], box) : [];\n        if (!marks.length) return;\n        var x = (marks[0].fraction * box.width).toFixed(2);\n        lane.appendChild(svgEl('line', {\n          'data-route-profile-highlight': '',\n          class: 'route-profile-highlight-line',\n          x1: x,\n          x2: x,\n          y1: '0',\n          y2: String(box.height),\n          'vector-effect': 'non-scaling-stroke',\n          'pointer-events': 'none',\n        }));\n        return;\n      }\n      if (!(sampleCount > 0) || !Number.isInteger(target.from) || !Number.isInteger(target.to)) return;\n      var band = core.legPaths(\n        profile,\n        [{ i: 0, from: target.from, to: target.to, climbing: false }],\n        sampleCount,\n        box,\n      );\n      if (!band.legs.length) return;\n      /** @type {Object<string, string>} */\n      var attrs = {\n        d: band.legs[0].d,\n        'data-route-profile-highlight': '',\n        class: 'route-profile-highlight',\n        'pointer-events': 'none',\n      };\n      if (target.kind) attrs['data-kind'] = target.kind;\n      lane.appendChild(svgEl('path', attrs));\n      lane.setAttribute('data-highlighting', '');\n    }\n\n    /** Remove the highlight's mark, if any (SNOW-1545). */\n    function clearHighlight() {\n      lane.querySelectorAll('[data-route-profile-highlight]').forEach(function (el) { el.remove(); });\n      lane.removeAttribute('data-highlighting');\n      stopMarks.forEach(function (mark) { mark.el.removeAttribute('data-active'); });\n    }\n\n    return Object.freeze({\n      draw: draw,\n      cursor: cursor,\n      indexAt: indexAt,\n      stopAt: stopAt,\n      edit: edit,\n      highlight: highlight,\n      clearHighlight: clearHighlight,\n      lane: lane,\n    });\n  }\n\n  self.pwaRouteProfile = Object.freeze({\n    mount: mount,\n    read: read,\n    readJson: readJson,\n    sampleCountOf: sampleCountOf,\n  });\n})();\n"],
  "mappings": "CAkFC,UAA4B,CAC3B,aAEA,IAAIA,EAAS,6BAETC,EAAiB,EAEjBC,EAAa,EASjB,SAASC,EAAMC,EAAKC,EAAO,CACzB,IAAIC,EAAK,SAAS,gBAAgBN,EAAQI,CAAG,EAC7C,cAAO,KAAKC,CAAK,EAAE,QAAQ,SAAUE,EAAK,CACxCD,EAAG,aAAaC,EAAKF,EAAME,CAAG,CAAC,CACjC,CAAC,EACMD,CACT,CAWA,SAASE,EAASC,EAAO,CACvB,GAAI,OAAOA,GAAU,SAAU,OAAOA,EACtC,GAAI,CACF,OAAO,KAAK,MAAMA,CAAK,CACzB,MAAe,CACb,OAAO,IACT,CACF,CASA,SAASC,EAAcC,EAAOC,EAAM,CAClC,GAAID,GAAS,MAAM,QAAQA,EAAM,MAAM,GAAKA,EAAM,OAAO,OACvD,OAAOA,EAAM,OAAO,OAEtB,IAAIE,EAAOD,EAAK,OAASA,EAAKA,EAAK,OAAS,CAAC,EAAI,KACjD,OAAOC,GAAQ,OAAO,UAAUA,EAAK,EAAE,EAAIA,EAAK,GAAK,EAAI,CAC3D,CAYA,SAASC,EAAKC,EAAS,CACrB,IAAIC,EAASD,GAAWA,EAAQ,YAAe,CAAC,EAC5CJ,EAAQH,EAASQ,EAAM,KAAK,EAC5BC,EAAWT,EAASQ,EAAM,IAAI,EAC9BJ,EAAO,MAAM,QAAQK,CAAQ,EAAIA,EAAW,CAAC,EAC7CC,EAAcR,EAAcC,EAAOC,CAAI,EACrCM,EAAc,IAAIN,EAAO,CAAC,GAEhC,IAAIO,EAAY,KAAK,kBACjBC,EAAQD,GAAaD,EAAc,EACnCC,EAAU,OAAO,CAAE,YAAaX,EAASQ,EAAM,WAAW,CAAE,CAAC,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AAIG,EAAOxD,EAAK,SACdxB,EACA,CAAC,CAAE,EAAG,EAAG,KAAM6E,EAAO,KAAM,GAAIA,EAAO,GAAI,SAAU,EAAM,CAAC,EAC5DjF,EACA6B,CACF,EACA,GAAKuD,EAAK,KAAK,OAEf,KAAIjG,EAAQ,CACV,EAAGiG,EAAK,KAAK,CAAC,EAAE,EAChB,+BAAgC,GAChC,MAAO,0BACP,iBAAkB,MACpB,EACIH,EAAO,OAAM9F,EAAM,WAAW,EAAI8F,EAAO,MAC7CtE,EAAK,YAAY1B,EAAM,OAAQE,CAAK,CAAC,EACrCwB,EAAK,aAAa,oBAAqB,EAAE,IAC3C,CAGA,SAASqB,GAAiB,CACxBrB,EAAK,iBAAiB,gCAAgC,EAAE,QAAQ,SAAUvB,EAAI,CAAEA,EAAG,OAAO,CAAG,CAAC,EAC9FuB,EAAK,gBAAgB,mBAAmB,EACxCU,EAAU,QAAQ,SAAUoB,EAAM,CAAEA,EAAK,GAAG,gBAAgB,aAAa,CAAG,CAAC,CAC/E,CAEA,OAAO,OAAO,OAAO,CACnB,KAAMlB,EACN,OAAQkC,EACR,QAASE,EACT,OAAQhB,EACR,KAAMkB,EACN,UAAWmB,EACX,eAAgBhD,EAChB,KAAMrB,CACR,CAAC,CACH,CAEA,KAAK,gBAAkB,OAAO,OAAO,CACnC,MAAOH,EACP,KAAMZ,EACN,SAAUN,EACV,cAAeE,CACjB,CAAC,CACH,GAAG",
  "names": ["SVG_NS", "READOUT_GAP_PX", "mountCount", "svgEl", "tag", "attrs", "el", "key", "readJson", "value", "sampleCountOf", "slope", "legs", "last", "read", "feature", "props", "wireLegs", "sampleCount", "liftsCore", "lifts", "coordinates", "profile", "spanM", "summary", "stops", "mount", "root", "strings", "lane", "ticksEl", "readoutEl", "liftKeyEl", "dotEl", "elevationEl", "distanceEl", "stopTemplate", "interpolate", "units", "stopMarks", "hatchId", "draw", "nextProfile", "nextSampleCount", "nextSpanM", "name", "core", "box", "editMarks", "drawStops", "clearHighlight", "paths", "fill", "rides", "ride", "tick", "fraction", "x", "label", "mark", "holder", "stopAt", "clientX", "clientY", "tolerancePx", "rect", "paintReadout", "index", "percent", "elevation", "distance", "y", "laneWidth", "widest", "side", "cursor", "line", "indexAt", "at", "edit", "state", "from", "to", "startD", "endD", "defs", "pattern", "removed", "d", "run", "piece", "p", "i", "cutX", "point", "share", "dot", "handle", "highlight", "target", "drawnMark", "marks", "band"]
}
