1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_astro/index.C7eEFn_4.js","_astro/index.BL7go4uS.js","_astro/signal.CNCfU7Hw.js","_astro/signal.yYMZc4L2.css","_astro/dom.CLWNH6N5.js","_astro/guid.LcV_DAvu.js","_astro/observers.CL7pjy4z.js","_astro/logger.CFD46t67.js","_astro/index.D0gPTw0l.js","_astro/customElement.C7nuMbQk.js","_astro/repeat.CcoOe1nX.js","_astro/directive-helpers.DS6Yk2X1.js","_astro/ref.D1KjxGgY.js","_astro/responsive.BU6-t1nZ.js","_astro/global.CqF7mQVL.js","_astro/locale.B2qeVV9G.js","_astro/index.Lhiybazs.js","_astro/index.DV2a7jmW.js","_astro/key.Cyh_1epf.js","_astro/array.bGYQmELK.js","_astro/useT9n.DgHKBKed.js","_astro/index.B3LrT0DQ.js","_astro/proxyExports-CXEnG2Az.Ci2qtAtz.js","_astro/useSetFocus.DmdLAgUP.js","_astro/component.DaY1qw_V.js","_astro/useInteractive.DKrGT6nQ.js","_astro/index.CIsobjr8.js"])))=>i.map(i=>d[i]); 2import{_ as n}from"./tslib.es6.DE7sHGTU.js";import{q as Oe}from"./Collection.XTGzrw0m.js";import{au as je,al as qe,n as He}from"./signal.CNCfU7Hw.js";import{a as he,l as me,h as Ce}from"./reactiveUtils.C_AXm9l7.js";import{a as c,c as F}from"./decorators.BgJOoJ7q.js";import{O as A,c as Ue}from"./Widget.BTueAbYW.js";import{_ as ke,a as We}from"./LegendViewModel.DqYpa-Av.js";import{_ as Re}from"./preload-helper.DUy5TosT.js";import{w as X,h as Ze}from"./intl.B9mfKCyc.js";import{g as ve}from"./Color.BvNzw9r7.js";import{q as Ge}from"./svgUtils.Cu1M7f7-.js";import{x as i,y as xe,v as ne}from"./widget.D60HGQRQ.js";import{u as M}from"./screenUtils.CL3Q5gEG.js";import{i as Je}from"./projector.DFSTkVWG.js";import{n as te}from"./fieldUtils.CsMvl9_d.js";import{V as Ke,k as Ie}from"./symbolUtils.Ci_d01Ki.js";import{i as ae,l as Qe}from"./Heading.CT6j1tcV.js";import{e as ue}from"./globalCss.CiED4ZoB.js";const f="esri-legend--card",le="esri-legend",d={base:f,stacked:`${le}--stacked`,carouselTitle:`${f}__carousel-title`,intervalSeparator:`${f}__interval-separator`,imageryLayerStretchedImage:`${f}__imagery-layer-image--stretched`,imageLabel:`${f}__image-label`,layerCaption:`${f}__layer-caption`,labelElement:`${f}__label-element`,layerRow:`${f}__layer-row`,labelCell:`${f}__label-cell`,message:`${f}__message`,rampLabel:`${f}__ramp-label`,section:`${f}__section`,serviceCaptionText:`${f}__service-caption-text`,serviceContent:`${f}__service-content`,service:`${f}__service`,groupLayer:`${f}__group-layer`,groupLayerChild:`${f}__group-layer-child`,symbol:`${f}__symbol`,sizeRampRow:`${f}__size-ramp-row`,symbolRow:`${f}__symbol-row`,symbolCell:`${f}__symbol-cell`,carousel:`${f}__carousel`,carouselItem:`${f}__carousel-item`,intervalSeparatorsContainer:`${f}__interval-separators-container`,relationshipLabelContainer:`${f}__relationship-label-container`,labelContainer:`${f}__label-container`,serviceCaptionContainer:`${f}__service-caption-container`,symbolContainer:`${f}__symbol-container`,colorRampContainer:`${f}__color-ramp-container`,sizeRampContainer:`${f}__size-ramp-container`,sizeRampPreview:`${f}__size-ramp-preview`,pieChartRampPreview:`${f}__pie-chart-ramp-preview`,sizeRampHorizontal:`${le}__size-ramp--horizontal`,rampLabelsContainer:`${le}__ramp-labels`,layerInfo:`${le}__layer-cell ${le}__layer-cell--info`,univariateAboveAndBelowColorRamp:"esri-univariate-above-and-below-ramp__color--card"};function Xe(e,t){return t}function L(e){const t=this;e.appendChild(t)}function O(e,t,s){if(!t)return;if(typeof t=="number")return t;if(typeof t=="string")return je(t);if("value"in t||"unit"in t)return X(e.dotValue,t);if("colorName"in t&&"bandName"in t)return e[t.colorName]+": "+(e[t.bandName]||t.bandName);if("showCount"in t)return t.showCount?e.clusterCountTitle:void 0;let l=null;return Xe(t,s)?l=t.ratioPercentTotal?"showRatioPercentTotal":t.ratioPercent?"showRatioPercent":t.ratio?"showRatio":t.normField?"showNormField":t.field?"showField":null:ze(t,s)&&(l=t.normField?"showNormField":t.normByPct?"showNormPct":t.field?"showField":null),l?X(l==="showField"?"{field}":e[l],{field:t.field,normField:t.normField}):void 0}function ze(e,t){return!t}function Fe(e,t){return!!(t&&t==="Stretched"&&"version"in e&&typeof e.ver
2sion=="number"&&e.version>=10.3&&e.declaredClass==="esri.layers.ImageryLayer")}function Ye(e,t){return e.label?t[e.label]+": "+(typeof e.value=="string"?e.value:Ze(e.value??0,{style:"decimal",notation:e.value?.toString().toLowerCase().includes("e")?"scientific":"standard"})):""}function Ae(e,t,s){switch(t){case"heatmap-ramp":return s[e.label]||e.label;case"stretch-ramp":return Ye(e,s);default:return e.label}}function Se(e,t){if(!e.title||typeof e.title=="string")return e.title;const s=e.type==="color-ramp"||e.type==="opacity-ramp",l=e.title,r=O(t,l,s);return ze(l,s)&&l.title?`${l.title} (${r})`:r}function Te(e){return!(!e||typeof e!="object")}function oe(e,t){const s=O(e,t,!1),l=s?e.previewTemplateAriaLabel:e.previewAriaLabel;return X(l,{label:s})}const et=25,tt=25,st=100;let U=class extends A{constructor(t,s){super(t,s),this.cssEffectFilter=null,this.legendElement=null,this.opacity=1}render(){const t=this.legendElement.infos.slice().reverse();return i("div",{class:this.classes(d.layerRow,d.colorRampContainer)},this._renderRampLabel(t[0]),i("div",{class:d.symbolContainer},this._renderPreview(t),this._renderMiddleStopRampLabel(t)),this._renderRampLabel(t.at(-1)))}_renderPreview(t){const{opacity:s}=this,l=this.legendElement.type==="heatmap-ramp",r=t.length-1,a=tt,o=r>2&&!l?et*r:st,h=o+20,y=10,m=[[{shape:{type:"path",path:`M0 ${a/2} L${y} 0 L${y} ${a} Z`},fill:t[0].color,stroke:{width:0}},{shape:{type:"rect",x:y,y:0,width:o,height:a},fill:{type:"linear",x1:y,y1:0,x2:o+y,y2:0,colors:t.map((g,b)=>({color:g.color,offset:l&&"ratio"in g?g.ratio:b/r}))},stroke:{width:0}},{shape:{type:"path",path:`M${o+y} 0 L${h} ${a/2} L${o+y} ${a} Z`},fill:t[t.length-1].color,stroke:{width:0}}]],v=Ge(m,h,a),u={filter:this.cssEffectFilter??void 0,opacity:s==null?void 0:`${s}`};return i("div",{styles:u},v)}_renderMiddleStopRampLabel(t){const s=t.length%2!=0?t[t.length/2|0]:null;return s?i("div",{class:d.intervalSeparatorsContainer},i("div",{class:d.intervalSeparator},"|"),this._renderRampLabel(s)):null}_renderRampLabel(t){return i("div",{class:d.rampLabel},Ae(t,this.legendElement.type,this.messages))}};n([c()],U.prototype,"cssEffectFilter",void 0),n([c()],U.prototype,"legendElement",void 0),n([c()],U.prototype,"messages",void 0),n([c()],U.prototype,"opacity",void 0),U=n([F("esri.widgets.Legend.styles.card.ColorRamp")],U);const it="#ddd",I=window.devicePixelRatio,H="esri-spike-ramp",D={spikeRampContainer:`${H}__container`,spikeRampPreviewContainer:`${H}__preview-container`,spikeRampPreview:`${H}__preview`,spikeRampSymbolPreview:`${H}__symbol-preview`,spikeRampLines:`${H}__lines`,spikeRampLabelsContainer:`${H}__labels-container`,spikeRampLabel:`${H}__label`};function Pe(e){return e.infos.length!==5?null:i("div",{class:D.spikeRampContainer},i("div",{class:D.spikeRampPreviewContainer},lt(e),rt(e)),at(e))}function lt(e){const[t,s,l]=we(e).map(({preview:r})=>{if(!r)return null;const a=r.cloneNode(!0);return a.classList.add(D.spikeRampSymbolPreview),a});return t&&s&&l?i("div",{class:D.spikeRampPreview},i("div",{afterCreate:L,bind:l}),i("div",{afterCreate:L,bind:s}),i("div",{afterCreate:L,bind:t})):null}function rt(e){const[{width:t,height:s},{width:l},{width:r,height:a}]=we(e).map(({size:j})=>Te(j)?{width:M(j.width),height:M(j.height)}:{width:0,height:0}),o=10,h=8,y=t+l+r+3*o,m=s,v=document.createElement("canvas");v.width=(y+o)*I,v.height=m*I,v.style.width=v.width/I+"px",v.style.height=v.height/I+"px";const u=v.getContext("2d");u.beginPath();const g=y-(t/2+o),b=0,R=y+h;u.moveTo(g*I,b*I),u.lineTo(R*I,0*I);const k=(y-h)/2,$=(s-a)/2,_=y+h,V=(s-a)/2;u.moveTo(k*I,$*I),u.lineTo(_*I,V*I);const B=r/2,N=m-a,C=y+h,E=m-a;return u.moveTo(B*I,N*I),u.lineTo(C*I,E*I),u.strokeStyle=it,u.lineWidth=.5*I,u.stroke(),i("div",{afterCreate:L,bind:v,class:D.spikeRampLines})}function at(e){const[{label:t,height:s},{label:l},{label:r,height:a}]=we(e).map(({label:v,size:u})=>({label:v,height:Te(u)?M(u.height):0})),o=s-a,h={position:"absolute",top:"0"},y={position:"absolute",top:o/2+"px"},m={position:"absolute",top:`${o}px`};return i("div",{class:D.spikeRampLabelsContainer},i("div",{class:D.spikeRampLabel,styles:h},t),i("div",{class:D.spikeRampLabel,styles:y},l),i("div",{class:D.spikeRampLabel,styles:m},r))}function we(e){return e.infos.filter((t,s)=>s%2==0)}const nt="#ddd",Y=window.devicePixelRatio;function ot(e){if(!e)return;if(e.type.includes("3d")){if(!e.symbolLayers?.length)return;const s=e.symbolLayers.at(-1),l=s.resource?.primitive;return l==="circle"||l==="cross"||l==="kite"||l==="sphere"||l==="cube"||l==="diamond"}const t=e.style;return t==="circle"||t==="diamond"||t==="cross"}function ct(e){if(e){if(e.type.includes("3d")){if(!e.symbolLayers?.length)return;const t=e.symbolLayers.at(-1),s=t?.resource?.primitive;return s==="triangle"||s==="cone"||s==="tetrahedron"}return e.style==="triangle"}}
2let W=class extends A{constructor(t,s){super(t,s),this.hasIndicators=!1,this.legendElement=null,this.opacity=1}render(){if(this.legendElement.theme==="spike")return i("div",{styles:{display:"flex",flex:"1",justifyContent:"center"}},Pe(this.legendElement));const{legendElement:t,hasIndicators:s,opacity:l}=this,r=t.infos,a=r.at(0),o=r.at(-1);if(!a||!o)return null;const{label:h,...y}=a,{label:m,...v}=o;let u=y.preview,g=v.preview;const b={"flex-direction":s?"column":"row-reverse"};if(!u||!g)return null;u=u.cloneNode(!0),u.style.display="flex",g=g.cloneNode(!0),g.style.display="flex";const R={opacity:`${l??""}`};return i("div",{class:this.classes(d.layerRow,{[d.sizeRampRow]:s})},i("div",{class:d.rampLabel},s?h:m),i("div",{class:d.sizeRampContainer,styles:b},i("div",{afterCreate:L,bind:u,class:d.sizeRampPreview,styles:R}),this._renderSizeRampLines(t),i("div",{afterCreate:L,bind:g,class:d.sizeRampPreview,styles:R})),i("div",{class:d.rampLabel},s?m:h))}_renderSizeRampLines(t){const s=t.infos,l=s.at(0),r=s.at(-1);if(!l||!r)return null;const a=l.symbol,o=this.hasIndicators,h=l.size&&typeof l.size=="number"?l.size:0,y=r.size&&typeof r.size=="number"?r.size:0,m=l.outlineSize||0,v=r.outlineSize||0,u=M(h+m)*Y,g=M(y+v)*Y,b=o?u:u+50*Y,R=o?u/2+50*Y:u,z=ct(a),k=ot(a),$=document.createElement("canvas");$.width=b,$.height=R,$.style.width=$.width/Y+"px",$.style.height=$.height/Y+"px";const _=$.getContext("2d");if(o){_.beginPath();const V=0,B=0,N=b/2-g/2,C=R;_.moveTo(V,B),_.lineTo(N,C);const E=b,j=0,pe=b/2+g/2,ye=R;_.moveTo(E,j),_.lineTo(pe,ye)}else{_.beginPath();const V=0,B=R/2-g/2,N=b;_.moveTo(V,B),_.lineTo(N,0);const E=0,j=R/2+g/2,pe=b,ye=R;_.moveTo(E,j),_.lineTo(pe,ye)}return _.strokeStyle=nt,_.stroke(),i("div",{afterCreate:L,bind:$,styles:o?{display:"flex",marginTop:`-${z?0:k?u/2:0}px`,marginBottom:`-${z?g:k?g/2:0}px`}:{display:"flex",marginRight:`-${z?0:k?u/2:0}px`,marginLeft:`-${z?0:k?g/2:0}px`}})}};n([c()],W.prototype,"hasIndicators",void 0),n([c()],W.prototype,"legendElement",void 0),n([c()],W.prototype,"messages",void 0),n([c()],W.prototype,"opacity",void 0),W=n([F("esri.widgets.Legend.styles.card.SizeRamp")],W);const dt=Je(),Be=10,$e=20,ce=10,_e=20,Le={univariateAboveAndBelowSymbol:"esri-univariate-above-and-below-ramp__symbol",colorRamp:"esri-legend__color-ramp"};function pt(e="vertical"){const t="stroke:rgb(200, 200, 200);stroke-width:1";return e==="vertical"?i("svg",{height:"4",width:"10"},i("line",{style:t,x1:"0",x2:"10",y1:"2",y2:"2"})):i("svg",{height:"10",width:"10"},i("line",{style:t,x1:"5",x2:"5",y1:"0",y2:"10"}))}function yt(e,t="vertical"){const s=document.createElement("div");return s.style.height=`${$e}px`,s.className=Le.univariateAboveAndBelowSymbol,e!=null&&(s.style.opacity=e.toString()),dt.append(s,pt.bind(null,t)),s}function Me(e,t,s="vertical",l){e.infos.forEach((r,a)=>{if(l&&a===2)r.preview=yt(t,s);else{const o=(te(r.size)?M(r.size):0)+(s==="horizontal"?_e:ce),h=r.preview,y=h?.tagName.toLowerCase()==="div",m=y?h:document.createElement("div");m.className=Le.univariateAboveAndBelowSymbol,s==="horizontal"?m.style.width=`${o}px`:m.style.height=`${o}px`,!y&&h&&m.appendChild(h),r.preview=m}})}function de(e,t="classic"){const s=e.infos,l=s.at(0),r=s.at(-1),a=te(l.size)?M(l.size):0,o=te(r.size)?M(r.size):0;return t==="classic"?(a+ce)/2:(a-o)/2}function se(e,t){if(!e)return null;const s=e.infos.map(r=>r.color),l=Ke(t.type==="full"?s:t.type==="above"?s.slice(0,3):s.slice(2,5),{width:t.width,height:t.height,align:t.rampAlignment,cssEffectFilter:t.cssEffectFilter,ariaLabel:t.ariaLabel});return l.className=Le.colorRamp,t.opacity!=null&&(l.style.opacity=t.opacity.toString()),l}function Ee(e,t,s,l="vertical"){let r=0;const a=e.infos,o=Math.floor(a.length/2),h=t==="full"||t==="above"?0:o,y=t==="full"||t==="below"?a.length-1:o;for(let m=h;m<=y;m++)if(s&&m===o)r+=l==="horizontal"?Be:$e;else{const v=a[m].size;r+=(te(v)?M(v):0)+(l==="horizontal"?_e:ce)}return Math.round(r)}function ie(e,t,s,l="vertical"){const r=Ee(e,t,s,l),a=e.infos,o=Math.floor(a.length/2),h=t==="full"||t==="above"?0:o,y=t==="full"||t==="below"?a.length-1:o,m=te(a[h].size)?a[h].size:0,v=te(a[y].size)?a[y].size:0,u=t==="full"?m+v:t==="above"?m:v,g=s?l==="vertical"?$e:Be:0,b=l==="vertical"?ce*(t==="full"?2:1):_e*(t==="full"?2:1);return Math.round(r-(M(u)/2+g/2+b/2))}function Ve(e,t,s="vertical"){const l=e.infos;let r=l.find(({type:o})=>o==="size-ramp"),a=l.find(({type:o})=>o==="color-ramp");return r&&(r={...r},r.infos=[...r.infos],Me(r,t,s,!0)),a&&(a={...a}
2,a.infos=[...a.infos]),s==="horizontal"&&(r?.infos.reverse(),a?.infos.reverse()),{sizeRampElement:r,colorRampElement:a}}function Ne(e,t="vertical"){const s=e.infos;let l=s.find(({type:a})=>a==="size-ramp"),r=s.find(({type:a})=>a==="color-ramp");return l&&(l={...l},l.infos=[...l.infos],Me(l,null,t,!1)),r&&(r={...r},r.infos=[...r.infos]),t==="horizontal"&&(l?.infos.reverse(),r?.infos.reverse()),{sizeRampElement:l,colorRampElement:r}}const ge={marginLeft:"3px"},ee={display:"table-cell",verticalAlign:"middle"},De={display:"flex",alignItems:"flex-start"};let Z=class extends A{constructor(t,s){super(t,s),this.cssEffectFilter=null,this.legendElement=null,this.opacity=1}render(){const{legendElement:t,opacity:s,cssEffectFilter:l,key:r}=this,{sizeRampElement:a,colorRampElement:o}=Ve(t,s,"horizontal");if(!a)return null;const h=Ee(a,"full",!0,"horizontal"),y=ie(a,"above",!0,"horizontal"),m=ie(a,"below",!0,"horizontal"),v=12,u=this.messages?.previewColorRampAriaLabel,g=se(o,{width:y,height:v,rampAlignment:"horizontal",opacity:s,type:"above",cssEffectFilter:l,ariaLabel:u}),b=se(o,{width:m,height:v,rampAlignment:"horizontal",opacity:s,type:"below",cssEffectFilter:l,ariaLabel:u}),R=de(a,"card"),z=a.infos.map(C=>C.label),k=z.length-1,$=z.map((C,E)=>E===0||E===k?i("div",{key:E},C):null),_={display:"flex",flexDirection:"column"},V={display:"flex",flexDirection:"row"},B={marginTop:"3px",display:"flex"};xe(this.container)?B.marginRight=`${R}px`:B.marginLeft=`${R}px`;const N={width:`${h}px`,display:"flex",flexDirection:"row",justifyContent:"space-between"};return i("div",{class:d.layerRow,key:`${r}-container`,styles:_},i("div",{class:this.classes(d.symbolContainer,d.sizeRampHorizontal),styles:V},a.infos.map((C,E)=>i("div",{afterCreate:L,bind:C.preview,class:d.symbol,key:E}))),g?i("div",{class:d.univariateAboveAndBelowColorRamp,key:"color-ramp-preview",styles:B},i("div",{afterCreate:L,bind:g}),i("div",{afterCreate:L,bind:b})):null,i("div",{class:d.layerInfo},i("div",{class:d.rampLabelsContainer,styles:N},$)))}};n([c()],Z.prototype,"cssEffectFilter",void 0),n([c()],Z.prototype,"legendElement",void 0),n([c()],Z.prototype,"messages",void 0),n([c()],Z.prototype,"opacity",void 0),Z=n([F("esri.widgets.Legend.styles.card.UnivariateAboveAndBelowRamp")],Z);let G=class extends A{constructor(t,s){super(t,s),this.cssEffectFilter=null,this.legendElement=null,this.opacity=1}render(){const{legendElement:t,opacity:s,cssEffectFilter:l,key:r}=this,{sizeRampElement:a,colorRampElement:o}=Ne(t,"horizontal");if(!a)return null;const h=Ee(a,"full",!1,"horizontal"),y=ie(a,"full",!1,"horizontal"),m=se(o,{width:y,height:12,rampAlignment:"horizontal",opacity:s,type:"full",cssEffectFilter:l,ariaLabel:this.messages?.previewColorRampAriaLabel}),v=de(a,"card"),u=a.infos.length-1,g=a.infos.map(($,_)=>_===0||_===u?i("div",{key:_},$.label):null),b={display:"flex",flexDirection:"column"},R={display:"flex",flexDirection:"row"},z={marginTop:"3px",display:"flex"};xe(this.container)?z.marginRight=`${v}px`:z.marginLeft=`${v}px`;const k={width:`${h}px`,display:"flex",flexDirection:"row",justifyContent:"space-between"};return i("div",{class:d.layerRow,key:`${r}-container`,styles:b},i("div",{class:this.classes(d.symbolContainer,d.sizeRampHorizontal),styles:R},a.infos.map(($,_)=>i("div",{afterCreate:L,bind:$.preview,class:d.symbol,key:_}))),i("div",{class:d.univariateAboveAndBelowColorRamp,key:"color-ramp-preview",styles:z},i("div",{afterCreate:L,bind:m})),i("div",{class:d.layerInfo},i("div",{class:d.rampLabelsContainer,styles:k},g)))}};n([c()],G.prototype,"cssEffectFilter",void 0),n([c()],G.prototype,"legendElement",void 0),n([c()],G.prototype,"messages",void 0),n([c()],G.prototype,"opacity",void 0),G=n([F("esri.widgets.Legend.styles.card.UnivariateColorSizeRamp")],G);var fe;let S=fe=class extends A{constructor(e,t){super(e,t),this.cssEffectFilter=null,this.hasIndicators=!1,this.headingLevel=3,this.isChild=!1,this.legendElement=null}render(){const e=this._renderLegendElement(),t=Se(this.legendElement,this.messages),s=this.hasIndicators&&!this.isChild?i("div",null,i(ae,{class:d.carouselTitle,level:this.headingLevel},this.activeLayerInfo.title),i(ae,{class:d.layerCaption,level:Qe(this.headingLevel)},t)):t?i(ae,{class:d.layerCaption,level:this.headingLevel},t):null;return i("section",{"aria-labelledby":this.key,class:d.section,id:`${this.key}-panel`,key:this.key,role:"tabpanel",tabIndex:0},s,e)}_renderLegendElement(){switch(this.legendElement.type){case"symbol-table":return this._renderSymbolTable(this.legendElement);case"size-ramp":return i(W,{hasIndicators:this.hasIndicators,key:this.key,legendElement:this.legendElement,messages:this.messages,opacity:this.layer.opacity});case"color-ramp":case"opacity-ramp":case"heatmap-ramp":case"stretch-ramp":return i(U,{cssEffectFilter:this.cssEffectFilter,key:this.key,legendElement:this.legendElement,messages:this.messages,opacity:this.layer.opacity});case"relationship-ramp":return Ie(this.legendElement,this.id,{opacity:this.layer.opacity,cssEffectFilter:this.cssEffectFilter,ariaLabel:this.messages.previewRelationshipRampAriaLabel,key:this.key});case"pie-chart-ramp":{const{preview:e}=this.legendElement;if(!e)return null;const t=X(this.messages.previewPieChartAriaLabel,{label:null});return t&&e.querySelector("svg")?.setAttribute("aria-label",t),i("div",{afterCreate:L,bind:e,class:d.pieChartRampPreview,key:`${this.key}-preview`})}case"univariate-above-and-below-ramp":return i(Z,{cssEffectFilter:this.cssEffectFilter,key:this.key,legendElement:this.legendElement,messages:this.messages,opacity:this.layer.opacity});case"univariate-color-size-ramp":return i(G,{cssEffectFilter:this.cssEffectFilter,key:this.key,legendElement:this.legendElement,messages:this.messages,opacity:this.layer.opacity});default:return null}}_renderSymbolTable(e){const t=e.infos.map(a=>
2this._renderElementInfo(a,e.legendType)).filter(Boolean);if(!t.length)return null;const s=this.activeLayerInfo.legendElements.some(({type:a})=>a==="relationship-ramp"),l=t[0]?.properties?.classes?.[d.symbolRow],r={[d.labelContainer]:!l&&!s,[d.relationshipLabelContainer]:s};return i("div",{class:this.classes(r)},t)}_renderElementInfo(e,t){const{layer:s}=this,l="label"in e?e.label:null,r=`${this.key}-${l}`;if("type"in e&&e.type)return i(fe,{activeLayerInfo:this.activeLayerInfo,cssEffectFilter:this.cssEffectFilter,hasIndicators:this.hasIndicators,headingLevel:this.headingLevel,isChild:!0,key:r,layer:s,legendElement:e,messages:this.messages});if(!("preview"in e&&e.preview||"src"in e&&e.src))return null;const a=Fe(s,t),o=O(this.messages,l,!1)||"";if("src"in e&&e.src)return i("div",{class:d.layerRow,key:`${r}-row`},this._renderImage(e,s,a),i("div",{class:d.imageLabel},o));if("symbol"in e&&e.preview){if(!e.symbol?.type.includes("simple-fill")){if(!e.label)return i("div",{afterCreate:L,bind:e.preview,key:`${r}-row`});const h={[d.symbolCell]:this.hasIndicators},{preview:y}=e,m="previewAriaLabel"in e?e.previewAriaLabel:null,v="label"in e?O(this.messages,e.label,!1):null,u=y.querySelector("svg"),g=oe(this.messages,m||v);return g&&u&&u.setAttribute("aria-label",g),i("div",{class:this.classes(d.layerRow,{[d.symbolRow]:this.hasIndicators}),key:`${r}-row`},i("div",{afterCreate:L,bind:y,class:this.classes(h)}),i("div",{class:this.classes(d.imageLabel,{[d.labelCell]:this.hasIndicators})},o))}return i("div",{class:d.layerRow,key:`${r}-row`},i("div",{class:d.labelElement,styles:this._getBackgroundStyles(e)},o))}return null}_getBackgroundStyles(e){const t=e.symbol,s=t.color,l=!!s?.a,r="outline"in t?t.outline:null,a=!!r?.color?.a,o=new ve(l&&s?[s.r,s.g,s.b,s.a*this.layer.opacity]:[255,255,255,0]),h=a&&r.color?new ve([r.color.r,r.color.g,r.color.b,r.color.a*this.layer.opacity]):new ve([255,255,255,0]),y=e.symbol.color?.isBright??!0,m=y?"black":"white",v=y?"rgba(255, 255, 255, .6)":"rgba(0, 0, 0, .6)";return{background:l?o.toCss(!0):"none",color:m,textShadow:`-1px -1px 0 ${v}, 3 1px -1px 0 ${v}, 4 -1px 1px 0 ${v}, 5 1px 1px 0 ${v}`,border:a?`1px solid ${h.toCss(!0)}`:"none",filter:this.cssEffectFilter??void 0}}
5_renderImage(e,t,s){const{previewAriaLabel:l,src:r,opacity:a}=e,o=O(this.messages,e.label,!1),h={[d.imageryLayerStretchedImage]:s,[d.symbol]:!s},y={opacity:`${a??t.opacity}`},m=oe(this.messages,l||o);return i("img",{alt:m,"aria-label":m,border:0,class:this.classes(h),height:e.height,src:r,styles:y,width:e.width})}};n([c()],S.prototype,"activeLayerInfo",void 0),n([c()],S.prototype,"cssEffectFilter",void 0),n([c()],S.prototype,"hasIndicators",void 0),n([c()],S.prototype,"headingLevel",void 0),n([c()],S.prototype,"isChild",void 0),n([c()],S.prototype,"layer",void 0),n([c()],S.prototype,"legendElement",void 0),n([c()],S.prototype,"messages",void 0),S=fe=n([F("esri.widgets.Legend.styles.card.LegendElement")],S);const ht=768;let T=class extends A{constructor(e,t){super(e,t),this._hasIndicators=!1,this.activeLayerInfos=null,this.headingLevel=3,this.layout="stack",this.messages=null,this.messagesCommon=null,this.type="card",this.view=null}loadDependencies(){return Ue({carousel:()=>Re(()=>import("./index.C7eEFn_4.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25])),"carousel-item":()=>Re(()=>import("./index.CIsobjr8.js").then(e=>e.i),__vite__mapDeps([26,2,3,5]))})}render(){this._hasIndicators=this.layout==="auto"&&this.view&&this.view.container.clientWidth<=ht||this.layout==="stack";const e=this._hasIndicators?this._renderCarousel():this._renderLayers(),t={[d.stacked]:this._hasIndicators};return i("div",{class:this.classes(d.base,t)},e||i("div",{class:d.message},this.messages.noLegend))}_renderCarousel(){const e=[],t=this.activeLayerInfos;if(t)for(const s of t)this._renderSections(s,e);return e.length?e.length===1?i("div",{class:d.carousel},i("div",{class:d.carouselItem},e[0])):i("calcite-carousel",{class:d.carousel,label:this.messages.carousel},e.map((s,l)=>i("calcite-carousel-item",{class:d.carouselItem,key:l,label:X(this.messagesCommon.pagination.pageText,{index:l+1,total:e.length})},s))):null}_renderLayers(){const e=this.activeLayerInfos,t=e?.toArray()?.map(s=>this._renderLegendForLayer(s)).filter(Boolean);return t?.length?t:null}_renderLegendForLayer(e){if(!e.ready)return null;if(e.children.length){const t=e.children.toArray().map(this._renderLegendForLayer,this);return i("section",{class:this.classes(d.service,d.groupLayer),key:e.layer.uid},i("div",{class:d.serviceCaptionContainer},e.title),t)}return this._renderLegendElementsForLayer(e)}_renderLegendElementsForLayer(e){const t=e.legendElements?.filter(Boolean);if(!t?.length)return null;const s=t.map(r=>i(S,{activeLayerInfo:e,cssEffectFilter:e.cssEffectFilter,hasIndicators:this._hasIndicators,headingLevel:this.headingLevel,isChild:!1,key:`${e.layer.uid}-${r.type}`,layer:e.layer,legendElement:r,messages:this.messages})),l={[d.groupLayerChild]:!!e.parent};return i("section",{class:this.classes(d.service,l),key:e.layer.uid},i("div",{class:d.serviceCaptionContainer},i("div",{class:d.serviceCaptionText},e.title)),i("div",{class:d.serviceContent},s))}_renderSections(e,t){if(!e.ready)return;if(e.children.length)for(const l of e.children)this._renderSections(l,t);const s=e.legendElements;if(s?.length)for(const l of s){const r=i(S,{activeLayerInfo:e,cssEffectFilter:e.cssEffectFilter,hasIndicators:this._hasIndicators,headingLevel:this.headingLevel,isChild:!1,key:`${e.layer.uid}-${l.type}`,layer:e.layer,legendElement:l,messages:this.messages});r&&t.push(r)}}};n([c()],T.prototype,"activeLayerInfos",void 0),n([c()],T.prototype,"headingLevel",void 0),n([c()],T.prototype,"layout",void 0),n([c(),ne("esri/widgets/Legend/t9n/Legend")],T.prototype,"messages",void 0),n([c(),ne("esri/t9n/common")],T.prototype,"messagesCommon",void 0),n([c({readOnly:!0})],T.prototype,"type",void 0),n([c()],T.prototype,"view",void 0),T=n([F("esri.widgets.Legend.styles.card.CardView")],T);const w="esri-legend",p={service:`${w}__service`,label:`${w}__service-label`,layer:`${w}__layer`,groupLayer:`${w}__group-layer`,groupLayerChild:`${w}__group-layer-child`,layerTable:`${w}__layer-table`,layerTableSizeRamp:`${w}__layer-table--size-ramp`,layerChildTable:`${w}__layer-child-table`,layerCaption:`${w}__layer-caption`,layerBody:`${w}__layer-body`,layerRow:`${w}__layer-row`,layerInfo:`${w}__layer-cell ${w}__layer-cell--info`,imageryLayerStretchedImage:`${w}__imagery-layer-image--stretched`,imageryLayerInfoStretched:`${w}__imagery-layer-info--stretched`,symbolContainer:`${w}__layer-cell ${w}
5__layer-cell--symbols`,symbol:`${w}__symbol`,rampContainer:`${w}__ramps`,sizeRamp:`${w}__size-ramp`,colorRamp:`${w}__color-ramp`,opacityRamp:`${w}__opacity-ramp`,rampLabelsContainer:`${w}__ramp-labels`,rampLabel:`${w}__ramp-label`,message:`${w}__message`,univariateAboveAndBelowLabel:"esri-univariate-above-and-below-ramp__label"},mt=24;let J=class extends A{constructor(e,t){super(e,t),this.legendElement=null,this.opacity=1}get _preview(){const e=this.legendElement.preview;if(!e)return null;const t=this.legendElement.type==="opacity-ramp"?p.opacityRamp:"";return e.className=`${p.colorRamp} ${t}`,this.opacity!=null&&(e.style.opacity=this.opacity.toString()),e}render(){const{legendElement:e,_preview:t}=this;if(!t)return null;const s={width:`${mt}px`},l={height:t.style.height},r=X(this.messages.previewColorRampAriaLabel,{label:null});return r&&t.querySelector("svg")?.setAttribute("aria-label",r),i("div",{class:p.layerRow,key:`${this.key}-row`},i("div",{class:p.symbolContainer,styles:s},i("div",{afterCreate:L,bind:t,class:p.rampContainer})),i("div",{class:p.layerInfo},i("div",{class:p.rampLabelsContainer,styles:l},e.infos.map((a,o)=>this._renderRampLabel(a,o,e.type)))))}_renderRampLabel(e,t,s){return i("div",{class:e.label?p.rampLabel:void 0,key:`${this.key}-stop-${e.label??t}-label`},Ae(e,s,this.messages))}};n([c()],J.prototype,"_preview",null),n([c()],J.prototype,"legendElement",void 0),n([c()],J.prototype,"messages",void 0),n([c()],J.prototype,"opacity",void 0),J=n([F("esri.widgets.Legend.styles.classic.ColorRamp")],J);let re=class extends A{constructor(t,s){super(t,s),this.legendElement=null}render(){const t=this.legendElement.infos.map(s=>this._renderRow(s)).filter(Boolean);return t.length?this.legendElement.theme==="spike"?Pe(this.legendElement):i("div",{class:p.layerBody},t):null}_renderRow(t){return t.preview?i("div",{class:p.layerRow,key:`${this.key}-${t.label}-row`},i("div",{class:this.classes(p.symbolContainer,p.sizeRamp)},i("div",{afterCreate:L,bind:t.preview,class:p.symbol})),i("div",{class:p.layerInfo},O(this.messages,t.label,!1)||"")):null}};n([c()],re.prototype,"legendElement",void 0),n([c()],re.prototype,"messages",void 0),re=n([F("esri.widgets.Legend.styles.classic.SizeRamp")],re);let K=class extends A{constructor(e,t){super(e,t),this.cssEffectFilter=null,this.legendElement=null,this.opacity=1}render(){const{legendElement:e,opacity:t,cssEffectFilter:s,key:l}=this,{sizeRampElement:r,colorRampElement:a}=Ve(e,t);if(!r)return null;const o=this.messages.previewColorRampAriaLabel,h=ie(r,"above",!0),y=ie(r,"below",!0),m=12,v=se(a,{width:m,height:h,rampAlignment:"vertical",opacity:t,type:"above",cssEffectFilter:s,ariaLabel:o}),u=se(a,{width:m,height:y,rampAlignment:"vertical",opacity:t,type:"below",cssEffectFilter:s,ariaLabel:o}),g=de(r),b=r.infos.map(C=>C.label),R=b.map((C,E)=>E===0?i("div",{class:C?v?p.univariateAboveAndBelowLabel:p.rampLabel:void 0,key:`${l}-color-ramp-above-label-${C??E}`},C):E===2?i("div",null):null),z=b.length-1,k=Math.floor(b.length/2),$=b.map((C,E)=>E===k||E===z?i("div",{class:C?v?p.univariateAboveAndBelowLabel:p.rampLabel:void 0,key:`${l}-color-ramp-below-label-${C??E}`},C):null),_={display:"table-cell",verticalAlign:"middle"},V={marginTop:`${g}px`},B={height:`${h}px`},N={height:`${y}px`};return i("div",{key:`${l}-container`,styles:De},i("div",{class:p.layerBody},r.infos.map((C,E)=>i("div",{class:this.classes(p.layerRow,p.sizeRamp),key:`${l}-row-${E}`},i("div",{afterCreate:L,bind:C.preview,class:p.symbol,styles:_}),v||E%2!=0?null:i("div",{class:p.layerInfo},b[E])))),v?i("div",{styles:V},i("div",{styles:ge},i("div",{styles:ee},i("div",{afterCreate:L,bind:v,class:p.rampContainer})),i("div",{styles:ee},i("div",{class:p.rampLabelsContainer,styles:B},R))),i("div",{styles:ge},i("div",{styles:ee},i("div",{afterCreate:L,bind:u,class:p.rampContainer})),i("div",{styles:ee},i("div",{class:p.rampLabelsContainer,styles:N},$)))):null)}};n([c()],K.prototype,"cssEffectFilter",void 0),n([c()],K.prototype,"legendElement",void 0),n([c()],K.prototype,"messages",void 0),n([c()],K.prototype,"opacity",void 0),K=n([F("esri.widgets.Legend.styles.classic.UnivariateAboveAndBelowRamp")],K);
5let Q=class extends A{constructor(t,s){super(t,s),this.cssEffectFilter=null,this.legendElement=null,this.opacity=1}render(){const{legendElement:t,opacity:s,cssEffectFilter:l,key:r}=this,{sizeRampElement:a,colorRampElement:o}=Ne(t);if(!a)return null;const h=de(a),y=12,m=ie(a,"full",!1),v=se(o,{width:y,height:m,rampAlignment:"vertical",opacity:s,type:"full",cssEffectFilter:l,ariaLabel:this.messages?.previewColorRampAriaLabel}),u=a.infos.length-1,g=a.infos.map((k,$)=>$===0||$===u?i("div",{class:k.label?o?p.univariateAboveAndBelowLabel:p.rampLabel:void 0,key:`${r}-color-ramp-label-${k.label??$}`},k.label):null),b={display:"table-cell",verticalAlign:"middle"},R={marginTop:`${h}px`},z={height:`${m}px`};return i("div",{key:`${r}-container`,styles:De},i("div",{class:p.layerBody},a.infos.map((k,$)=>i("div",{class:this.classes(p.layerRow,p.sizeRamp),key:`${r}-row-${$}`},i("div",{afterCreate:L,bind:k.preview,class:p.symbol,styles:b})))),i("div",{styles:R},i("div",{styles:ge},i("div",{styles:ee},i("div",{afterCreate:L,bind:v,class:p.rampContainer})),i("div",{styles:ee},i("div",{class:p.rampLabelsContainer,styles:z},g)))))}};n([c()],Q.prototype,"cssEffectFilter",void 0),n([c()],Q.prototype,"legendElement",void 0),n([c()],Q.prototype,"messages",void 0),n([c()],Q.prototype,"opacity",void 0),Q=n([F("esri.widgets.Legend.styles.classic.UnivariateColorSizeRamp")],Q);var be;let q=be=class extends A{constructor(e,t){super(e,t),this.cssEffectFilter=null,this.isChild=!1,this.legendElement=null}render(){const e=this._renderLegendElement(),t=Se(this.legendElement,this.messages),s=this.isChild?p.layerChildTable:p.layerTable,l=t?i("div",{class:p.layerCaption},t):null,r={[p.layerTableSizeRamp]:this.legendElement.type==="size-ramp"||!this.isChild};return i("section",{class:this.classes(s,r),key:`${this.key}-table`},l,e)}_renderLegendElement(){switch(this.legendElement.type){case"symbol-table":return this._renderSymbolTable(this.legendElement);case"size-ramp":return i(re,{key:this.key,legendElement:this.legendElement,messages:this.messages});case"color-ramp":case"opacity-ramp":case"heatmap-ramp":case"stretch-ramp":return i(J,{key:this.key,legendElement:this.legendElement,messages:this.messages,opacity:this.layer.opacity});case"relationship-ramp":return Ie(this.legendElement,this.id,{opacity:this.layer.opacity,cssEffectFilter:this.cssEffectFilter,ariaLabel:this.messages.previewRelationshipRampAriaLabel,key:this.key});case"pie-chart-ramp":{const{preview:e}=this.legendElement;if(!e)return null;const t=X(this.messages.previewPieChartAriaLabel,{label:null});return t&&e.querySelector("svg")?.setAttribute("aria-label",t),i("div",{afterCreate:L,bind:e,key:`${this.key}-preview`})}case"univariate-above-and-below-ramp":return i(K,{cssEffectFilter:this.cssEffectFilter,key:this.key,legendElement:this.legendElement,messages:this.messages,opacity:this.layer.opacity});case"univariate-color-size-ramp":return i(Q,{cssEffectFilter:this.cssEffectFilter,key:this.key,legendElement:this.legendElement,messages:this.messages,opacity:this.layer.opacity});default:return null}}_renderSymbolTable(e){const t=e.infos.map(s=>this._renderElementInfo(s,e.legendType)).filter(Boolean);return t.length?i("div",{class:p.layerBody},t):null}_renderElementInfo(e,t){const{layer:s}=this,l="label"in e?e.label:null,r=`${this.key}-${l}`;if("type"in e&&e.type)return i(be,{cssEffectFilter:this.cssEffectFilter,isChild:!0,key:r,layer:s,legendElement:e,messages:this.messages});if(!("preview"in e&&e.preview||"src"in e&&e.src))return null;const a=Fe(s,t),o={[p.imageryLayerInfoStretched]:a},h={[p.imageryLayerInfoStretched]:a};return i("div",{class:p.layerRow,key:`${r}-row`},i("div",{class:this.classes(p.symbolContainer,h)},this._renderPreview(e,a)),i("div",{class:this.classes(p.layerInfo,o)},O(this.messages,l,!1)||""))}_renderPreview(e,t){const{layer:s}=this;if("preview"in e&&e.preview){const{preview:l}=e,r="previewAriaLabel"in e?e.previewAriaLabel:null,a="label"in e?O(this.messages,e.label,!1):null,o=l.querySelector("svg"),h=oe(this.messages,r||a);return h&&o&&o.setAttribute("aria-label",h),i("div",{afterCreate:L,bind:l,class:p.symbol})}return"src"in e&&e.src?this._renderImage(e,s,t):null}
5_renderImage(e,t,s){const{previewAriaLabel:l,src:r,opacity:a}=e,o=O(this.messages,e.label,!1),h={[p.imageryLayerStretchedImage]:s,[p.symbol]:!s},y={opacity:`${a??t.opacity}`},m=oe(this.messages,l||o);return i("img",{alt:m,"aria-label":m,border:0,class:this.classes(h),height:e.height,src:r,styles:y,width:e.width})}};n([c()],q.prototype,"cssEffectFilter",void 0),n([c()],q.prototype,"isChild",void 0),n([c()],q.prototype,"layer",void 0),n([c()],q.prototype,"legendElement",void 0),n([c()],q.prototype,"messages",void 0),q=be=n([F("esri.widgets.Legend.styles.classic.LegendElement")],q);const vt=`${w}__`;let P=class extends A{constructor(e,t){super(e,t),this.activeLayerInfos=null,this.headingLevel=3,this.messages=null,this.type="classic"}render(){const e=this.activeLayerInfos,t=e?.toArray().map(s=>this._renderLegendForLayer(s)).filter(Boolean);return t?.length?i("section",null,t):i("div",{class:p.message,key:"no-legend"},this.messages.noLegend)}_renderLegendForLayer(e,t){if(!e.ready)return null;const s=`${e.layer.uid}-version-${e.version}`,l=`${vt}${t?`${t}-`:""}${s}`,r=e.title?ae({level:this.headingLevel,class:this.classes(ue.heading,p.label)},e.title):null;if(e.children.length){const a=e.children.toArray().map(o=>this._renderLegendForLayer(o,s));return i("section",{class:this.classes(p.service,p.groupLayer),key:l},r,a)}return this._renderLegendElementsForLayer(e,r,l)}_renderLegendElementsForLayer(e,t,s){const l=e.legendElements?.filter(Boolean);if(!l?.length)return null;const r=l.map(o=>i(q,{cssEffectFilter:e.cssEffectFilter,isChild:!1,key:`${s}-${o.type}`,layer:e.layer,legendElement:o,messages:this.messages})),a={[p.groupLayerChild]:!!e.parent};return i("section",{class:this.classes(p.service,a),key:s},t,i("div",{class:p.layer},r))}};n([c()],P.prototype,"activeLayerInfos",void 0),n([c()],P.prototype,"headingLevel",void 0),n([c(),ne("esri/widgets/Legend/t9n/Legend")],P.prototype,"messages",void 0),n([c({readOnly:!0})],P.prototype,"type",void 0),P=n([F("esri.widgets.Legend.styles.classic.ClassicView")],P);const ut={base:"esri-legend"};let x=class extends A{constructor(e,t){super(e,t),this.headingLevel=3,this.messages=null,this.viewModel=new ke,this.style=new P,qe(He.getLogger(this),"Legend","arcgis-legend",{version:"4.34"})}initialize(){this.addHandles([he(()=>this.view,"resize",()=>this.scheduleRender()),he(()=>this.activeLayerInfos,"change",()=>this._refreshActiveLayerInfos(this.activeLayerInfos)),me(()=>this.headingLevel,e=>{const{style:t}=this;t&&(t.headingLevel=e)}),me(()=>this.style,(e,t)=>{t&&e!==t&&t.destroy(),e&&(e.activeLayerInfos=this.activeLayerInfos,e.type==="card"&&(e.view=this.view),e.headingLevel=this.headingLevel)},Ce)])}destroy(){this.style?.destroy()}get activeLayerInfos(){return this.viewModel.activeLayerInfos}set activeLayerInfos(e){this.viewModel.activeLayerInfos=e}get basemapLegendVisible(){return this.viewModel.basemapLegendVisible}set basemapLegendVisible(e){this.viewModel.basemapLegendVisible=e}get groundLegendVisible(){return this.viewModel.groundLegendVisible}set groundLegendVisible(e){this.viewModel.groundLegendVisible=e}get hideLayersNotInCurrentView(){return this.viewModel.hideLayersNotInCurrentView}set hideLayersNotInCurrentView(e){this.viewModel.hideLayersNotInCurrentView=e}get keepCacheOnDestroy(){return this.viewModel.keepCacheOnDestroy}set keepCacheOnDestroy(e){this.viewModel.keepCacheOnDestroy=e}get respectLayerDefinitionExpression(){return this.viewModel.respectLayerDefinitionExpression}set respectLayerDefinitionExpression(e){this.viewModel.respectLayerDefinitionExpression=e}get respectLayerVisibility(){return this.viewModel.respectLayerVisibility}set respectLayerVisibility(e){this.viewModel.respectLayerVisibility=e}get icon(){return"legend"}set icon(e){this._overrideIfSome("icon",e)}get label(){return this.messages?.widgetLabel??""}set label(e){this._overrideIfSome("label",e)}get layerInfos(){return this.viewModel.layerInfos}set layerInfos(e){this.viewModel.layerInfos=e}get style(){return this._get("style")}set style(e){const t=this._get("style");if(e!==t&&t?.destroy(),!(e instanceof T||e instanceof P))if(typeof e=="string")e=e==="card"?new T:new P;else if(e&&typeof e.type=="string"){const s={...e};delete s.type,e=e.type==="card"?new T(s):new P(s)}else e=new P;this._set("style",e)}get view(){return this.viewModel.view}set view(e){this.viewModel.view=e}render(){return i("div",{class:this.classes(ut.base,ue.widget,this.style instanceof P?ue.panel:null)},this.style.render())}_refreshActiveLayerInfos(e){e.forEach(t=>{this.removeHandles(`version_${t.layer.uid}`),this._renderOnActiveLayerInfoChange(t)}
5),this.scheduleRender()}_renderOnActiveLayerInfoChange(e){const t=me(()=>e.version,()=>this.scheduleRender());this.addHandles(t,`version_${e.layer.uid}`);const s=he(()=>e.children,"change",()=>e.children.forEach(l=>this._renderOnActiveLayerInfoChange(l)),Ce);this.addHandles(s,`version_${e.layer.uid}`),e.children.forEach(l=>this._renderOnActiveLayerInfoChange(l))}};n([c({type:Oe.ofType(We)})],x.prototype,"activeLayerInfos",null),n([c()],x.prototype,"basemapLegendVisible",null),n([c()],x.prototype,"groundLegendVisible",null),n([c()],x.prototype,"headingLevel",void 0),n([c()],x.prototype,"hideLayersNotInCurrentView",null),n([c()],x.prototype,"keepCacheOnDestroy",null),n([c()],x.prototype,"respectLayerDefinitionExpression",null),n([c()],x.prototype,"respectLayerVisibility",null),n([c()],x.prototype,"icon",null),n([c()],x.prototype,"label",null),n([c()],x.prototype,"layerInfos",null),n([c(),ne("esri/widgets/Legend/t9n/Legend")],x.prototype,"messages",void 0),n([c()],x.prototype,"style",null),n([c()],x.prototype,"view",null),n([c({type:ke})],x.prototype,"viewModel",void 0),x=n([F("esri.widgets.Legend")],x);const gt=x,jt=Object.freeze(Object.defineProperty({__proto__:null,default:gt},Symbol.toStringTag,{value:"Module"}));export{jt as L,Fe as a,Ve as b,Ne as g,se as h,O as i,ze as l,L as t,de as v,gt as w,ie as y};
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.