{"source":"https://md.succ.ai/https://www.sec.gov/modules/custom/sec_custom_blocks/js/oasb_raising_capital_map/main.js?v=1.2","lines":["        }","        if (countyFilters?.length) {","          for (let filter of countyFilters) {","            let data = window\\[\\`${map}\\_county\\_${filter.key}\\`\\];","            generatedHTML += generateA11yTable(data, \\`${window\\[\\`${map}\\_mapTitle\\`\\]} (County ${filter.text})\\`, \\`${map}\\_county\\_${filter.key}\\`, \"county\");","          }","        }","      }","      document.getElementById(\"a11y-data-tables\").innerHTML = generatedHTML;","","      clearA11yTables();","","      document.getElementById(\"regCF\\_2020\").style.display = \"block\";","    } \\*/","","    function generateA11yTable(mapData, title, tableName, type = \"state\") {","      let renderedHTML = \\`<table id=\"${tableName}\">\\`;","","      renderedHTML += \\`<caption>${title}</caption>\\`;","","      renderedHTML += type === \"state\" ? \\`<tr><th>State</th><th>Offerings Count</th><th>USD Raised</th></tr>\\` : \\`<tr><th>State</th><th>County</th><th>Offerings Count</th><th>USD Raised</th></tr>\\`;","      if (type === \"state\") {","      let stateMap = Highcharts.geojson(Highcharts.maps\\[\"countries/us/custom/us-all-territories\"\\]);","      for (let row of mapData) {","      let { code, offerings, usd } = row;","      const { name = code } = stateMap.find((state) => state.properties\\[\"hc-key\"\\] === code) ?? {};","      if (name) {","      renderedHTML += \\`<tr><td>${name}</td><td>${offerings}</td><td>${formatNumber(usd)}</td></tr>\\`;","      }","      }","      } else {","      let countiesMap = Highcharts.geojson(Highcharts.maps\\[\"countries/us/us-all-all-highres\"\\]);","      for (let row of mapData) {","      let { code, offerings, usd } = row;","      let st\\_name = code;","      if (st\\_name.startsWith(\"us-\")) st\\_name = st\\_name.substr(3,2).toUpperCase();","","      const { name = code } = countiesMap.find((county) => county.properties\\[\"hc-key\"\\] === code) ?? {};","      if (name) {","        if (name) name2 = name;"]}