PageSourceSearch

https://detroit-neighborhoods.pages.dev/_app/immutable/nodes/6.DycC7ron.js

js detroit-neighborhoods.pages.dev collected 2026-10-03 06:40:36 UTC 38,256 bytes, 28 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../chunks/Bc75QkeA.js","../chunks/CeKwq4tL.js","../chunks/CC91_1Oj.js","../chunks/eoGA7h4K.js","../chunks/Cjr6tjxi.js","../assets/button.Bk2f8hNI.css","../assets/spotlight.Dbdw9h1s.css","../chunks/B5YJm-9i.js","../assets/ol.aEmqeWRe.css","../assets/ol-layerswitcher.uX5it9Pu.css"])))=>i.map(i=>d[i]);
2import{_ as be}from"../chunks/C1FmrZbK.js";import{s as qe,n as U,d as u,a as $e,q as L,i as C,b as c,r as f,c as w,e as X,f as H,g as W,h as $,t as F,j as O,y as vt,H as rt,G as nt,V as yt,ab as ot,ae as wt,v as $t,w as ie,k as kt,B as Vt,C as At,O as Re,Q as He,p as Et,af as lt,x as Dt}from"../chunks/CeKwq4tL.js";import{S as Tt,h as dt,u as ht}from"../chunks/i2zaU2gV.js";import{S as Je,i as Ke,d as J,t as G,a as B,e as Ye,m as K,c as x,b as ee,f as Fe,g as Ze}from"../chunks/CC91_1Oj.js";import{D as Mt,M as Ct,S as It,T as Lt,I as pt,n as Rt}from"../chunks/fsEI-YeB.js";import{G as St,V as Me,x as Nt,g as Pt,a as Wt,b as Ot,c as xe,S as Xe,d as et,F as st,r as Se,L as Ht,J as Ft,K as Ut,u as zt,M as Bt,e as Gt,f as jt,N as Yt,Q as Zt,R as Xt,U as Qt,W as qt,X as Jt,Y as Kt,p as _t,H as xt,s as en,h as tn}from"../chunks/eoGA7h4K.js";import nn from"../chunks/C5hdWFcv.js";import{c as Ne,w as rn}from"../chunks/CZ2l4SM5.js";import{T as Qe}from"../chunks/HIX3Da2n.js";import{B as ke}from"../chunks/Cjr6tjxi.js";import{e as on}from"../chunks/C-YKzGbR.js";const ln=(n,e,t)=>{const r=n[e];return r?typeof r=="function"?r():Promise.resolve(r):new Promise((i,o)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(o.bind(null,new Error("Unknown variable dynamic import: "+e+(e.split("/").length!==t?". Note that variables only represent file names one level deep.":""))))})};function at(n){let e,t,r,i;return{c(){e=$("hr"),t=O(),r=$("small"),i=F(n[4]),this.h()},l(o){e=w(o,"HR",{class:!0}),t=W(o),r=w(o,"SMALL",{});var d=X(r);i=H(d,n[4]),d.forEach(u),this.h()},h(){f(e,"class","svelte-1544x8p")},m(o,d){C(o,e,d),C(o,t,d),C(o,r,d),c(r,i)},p(o,d){d&16&&$e(i,o[4])},d(o){o&&(u(e),u(t),u(r))}}}function sn(n){let e,t,r,i,o,d,p,s=n[4]&&at(n);return{c(){e=$("div"),t=$("div"),r=F(n[2]),i=O(),o=$("div"),d=F(n[3]),p=O(),s&&s.c(),this.h()},l(_){e=w(_,"DIV",{class:!0,style:!0});var h=X(e);t=w(h,"DIV",{class:!0});var E=X(t);r=H(E,n[2]),E.forEach(u),i=W(h),o=w(h,"DIV",{});var V=X(o);d=H(V,n[3]),V.forEach(u),p=W(h),s&&s.l(h),h.forEach(u),this.h()},h(){f(t,"class","label svelte-1544x8p"),f(e,"class","tooltip svelte-1544x8p"),L(e,"left",n[0]+"px"),L(e,"top",n[1]+"px")},m(_,h){C(_,e,h),c(e,t),c(t,r),c(e,i),c(e,o),c(o,d),c(e,p),s&&s.m(e,null)},p(_,[h]){h&4&&$e(r,_[2]),h&8&&$e(d,_[3]),_[4]?s?s.p(_,h):(s=at(_),s.c(),s.m(e,null)):s&&(s.d(1),s=null),h&1&&L(e,"left",_[0]+"px"),h&2&&L(e,"top",_[1]+"px")},i:U,o:U,d(_){_&&u(e),s&&s.d()}}}function an(n,e,t){let{x:r}=e,{y:i}=e,{label:o}=e,{name:d}=e,{address:p}=e;return n.$$set=s=>{"x"in s&&t(0,r=s.x),"y"in s&&t(1,i=s.y),"label"in s&&t(2,o=s.label),"name"in s&&t(3,d=s.name),"address"in s&&t(4,p=s.address)},[r,i,o,d,p]}class un extends Je{constructor(e){super(),Ke(this,e,an,sn,qe,{x:0,y:1,label:2,name:3,address:4})}}function fn(n){let e;return{c(){e=F("years")},l(t){e=H(t,"years")},m(t,r){C(t,e,r)},d(t){t&&u(e)}}}function cn(n){let e;return{c(){e=F("year")},l(t){e=H(t,"year")},m(t,r){C(t,e,r)},d(t){t&&u(e)}}}function mn(n){let e,t,r,i,o,d,p,s,_,h,E,V,l,a,m,k;function T(g,b){return g[0]===1?cn:fn}let y=T(n),S=y(n);return{c(){e=$("div"),t=$("label"),r=F("How many years have you lived in "),i=F(n[2]),o=F("?"),p=O(),s=$("div"),_=$("small"),h=F(n[0]),E=O(),S.c(),V=O(),l=$("input"),this.h()},l(g){e=w(g,"DIV",{class:!0});var b=X(e);t=w(b,"LABEL",{for:!0,id:!0,class:!0});var R=X(t);r=H(R,"How many years have you lived in "),i=H(R,n[2]),o=H(R,"?"),R.forEach(u),p=W(b),s=w(b,"DIV",{class:!0});var A=X(s);_=w(A,"SMALL",{class:!0,style:!0});var N=X(_);h=H(N,n[0]),E=W(N),S.l(N),N.forEach(u),A.forEach(u),V=W(b),l=w(b,"INPUT",{type:!0,min:!0,max:!0,id:!0,name:!0,"aria-labelledby":!0,class:!0}),b.forEach(u),this.h()},h(){f(t,"for",n[1]),f(t,"id",d=n[1]+"-label"),f(t,"class","svelte-ieahve"),f(_,"class","range-tooltip svelte-ieahve"),L(_,"--left",n[0]/10*100+"%"),f(s,"class","range-tooltip-container svelte-ieahve"),f(l,"type","range"),f(l,"min","0"),f(l,"max","10"),f(l,"id",n[1]),f(l,"name",n[1]),f(l,"aria-labelledby",a=n[1]+"-label"),f(l,"class","svelte-ieahve"),f(e,"class","range-form-group svelte-ieahve")},m(g,b){C(g,e,b),c(e,t),c(t,r),c(t,i),c(t,o),c(e,p),c(e,s),c(s,_),c(_,h),c(_,E),S.m(_,null),c(e,V),c(e,l),rt(l,n[0]),m||(k=[nt(l,"change",n[3]),nt(l,"input",n[3])],m=!0)},p(g,[b]){b&4&&$e(i,g[2]),b&2&&f(t,"for",g[1]),b&2&&d!==(d=g[1]+"-label")&&f(t,"id",d),b&1&&$e(h,g[0]),y!==(y=T(g))&&(S.d(1),S=y(g),S&&(S.c(),S.m(_,null))),b&1&&L(_,"--left",g[0]/10*100+"%"),b&2&&f(l,"id",g[1]),b&2&&f(l,"name",g[1]),b&2&&a!==(a=g[1]+"-label")&&f(l,"aria-labelledby",a),b&1&&rt(l,g[0])},i:U,o:U,d(g){g&&u(e),S.d(),m=!1,vt(k)}}}function dn(n,e,t){let{value:r}=e,{name:i}=e,{locale:o}=e;function d(){r=yt(this.value),t(0,r)}return n.$$set=p=>{"value"in p&&t(0,r=p.value),"name"in p&&t(1,i=p.name),"locale"in p&&t(2,o=p.locale)},[r,i,o,d]}class it extends Je{constructor(e){super(),Ke(this,e,dn,mn,qe,{value:0,name:1,locale:2})}}function hn(n){let e,t,r,i,o,d,p,s,_,h,E;return{c(){e=$("a"),t=$("picture"),r=$("source"),p=O(),s=$("img"),this.h()},l(V){e=w(V,"A",{href:!0,target:!0,rel:!0,class:!0});var l=X(e);t=w(l,"PICTURE",{});var a=X(t);r=w(a,"SOURCE",{srcset:!0,type:!0,width:!0,height:!0}),p=W(a),s=w(a,"IMG",{width:!0,height:!0,src:!0,alt:!0,loading:!0}),a.forEach(u),l.forEach(u),this.h()},h(){wt(r,i=Ne+"/partners/webp/"+n[3]+".webp")||f(r,"srcset",i),f(r,"type","image/webp"),f(r,"width",o=n[1]+"px"),f(r,"height",d=n[2]+"px"),f(s,"width",_=n[1]+"px"),f(s,"height",h=n[2]+"px"),ot(s.src,E=Ne+"/partners/"+n[3]+".png")||f(s,"src",E),f(s,"alt",n[4]),f(s,"loading","lazy"),f(e,"href",n[0]),f(e,"target","_blank"),f(e,"rel","noreferrer"),f(e,"class","svelte-1897hoa")},m(V,l){C(V,e,l),c(e,t),c(t,r),c(t,p),c(t,s)},p(V,[l]){l&8&&i!==(i=Ne+"/partners/webp/"+V[3]+".webp")&&f(r,"srcset",i),l&2&&o!==(o=V[1]+"px")&&f(r,"width",o),l&4&&d!==(d=V[2]+"px")&&f(r,"height",d),l&2&&_!==(_=V[1]+"px")&&f(s,"width",_),l&4&&h!==(h=V[2]+"px")&&f(s,"height",h),l&8&&!ot(s.src,E=Ne+"/partners/"+V[3]+".png")&&f(s,"src",E),l&16&&f(s,"alt",V[4]),l&1&&f(e,"href",V[0])},i:U,o:U,d(V){V&&u(e)}}}function pn(n,e,t){let{url:r}=e,{width:i}=e,{height:o}=e,{filename:d}=e,{alt:p}=e;return n.$$set=s=>{"url"in s&&t(0,r=s.url),"width"in s&&t(1,i=s.width),"height"in s&&t(2,o=s.height),"filename"in s&&t(3,d=s.filename),"alt"in s&&t(4,p=s.alt)},[r,i,o,d,p]}class ut extends Je{constructor(e){super(),Ke(this,e,pn,hn,qe,{url:0,width:1,height:2,filename:3,alt:4})}}const tt=rn(new Map);function ft(n){let e,t;return e=new un({props:{label:n[15].label,name:n[15].name,address:n[15].address,x:n[16],y:n[17]}}),{c(){ee(e.$$.fragment)},l(r){x(e.$$.fragment,r)}
2,m(r,i){K(e,r,i),t=!0},p(r,i){const o={};i[0]&32768&&(o.label=r[15].label),i[0]&32768&&(o.name=r[15].name),i[0]&32768&&(o.address=r[15].address),i[0]&65536&&(o.x=r[16]),i[0]&131072&&(o.y=r[17]),e.$set(o)},i(r){t||(B(e.$$.fragment,r),t=!0)},o(r){G(e.$$.fragment,r),t=!1},d(r){J(e,r)}}}function _n(n){let e,t,r,i,o,d,p,s,_,h,E,V,l,a,m,k,T,y,S,g,b,R,A,N,Y,Q,z;function pe(I){n[38](I)}let se={name:"neighborhood-detroit-years",locale:"Detroit"};n[6]!==void 0&&(se.value=n[6]),t=new it({props:se}),Re.push(()=>Fe(t,"value",pe));function ce(I){n[39](I)}let Ce={name:"neighborhood-years",locale:n[1]};n[7]!==void 0&&(Ce.value=n[7]),o=new it({props:Ce}),Re.push(()=>Fe(o,"value",ce));function De(I){n[40](I)}let oe={name:"neighborhood-gathering-places",label:"Where is the best place to meet your neighbors? (optional)",placeholder:"Church, library, restaurant, etc."};n[8]!==void 0&&(oe.value=n[8]),s=new Qe({props:oe}),Re.push(()=>Fe(s,"value",De));function le(I){n[41](I)}let he={area:!0,name:"neighborhood-story",label:"Describe or share a story about "+n[1]+". (optional)"};return n[9]!==void 0&&(he.value=n[9]),E=new Qe({props:he}),Re.push(()=>Fe(E,"value",le)),a=new Qe({props:{email:!0,name:"neighborhood-email",label:"Email (optional)"}}),k=new Qe({props:{tel:!0,name:"neighborhood-phone",label:"Phone number (optional)"}}),A=new ke({props:{submit:!0,disabled:n[11]||n[2],$$slots:{default:[wn]},$$scope:{ctx:n}}}),A.$on("click",n[42]),{c(){e=$("form"),ee(t.$$.fragment),i=O(),ee(o.$$.fragment),p=O(),ee(s.$$.fragment),h=O(),ee(E.$$.fragment),l=O(),ee(a.$$.fragment),m=O(),ee(k.$$.fragment),T=O(),y=$("input"),g=O(),b=$("input"),R=O(),ee(A.$$.fragment),this.h()},l(I){e=w(I,"FORM",{style:!0,id:!0,method:!0});var M=X(e);x(t.$$.fragment,M),i=W(M),x(o.$$.fragment,M),p=W(M),x(s.$$.fragment,M),h=W(M),x(E.$$.fragment,M),l=W(M),x(a.$$.fragment,M),m=W(M),x(k.$$.fragment,M),T=W(M),y=w(M,"INPUT",{name:!0,id:!0,type:!0}),g=W(M),b=w(M,"INPUT",{name:!0,id:!0,type:!0}),R=W(M),x(A.$$.fragment,M),M.forEach(u),this.h()},h(){f(y,"name","neighborhood-boundaries"),f(y,"id","neighborhood-boundaries"),y.value=S=JSON.stringify(n[20].writeFeatureObject(n[13]).geometry),f(y,"type","hidden"),y.required=!0,f(b,"name","neighborhood-name"),f(b,"id","neighborhood-name"),b.value=n[1],f(b,"type","hidden"),b.required=!0,L(e,"display","block"),f(e,"id","submission"),f(e,"method","POST")},m(I,M){C(I,e,M),K(t,e,null),c(e,i),K(o,e,null),c(e,p),K(s,e,null),c(e,h),K(E,e,null),c(e,l),K(a,e,null),c(e,m),K(k,e,null),c(e,T),c(e,y),c(e,g),c(e,b),c(e,R),K(A,e,null),Y=!0,Q||(z=Et(N=on.call(null,e,n[43])),Q=!0)},p(I,M){const re={};!r&&M[0]&64&&(r=!0,re.value=I[6],He(()=>r=!1)),t.$set(re);const ue={};M[0]&2&&(ue.locale=I[1]),!d&&M[0]&128&&(d=!0,ue.value=I[7],He(()=>d=!1)),o.$set(ue);const Ve={};!_&&M[0]&256&&(_=!0,Ve.value=I[8],He(()=>_=!1)),s.$set(Ve);const me={};M[0]&2&&(me.label="Describe or share a story about "+I[1]+". (optional)"),!V&&M[0]&512&&(V=!0,me.value=I[9],He(()=>V=!1)),E.$set(me),(!Y||M[0]&8192&&S!==(S=JSON.stringify(I[20].writeFeatureObject(I[
213]).geometry)))&&(y.value=S),(!Y||M[0]&2)&&(b.value=I[1]);const _e={};M[0]&2052&&(_e.disabled=I[11]||I[2]),M[2]&4&&(_e.$$scope={dirty:M,ctx:I}),A.$set(_e),N&&Dt(N.update)&&M[0]&2052&&N.update.call(null,I[43])},i(I){Y||(B(t.$$.fragment,I),B(o.$$.fragment,I),B(s.$$.fragment,I),B(E.$$.fragment,I),B(a.$$.fragment,I),B(k.$$.fragment,I),B(A.$$.fragment,I),Y=!0)},o(I){G(t.$$.fragment,I),G(o.$$.fragment,I),G(s.$$.fragment,I),G(E.$$.fragment,I),G(a.$$.fragment,I),G(k.$$.fragment,I),G(A.$$.fragment,I),Y=!1},d(I){I&&u(e),J(t),J(o),J(s),J(E),J(a),J(k),J(A),Q=!1,z()}}}function gn(n){let e,t,r="<b>Instructions</b>",i,o,d,p,s,_,h,E,V;return o=new pt({props:{selectedNeighborhood:n[1]}}),p=new ke({props:{disabled:n[1]===void 0||n[12],style:"margin-top: 10px; --color-button: rgb(59, 59, 110); --color-button-hover: rgb(90, 90, 169);",$$slots:{default:[$n]},$$scope:{ctx:n}}}),p.$on("click",n[35]),_=new ke({props:{disabled:n[1]===void 0,style:"margin-top: 10px; --color-button: rgb(59, 59, 110); --color-button-hover: rgb(90, 90, 169);",$$slots:{default:[kn]},$$scope:{ctx:n}}}),_.$on("click",n[36]),E=new ke({props:{disabled:!n[12],style:"margin-top: 10px",$$slots:{default:[Vn]},$$scope:{ctx:n}}}),E.$on("click",n[37]),{c(){e=$("details"),t=$("summary"),t.innerHTML=r,i=O(),ee(o.$$.fragment),d=O(),ee(p.$$.fragment),s=O(),ee(_.$$.fragment),h=O(),ee(E.$$.fragment),this.h()},l(l){e=w(l,"DETAILS",{style:!0});var a=X(e);t=w(a,"SUMMARY",{"data-svelte-h":!0}),ie(t)!=="svelte-1mrdt3s"&&(t.innerHTML=r),i=W(a),x(o.$$.fragment,a),a.forEach(u),d=W(l),x(p.$$.fragment,l),s=W(l),x(_.$$.fragment,l),h=W(l),x(E.$$.fragment,l),this.h()},h(){L(e,"border","1px solid rgba(0, 0, 0, 0.25)"),L(e,"padding","5px"),L(e,"border-radius","5px")},m(l,a){C(l,e,a),c(e,t),c(e,i),K(o,e,null),C(l,d,a),K(p,l,a),C(l,s,a),K(_,l,a),C(l,h,a),K(E,l,a),V=!0},p(l,a){const m={};a[0]&2&&(m.selectedNeighborhood=l[1]),o.$set(m);const k={};a[0]&4098&&(k.disabled=l[1]===void 0||l[12]),a[2]&4&&(k.$$scope={dirty:a,ctx:l}),p.$set(k);const T={};a[0]&2&&(T.disabled=l[1]===void 0),a[2]&4&&(T.$$scope={dirty:a,ctx:l}),_.$set(T);const y={};a[0]&4096&&(y.disabled=!l[12]),a[2]&4&&(y.$$scope={dirty:a,ctx:l}),E.$set(y)},i(l){V||(B(o.$$.fragment,l),B(p.$$.fragment,l),B(_.$$.fragment,l),B(E.$$.fragment,l),V=!0)},o(l){G(o.$$.fragment,l),G(p.$$.fragment,l),G(_.$$.fragment,l),G(E.$$.fragment,l),V=!1},d(l){l&&(u(e),u(d),u(s),u(h)),J(o),J(p,l),J(_,l),J(E,l)}}}function bn(n){let e,t,r,i;return e=new pt({props:{selectedNeighborhood:n[1]}}),r=new ke({props:{$$slots:{default:[An]},$$scope:{ctx:n}}}),r.$on("click",n[34]),{c(){ee(e.$$.fragment),t=O(),ee(r.$$.fragment)},l(o){x(e.$$.fragment,o),t=W(o),x(r.$$.fragment,o)},m(o,d){K(e,o,d),C(o,t,d),K(r,o,d),i=!0},p(o,d){const p={};d[0]&2&&(p.selectedNeighborhood=o[1]),e.$set(p);const s={};d[2]&4&&(s.$$scope={dirty:d,ctx:o}),r.$set(s)},i(o){i||(B(e.$$.fragment,o),B(r.$$.fragment,o),i=!0)},o(o){G(e.$$.fragment,o),G(r.$$.fragment,o),i=!1},d(o){o&&u(t),J(e,o),J(r,o)}}}function vn(n){let e,t,r,i,o=`If your neighborhood name doesn't appear in the list, type in the missing neighborhood name to
3			add it.`,d,p,s='You can use the layer switcher <button disabled="" class="ol-control" style="border: 1px solid darkgray; position: unset; width: 20px; height: 20px; background-repeat: no-repeat; background-position: center; background-size: contain; background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAACE1BMVEX///8A//8AgICA//8AVVVAQID///8rVVVJtttgv98nTmJ2xNgkW1ttyNsmWWZmzNZYxM4gWGgeU2JmzNNr0N1Rwc0eU2VXxdEhV2JqytQeVmMhVmNoydUfVGUgVGQfVGQfVmVqy9hqy9dWw9AfVWRpydVry9YhVmMgVGNUw9BrytchVWRexdGw294gVWQgVmUhVWPd4N6HoaZsy9cfVmQgVGRrytZsy9cgVWQgVWMgVWRsy9YfVWNsy9YgVWVty9YgVWVry9UgVWRsy9Zsy9UfVWRsy9YgVWVty9YgVWRty9Vsy9aM09sgVWRTws/AzM0gVWRtzNYgVWRuy9Zsy9cgVWRGcHxty9bb5ORbxdEgVWRty9bn6OZTws9mydRfxtLX3Nva5eRix9NFcXxOd4JPeINQeIMiVmVUws9Vws9Vw9BXw9BYxNBaxNBbxNBcxdJexdElWWgmWmhjyNRlx9IqXGtoipNpytVqytVryNNrytZsjZUuX210k5t1y9R2zNR3y9V4lp57zth9zdaAnKOGoaeK0NiNpquV09mesrag1tuitbmj1tuj19uktrqr2d2svcCu2d2xwMO63N+7x8nA3uDC3uDFz9DK4eHL4eLN4eIyYnDX5OM5Z3Tb397e4uDf4uHf5uXi5ePi5+Xj5+Xk5+Xm5+Xm6OY6aHXQ19fT4+NfhI1Ww89gx9Nhx9Nsy9ZWw9Dpj2abAAAAWnRSTlMAAQICAwQEBgcIDQ0ODhQZGiAiIyYpKywvNTs+QklPUlNUWWJjaGt0dnd+hIWFh4mNjZCSm6CpsbW2t7nDzNDT1dje5efr7PHy9PT29/j4+Pn5+vr8/f39/f6DPtKwAAABTklEQVR4Xr3QVWPbMBSAUTVFZmZmhhSXMjNvkhwqMzMzMzPDeD+xASvObKePPa+ffHVl8PlsnE0+qPpBuQjVJjno6pZpSKXYl7/bZyFaQxhf98hHDKEppwdWIW1frFnrxSOWHFfWesSEWC6R/P4zOFrix3TzDFLlXRTR8c0fEEJ1/itpo7SVO9Jdr1DVxZ0USyjZsEY5vZfiiAC0UoTGOrm9PZLuRl8X+Dq1HQtoFbJZbv61i+Poblh/97TC7n0neCcK0ETNUrz1/xPHf+DNAW9Ac6t8O8WH3Vp98f5lCaYKAOFZMLyHL4Y0fe319idMNgMMp+zWVSybUed/+/h7I4wRAG1W6XDy4XmjR9HnzvDRZXUAYDFOhC1S/Hh+fIXxen+eO+AKqbs+wAo30zDTDvDxKoJN88sjUzDFAvBzEUGFsnADoIvAJzoh2BZ8sner+Ke/vwECuQAAAABJRU5ErkJggg==)"></button> to find churches, schools, historical districts, block clubs and community groups.',_,h,E;function V(a){n[29](a)}
3let l={label:"First, pick a neighborhood to draw.",data:n[5],showDropdownOnFocus:!0,limit:10,debounce:n[14]&&n[14].length===0?800:0};return n[14]!==void 0&&(l.results=n[14]),e=new Lt({props:l}),Re.push(()=>Fe(e,"results",V)),e.$on("type",n[30]),e.$on("select",n[31]),e.$on("clear",n[32]),h=new ke({props:{disabled:!n[1],style:"margin-top: 10px",$$slots:{default:[En]},$$scope:{ctx:n}}}),h.$on("click",n[33]),{c(){ee(e.$$.fragment),r=O(),i=$("p"),i.textContent=o,d=O(),p=$("p"),p.innerHTML=s,_=O(),ee(h.$$.fragment),this.h()},l(a){x(e.$$.fragment,a),r=W(a),i=w(a,"P",{style:!0,"data-svelte-h":!0}),ie(i)!=="svelte-15y1io1"&&(i.textContent=o),d=W(a),p=w(a,"P",{style:!0,"data-svelte-h":!0}),ie(p)!=="svelte-2tbdr"&&(p.innerHTML=s),_=W(a),x(h.$$.fragment,a),this.h()},h(){L(i,"margin","0.5rem 0 0"),L(i,"font-size","0.75rem"),L(p,"margin","0.5rem 0 0"),L(p,"font-size","0.75rem")},m(a,m){K(e,a,m),C(a,r,m),C(a,i,m),C(a,d,m),C(a,p,m),C(a,_,m),K(h,a,m),E=!0},p(a,m){const k={};m[0]&32&&(k.data=a[5]),m[0]&16384&&(k.debounce=a[14]&&a[14].length===0?800:0),!t&&m[0]&16384&&(t=!0,k.results=a[14],He(()=>t=!1)),e.$set(k);const T={};m[0]&2&&(T.disabled=!a[1]),m[2]&4&&(T.$$scope={dirty:m,ctx:a}),h.$set(T)},i(a){E||(B(e.$$.fragment,a),B(h.$$.fragment,a),E=!0)},o(a){G(e.$$.fragment,a),G(h.$$.fragment,a),E=!1},d(a){a&&(u(r),u(i),u(d),u(p),u(_)),J(e,a),J(h,a)}}}function yn(n){let e,t="Define your own neighborhood",r,i,o=`The goal of this site is to <b>collectively map neighborhoods</b> as an image of the city in maps
4			and words.`,d,p,s=`No neighborhood names or boundaries are here to start with. <b>You make the map</b>. Real or
5			imagined, within the city, or crossing municipal borders. Names, extents, and descriptions are
6			up to you.`,_,h,E='<a href="/map/census">View the map of submissions.</a>',V,l,a;return l=new ke({props:{$$slots:{default:[Dn]},$$scope:{ctx:n}}}),l.$on("click",n[28]),{c(){e=$("h1"),e.textContent=t,r=O(),i=$("p"),i.innerHTML=o,d=O(),p=$("p"),p.innerHTML=s,_=O(),h=$("p"),h.innerHTML=E,V=O(),ee(l.$$.fragment),this.h()},l(m){e=w(m,"H1",{style:!0,"data-svelte-h":!0}),ie(e)!=="svelte-1ck5sow"&&(e.textContent=t),r=W(m),i=w(m,"P",{style:!0,"data-svelte-h":!0}),ie(i)!=="svelte-zb9tir"&&(i.innerHTML=o),d=W(m),p=w(m,"P",{style:!0,"data-svelte-h":!0}),ie(p)!=="svelte-1e4u1x5"&&(p.innerHTML=s),_=W(m),h=w(m,"P",{"data-svelte-h":!0}),ie(h)!=="svelte-anm8oc"&&(h.innerHTML=E),V=W(m),x(l.$$.fragment,m),this.h()},h(){L(e,"margin-top","0"),L(i,"margin-top","0"),L(p,"margin-top","0")},m(m,k){C(m,e,k),C(m,r,k),C(m,i,k),C(m,d,k),C(m,p,k),C(m,_,k),C(m,h,k),C(m,V,k),K(l,m,k),a=!0},p(m,k){const T={};k[2]&4&&(T.$$scope={dirty:k,ctx:m}),l.$set(T)},i(m){a||(B(l.$$.fragment,m),a=!0)},o(m){G(l.$$.fragment,m),a=!1},d(m){m&&(u(e),u(r),u(i),u(d),u(p),u(_),u(h),u(V)),J(l,m)}}}function wn(n){let e;return{c(){e=F("Submit")},l(t){e=H(t,"Submit")},m(t,r){C(t,e,r)},d(t){t&&u(e)}}}function $n(n){let e;return{c(){e=F("Undo")},l(t){e=H(t,"Undo")},m(t,r){C(t,e,r)},d(t){t&&u(e)}}}function kn(n){let e;return{c(){e=F("Reset")},l(t){e=H(t,"Reset")},m(t,r){C(t,e,r)},d(t){t&&u(e)}}}function Vn(n){let e;return{c(){e=F("Continue")},l(t){e=H(t,"Continue")},m(t,r){C(t,e,r)},d(t){t&&u(e)}}}function An(n){let e;return{c(){e=F("Start drawing")},l(t){e=H(t,"Start drawing")},m(t,r){C(t,e,r)},d(t){t&&u(e)}}}function En(n){let e;return{c(){e=F("Continue")},l(t){e=H(t,"Continue")},m(t,r){C(t,e,r)},d(t){t&&u(e)}}}function Dn(n){let e;return{c(){e=F("Start")},l(t){e=H(t,"Start")},m(t,r){C(t,e,r)},d(t){t&&u(e)}}}function Tn(n){let e,t="The city does not recognize this neighborhood.";return{c(){e=$("p"),e.textContent=t,this.h()},l(r){e=w(r,"P",{class:!0,"data-svelte-h":!0}),ie(e)!=="svelte-ibypc4"&&(e.textContent=t),this.h()},h(){f(e,"class","svelte-19fn6ds")},m(r,i){C(r,e,i)},p:U,i:U,o:U,d(r){r&&u(e)}}}function Mn(n){let e,t,r="Your submission",i,o,d=n[21].format(n[0].city_intersection)+"",p,s,_,h,E="city-defined boundaries",V,l,a,m,k,T,y={ctx:n,current:null,token:null,hasCatch:!1,pending:Ln,then:In,catch:Cn,value:63,blocks:[,,,]};return dt(be(()=>import("../chunks/Bc75QkeA.js"),__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url),y),{c(){e=$("p"),t=$("span"),t.textContent=r,i=F(`
7				has
8				`),o=$("b"),p=F(d),s=F(" similarity"),_=F(`
9				with the
10				`),h=$("span"),h.textContent=E,V=F(`
11				of `),l=F(n[1]),a=F("."),m=O(),k=$("div"),y.block.c(),this.h()},l(S){e=w(S,"P",{class:!0});var g=X(e);t=w(g,"SPAN",{class:!0,"data-svelte-h":!0}),ie(t)!=="svelte-u83ma"&&(t.textContent=r),i=H(g,`
12				has
13				`),o=w(g,"B",{});var b=X(o);p=H(b,d),s=H(b," similarity"),b.forEach(u),_=H(g,`
14				with the
15				`),h=w(g,"SPAN",{class:!0,style:!0,"data-svelte-h":!0}),ie(h)!=="svelte-1auerf6"&&(h.textContent=E),V=H(g,`
16				of `),l=H(g,n[1]),a=H(g,"."),g.forEach(u),m=W(S),k=w(S,"DIV",{class:!0,style:!0});var R=X(k);y.block.l(R),R.forEach(u),this.h()},h(){f(t,"class","underline primary svelte-19fn6ds"),f(h,"class","underline secondary svelte-19fn6ds"),L(h,"text-underline-position","under"),f(e,"class","svelte-19fn6ds"),f(k,"class","spotlight-container svelte-19fn6ds"),L(k,"margin-bottom",n[0].user_boundaries?"1rem":"0rem")},m(S,g){C(S,e,g),c(e,t),c(e,i),c(e,o),c(o,p),c(o,s),c(e,_),c(e,h),c(e,V),c(e,l),c(e,a),C(S,m,g),C(S,k,g),y.block.m(k,y.anchor=null),y.mount=()=>k,y.anchor=null,T=!0},p(S,g){n=S,(!T||g[0]&1)&&d!==(d=n[21].format(n[0].city_intersection)+"")&&$e(p,d),(!T||g[0]&2)&&$e(l,n[1]),ht(y,n,g),(!T||g[0]&1)&&L(k,"margin-bottom",n[0].user_boundaries?"1rem":"0rem")},i(S){T||(B(y.block),T=!0)},o(S){for(let g=0;g<3;g+=1){const b=y.blocks[g];G(b)}T=!1},d(S){S&&(u(e),u(m),u(k)),y.block.d(),y.token=null,y=null}}}function Cn(n){return{c:U,l:U,m:U,p:U,i:U,o:U,d:U}}function In(n){let e,t;return e=new n[63].default({props:{id:"map-comparison-city",primary:n[23],secondary:new Me({features:[n[20].readFeature(n[0].city_boundaries)]})}}),{c(){ee(e.$$.fragment)},l(r){x(e.$$.fragment,r)}
16,m(r,i){K(e,r,i),t=!0},p(r,i){const o={};i[0]&1&&(o.secondary=new Me({features:[r[20].readFeature(r[0].city_boundaries)]})),e.$set(o)},i(r){t||(B(e.$$.fragment,r),t=!0)},o(r){G(e.$$.fragment,r),t=!1},d(r){J(e,r)}}}function Ln(n){return{c:U,l:U,m:U,p:U,i:U,o:U,d:U}}function ct(n){let e,t,r="Your submission",i,o,d=n[21].format(n[0].user_intersection)+"",p,s,_,h,E="user-submitted boundaries",V,l,a,m,k,T=n[0].number_submits+"",y,S,g,b,R,A,N=n[0].number_submits!==1&&mt(),Y={ctx:n,current:null,token:null,hasCatch:!1,pending:Nn,then:Sn,catch:Rn,value:63,blocks:[,,,]};return dt(be(()=>import("../chunks/Bc75QkeA.js"),__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url),Y),{c(){e=$("p"),t=$("span"),t.textContent=r,i=F(`
17				has
18				`),o=$("b"),p=F(d),s=F(" similarity"),_=F(`
19				with the average
20				`),h=$("span"),h.textContent=E,V=F(`
21				of `),l=F(n[1]),a=F(`.
22				`),m=$("small"),k=F("(Based on "),y=F(T),S=F(" other submission"),N&&N.c(),g=F(")"),b=O(),R=$("div"),Y.block.c(),this.h()},l(Q){e=w(Q,"P",{class:!0});var z=X(e);t=w(z,"SPAN",{class:!0,"data-svelte-h":!0}),ie(t)!=="svelte-m6xp9o"&&(t.textContent=r),i=H(z,`
23				has
24				`),o=w(z,"B",{});var pe=X(o);p=H(pe,d),s=H(pe," similarity"),pe.forEach(u),_=H(z,`
25				with the average
26				`),h=w(z,"SPAN",{class:!0,"data-svelte-h":!0}),ie(h)!=="svelte-1s57e2w"&&(h.textContent=E),V=H(z,`
27				of `),l=H(z,n[1]),a=H(z,`.
28				`),m=w(z,"SMALL",{});var se=X(m);k=H(se,"(Based on "),y=H(se,T),S=H(se," other submission"),N&&N.l(se),g=H(se,")"),se.forEach(u),z.forEach(u),b=W(Q),R=w(Q,"DIV",{class:!0});var ce=X(R);Y.block.l(ce),ce.forEach(u),this.h()},h(){f(t,"class","underline primary svelte-19fn6ds"),f(h,"class","underline secondary svelte-19fn6ds"),f(e,"class","svelte-19fn6ds"),f(R,"class","spotlight-container svelte-19fn6ds")},m(Q,z){C(Q,e,z),c(e,t),c(e,i),c(e,o),c(o,p),c(o,s),c(e,_),c(e,h),c(e,V),c(e,l),c(e,a),c(e,m),c(m,k),c(m,y),c(m,S),N&&N.m(m,null),c(m,g),C(Q,b,z),C(Q,R,z),Y.block.m(R,Y.anchor=null),Y.mount=()=>R,Y.anchor=null,A=!0},p(Q,z){n=Q,(!A||z[0]&1)&&d!==(d=n[21].format(n[0].user_intersection)+"")&&$e(p,d),(!A||z[0]&2)&&$e(l,n[1]),(!A||z[0]&1)&&T!==(T=n[0].number_submits+"")&&$e(y,T),n[0].number_submits!==1?N||(N=mt(),N.c(),N.m(m,g)):N&&(N.d(1),N=null),ht(Y,n,z)},i(Q){A||(B(Y.block),A=!0)},o(Q){for(let z=0;z<3;z+=1){const pe=Y.blocks[z];G(pe)}A=!1},d(Q){Q&&(u(e),u(b),u(R)),N&&N.d(),Y.block.d(),Y.token=null,Y=null}}}function mt(n){let e;return{c(){e=F("s")},l(t){e=H(t,"s")},m(t,r){C(t,e,r)},d(t){t&&u(e)}}}function Rn(n){return{c:U,l:U,m:U,p:U,i:U,o:U,d:U}}function Sn(n){let e,t;return e=new n[63].default({props:{id:"map-comparison-user",primary:n[23],secondary:new Me({features:[n[20].readFeature(n[0].user_boundaries)]})}}),{c(){ee(e.$$.fragment)},l(r){x(e.$$.fragment,r)},m(r,i){K(e,r,i),t=!0},p(r,i){const o={};i[0]&1&&(o.secondary=new Me({features:[r[20].readFeature(r[0].user_boundaries)]})),e.$set(o)},i(r){t||(B(e.$$.fragment,r),t=!0)},o(r){G(e.$$.fragment,r),t=!1},d(r){J(e,r)}}}function Nn(n){return{c:U,l:U,m:U,p:U,i:U,o:U,d:U}}function Pn(n){let e;return{c(){e=F("View other submissions")},l(t){e=H(t,"View other submissions")},m(t,r){C(t,e,r)},d(t){t&&u(e)}}}function Wn(n){let e;return{c(){e=F("View map of Detroit")},l(t){e=H(t,"View map of Detroit")},m(t,r){C(t,e,r)},d(t){t&&u(e)}}}function On(n){let e;return{c(){e=F("Draw another neighborhood")},l(t){e=H(t,"Draw another neighborhood")},m(t,r){C(t,e,r)},d(t){t&&u(e)}}}function Hn(n){let e,t,r,i,o,d,p,s,_,h,E,V,l,a,m,k,T,y,S,g,b,R,A,N,Y="<b>Thank you</b> for submitting to the DETROITography Detroit neighborhoods mapping tool!",Q,z,pe='Have any feedback? Submit it <a href="https://forms.gle/pmxoRA3gxtTyUbTx8">here</a>.',se,ce,Ce='Request a neighborhood mapping presentation <a href="https://docs.google.com/forms/d/1McEEELWDCbQmd9GLQc25cBUS5hDf5pAIjJoxwyho8xo/viewform">here</a>.',De,oe,le,he,I,M,re,ue,Ve,me,_e,ae,Ie,de,ve="In partnership with",Pe,fe,Ae,We,Ee,Le,Oe,Ue,te=n[15]&&ft(n);const ze=[yn,vn,bn,gn,_n],ye=[];function Be(v,P){return v[10]===0?0:v[10]===1?1:v[10]===2?2:v[10]===3?3:v[10]===4?4:-1}~(T=Be(n))&&(y=ye[T]=ze[T](n));const Ge=[Mn,Tn],we=[];function je(v,P){return v[0]&&v[0].city_boundaries&&v[0].city_intersection!==null?0:1}oe=je(n),le=we[oe]=Ge[oe](n);let ne=n[0]&&n[0].user_boundaries&&n[0].user_intersection!==null&&n[0].number_submits>0&&ct(n);return ue=new ke({props:{link:!0,href:Ne+"/view/"+encodeURIComponent(n[1]??""),style:"--color-button: rgb(59, 59, 110); --color-button-hover: rgb(90, 90, 169);",$$slots:{default:[Pn]},$$scope:{ctx:n}}}),me=new ke({props:{link:!0,href:"/map/census",style:"--color-button: rgb(59, 59, 110); --color-button-hover: rgb(90, 90, 169);",$$slots:{default:[Wn]},$$scope:{ctx:n}}}),ae=new ke({props:{style:"--color-button: rgb(59, 59, 110); --color-button-hover: rgb(90, 90, 169);",$$slots:{default:[On]},$$scope:{ctx:n}}}),ae.$on("click",n[44]),Ae=new ut({props:{url:"https://detroithistorical.org",width:125,height:64,filename:"dhs",alt:"Logo for the Detroit Historical Society 'Where Detroit Lives' project"}}),Ee=new ut({props:{url:"https://preservationdetroit.org",width:82,height:64,filename:"pd",alt:"Logo for Preservation Detroit"}}),{c(){e=$("meta"),t=$("meta"),r=$("meta"),i=$("meta"),o=$("meta"),d=$("meta"),p=$("meta"),s=$("meta"),_=$("meta"),h=$("meta"),E=$("meta"),V=$("meta"),l=$("meta"),a=O(),te&&te.c(),m=O(),k=$("div"),y&&y.c(),S=O(),g=$("div"),b=O(),R=$("dialog"),A=$
28("div"),N=$("p"),N.innerHTML=Y,Q=O(),z=$("small"),z.innerHTML=pe,se=O(),ce=$("small"),ce.innerHTML=Ce,De=O(),le.c(),he=O(),ne&&ne.c(),I=O(),M=$("div"),re=$("div"),ee(ue.$$.fragment),Ve=O(),ee(me.$$.fragment),_e=O(),ee(ae.$$.fragment),Ie=O(),de=$("p"),de.textContent=ve,Pe=O(),fe=$("div"),ee(Ae.$$.fragment),We=O(),ee(Ee.$$.fragment),this.h()},l(v){const P=$t("svelte-1m54ey2",document.head);e=w(P,"META",{property:!0,content:!0}),t=w(P,"META",{property:!0,content:!0}),r=w(P,"META",{name:!0,content:!0}),i=w(P,"META",{property:!0,content:!0}),o=w(P,"META",{property:!0,content:!0}),d=w(P,"META",{property:!0,content:!0}),p=w(P,"META",{property:!0,content:!0}),s=w(P,"META",{name:!0,content:!0}),_=w(P,"META",{name:!0,content:!0}),h=w(P,"META",{name:!0,content:!0}),E=w(P,"META",{name:!0,content:!0}),V=w(P,"META",{name:!0,content:!0}),l=w(P,"META",{name:!0,content:!0}),P.forEach(u),a=W(v),te&&te.l(v),m=W(v),k=w(v,"DIV",{class:!0});var Te=X(k);y&&y.l(Te),Te.forEach(u),S=W(v),g=w(v,"DIV",{id:!0,class:!0}),X(g).forEach(u),b=W(v),R=w(v,"DIALOG",{class:!0,style:!0});var D=X(R);A=w(D,"DIV",{style:!0});var j=X(A);N=w(j,"P",{style:!0,class:!0,"data-svelte-h":!0}),ie(N)!=="svelte-17afplj"&&(N.innerHTML=Y),Q=W(j),z=w(j,"SMALL",{"data-svelte-h":!0}),ie(z)!=="svelte-12rcmk1"&&(z.innerHTML=pe),se=W(j),ce=w(j,"SMALL",{style:!0,"data-svelte-h":!0}),ie(ce)!=="svelte-1qmsvrq"&&(ce.innerHTML=Ce),De=W(j),le.l(j),he=W(j),ne&&ne.l(j),I=W(j),M=w(j,"DIV",{style:!0});var Z=X(M);re=w(Z,"DIV",{style:!0});var q=X(re);x(ue.$$.fragment,q),Ve=W(q),x(me.$$.fragment,q),_e=W(q),x(ae.$$.fragment,q),q.forEach(u),Ie=W(Z),de=w(Z,"P",{style:!0,class:!0,"data-svelte-h":!0}),ie(de)!=="svelte-5gx4bj"&&(de.textContent=ve),Pe=W(Z),fe=w(Z,"DIV",{style:!0});var ge=X(fe);x(Ae.$$.fragment,ge),We=W(ge),x(Ee.$$.fragment,ge),ge.forEach(u),Z.forEach(u),j.forEach(u),D.forEach(u),this.h()},h(){document.title="The Detroit neighborhoods mapping tool",f(e,"property","og:title"),f(e,"content","Help us map Detroit's neighborhoods."),f(t,"property","og:description"),f(t,"content","No neighborhood names or boundaries are here to start with. You make the map. Real or imagined, within the city, or crossing municipal borders."),f(r,"name","description"),f(r,"content","No neighborhood names or boundaries are here to start with. You make the map. Real or imagined, within the city, or crossing municipal borders."),f(i,"property","og:type"),f(i,"content","website"),f(o,"property","og:site_name"),f(o,"content","DETROITography"),f(d,"property","og:locale"),f(d,"content","en_US"),f(p,"property","og:image"),f(p,"content","https://detroit-neighborhoods.pages.dev/social.png"),f(s,"name","twitter:card"),f(s,"content","summary_large_image"),f(_,"name","twitter:site"),f(_,"content","@detroitography"),f(h,"name","twitter:creator"),f(h,"content","@detroitography"),f(E,"name","twitter:title"),f(E,"content","Help us map Detroit's neighborhoods."),f(V,"name","twitter:description"),f(V,"content","No neighborhood names or boundaries are here to start with. You make the map. Real or imagined, within the city, or crossing municipal borders."),f(l,"name","twitter:image"),f(l,"content","https://detroit-neighborhoods.pages.dev/social.png"),f(k,"class","progression border svelte-19fn6ds"),f(g,"id","map"),f(g,"class","svelte-19fn6ds"),L(N,"font-size","1.25rem"),L(N,"margin","0"),f(N,"class","svelte-19fn6ds"),L(ce,"margin-bottom","0.5rem"),L(re,"display","flex"),L(re,"justify-content","center"),L(re,"gap","0.25rem"),L(re,"flex-wrap","wrap"),L(de,"margin","1rem auto 0.125rem"),L(de,"font-size","0.875rem"),L(de,"display","block"),f(de,"class","svelte-19fn6ds"),L(fe,"max-width","250px"),L(fe,"margin","auto"),L(fe,"display","grid"),L(fe,"gap","0.25rem"),L(fe,"place-items","center"),L(fe,"grid-template-columns","repeat(auto-fit, minmax(50px, 1fr))"),L(M,"position","sticky"),L(M,"bottom","0"),L(M,"background-color","white"),L(M,"width","100%"),L(M,"padding","0.5rem"),L(M,"padding-bottom","15px"),L(A,"display","flex"),L(A,"flex-direction","column"),L(A,"align-items","center"),L(A,"gap","0.375rem"),L(A,"position","relative"),f(R,"class","border svelte-19fn6ds"),L(R,"--color-primary",Se(_t,1)),L(R,"--color-secondary",Se(en,1)),L(R,"padding-bottom","0")}
28,m(v,P){c(document.head,e),c(document.head,t),c(document.head,r),c(document.head,i),c(document.head,o),c(document.head,d),c(document.head,p),c(document.head,s),c(document.head,_),c(document.head,h),c(document.head,E),c(document.head,V),c(document.head,l),C(v,a,P),te&&te.m(v,P),C(v,m,P),C(v,k,P),~T&&ye[T].m(k,null),C(v,S,P),C(v,g,P),C(v,b,P),C(v,R,P),c(R,A),c(A,N),c(A,Q),c(A,z),c(A,se),c(A,ce),c(A,De),we[oe].m(A,null),c(A,he),ne&&ne.m(A,null),c(A,I),c(A,M),c(M,re),K(ue,re,null),c(re,Ve),K(me,re,null),c(re,_e),K(ae,re,null),c(M,Ie),c(M,de),c(M,Pe),c(M,fe),K(Ae,fe,null),c(fe,We),K(Ee,fe,null),n[45](R),Le=!0,Oe||(Ue=nt(R,"close",n[46]),Oe=!0)},p(v,P){v[15]?te?(te.p(v,P),P[0]&32768&&B(te,1)):(te=ft(v),te.c(),B(te,1),te.m(m.parentNode,m)):te&&(Ze(),G(te,1,1,()=>{te=null}),Ye());let Te=T;T=Be(v),T===Te?~T&&ye[T].p(v,P):(y&&(Ze(),G(ye[Te],1,1,()=>{ye[Te]=null}),Ye()),~T?(y=ye[T],y?y.p(v,P):(y=ye[T]=ze[T](v),y.c()),B(y,1),y.m(k,null)):y=null);let D=oe;oe=je(v),oe===D?we[oe].p(v,P):(Ze(),G(we[D],1,1,()=>{we[D]=null}),Ye(),le=we[oe],le?le.p(v,P):(le=we[oe]=Ge[oe](v),le.c()),B(le,1),le.m(A,he)),v[0]&&v[0].user_boundaries&&v[0].user_intersection!==null&&v[0].number_submits>0?ne?(ne.p(v,P),P[0]&1&&B(ne,1)):(ne=ct(v),ne.c(),B(ne,1),ne.m(A,I)):ne&&(Ze(),G(ne,1,1,()=>{ne=null}),Ye());const j={};P[0]&2&&(j.href=Ne+"/view/"+encodeURIComponent(v[1]??"")),P[2]&4&&(j.$$scope={dirty:P,ctx:v}),ue.$set(j);const Z={};P[2]&4&&(Z.$$scope={dirty:P,ctx:v}),me.$set(Z);const q={};P[2]&4&&(q.$$scope={dirty:P,ctx:v}),ae.$set(q)},i(v){Le||(B(te),B(y),B(le),B(ne),B(ue.$$.fragment,v),B(me.$$.fragment,v),B(ae.$$.fragment,v),B(Ae.$$.fragment,v),B(Ee.$$.fragment,v),Le=!0)},o(v){G(te),G(y),G(le),G(ne),G(ue.$$.fragment,v),G(me.$$.fragment,v),G(ae.$$.fragment,v),G(Ae.$$.fragment,v),G(Ee.$$.fragment,v),Le=!1},d(v){v&&(u(a),u(m),u(k),u(S),u(g),u(b),u(R)),u(e),u(t),u(r),u(i),u(o),u(d),u(p),u(s),u(_),u(h),u(E),u(V),u(l),te&&te.d(v),~T&&ye[T].d(),we[oe].d(),ne&&ne.d(),J(ue),J(me),J(ae),J(Ae),J(Ee),n[45](null),Oe=!1,Ue()}}}function Fn(n,e,t){let r;kt(n,tt,D=>t(19,r=D));let{form:i}=e,{data:o}=e;const d=new St,p=new Intl.NumberFormat("default",{style:"percent",maximumFractionDigits:0}),s=new Set([...Rt]);let _=Array.from(s),h,E=5,V=5,l,a,m=0,k=!1,T=!1,y,S=!1,g,b;const R=new Me({wrapX:!1}),A=new Mt({type:"Polygon",source:R}),N=new Ct({source:R}),Y=new It({source:R});A.on("drawend",D=>{t(13,g=D.feature),t(12,S=!0),b.removeInteraction(A)});let Q;const z=Nt(),pe=Pt(z),se=new Wt({declutter:!0,source:Ot}),ce=new xe({source:R,opacity:.75,style:new Xe({fill:new st({color:Se(xt,1)}),stroke:new et({color:Se(_t,1),width:3})})}),Ce={"block-club-community-group":Jt,"local-historic-district":qt,church:Qt,school:Xt,"cdo-office":Zt},De=(D,{point:j=!1,selected:Z=!1}={})=>{const q=Z?.9:.5,ge={fill:new st({color:Se(Ce[D],q)}),stroke:new et({color:Se(Yt,q),width:Z?3:1.5})};return j?new Xe({image:new Kt({radius:Z?7.5:5,...ge})}):new Xe(ge)},oe=new xe({source:new Me({features:d.readFeatures(nn)}),style:new Xe({stroke:new et({color:"#808080",width:3,lineDash:[12.5]})})}),le={"block-club-community-group":"Block club/community group","local-historic-district":"Historic district",church:"Church",school:"School","cdo-office":"Community Development Organization office"},he=(D,j,{point:Z=!1}={})=>{const q=new xe({title:j,visible:!1,style:De(D,{point:Z})});return q.once("change:visible",async()=>{if(D==="block-club-community-group")q.setSource(new Me({features:d.readFeatures({type:"FeatureCollection",features:o.blockClubs})}));else{const ge=await ln(Object.assign({
28"../lib/client/references/block-club-community-group.json":()=>be(()=>import("../chunks/zzks8Txz.js"),[],import.meta.url),
28"../lib/client/references/cdo-office.json":()=>be(()=>import("../chunks/BndccHnb.js"),[],import.meta.url),
28"../lib/client/references/church.json":()=>be(()=>import("../chunks/C6pavrdh.js"),[],import.meta.url),
28"../lib/client/references/detroit.json":()=>be(()=>import("../chunks/C5hdWFcv.js"),[],import.meta.url),
28"../lib/client/references/local-historic-district.json":()=>be(()=>import("../chunks/DfgFr3Fz.js"),[],import.meta.url),
28"../lib/client/references/school.json":()=>be(()=>import("../chunks/Dt70-bqR.js"),[],import.meta.url)
28}),`../lib/client/references/${D}.json`,5);q.setSource(new Me({features:d.readFeatures(ge)}))}window.gtag("event","click reference layer",{event_category:"interaction",event_label:le[D]})}),q},I=he("block-club-community-group","Block clubs and community groups"),M=he("local-historic-district","Historic districts"),re=he("church","Churches",{point:!0}),ue=he("school","Schools",{point:!0}),Ve=he("cdo-office","Community Development Organization",{point:!0}),me=new Ht({title:"References",layers:[I,M,re,ue,Ve]});let _e;const ae=new Tt({condition:D=>Ft(D)||Ut(D),style:D=>{const{slug:j}=D.getProperties();return De(j,{selected:!0,point:j==="church"||j==="school"||j==="cdo-office"})},layers:[re,ue,M,I,Ve]});let Ie,de,ve;Vt(async()=>{zt(),t(4,b=new Bt({target:"map",layers:[se,oe,me,ce],view:new Gt({center:pe,extent:z,zoom:11,minZoom:11,maxZoom:17})})),jt(se,tn,"esri");const{default:D}=await be(async()=>{const{default:Z}=await import("../chunks/B5YJm-9i.js").then(q=>q.o);return{default:Z}},__vite__mapDeps([7,3]),import.meta.url),j=window.matchMedia("(max-width: 650px)").matches;b.addControl(new D({startActive:!j,groupSelectStyle:"children",activationMode:j?"mouseover":"click",collapseLabel:"✕"})),b.addInteraction(ae),ae.on("select",Z=>{const q=Z.selected.at(0);if(q){const{slug:ge,name:gt,address:bt}=q.getProperties();t(15,_e={label:le[ge],name:gt,address:bt}),t(16,[Ie,de]=Z.mapBrowserEvent.pixel,Ie,t(17,de))}else t(15,_e=void 0)}),t(18,ve=window.setInterval(()=>{const Z=Math.round(b.getView().getZoom());r.set(Z,(r.get(Z)??0)+1)},1e3)),await be(()=>Promise.resolve({}),__vite__mapDeps([8]),import.meta.url),await be(()=>Promise.resolve({}),__vite__mapDeps([9]),import.meta.url)}),At(()=>{R==null||R.dispose(),N==null||N.dispose(),Y==null||Y.dispose(),A==null||A.dispose(),b==null||b.dispose(),b==null||b.removeInteraction(ae),ae==null||ae.dispose(),ve&&(clearInterval(ve),lt(tt,r=new Map,r))});const Pe=()=>{t(10,m=1)};function fe(D){Q=D,t(14,Q)}const Ae=({detail:D})=>{const j=new Set(Array.from(s).map(Z=>Z.toLowerCase()));D.trim().length>0&&!j.has(D.toLowerCase())&&t(5,_=[...s,D.trim()])},We=({detail:D})=>{t(1,h=D.selected),g&&R.removeFeature(g)},Ee=()=>{t(1,h=void 0),g&&R.removeFeature(g)},Le=()=>{t(10,m=2)},Oe=()=>{t(10,m=3),b.addInteraction(N),b.addInteraction(Y),b.addInteraction(A)},Ue=()=>{A.removeLastPoint()},te=()=>{A.abortDrawing(),S&&b.addInteraction(A),t(12,S=!1),g&&R.removeFeature(g)},ze=()=>{t(10,m=4)};function ye(D){E=D,t(6,E)}function Be(D){V=D,t(7,V)}function Ge(D){l=D,t(8,l)}function we(D){a=D,t(9,a)}const je=()=>{if(b.removeInteraction(N),b.removeInteraction(Y),b.removeInteraction(A),ve){clearInterval(ve);let D=0,j=0;for(const[Z,q]of r)D+=Z*q,j+=q;window.gtag("event","average zoom level",{event_category:"timer",event_label:Math.round(D/j)})}},ne=()=>(t(11,k=!0),async({update:D})=>{await D({reset:!1}),t(11,k=!1),t(2,T=!0)}),v=()=>{y.close()};function P(D){Re[D?"unshift":"push"](()=>{y=D,t(3,y)})}const Te=()=>{t(10,m=1),t(1,h=void 0),t(2,T=!1),t(12,S=!1),t(7,V=5),t(9,a=""),t(8,l=""),g&&R.removeFeature(g),lt(tt,r=new Map,r),t(18,ve=window.setInterval(()=>{const D=Math.round(b.getView().getZoom()??0);r.set(D,(r.get(D)??0)+1)},1e3))};return n.$$set=D=>{"form"in D&&t(0,i=D.form),"data"in D&&t(27,o=D.data)},n.$$.update=()=>{n.$$.dirty[0]&12&&T&&y&&y.showModal(),n.$$.dirty[0]&18&&!h&&b&&(A.abortDrawing(),b.removeInteraction(N),b.removeInteraction(Y),b.removeInteraction(A))},[i,h,T,y,b,_,E,V,l,a,m,k,S,g,Q,_e,Ie,de,ve,r,d,p,s,R,A,N,Y,o,Pe,fe,Ae,We,Ee,Le,Oe,Ue,te,ze,ye,Be,Ge,we,je,ne,v,P,Te]}class Kn extends Je{constructor(e){super(),Ke(this,e,Fn,Hn,qe,{form:0,data:27},null,[-1,-1,-1])}}export{Kn as component};

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.