const r=[{city:"Austin",state:"TX",label:"Austin, TX",lat:30.2672,lng:-97.7431},{city:"Houston",state:"TX",label:"Houston, TX",lat:29.7604,lng:-95.3698},{city:"Dallas",state:"TX",label:"Dallas, TX",lat:32.7767,lng:-96.797},{city:"San Antonio",state:"TX",label:"San Antonio, TX",lat:29.4241,lng:-98.4936},{city:"Fort Worth",state:"TX",label:"Fort Worth, TX",lat:32.7555,lng:-97.3308},{city:"Waco",state:"TX",label:"Waco, TX",lat:31.5493,lng:-97.1467},{city:"Corpus Christi",state:"TX",label:"Corpus Christi, TX",lat:27.6925,lng:-97.2911},{city:"Arlington",state:"TX",label:"Arlington, TX",lat:32.7357,lng:-97.1081},{city:"Plano",state:"TX",label:"Plano, TX",lat:33.0198,lng:-96.6989},{city:"Lubbock",state:"TX",label:"Lubbock, TX",lat:33.5779,lng:-101.8552},{city:"Round Rock",state:"TX",label:"Round Rock, TX",lat:30.5083,lng:-97.6789},{city:"Killeen",state:"TX",label:"Killeen, TX",lat:31.1171,lng:-97.7278},{city:"Temple",state:"TX",label:"Temple, TX",lat:31.0982,lng:-97.3428},{city:"College Station",state:"TX",label:"College Station, TX",lat:30.628,lng:-96.3344},{city:"Georgetown",state:"TX",label:"Georgetown, TX",lat:30.6333,lng:-97.6772},{city:"Philadelphia",state:"PA",label:"Philadelphia, PA",lat:39.9526,lng:-75.1652},{city:"Pittsburgh",state:"PA",label:"Pittsburgh, PA",lat:40.4406,lng:-79.9959},{city:"Allentown",state:"PA",label:"Allentown, PA",lat:40.6084,lng:-75.4902}];function g(l,a=8){const e=l.trim().toLowerCase();return(e?r.filter(n=>[n.label,n.city,n.state].some(t=>t.toLowerCase().includes(e))):r).slice(0,a)}function c(l,a,e,o){const t=(e-l)*Math.PI/180,s=(o-a)*Math.PI/180,i=Math.sin(t/2)**2+Math.cos(l*Math.PI/180)*Math.cos(e*Math.PI/180)*Math.sin(s/2)**2;return 3959*(2*Math.atan2(Math.sqrt(i),Math.sqrt(1-i)))}function X(l,a,e,o){const n=(o==null?void 0:o.toLowerCase().trim())??"";return r.filter(t=>n&&t.label.toLowerCase().trim()===n?!1:c(l,a,t.lat,t.lng)<=e).sort((t,s)=>{const i=c(l,a,t.lat,t.lng),T=c(l,a,s.lat,s.lng);return i-T})}export{g as f,X as g};