PageSourceSearch

https://policedata.org/static/js/44.f682ba68.chunk.js

js policedata.org collected 2026-09-28 11:17:05 UTC 5,724 bytes, 2 lines download raw bytes

1(this["webpackJsonppolice-data-website"]=this["webpackJsonppolice-data-website"]||[]).push([[44],{89:function(e,i,t){"use strict";t.d(i,"a",(function(){return l})),t.d(i,"e",(function(){return r})),t.d(i,"b",(function(){return c})),t.d(i,"c",(function(){return a})),t.d(i,"d",(function(){return d}));const n=function(){const e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.endsWith(" Metropolitan Police Department")?e.replace(/ Metropolitan Police Department$/," Police"):e.endsWith(" Department of Public Safety")?e.replace(/ Department of Public Safety$/," Police"):e.endsWith(" Township Police Department")?e.replace(/ Police Department$/," Police"):e.endsWith(" Sheriff's Department")?e.replace(/ Sheriff's Department$/," Sheriff"):e.endsWith(" Metropolitan Police")?e.replace(/ Metropolitan Police$/," Police"):e.endsWith(" Division of Police")?e.replace(/ Division of Police$/," Police"):e.endsWith(" Police Department")?e.replace(/ Police Department$/," Police"):e.endsWith(" Sheriff's Office")?e.replace(/ Sheriff's Office$/," Sheriff"):e.endsWith(" Dept Pub Safety")?e.replace(/ Dept Pub Safety$/," Police"):e.endsWith(" Police Division")?e.replace(/ Police Division$/," Police"):e.endsWith(" Township Police")?e:e.endsWith(" Police Bureau")?e.replace(/ Police Bureau$/," Police"):e.endsWith(" Public Safety")?e.replace(/ Public Safety$/," Police"):e.endsWith(" Township")?"".concat(e," Police"):e.endsWith(" DPS")?e.replace(/ DPS$/," Police"):e.endsWith(" Sheriff's Ofice")?e.replace(/ Sheriff's Ofice$/," Sheriff"):e},o=function(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(/ County/,"");return e.endsWith(" Metropolitan Police Department")?e.replace(/ Metropolitan Police Department$/," Police"):e.endsWith(" Department of Public Safety")?e.replace(/ Department of Public Safety$/," Police"):e.endsWith(" Township Police Department")?e.replace(/ Township Police Department$/," Police"):e.endsWith(" Sheriff's Department")?e.replace(/ Sheriff's Department$/," Sheriff"):e.endsWith(" Metropolitan Police")?e.replace(/ Metropolitan Police$/," Police"):e.endsWith(" Division of Police")?e.replace(/ Division of Police$/," Police"):e.endsWith(" Police Department")?e.replace(/ Police Department$/," Police"):e.endsWith(" Sheriff's Office")?e.replace(/ Sheriff's Office$/," Sheriff"):e.endsWith(" Dept Pub Safety")?e.replace(/ Dept Pub Safety$/," Police"):e.endsWith(" Police Division")?e.replace(/ Police Division$/," Police"):e.endsWith(" Township Police")?e.replace(/ Township Police$/," Police"):e.endsWith(" Police Bureau")?e.replace(/ Police Bureau$/," Police"):e.endsWith(" Public Safety")?e.replace(/ Public Safety$/," Police"):e.endsWith(" Township")?e.replace(/ Township$/," Police"):e.endsWith(" DPS")?e.replace(/ DPS$/," Police"):e.endsWith(" Sheriff's Ofice")?e.replace(/ Sheriff's Ofice$/," Sheriff"):e},l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"NB"===e.toUpperCase()?"NE":e.toUpperCase()},r=function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";const t=l(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"");if(!t)return null;let n="/report/".concat(t.toLowerCase());return e&&(n+="/".concat(e)),i&&(n+="/".concat(i)),n},c=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.endsWith(" Sheriff")&&!e.endsWith(" County Sheriff")?e.replace(/ Sheriff$/," County Sheriff"):e},a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const t=Object.entries(e),n=s(t,(e=>{let[,t]=e;return(null===t||void 0===t?void 0:t.slug)===i}));return n.hasMatches?n.key:f(t,(e=>{var t;let[n,l]=e;const r=(null===l||void 0===l||null===(t=l.m)||void 0===t?void 0:t.name)||n;return function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toLowerCase().replace(/[^A-Za-z ]+/g,"").replace(/ /g,"-")}(o(r))===i}))},s=(e,i)=>{const t=e.filter(i);return{hasMatches:t.length>0,key:1===t.length?t[0][0]:null}},f=(e,i)=>s(e,i).key,u=e=>{if(null===e||"undefined"===typeof e)return null;const i=String(e).trim();return i&&/^\d+$/.test(i)?i.replace(/^0+(?=\d)/,""):null},p=(e,i)=>{const t=u(e),n=u(i);return null!==t&&null!==n&&t===n},h=(e,i,t)=>s(e,(e=>{var n;let[o,l]=e;const r=(null===l||void 0===l||null===(n=l.m)||void 0===n?void 0:n.name)||o,c=new Set([o,r].map(t));return i.some((e=>c.has(t(e))))})),d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const t=Object.entries(e),l=i.ori,r=i.city_fp,c=i.county_fp,a=i.type;if(l){const e=s(t,(e=>{var i;let[,t]=e;const n=(null===t||void 0===t||null===(i=t.m)||void 0===i?void 0:i.ori)||(null===t||void 0===t?void 0:t.roi);return n&&String(n).trim()===String(l).trim()}));if(e.hasMatches)return e.key}if(null!==r&&"undefined"!==typeof r){const e=s(t,(e=>{var i;let[,t]=e;return p(null===t||void 0===t?void 0:t.id,r)||p(null===t||void 0===t||null===(i=t.m)||void 0===i?void 0:i.fips_place_code,r)}));if(e.hasMatches)return e.key}if(null!==c&&"undefined"!==typeof c&&a){const e=s(t,(e=>{var i,t,n;let[,o]=e;return p(null===o||void 0===o||null===(i=o.m)||void 0===i?void 0:i.fips_county_code,c)&&(null===o||void 0===o||null===(t=o.ta)||void 0===t||null===(n=t.t)||void 0===n?void 0:n.toLowerCase())===String(a).toLowerCase()}));if(e.hasMatches)return e.key}
1const f=[i.department,i.name].filter(Boolean),u=s(t,(e=>{let[i]=e;return f.includes(i)}));if(u.hasMatches)return u.key;const d=h(t,f,n);return d.hasMatches?d.key:h(t,f,o).key}}}]);
2//# sourceMappingURL=44.f682ba68.chunk.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.