1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4294],{21873:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(71847).A)("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]])},38162:(e,t,s)=>{s.d(t,{C1:()=>w,bL:()=>v});var a=s(12115),l=s(94446),n=s(3468),r=s(92556),i=s(23558),c=s(78108),o=s(84288),d=s(76842),x=s(88142),m=s(95155),h="Checkbox",[u,p]=(0,n.A)(h),[j,y]=u(h);function f(e){let{__scopeCheckbox:t,checked:s,children:l,defaultChecked:n,disabled:r,form:c,name:o,onCheckedChange:d,required:x,value:u="on",internal_do_not_use_render:p}=e,[y,f]=(0,i.i)({prop:s,defaultProp:null!=n&&n,onChange:d,caller:h}),[g,b]=a.useState(null),[v,N]=a.useState(null),w=a.useRef(!1),k=!g||!!c||!!g.closest("form"),C={checked:y,disabled:r,setChecked:f,control:g,setControl:b,name:o,form:c,value:u,hasConsumerStoppedPropagationRef:w,required:x,defaultChecked:!S(n)&&n,isFormControl:k,bubbleInput:v,setBubbleInput:N};return(0,m.jsx)(j,{scope:t,...C,children:"function"==typeof p?p(C):l})}var g="CheckboxTrigger",b=a.forwardRef((e,t)=>{let{__scopeCheckbox:s,onKeyDown:n,onClick:i,...c}=e,{control:o,value:d,disabled:h,checked:u,required:p,setControl:j,setChecked:f,hasConsumerStoppedPropagationRef:b,isFormControl:v,bubbleInput:N}=y(g,s),w=(0,l.s)(t,j),k=a.useRef(u);return a.useEffect(()=>{let e=null==o?void 0:o.form;if(e){let t=()=>f(k.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[o,f]),(0,m.jsx)(x.sG.button,{type:"button",role:"checkbox","aria-checked":S(u)?"mixed":u,"aria-required":p,"data-state":M(u),"data-disabled":h?"":void 0,disabled:h,value:d,...c,ref:w,onKeyDown:(0,r.mK)(n,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,r.mK)(i,e=>{f(e=>!!S(e)||!e),N&&v&&(b.current=e.isPropagationStopped(),b.current||e.stopPropagation())})})});b.displayName=g;var v=a.forwardRef((e,t)=>{let{__scopeCheckbox:s,name:a,checked:l,defaultChecked:n,required:r,disabled:i,value:c,onCheckedChange:o,form:d,...x}=e;return(0,m.jsx)(f,{__scopeCheckbox:s,checked:l,defaultChecked:n,disabled:i,required:r,onCheckedChange:o,name:a,form:d,value:c,internal_do_not_use_render:e=>{let{isFormControl:a}=e;return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(b,{...x,ref:t,__scopeCheckbox:s}),a&&(0,m.jsx)(C,{__scopeCheckbox:s})]})}})});v.displayName=h;var N="CheckboxIndicator",w=a.forwardRef((e,t)=>{let{__scopeCheckbox:s,forceMount:a,...l}=e,n=y(N,s);return(0,m.jsx)(d.C,{present:a||S(n.checked)||!0===n.checked,children:(0,m.jsx)(x.sG.span,{"data-state":M(n.checked),"data-disabled":n.disabled?"":void 0,...l,ref:t,style:{pointerEvents:"none",...e.style}})})});w.displayName=N;var k="CheckboxBubbleInput",C=a.forwardRef((e,t)=>{let{__scopeCheckbox:s,...n}=e,{control:r,hasConsumerStoppedPropagationRef:i,checked:d,defaultChecked:h,required:u,disabled:p,name:j,value:f,form:g,bubbleInput:b,setBubbleInput:v}=y(k,s),N=(0,l.s)(t,v),w=(0,c.Z)(d),C=(0,o.X)(r);a.useEffect(()=>{if(!b)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,t=!i.current;if(w!==d&&e){let s=new Event("click",{bubbles:t});b.indeterminate=S(d),e.call(b,!S(d)&&d),b.dispatchEvent(s)}},[b,w,d,i]);let M=a.useRef(!S(d)&&d);return(0,m.jsx)(x.sG.input,{type:"checkbox","aria-hidden":!0,defaultChecked:null!=h?h:M.current,required:u,disabled:p,name:j,value:f,form:g,...n,tabIndex:-1,ref:N,style:{...n.style,...C,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});function S(e){return"indeterminate"===e}function M(e){return S(e)?"indeterminate":e?"checked":"unchecked"}C.displayName=k},73457:(e,t,s)=>{s.d(t,{S:()=>c});var a=s(95155),l=s(12115),n=s(38162),r=s(54764),i=s(5917);let c=(0,l.forwardRef)((e,t)=>{let{className:s,...l}=e;return(0,a.jsx)(n.bL,{ref:t,className:(0,r.cn)("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",s),...l,children:(0,a.jsx)(n.C1,{className:(0,r.cn)("flex items-center justify-center text-current"),children:(0,a.jsx)(i.A,{className:"h-4 w-4"})})})});c.displayName=n.bL.displayName},75426:(e,t,s)=>{s.d(t,{A:()=>a});
1let a=(0,s(71847).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},84294:(e,t,s)=>{s.r(t),s.d(t,{LayerInfoPanel:()=>H});var a=s(95155),l=s(12115),n=s(61800),r=s(11514),i=s(54764),c=s(21873),o=s(71847);let d=(0,o.A)("Grid3x3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]]);var x=s(86651),m=s(24033);let h=(0,o.A)("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);var u=s(5917),p=s(75426);let j=(0,o.A)("ArrowDown10",[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"M17 10V4h-2",key:"zcsr5x"}],["path",{d:"M15 10h4",key:"id2lce"}],["rect",{x:"15",y:"14",width:"4",height:"6",ry:"2",key:"33xykx"}]]),y=(0,o.A)("ArrowUp10",[["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M17 10V4h-2",key:"zcsr5x"}],["path",{d:"M15 10h4",key:"id2lce"}],["rect",{x:"15",y:"14",width:"4",height:"6",ry:"2",key:"33xykx"}]]),f=(0,o.A)("LocateFixed",[["line",{x1:"2",x2:"5",y1:"12",y2:"12",key:"bvdh0s"}],["line",{x1:"19",x2:"22",y1:"12",y2:"12",key:"1tbv5k"}],["line",{x1:"12",x2:"12",y1:"2",y2:"5",key:"11lu5j"}],["line",{x1:"12",x2:"12",y1:"19",y2:"22",key:"x3vr5v"}],["circle",{cx:"12",cy:"12",r:"7",key:"fim9np"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);var g=s(50007),b=s(73457),v=s(26012),N=s(92299),w=s(11186),k=s(88288),C=s(23828),S=s(25290),M=s(59167),A=s(93016),L=s(37590),E=s(15936),R=s(34485),F=s(59135);let D="é ä½ å¦æ ¡å æ ¡ç¨® å
ç«¥ã»ç徿° æ¨è¨åºå 人æ°ã®æå³ åºæºæ¥ 対象ç¯å² 妿 ¡ã»å°ç¹ID æå¨å°",_=(e,t,s)=>{var a,l,n,r,i;return[t+1,(0,M.W)(e),e.schoolClassName,null!=(n=(0,M.FR)(e,s))?n:"",(0,M._S)(e.estimationMethod),e.universityEstimate?"å¦é¨å¦çæ°ï¼æ¨è¨ï¼":"å
ç«¥ã»ç徿°",null!=(r=null==(a=e.universityEstimate)?void 0:a.referenceDate)?r:"",e.universityEstimate?M.BX:"",e.id,null!=(i=null==(l=e.universityEstimate)?void 0:l.campusAddress)?i:""].join(" ")},T=[{value:"point",label:"ãã¤ã³ã",tooltip:"妿 ¡åä½ã§äººæ°ãæ ¡ç¨®ã確èªã§ãã¾ãã",icon:c.A},{value:"mesh",label:"ã¡ãã·ã¥",tooltip:"ã¨ãªã¢åä½ã§ç徿°ã®å¤ãå ´æãæ¯è¼ã§ãã¾ãã",icon:d}],z=(e,t,s)=>null==(0,A.hj)(e,t,s)?"äººæ°æªåå¾ã»å¯¾è±¡å¤ã®ããéè¨ãªã":(0,A.me)(e,t,s)>0||(0,A.s3)(e,t)>0?"å徿¸ã¿äººæ°ã®ã¿ã®åè¨":"対象人æ°ã®åè¨",B=(e,t)=>null==e&&null==t?0:null==e?-1:null==t?1:e-t,P=e=>e*Math.PI/180,I=e=>{let{from:t,to:s}=e,a=P(s.lat-t.lat),l=P(s.lng-t.lng),n=Math.sin(a/2)**2+Math.cos(P(t.lat))*Math.cos(P(s.lat))*Math.sin(l/2)**2;return 12742e3*Math.atan2(Math.sqrt(n),Math.sqrt(1-n))},K=e=>"walk"===e||"drive"===e||"bike"===e,q=(e,t)=>{let s=!1,a=e.lng,l=e.lat;
1for(let e=0,n=t.length-1;e<t.length;n=e,e+=1){let[r,i]=t[e],[c,o]=t[n];i>l!=o>l&&a<(c-r)*(l-i)/(o-i)+r&&(s=!s)}return s},V=e=>{let{point:t,features:s}=e;return s.some(e=>((e,t)=>{let[s,...a]=t;return!!s&&!!q(e,s)&&!a.some(t=>q(e,t))})(t,e.geometry.coordinates))},$=(e,t)=>!t||e.latitude>=t.south&&e.latitude<=t.north&&e.longitude>=t.west&&e.longitude<=t.east,Y=(e,t)=>!t||e.bounds.north>=t.south&&e.bounds.south<=t.north&&e.bounds.east>=t.west&&e.bounds.west<=t.east,W=e=>0===e.length?"ãã¹ã¦":1===e.length?e[0]:"".concat(e[0],"ã»ã").concat(e.length-1,"ä»¶"),G=()=>{var e,t;let s=(0,C.a)(e=>e.schools),n=(0,C.a)(e=>e.meshAreas),c=(0,C.a)(e=>e.selectedSchool),o=(0,C.a)(e=>e.selectedMeshArea),d=(0,C.a)(e=>e.renderMode),P=(0,C.a)(e=>e.schoolMeshMode),q=(0,C.a)(e=>e.includeCorrespondence),G=(0,C.a)(e=>e.filters),H=(0,C.a)(e=>e.selectSchool),O=(0,C.a)(e=>e.selectMeshArea),X=(0,C.a)(e=>e.setRenderMode),Z=(0,C.a)(e=>e.setSchoolMeshMode),U=(0,C.a)(e=>e.setIncludeCorrespondence),J=(0,C.a)(e=>e.setKeyword),Q=(0,C.a)(e=>e.setMeshKeyword),ee=(0,C.a)(e=>e.setSelectedSchoolClasses),et=(0,C.a)(e=>e.toggleSelectedSchoolClass),es=(0,C.a)(e=>e.setEstimationMethodFilter),ea=(0,C.a)(e=>e.setStudentRange),el=(0,C.a)(e=>e.resetFilters),{bounds:en,zoom:er}=(0,F.I)(),{moveCameraToLocation:ei}=(0,L.T)(),ec=(0,E.C)(e=>e.type),eo=(0,E.C)(e=>e.value),ed=(0,E.C)(e=>e.getLabel()),ex=(0,R.H)(e=>e.focusedLocation),em=(0,R.H)(e=>e.clearFocusedLocation),[eh,eu]=(0,l.useState)(!1),[ep,ej]=(0,l.useState)(!1),[ey,ef]=(0,l.useState)("desc"),[eg,eb]=(0,l.useState)(!1),[ev,eN]=(0,l.useState)(!1),[ew,ek]=(0,l.useState)(!1),eC=(0,l.useRef)(null),eS=(0,l.useRef)(null),eM=K(ec),{data:eA,isLoading:eL,isError:eE}=(0,r.tB)(null!=(e=null==ex?void 0:ex.lat)?e:0,null!=(t=null==ex?void 0:ex.lng)?t:0,eM?[eo]:[],eM?ec:"walk");(0,l.useEffect)(()=>()=>{eC.current&&clearTimeout(eC.current),eS.current&&clearTimeout(eS.current)},[]);let{keyword:eR,meshKeyword:eF,selectedSchoolClasses:eD,estimationMethodFilter:e_,studentRange:{preset:eT,minStudents:ez,maxStudents:eB}}=G,eP=(0,l.useMemo)(()=>(e=>{let t=new Set;for(let s of e)t.add(s.schoolClassName);return[...M.KK.filter(e=>t.has(e)),...[...t].filter(e=>!M.KK.includes(e)).sort((e,t)=>e.localeCompare(t,"ja"))]})(s),[s]),eI=(0,l.useMemo)(()=>(e=>{let{keyword:t,selectedSchoolClasses:s,estimationMethodFilter:a}=e,l=[],n=t.trim();return n&&l.push("妿 ¡åã".concat(n,"ã")),s.length>0&&l.push("æ ¡ç¨®: ".concat(W(s))),"all"!==a&&l.push("æ¨è¨åºå: ".concat(M.uf[a])),l.length>0?l.join(" / "):"妿 ¡åãæ ¡ç¨®ãæ¨è¨åºå"})({keyword:eR,selectedSchoolClasses:eD,estimationMethodFilter:e_}),[e_,eR,eD]),eK=(0,l.useMemo)(()=>(0,A.Dd)({preset:eT,minStudents:ez,maxStudents:eB}),[eB,ez,eT]),eq=(0,l.useMemo)(()=>(e=>{let{meshKeyword:t,schoolMeshMode:s}=e,a=[],l=t.trim();return l&&a.push("ã¡ãã·ã¥ã³ã¼ãã".concat(l,"ã")),"total"!==s&&a.push("éè¨å¯¾è±¡: ".concat(S.ND[s])),a.length>0?a.join(" / "):"ã¡ãã·ã¥ã³ã¼ããéè¨å¯¾è±¡"})({meshKeyword:eF,schoolMeshMode:P}),[eF,P]),eV=(0,l.useMemo)(()=>{let e="mesh"===d?eq:eI,t="mesh"===d?"ã¡ãã·ã¥ã³ã¼ããéè¨å¯¾è±¡":"妿 ¡åãæ ¡ç¨®ãæ¨è¨åºå",s=e===t?[]:[e];return("all"!==eT||""!==ez.trim()||""!==eB.trim())&&s.push("人æ°: ".concat(eK)),s.length>0?s.join(" / "):"".concat(t,"ã人æ°")},[eB,eq,ez,d,eI,eT,eK]),e$=(0,l.useMemo)(()=>{let e=[];for(let t of s)$(t,en)&&(0,A.t7)(t,G,q)&&e.push(t);return e.sort((e,t)=>{let s=B((0,M.FR)(e,q),(0,M.FR)(t,q));return"asc"===ey?s:-s}),e},[en,G,q,s,ey]),eY=e$.slice(0,300),eW=(0,l.useMemo)(()=>{let e=[];for(let t of n)Y(t,en)&&(0,A.cY)(t,G,P,q)&&e.push(t);return e.sort((e,t)=>{let s=B((0,A.hj)(e,P,q),(0,A.hj)(t,P,q));return"asc"===ey?s:-s}),e},[en,G,q,n,P,ey]),eG=eW.slice(0,300),eH=(0,l.useMemo)(()=>{var e;return!eM||eL||eE?null:null!=(e=null==eA?void 0:eA.polygon_geojson.features)?e:null},[eE,eL,eM,null==eA?void 0:eA.polygon_geojson.features]),eO=(0,l.useMemo)(()=>(e=>{let{schools:t,focusedLocation:s,rangeType:a,rangeValue:l,reachableAreaFeatures:n,includeCorrespondence:r}=e;if(!s||"custom"===a||K(a)&&null==n)return null;let i=[],c=new Map,o=new Map,d=null,x=0;for(let e of t){var m,h,u,p;let t={lat:e.latitude,lng:e.longitude};if(!("circle"===a?I({from:s,to:t})<=l:V({point:t,features:null!=n?n:[]})))continue;let j=(0,M.FR)(e,r);null==j?x+=1:d=(null!=d?d:0)+j,i.push(e);let y=null!=(m=c.get(e.schoolClassName))?m:{label:e.schoolClassName,schoolCount:0,missingSchoolCount:0,total:null};y.schoolCount+=1,null==j?y.missingSchoolCount+=1:y.total=(null!=(h=y.total)?h:0)+j,c.set(e.schoolClassName,y);let f=(0,M._S)(e.estimationMethod),g=null!=(u=o.get(f))?u:{label:f,schoolCount:0,missingSchoolCount:0,total:null};g.schoolCount+=1,null==j?g.missingSchoolCount+=1:g.total=(null!=(p=g.total)?p:0)+j,o.set(f,g)}let j=[...i].sort((e,t)=>
1-B((0,M.FR)(e,r),(0,M.FR)(t,r)));return{schoolCount:i.length,missingSchoolCount:x,total:0===i.length?0:d,schools:j,classBreakdown:[...c.values()].sort((e,t)=>-B(e.total,t.total)),estimationBreakdown:[...o.values()].sort((e,t)=>-B(e.total,t.total))}})({schools:s.filter(e=>(0,A.t7)(e,G,q)),focusedLocation:ex,rangeType:ec,rangeValue:eo,reachableAreaFeatures:eH,includeCorrespondence:q}),[ec,eo,G,ex,q,eH,s]),eX="mesh"===d?""!==eF.trim()||"total"!==P||q||"all"!==eT||""!==ez.trim()||""!==eB.trim():""!==eR.trim()||q||eD.length>0||"all"!==e_||"all"!==eT||""!==ez.trim()||""!==eB.trim(),eZ=async()=>{let e="mesh"===d?((e,t,s)=>{let a=e.slice(0,50).map((e,a)=>{var l,n,r,i,c,o;return[a+1,e.meshCode,null!=(l=(0,A.hj)(e,t,s))?l:"",null!=(n=e.schoolCount)?n:"",null!=(r=e.actualCount)?r:"",null!=(i=e.universityPointCount)?i:"",(0,A.me)(e,t,s),(0,A.s3)(e,t),z(e,t,s),("university"===t||"total"===t)&&null!=(c=e.universityReferenceDate)?c:"","university"===t||"total"===t?M.BX:"",null!=(o=e.dataVersion)?o:""].join(" ")});return[["é ä½ ã¡ãã·ã¥ã³ã¼ã",S.ND[t],"妿 ¡ã»å°ç¹æ° å®ãã¼ã¿æ ¡ã»å°ç¹æ° 大å¦å°ç¹æ° äººæ°æªåå¾ä»¶æ° éè¨å¯¾è±¡å¤ä»¶æ° éè¨ç¶æ
大å¦ã®åºæºæ¥ 大å¦ã®å¯¾è±¡ç¯å² ãã¼ã¿ç"].join(" "),...a].join("\n")})(eW,P,q):[D,...e$.slice(0,50).map((e,t)=>_(e,t,q))].join("\n");("mesh"===d?eW.length>0:e$.length>0)&&"undefined"!=typeof navigator&&navigator.clipboard&&(await navigator.clipboard.writeText(e),eb(!0),eC.current&&clearTimeout(eC.current),eC.current=setTimeout(()=>{eb(!1),eC.current=null},2500))},eU=ed||"åå¿å ".concat(eo.toLocaleString(),"m"),eJ=ex?eM&&eL?"".concat(eU," èªã¿è¾¼ã¿ä¸"):"".concat(eU," / 妿 ¡ã»å°ç¹æ° 0ä»¶"):"ååã®ä¸å¿æªé¸æ",eQ=async()=>{eO&&"undefined"!=typeof navigator&&navigator.clipboard&&(await navigator.clipboard.writeText((e=>{let{summary:t,rangeLabel:s,includeCorrespondence:a}=e;return[["åå",s].join(" "),["åè¨ç徿°",t.total].join(" "),["妿 ¡ã»å°ç¹æ°",t.schoolCount].join(" "),["äººæ°æªåå¾ã®å¦æ ¡ã»å°ç¹æ°",t.missingSchoolCount].join(" "),"éè¨ç¯å² èªã¿è¾¼ã¾ãã妿 ¡ã»ãã£ã³ãã¹ãã¨ã®äººæ°ãæªåå¾äººæ°ã¯åè¨ããé¤å¤ã","","æ ¡ç¨®å¥","æ ¡ç¨® 妿 ¡ã»å°ç¹æ° å
ç«¥ã»ç徿° äººæ°æªåå¾ã®å¦æ ¡ã»å°ç¹æ°",...t.classBreakdown.map(e=>[e.label,e.schoolCount,e.total,e.missingSchoolCount].join(" ")),"","æ¨è¨åºåå¥","æ¨è¨åºå 妿 ¡ã»å°ç¹æ° å
ç«¥ã»ç徿° äººæ°æªåå¾ã®å¦æ ¡ã»å°ç¹æ°",...t.estimationBreakdown.map(e=>[e.label,e.schoolCount,e.total,e.missingSchoolCount].join(" ")),"","妿 ¡ä¸è¦§",D,...t.schools.map((e,t)=>_(e,t,a))].join("\n")})({summary:eO,rangeLabel:eU,includeCorrespondence:q})),ek(!0),eS.current&&clearTimeout(eS.current),eS.current=setTimeout(()=>{ek(!1),eS.current=null},2500))},e0="mesh"===d,e1=e0?eW.length:e$.length,e2=e0?n.length:s.length,e5=e0?S.ND[P]:"å
ç«¥ã»ç徿°",e3=e0?eG:eY;return(0,a.jsxs)("div",{className:"flex h-full w-full flex-col gap-4 overflow-hidden p-4",children:[(0,a.jsx)("div",{className:"flex flex-shrink-0 items-start justify-between gap-3",children:(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{className:"text-base font-semibold text-text-primary",children:e0?"ç徿°ã¨ãªã¢ä¸è¦§":"妿 ¡ä¸è¦§"}),(0,a.jsxs)("p",{className:"mt-1 text-xs text-text-secondary",children:[e0?"ç¾å¨ã®å°å³è¡¨ç¤ºç¯å²å
ã®500mã¡ãã·ã¥":"ç¾å¨ã®å°å³è¡¨ç¤ºç¯å²å
",":"," ",e1.toLocaleString(),"ä»¶"]})]})}),(0,a.jsx)(k.Bc,{children:(0,a.jsx)("div",{className:"flex flex-shrink-0 items-center rounded-md border border-gray-100 bg-gray-50 p-1",children:T.map(e=>{let t=e.icon,s=d===e.value;return(0,a.jsxs)(k.m_,{children:[(0,a.jsx)(k.k$,{asChild:!0,children:(0,a.jsxs)("button",{type:"button",className:(0,i.cn)("flex h-8 flex-1 items-center justify-center gap-1.5 rounded-sm px-2 text-xs font-medium transition-colors",s?"bg-white-main text-main shadow-sm":"text-text-secondary hover:bg-white-main/70 hover:text-text-primary"),"aria-pressed":s,onClick:()=>X(e.value),children:[(0,a.jsx)(t,{className:"h-3.5 w-3.5"}),e.label]})}),(0,a.jsx)(k.ZI,{side:"top",className:"max-w-52 text-xs",children:e.tooltip})]},e.value)})})}),(0,a.jsx)("p",{className:"flex-shrink-0 text-[11px] leading-relaxed text-text-secondary",children:e0?"ãã¤ã³ãã¨åãv1.4ãã¼ã¿ããå°ä¸é«ã»å¤§å¦ã®äººæ°ãéè¨ãã¦ãã¾ãã大å¦ã¯å°ç¹å¥ã®é
å人æ°ã使ç¨ããäººæ°æªåå¾ã»éè¨å¯¾è±¡å¤ã¯åè¨ããé¤å¤ãã¾ãã":"èªã¿è¾¼ã¾ãã妿 ¡ã»ãã£ã³ãã¹ãã¨ã®äººæ°ã§æ¯è¼ãã¾ããå
¨å½ã®å®å
¨ãªã©ã³ãã³ã°ã§ã¯ããã¾ããã"}),(0,a.jsxs)("div",{className:"flex flex-shrink-0 flex-col overflow-hidden rounded-md border border-gray-100 bg-white-main shadow-sm",children:[(0,a.jsxs)("button",{type:"button",className:"flex w-full items-center justify-between gap-3 px-3 py-2 text-left transition-colors hover:bg-gray-50","aria-expanded":eh,onClick:()=>eu(e=>!e),children:[(0,a.jsxs)("span",{className:"flex min-w-0 items-center gap-2",children:[(0,a.jsx)(x.A,{className:"h-3.5 w-3.5 flex-shrink-0 text-main"}),(0,a.jsxs)("span",{className:"min-w-0",children:[(0,a.jsx)("span",{className:"block text-xs font-medium text-text-primary",children:"æ¤ç´¢ã»çµãè¾¼ã¿"}),(0,a.jsx)("span",{className:"mt-0.5 block truncate text-[11px] text-text-secondary",children:eV})]})]}),(0,a.jsx)(m.A,{className:(0,i.cn)("h-4 w-4 flex-shrink-0 text-text-secondary transition-transform",eh?"rotate-180":"")})]}),eh&&(0,a.jsxs)("div",{className:"space-y-3 border-t border-gray-100 bg-gray-50/70 p-3",children:[e0?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("label",{className:"space-y-1",children:[(0,a.jsx)("span",{className:"text-xs font-medium text-text-secondary",children:"ã¡ãã·ã¥ã³ã¼ãæ¤ç´¢"}),(0,a.jsx)(v.p,{value:eF,onChange:e=>Q(e.target.value),placeholder:"ã¡ãã·ã¥ã³ã¼ããå
¥å",className:"h-9 bg-white-main text-sm"})]}),(0,a.jsxs)("label",{className:"space-y-1",children:[(0,a.jsx)("span",{className:"text-xs font-medium text-text-secondary",children:"éè¨å¯¾è±¡"}),(0,a.jsxs)(w.l6,{value:P,onValueChange:e=>Z(e),children:[(0,a.jsx)(w.bq,{className:"h-9 bg-white-main text-xs",children:(0,a.jsx)(w.yv,{placeholder:"åè¨ç徿°"})}),(0,a.jsx)(w.gC,{children:Object.entries(S.ND).map(e=>{let[t,s]=e;return(0,a.jsx)(w.eb,{value:t,children:s},t)})})]})]})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("label",{className:"space-y-1",children:[(0,a.jsx)("span",{className:"text-xs font-medium text-text-secondary",children:"妿 ¡åæ¤ç´¢"}),(0,a.jsx)(v.p,{value:eR,onChange:e=>J(e.target.value),placeholder:"妿 ¡åãå
¥å",className:"h-9 bg-white-main text-sm"})]}),(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,a.jsxs)("div",{className:"space-y-1",children:[(0,a.jsx)("span",{className:"text-xs font-medium text-text-secondary",children:"æ ¡ç¨®"}),(0,a.jsxs)(N.AM,{children:[(0,a.jsx)(N.Wv,{asChild:!0,children:(0,a.jsxs)(g.$n,{type:"button",variant:"outline",className:"h-9 w-full justify-between bg-white-main px-3 text-xs font-normal",children:[(0,a.jsx)("span",{className:"truncate",children:W(eD)}),(0,a.jsx)(m.A,{className:"h-3.5 w-3.5 flex-shrink-0 text-text-secondary"})]})}),(0,a.jsxs)(N.hl,{align:"start",className:"w-56 p-2",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between gap-2 px-1 pb-2",children:[(0,a.jsx)("p",{className:"text-xs font-semibold text-text-primary",children:"æ ¡ç¨®"}),eD.length>0&&(0,a.jsx)("button",{type:"button",className:"text-[11px] font-medium text-main",onClick:()=>ee([]),children:"ãã¹ã¦"})]}),(0,a.jsx)("div",{className:"max-h-56 space-y-1 overflow-y-auto",children:eP.map(e=>(0,a.jsxs)("label",{className:"flex cursor-pointer items-center gap-2 rounded-sm px-2 py-1.5 text-xs text-text-primary hover:bg-gray-50",children:[(0,a.jsx)(b.S,{checked:eD.includes(e),onCheckedChange:t=>{et(e,!0===t)}}),(0,a.jsx)("span",{children:e})]},e))})]})]})]}),(0,a.jsxs)("label",{className:"space-y-1",children:[(0,a.jsx)("span",{className:"text-xs font-medium text-text-secondary",children:"æ¨è¨åºå"}),(0,a.jsxs)(w.l6,{value:e_,onValueChange:e=>es(e),children:[(0,a.jsx)(w.bq,{className:"h-9 bg-white-main text-xs",children:(0,a.jsx)(w.yv,{placeholder:"ãã
1¹ã¦"})}),(0,a.jsxs)(w.gC,{children:[(0,a.jsx)(w.eb,{value:"all",children:"ãã¹ã¦"}),M.HW.map(e=>(0,a.jsx)(w.eb,{value:e,children:M.uf[e]},e))]})]})]})]})]}),(0,a.jsxs)("label",{className:"flex cursor-pointer items-center gap-2 border-t border-gray-100 pt-3 text-xs text-text-primary",children:[(0,a.jsx)(b.S,{checked:q,onCheckedChange:e=>U(!0===e)}),(0,a.jsx)("span",{children:"é信課ç¨ãå«ã"})]}),(0,a.jsxs)("div",{className:"space-y-3 border-t border-gray-100 pt-3",children:[(0,a.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsx)("p",{className:"text-xs font-medium text-text-primary",children:e0?"".concat(S.ND[P],"ã®ç¯å²"):"å
ç«¥ã»ç徿°"}),(0,a.jsx)("p",{className:(0,i.cn)("mt-0.5 text-[11px]","custom"===eT?"font-medium text-main":"text-text-secondary"),children:"custom"===eT?"詳細æ¡ä»¶: ".concat(eK):eK})]}),(0,a.jsx)(g.$n,{type:"button",variant:ep?"default":"outline",size:"sm",className:"h-7 flex-shrink-0 px-2 text-xs",onClick:()=>ej(e=>!e),children:ep?"éãã":"詳細"})]}),(0,a.jsx)("div",{className:"grid grid-cols-4 gap-1.5",children:A.l5.map(e=>{let t=eT===e.value;return(0,a.jsxs)("button",{type:"button","aria-label":e.label,className:(0,i.cn)("min-h-12 rounded-md border px-1.5 py-1 text-center transition-colors",t?"border-main bg-cerulean-95 text-main":"border-gray-200 bg-white-main text-text-secondary hover:border-main hover:text-main"),onClick:()=>{ea({preset:e.value,minStudents:"",maxStudents:""})},children:[(0,a.jsx)("span",{className:"block text-xs font-semibold leading-tight",children:e.label}),(0,a.jsx)("span",{className:"mt-0.5 block text-[10px] leading-tight",children:e.description})]},e.value)})}),ep&&(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-2 rounded-md border border-gray-100 bg-white-main p-2",children:[(0,a.jsxs)("label",{className:"space-y-1",children:[(0,a.jsx)("span",{className:"text-xs font-medium text-text-secondary",children:"æå°äººæ°"}),(0,a.jsx)(v.p,{type:"number",inputMode:"numeric",min:0,value:ez,onChange:e=>{ea({preset:"custom",minStudents:e.target.value})},placeholder:"ä¾: 100",className:"h-9 bg-white-main text-sm"})]}),(0,a.jsxs)("label",{className:"space-y-1",children:[(0,a.jsx)("span",{className:"text-xs font-medium text-text-secondary",children:"æå¤§äººæ°"}),(0,a.jsx)(v.p,{type:"number",inputMode:"numeric",min:0,value:eB,onChange:e=>{ea({preset:"custom",maxStudents:e.target.value})},placeholder:"ä¾: 1000",className:"h-9 bg-white-main text-sm"})]})]})]}),eX&&(0,a.jsx)("div",{className:"flex justify-end border-t border-gray-100 pt-2",children:(0,a.jsxs)(g.$n,{type:"button",variant:"ghost",size:"sm",className:"h-8 px-2",onClick:()=>{el(),ej(!1)},children:[(0,a.jsx)(h,{className:"h-3.5 w-3.5"}),"æ¡ä»¶ããªã»ãã"]})})]})]}),(0,a.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col gap-2",children:[(0,a.jsxs)("div",{className:"flex flex-shrink-0 flex-col gap-2 rounded-md border border-gray-100 bg-white-main px-3 py-2 shadow-sm",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-xs font-medium text-text-secondary",children:"ååå
ã®ç徿°åè¨"}),(0,a.jsx)("p",{className:"mt-0.5 text-[10px] text-text-secondary",children:"èªè¾¼æ¸ã¿ãã¤ã³ãããéè¨"}),(0,a.jsx)("p",{className:"mt-0.5 text-[11px] text-text-secondary",children:eO?"".concat(eU," / 妿 ¡ã»å°ç¹æ° ").concat(eO.schoolCount.toLocaleString(),"ä»¶"):eJ})]}),(0,a.jsx)("span",{className:"flex-shrink-0 text-base font-semibold text-main",children:eO?(0,M.Y)(eO.total):"â"})]}),eO&&(0,a.jsxs)(a.Fragment,{children:[eO.missingSchoolCount>0&&(0,a.jsxs)("p",{className:"text-[11px] text-text-secondary",children:["äººæ°æªåå¾:"," ",eO.missingSchoolCount.toLocaleString(),"ä»¶ï¼åè¨ããé¤å¤ï¼"]}),(0,a.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-2 border-t border-gray-100 pt-2",children:[(0,a.jsxs)(g.$n,{type:"button",variant:"ghost",size:"sm",className:"h-7 px-2 text-xs",onClick:()=>eN(e=>!e),children:["å
訳",(0,a.jsx)(m.A,{className:(0,i.cn)("h-3.5 w-3.5 transition-transform",ev?"rotate-180":"")})]}),(0,a.jsxs)(g.$n,{type:"button",variant:"ghost",size:"sm",className:"h-7 px-2 text-xs",onClick:eQ,children:[ew?(0,a.jsx)(u.A,{className:"h-3.5 w-3.5"}):(0,a.jsx)(p.A,{className:"h-3.5 w-3.5"}),ew?"ååå
訳ãã³ãã¼ãã¾ããã":"å
訳ã³ãã¼"]})]}),ev&&(0,a.jsxs)("div",{className:"space-y-3 rounded-md bg-gray-50/80 p-2 text-xs",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"mb-1 font-semibold text-text-secondary",children:"æ ¡ç¨®å¥"}),(0,a.jsx)("div",{className:"space-y-1",children:eO.classBreakdown.map(e=>(0,a.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,a.jsxs)("span",{className:"truncate",children:[e.label," / ",e.schoolCount.toLocaleStr
1ing(),"ä»¶",e.missingSchoolCount>0&&"ï¼äººæ°æªåå¾ ".concat(e.missingSchoolCount,"ä»¶ï¼")]}),(0,a.jsx)("span",{className:"font-medium text-text-primary",children:(0,M.Y)(e.total)})]},e.label))})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"mb-1 font-semibold text-text-secondary",children:"æ¨è¨åºåå¥"}),(0,a.jsx)("div",{className:"space-y-1",children:eO.estimationBreakdown.map(e=>(0,a.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,a.jsxs)("span",{children:[e.label," / ",e.schoolCount.toLocaleString(),"ä»¶",e.missingSchoolCount>0&&"ï¼äººæ°æªåå¾ ".concat(e.missingSchoolCount,"ä»¶ï¼")]}),(0,a.jsx)("span",{className:"font-medium text-text-primary",children:(0,M.Y)(e.total)})]},e.label))})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"mb-1 font-semibold text-text-secondary",children:"妿 ¡æ
å ± ä¸ä½5ä»¶"}),(0,a.jsx)("div",{className:"space-y-1",children:eO.schools.slice(0,5).map(e=>(0,a.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,a.jsx)("span",{className:"truncate",children:(0,M.W)(e)}),(0,a.jsxs)("span",{className:"flex-shrink-0 font-medium text-text-primary",children:[e.universityEstimate&&(0,a.jsx)("span",{className:"block text-[10px] font-normal",children:"å¦é¨å¦çæ°ï¼æ¨è¨ï¼"}),(0,M.Y)((0,M.FR)(e,q))]})]},e.id))})]})]})]})]}),(0,a.jsxs)("div",{className:"flex flex-shrink-0 flex-col overflow-hidden rounded-md border border-gray-100 bg-white-main shadow-sm",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between gap-2 px-3 py-2 text-xs text-text-secondary",children:[(0,a.jsxs)("span",{children:["èªè¾¼æ¸ã¿ ",e2.toLocaleString(),"ä»¶"]}),(0,a.jsxs)(g.$n,{type:"button",variant:"ghost",size:"sm",className:"h-7 px-2 text-xs",disabled:0===e1,onClick:eZ,children:[eg?(0,a.jsx)(u.A,{className:"h-3.5 w-3.5"}):(0,a.jsx)(p.A,{className:"h-3.5 w-3.5"}),eg?"ä¸ä½50ä»¶ã³ãã¼ãã¾ããã":"ä¸ä½50ä»¶ã³ãã¼"]})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between gap-3 border-t border-gray-100 bg-gray-50/70 px-3 py-2",children:[(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsx)("p",{className:"text-[11px] text-text-secondary",children:e1>300?"å
é ".concat(300..toLocaleString(),"ä»¶ã表示"):"è¡¨ç¤ºä¸ ".concat(e3.length.toLocaleString(),"ä»¶")}),(0,a.jsxs)("p",{className:"mt-0.5 truncate text-xs font-medium text-text-primary",children:["ä¸¦ã¹æ¿ã: ",e5]})]}),(0,a.jsxs)(g.$n,{type:"button",variant:"default",size:"sm",className:"h-8 flex-shrink-0 px-2 text-xs","aria-label":"".concat(e5," ").concat("desc"===ey?"éé ":"æé "),onClick:()=>ef("desc"===ey?"asc":"desc"),children:["desc"===ey?(0,a.jsx)(j,{className:"h-4 w-4"}):(0,a.jsx)(y,{className:"h-4 w-4"}),"desc"===ey?"éé ":"æé "]})]})]}),!e0&&er<M.ag&&(0,a.jsxs)("p",{className:"rounded-md bg-amber-50 px-3 py-2 text-xs leading-relaxed text-amber-800",children:["妿 ¡ãã¤ã³ãã¯ãºã¼ã ",M.ag,"以ä¸ã§èªã¿è¾¼ã¾ãã¾ãã"]}),0===e3.length?(0,a.jsx)("div",{className:"flex flex-1 items-center justify-center rounded-md border border-dashed border-gray-200 px-4 text-center text-xs leading-relaxed text-text-secondary",children:e0?"表示ç¯å²å
ã«è©²å½ããã¨ãªã¢ãããã¾ããã":"表示ç¯å²å
ã«è©²å½ãã妿 ¡ãããã¾ããã"}):e0?(0,a.jsx)("div",{className:"min-h-0 flex-1 overflow-y-auto pr-1",children:(0,a.jsx)("div",{className:"flex flex-col gap-2",children:eG.map((e,t)=>{var s,l,n,r;let c=(0,A.hj)(e,P,q),d=(0,A.me)(e,P,q),x=(0,A.s3)(e,P),m="total"===P||"university"===P,h=(null==o?void 0:o.id)===e.id;return(0,a.jsxs)("button",{type:"button",className:(0,i.cn)("w-full rounded-md border bg-white-main p-3 text-left shadow-sm transition-colors hover:border-main hover:bg-cerulean-95",h?"border-main bg-cerulean-95":"border-gray-100"),onClick:()=>(e=>{em(),O(e),ei(e.center.lat,e.center.lng)})(e),children:[(0,a.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,a.jsx)("div",{className:"min-w-0 flex-1",children:(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:"flex h-5 w-5 flex-shrink-0 items-center justify-center rounded-full bg-main text-[11px] font-semibold text-white-main",children:t+1}),(0,a.jsxs)("p",{className:"truncate text-sm font-semibold text-text-primary",children:["ã¨ãªã¢ ",e.meshCode]})]})}),(0,a.jsxs)("div",{className:"flex flex-shrink-0 flex-col items-end gap-1",children:[(0,a.jsx)("span",{className:"text-[10px] text-text-secondary",children:S.ND[P]}),(0,a.jsx)("span",{className:"text-sm font-semibold text-main",children:(0,M.Y)(c)}),(0,a.jsx)(f,{className:"h-4 w-4 text-text-secondary"})]})]}),(0,a.jsxs)("div",{className:"mt-2 space-y-1 text-[11px] leading-relaxed text-text-secondary",children:[(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-x-3 gap-y-1",children:[(0,a.jsxs)("span",{children:["妿 ¡ã»å°ç¹æ°"," ",(0,a.jsxs)("span",{className:"font-medium text-text-primary",children:[null!=(n=null==(s=e.schoolCount)?void 0:s.toLocaleStr
1ing())?n:"â","ä»¶"]})]}),(0,a.jsxs)("span",{children:["å®ãã¼ã¿æ ¡ã»å°ç¹æ°"," ",(0,a.jsxs)("span",{className:"font-medium text-text-primary",children:[null!=(r=null==(l=e.actualCount)?void 0:l.toLocaleString())?r:"â","ä»¶"]})]})]}),m&&null!=e.universityPointCount&&(0,a.jsxs)("p",{children:["大å¦å°ç¹æ° ",e.universityPointCount.toLocaleString(),"ä»¶"]}),(d>0||x>0)&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("p",{children:["äººæ°æªåå¾: ",d.toLocaleString(),"ä»¶ / éè¨å¯¾è±¡å¤:"," ",x.toLocaleString(),"ä»¶"]}),(0,a.jsx)("p",{children:z(e,P,q)})]})]})]},e.id)})})}):(0,a.jsx)("div",{className:"min-h-0 flex-1 overflow-y-auto pr-1",children:(0,a.jsx)("div",{className:"flex flex-col gap-2",children:eY.map(e=>{var t;let s=(0,M.OP)(e.schoolClassName),l=(null==c?void 0:c.id)===e.id;return(0,a.jsxs)("button",{type:"button",className:(0,i.cn)("w-full rounded-md border bg-white-main p-3 text-left shadow-sm transition-colors hover:border-main hover:bg-cerulean-95",l?"border-main bg-cerulean-95":"border-gray-100"),onClick:()=>(e=>{em(),H(e),ei(e.latitude,e.longitude)})(e),children:[(0,a.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,a.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,a.jsx)("p",{className:"truncate text-sm font-semibold text-text-primary",children:(0,M.W)(e)}),(0,a.jsxs)("div",{className:"mt-1 flex flex-wrap items-center gap-2 text-xs text-text-secondary",children:[(0,a.jsxs)("span",{className:"flex items-center gap-1",children:[(0,a.jsx)("span",{className:"h-2.5 w-2.5 rounded-full",style:{backgroundColor:"rgba(".concat(s[0],", ").concat(s[1],", ").concat(s[2],", ").concat(s[3]/255,")")}}),e.schoolClassName]}),(0,a.jsx)("span",{children:(0,M._S)(e.estimationMethod)}),e.facultyEnrollment&&(0,a.jsx)("span",{className:"rounded bg-cerulean-95 px-1.5 py-0.5 text-[10px] text-main",children:"å¦é¨å¥äººæ°ãã"})]})]}),(0,a.jsxs)("div",{className:"flex flex-shrink-0 flex-col items-end gap-1",children:[e.universityEstimate&&(0,a.jsx)("span",{className:"text-[10px] text-text-secondary",children:"å¦é¨å¦çæ°ï¼æ¨è¨ï¼"}),(0,a.jsx)("span",{className:"text-sm font-semibold text-main",children:(0,M.Y)((0,M.FR)(e,q))}),(0,a.jsx)(f,{className:"h-4 w-4 text-text-secondary"})]})]}),!e.campusName&&(null==(t=e.universityEstimate)?void 0:t.campusAddress)&&(0,a.jsxs)("p",{className:"mt-2 text-[10px] leading-relaxed text-text-secondary",children:["æå¨å°: ",e.universityEstimate.campusAddress]})]},e.id)})})})]})]})},H=()=>{let{layerType:e}=(0,n.D)();return"school-point"===e?(0,a.jsx)(G,{}):(0,a.jsx)("div",{className:"flex h-full w-full items-center justify-center p-6 text-center text-sm text-text-secondary",children:"ãã®ã¬ã¤ã¤ã¼ã§è¡¨ç¤ºã§ããæ
å ±ã¯ããã¾ããã"})}}}]);
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.