// All material copyright ESRI, All Rights Reserved, unless otherwise specified.// See https://js.arcgis.com/4.6/esri/copyright.txt for details.//>>builtdefine("require exports ../core/tsSupport/extendsHelper ./ImmutableArray ../geometry/Point ../kernel".split(" "),function(n,p,h,k,d,l){varm=0===l.version.indexOf("4.");returnfunction(g){functionc(a,b,c,f,e,d){a=g.call(this,a)||this;a._lazyPt=[];a._hasZ=!1;a._hasM=!1;a._spRef=b;a._hasZ=c;a._hasM=f;a._cacheId=e;a._partId=d;returna}h(c,g);c.prototype.get=function(a){if(void0===this._lazyPt[a]){varb=this._elements[a];if(void0===b)return;varc=this._hasZ,f=this._hasM,e=null,e=c&&!f?newd(b[0],b[1],b[2],void0,this._spRef):f&&c?newd(b[0],b[1],void0,b[2],this._spRef):c&&f?newd(b[0],b[1],b[2],b[3],this._spRef):newd(b[0],b[1],this._spRef);m?e.cache._arcadeCacheId=this._cacheId.toString()+"-"+this._partId.toString()+"-"+a.toString():e.setCacheValue("_arcadeCacheId",this._cacheId.toString()+"-"+this._partId.toString()+"-"+a.toString());this._lazyPt[a]=e}returnthis._lazyPt[a]};c.prototype.equalityTest=function(a){returna===this?!0:null===a||!1===ainstanceofc?!1:a.getUniqueHash()===this.getUniqueHash()};c.prototype.getUniqueHash=function(){returnthis._cacheId.toString()+"-"+this._partId.toString()};returnc}(k)});