// All material copyright Esri, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.30/esri/copyright.txt for details. //>>built define("./chunks/tslib.es6 ./geometry ./PopupTemplate ./symbols ./core/Clonable ./core/deprecate ./core/JSONSupport ./core/Logger ./core/reactiveUtils ./core/uid ./core/accessorSupport/decorators/property ./core/has ./core/RandomLCG ./core/accessorSupport/decorators/subclass ./geometry/support/jsonUtils".split(" "),function(e,p,q,r,d,t,k,u,l,m,f,w,x,v,n){var h;d=h=class extends d.ClonableMixin(k.JSONSupport){constructor(a){super(a);this.isAggregate=!1;this.sourceLayer=this.popupTemplate=this.origin= this.layer=null;Object.defineProperty(this,"uid",{value:m.generateUID(),configurable:!0});Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1});1"mesh"===this.geometry?.type&&this.geometry.vertexSpace.origin?{localMatrix:this.geometry.transform?.localMatrix,origin:this.geometry.vertexSpace.origin}:void 0,({localMatrix:a, origin:b})=>{if(this._lastMeshTransform.localMatrix!==a||this._lastMeshTransform.origin!==b)this._lastMeshTransform.localMatrix=a,this._lastMeshTransform.origin=b,this.notifyMeshTransformChanged()}),l.when(()=>"mesh"===this.geometry?.type?{vertexAttributes:this.geometry.vertexAttributes}:void 0,()=>{const a=this.geometry;"mesh"===a?.type&&a.vertexSpace.origin?(this._lastMeshTransform.localMatrix=a.transform?.localMatrix,this._lastMeshTransform.origin=a.vertexSpace.origin):(this._lastMeshTransform.localMatrix= void 0,this._lastMeshTransform.origin=void 0);this._notifyLayer("geometry",this.geometry,this.geometry)},{equals:(a,b)=>a===b,sync:!0})])}};e.__decorate([f.property({value:null,json:{read:function(a){if(!a)return null;const b={};for(const c in a){const g=n.fromJSON(a[c]);g&&(b[c]=g)}return 0!==Object.keys(b).length?b:null}}})],d.prototype,"aggregateGeometries",null);e.__decorate([f.property({value:null})],d.prototype,"attributes",null);e.__decorate([f.property({value:null,types:p.geometryTypes,json:{read:n.fromJSON}})], d.prototype,"geometry",null);e.__decorate([f.property({type:Boolean})],d.prototype,"isAggregate",void 0);e.__decorate([f.property({clonable:"reference"})],d.prototype,"layer",void 0);e.__decorate([f.property({clonable:"reference"})],d.prototype,"origin",void 0);e.__decorate([f.property({type:q})],d.prototype,"popupTemplate",void 0);e.__decorate([f.property({clonable:"reference"})],d.prototype,"sourceLayer",void 0);e.__decorate([f.property({value:null,types:r.symbolTypes})],d.prototype,"symbol",null); e.__decorate([f.property({type:Boolean,value:!0})],d.prototype,"visible",null);d=h=e.__decorate([v.subclass("esri.Graphic")],d);(d||={}).generateUID=m.generateUID;return d});