PageSourceSearch

https://detroit-neighborhoods.pages.dev/_app/immutable/chunks/DZvogDJV.js

js detroit-neighborhoods.pages.dev collected 2026-10-03 06:40:29 UTC 4,522 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../assets/ol.aEmqeWRe.css"])))=>i.map(i=>d[i]);
2import{_ as K}from"./C1FmrZbK.js";import{s as Q,n as N,d as g,i as A,b as d,r as m,q as h,c as b,e as w,g as S,h as y,j as F,B as W,C as $,A as x,D as ee,E as te,a as G,f as P,t as V}from"./CeKwq4tL.js";import{e as j}from"./BysmMC_4.js";import{S as se,i as oe}from"./CC91_1Oj.js";import{G as re,P as ae,g as le,a as ie,b as ne,c as q,S as H,V as O,d as T,F as ce,r as Z,u as fe,M as ue,e as de,f as ge,h as he}from"./eoGA7h4K.js";import me from"./C5hdWFcv.js";function B(i,e,o){const r=i.slice();r[15]=e[o][0],r[16]=e[o][1];const a=r[16].toLocaleString(void 0,{style:"percent",maximumFractionDigits:0});r[17]=a;const s=r[0].neighborhoodColoring.get(r[15])??[0,0,0];r[18]=s;const t=`rgb(${r[18][0]}, ${r[18][1]}, ${r[18][2]})`;return r[19]=t,r}function J(i){let e,o,r,a=j(i[5]),s=[];for(let t=0;t<a.length;t+=1)s[t]=R(B(i,a,t));return{c(){e=y("div"),o=y("ul");for(let t=0;t<s.length;t+=1)s[t].c();this.h()},l(t){e=b(t,"DIV",{id:!0,style:!0,class:!0});var f=w(e);o=b(f,"UL",{class:!0});var l=w(o);for(let u=0;u<s.length;u+=1)s[u].l(l);l.forEach(g),f.forEach(g),this.h()},h(){m(o,"class","svelte-1gk7g4m"),m(e,"id","tooltip"),h(e,"--left",i[2]-5+"px"),h(e,"--top",i[3]-i[4]-5+"px"),m(e,"class","svelte-1gk7g4m"),te(()=>i[6].call(e))},m(t,f){A(t,e,f),d(e,o);for(let l=0;l<s.length;l+=1)s[l]&&s[l].m(o,null);r=ee(e,i[6].bind(e))},p(t,f){if(f&33){a=j(t[5]);let l;for(l=0;l<a.length;l+=1){const u=B(t,a,l);s[l]?s[l].p(u,f):(s[l]=R(u),s[l].c(),s[l].m(o,null))}for(;l<s.length;l+=1)s[l].d(1);s.length=a.length}f&4&&h(e,"--left",t[2]-5+"px"),f&24&&h(e,"--top",t[3]-t[4]-5+"px")},d(t){t&&g(e),x(s,t),r()}}}function R(i){let e,o,r=i[15]+"",a,s,t=i[17]+"",f,l,u,k;return{c(){e=y("li"),o=y("p"),a=V(r),s=V(", "),f=V(t),l=F(),u=y("div"),k=F(),this.h()},l(n){e=b(n,"LI",{class:!0});var c=w(e);o=b(c,"P",{class:!0});var _=w(o);a=P(_,r),s=P(_,", "),f=P(_,t),_.forEach(g),l=S(c),u=b(c,"DIV",{class:!0,style:!0}),w(u).forEach(g),k=S(c),c.forEach(g),this.h()},h(){m(o,"class","svelte-1gk7g4m"),m(u,"class","bar svelte-1gk7g4m"),h(u,"background-image","linear-gradient(to right, "+i[19]+" 0%, "+i[19]+" "+i[16]*100+"%, rgb(200, 200, 200) "+i[16]*100+"%, rgb(200, 200, 200) 100%)"),m(e,"class","svelte-1gk7g4m"),h(e,"color",i[19])},m(n,c){A(n,e,c),d(e,o),d(o,a),d(o,s),d(o,f),d(e,l),d(e,u),d(e,k)},p(n,c){c&32&&r!==(r=n[15]+"")&&G(a,r),c&32&&t!==(t=n[17]+"")&&G(f,t),c&33&&h(u,"background-image","linear-gradient(to right, "+n[19]+" 0%, "+n[19]+" "+n[16]*100+"%, rgb(200, 200, 200) "+n[16]*100+"%, rgb(200, 200, 200) 100%)"),c&33&&h(e,"color",n[19])},d(n){n&&g(e)}}}function _e(i){let e,o,r,a=i[1]&&i[5]&&J(i);return{c(){e=y("div"),o=y("div"),r=F(),a&&a.c(),this.h()},l(s){e=b(s,"DIV",{style:!0});var t=w(e);o=b(t,"DIV",{id:!0,class:!0}),w(o).forEach(g),r=S(t),a&&a.l(t),t.forEach(g),this.h()},h(){m(o,"id","map"),m(o,"class","svelte-1gk7g4m"),h(e,"position","relative")},m(s,t){A(s,e,t),d(e,o),d(e,r),a&&a.m(e,null)},p(s,[t]){s[1]&&s[5]?a?a.p(s,t):(a=J(s),a.c(),a.m(e,null)):a&&(a.d(1),a=null)},i:N,o:N,d(s){s&&g(e),a&&a.d()}}}function pe(i,e,o){let{data:r}=e;const a=new re,s=new ae([[[-83.2877264711691,42.2549612971133]],[[-82.910343680423,42.4503749373053]]]);s.scale(1.75);const t=s.getExtent(),f=le(t),l=new ie({declutter:!0,source:ne}),u=new q({source:new O({features:a.readFeatures(me)}),style:new H({stroke:new T({color:"#808080",width:3,lineDash:[12.5]})})}),k=new q({source:new O({features:a.readFeatures(r.base)}),style:p=>{const L=p.getProperties()[`${r.baseNameAccessor}`],v=r.baseColoring.get(L);if(v!==void 0)return new H({stroke:new T({color:Z(v,.25),width:1.5}),fill:new ce({color:Z(v,.75)})})}});let n,c=!1,_=0,I=0,D=0,C;W(async()=>{fe(),n=new ue({target:"map",layers:[l,u,k],view:new de({center:f,extent:t,zoom:11,minZoom:11,maxZoom:17})}),ge(l,he,"esri");const p=L=>{const v=n.getEventPixel(L.originalEvent),M=n.forEachFeatureAtPixel(v,E=>E,{layerFilter:E=>E===k});if(M===void 0){o(1,c=!1);return}const X=M.getProperties(),z=r.basePercentages.get(X[`${r.baseNameAccessor}`]);if(z===void 0){o(1,c=!1);return}o(2,_=v[0]),o(3,I=v[1]),o(1,c=!0),o(5,C=Array.from(z).sort((E,Y)=>Y[1]-E[1]))};n.on("click",p),n.on("pointermove",p),await K(()=>Promise.resolve({}),__vite__mapDeps([0]),import.meta.url)}),$(()=>{n==null||n.dispose()});function U(){D=this.clientHeight,o(4,D)}return i.$$set=p=>{"data"in p&&o(0,r=p.data)},[r,c,_,I,D,C,U]}class De extends se{constructor(e){super(),oe(this,e,pe,_e,Q,{data:0})}}export{De as M};

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.