(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4e3aac9c"],{"5abb":function(e,t,s){"use strict";s.d(t,"a",(function(){return u}));var i=s("a4ee"),a=s("9ef0"),l=s("8d60"),o=s("fc29"),n=s("38a4"),r=s("b2b2"),c=s("59b2"),h=(s("b50f"),s("c120"),s("cea0"),s("d386")),b=s("7533"),d=s("0d76"),y=s("21ba"),p=s("a957");const g=[[0,179,255],[117,62,128],[0,104,255],[215,189,166],[32,0,193],[98,162,206],[102,112,129],[52,125,0],[142,118,246],[138,83,0],[92,122,255],[122,55,83],[0,142,255],[81,40,179],[0,200,244],[13,24,127],[0,170,147],[19,58,241],[22,44,35]];let u=class extends o["a"]{constructor(e){super(e),this.updating=!1,this.enablePolygons=!0,this.enableLabels=!0,this._polygons=new Map,this._labels=new Map,this._enabled=!0}initialize(){this._symbols=g.map(e=>new d["a"]({color:[e[0],e[1],e[2],.6],outline:{color:"black",width:1}})),this.update()}destroy(){this._enabled=!1,this.clear()}get enabled(){return this._enabled}set enabled(e){this._enabled!==e&&(this._enabled=e,this.update())}update(){if(!this._enabled)return void this.clear();const e=e=>{if(Object(r["k"])(e.label))return e.label;let t=e.lij.toString();return Object(r["k"])(e.loadPriority)&&(t+=` (${e.loadPriority})`),t},t=this.getTiles(),s=new Array,i=new Set((this._labels.size,this._labels.keys()));t.forEach((o,c)=>{const h=o.lij.toString();i.delete(h);const d=o.lij[0],g=o.geometry;if(this.enablePolygons&&!this._polygons.has(h)){const e=new l["a"]({geometry:g,symbol:this._symbols[d%this._symbols.length]});this._polygons.set(h,e),s.push(e)}if(this.enableLabels){const i=e(o),d=c/(t.length-1),u=Object(n["l"])(0,200,d),w=Object(n["l"])(20,6,d)/.75,O=Object(r["k"])(o.loadPriority)&&o.loadPriority>=t.length,f=new a["a"]([u,O?0:u,O?0:u]),_="3d"===this.view.type?()=>new b["a"]({verticalOffset:{screenLength:40/.75},callout:{type:"line",color:"white",border:{color:"black"}},symbolLayers:[new p["a"]({text:i,halo:{color:"white",size:1/.75},material:{color:f},size:w})]}):()=>new y["a"]({text:i,haloColor:"white",haloSize:1/.75,color:f,size:w});if(this._labels.has(h)){const e=this._labels.get(h),t=_();(Object(r["j"])(e.symbol)||JSON.stringify(t)!==JSON.stringify(e.symbol))&&(e.symbol=t)}else{const e=new l["a"]({geometry:g.extent.center,symbol:_()});this._labels.set(h,e),s.push(e)}}});const o=new Array;i.forEach(e=>{this._polygons.has(e)&&(o.push(this._polygons.get(e)),this._polygons.delete(e)),this._labels.has(e)&&(o.push(this._labels.get(e)),this._labels.delete(e))}),this.view.graphics.removeMany(o),this.view.graphics.addMany(s)}clear(){this.view.graphics.removeMany(Array.from(this._polygons.values())),this.view.graphics.removeMany(Array.from(this._labels.values())),this._polygons.clear(),this._labels.clear()}};Object(i["a"])([Object(c["b"])({constructOnly:!0})],u.prototype,"view",void 0),Object(i["a"])([Object(c["b"])({readOnly:!0})],u.prototype,"updating",void 0),Object(i["a"])([Object(c["b"])()],u.prototype,"enabled",null),u=Object(i["a"])([Object(h["a"])("esri.views.support.TileTreeDebugger")],u)},"8e365":function(e,t,s){"use strict";s.r(t),s.d(t,"FeatureTileTree3DDebugger",(function(){return b})),s.d(t,"default",(function(){return d}));var i=s("a4ee"),a=(s("e06a"),s("af40")),l=s("477c"),o=s("59b2"),n=(s("b50f"),s("c120"),s("cea0"),s("d386")),r=s("5abb"),c=s("d347"),h=s("1219");let b=class extends r["a"]{constructor(e){super(e),this.watchUpdatingTracking=new c["a"],this.handles=new a["a"]}initialize(){const{featureTiles:e}=this.view;this.handles.add(e.addClient()),this.watchUpdatingTracking.addOnCollectionChange(()=>null==e?void 0:e.tiles,()=>this.update(),l["a"])}destroy(){this.handles&&(this.handles.destroy(),this.handles=null),this.watchUpdatingTracking.destroy()}getTiles(){const e=e=>{const[t,s,i]=e.lij;return h["a"].fromExtent(this.view.featureTiles.tilingScheme.getExtentGeometry(t,s,i))};return this.view.featureTiles.tiles.toArray().sort((e,t)=>e.loadPriority-t.loadPriority).map(t=>({...t,geometry:e(t)}))}};Object(i["a"])([Object(o["b"])({readOnly:!0})],b.prototype,"watchUpdatingTracking",void 0),Object(i["a"])([Object(o["b"])({readOnly:!0,aliasOf:"watchUpdatingTracking.updating"})],b.prototype,"updating",void 0),Object(i["a"])([Object(o["b"])()],b.prototype,"view",void 0),b=Object(i["a"])([Object(n["a"])("esri.views.3d.layers.support.FeatureTileTree3DDebugger")],b);const d=b}}]); //# sourceMappingURL=chunk-4e3aac9c.247ba895.js.map