????
Current Path : C:/inetpub/vhost/binhdinhinvest.gdtvietnam.com/www/ |
Current File : C:/inetpub/vhost/binhdinhinvest.gdtvietnam.com/www/81.fa94ea101310fdb14642.js |
(function(){var e={"esri/core/libs/quickselect/quickselect":"FT4I","esri/layers/graphics/sources/support/MemorySourceWorker":"fhRm","esri/core/libs/rbush/rbush":"jEml"},t=this||window,i=t.webpackJsonp=t.webpackJsonp||[];i.registerAbsMids?i.registerAbsMids(e):(i.absMidsWaiting=i.absMidsWaiting||[]).push(e)})(),(window.webpackJsonp=window.webpackJsonp||[]).push([[81],{FT4I:function(e,t,i){var n;void 0===(n=(function(){"use strict";function e(e,t,i){var n=e[t];e[t]=e[i],e[i]=n}function t(e,t){return e<t?-1:e>t?1:0}return function(i,n,r,a,s){!function t(i,n,r,a,s){for(;a>r;){if(a-r>600){var o=a-r+1,l=n-r+1,u=Math.log(o),h=.5*Math.exp(2*u/3),d=.5*Math.sqrt(u*h*(o-h)/o)*(l-o/2<0?-1:1);t(i,n,Math.max(r,Math.floor(n-l*h/o+d)),Math.min(a,Math.floor(n+(o-l)*h/o+d)),s)}var c=i[n],f=r,p=a;for(e(i,r,n),s(i[a],c)>0&&e(i,r,a);f<p;){for(e(i,f,p),f++,p--;s(i[f],c)<0;)f++;for(;s(i[p],c)>0;)p--}0===s(i[r],c)?e(i,r,p):e(i,++p,a),p<=n&&(r=p+1),n<=p&&(a=p-1)}}(i,n,r||0,a||i.length-1,s||t)}}).apply(null,[]))||(e.exports=n)},fhRm:function(e,t,i){var n,r;n=[i.dj.c(e.i),t,i("zOht"),i("ma1f"),i("qMld"),i("Lzvl"),i("nrlZ"),i("+6sX"),i("rfv1"),i("Q2Em"),i("ZooB"),i("DaHD"),i("jJpZ"),i("I90O"),i("Q3lp"),i("k7g7")],void 0===(r=(function(e,t,i,n,r,a,s,o,l,u,h,d,c,f,p,m){Object.defineProperty(t,"__esModule",{value:!0});var y=s.WGS84,g={xmin:-180,ymin:-90,xmax:180,ymax:90,spatialReference:s.WGS84},_={hasAttachments:!1,capabilities:"query, editing, create, delete, update",useStandardizedQueries:!0,supportsCoordinatesQuantization:!0,supportsReturningQueryGeometry:!0,advancedQueryCapabilities:{supportsQueryAttachments:!1,supportsStatistics:!0,supportsPercentileStatistics:!0,supportsReturningGeometryCentroid:!0,supportsQueryWithDistance:!0,supportsDistinct:!0,supportsReturningQueryExtent:!0,supportsReturningGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsQueryWithResultType:!1,supportsSqlExpression:!0,supportsDisjointSpatialRel:!0}};function x(e){return a.isPoint(e)?null!=e.z:!!e.hasZ}function v(e){return a.isPoint(e)?null!=e.m:!!e.hasM}var b=function(){function e(){this._queryEngine=null,this._nextObjectId=null}return e.prototype.destroy=function(){this._queryEngine&&this._queryEngine&&this._queryEngine.destroy(),this._queryEngine=this._requiredFields=this._fieldsIndex=this._createDefaultAttributes=null},e.prototype.load=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,r,a,s,o,c,x,v,b,F,I,M,E,j,T,R,w,B,X,Y,q,D,S,O,k;return i.__generator(this,(function(A){switch(A.label){case 0:if(t=[],a=this._inferLayerProperties(r=e.features,e.fields),s=e.fields||[],o=null!=e.hasM?e.hasM:a.hasM,c=null!=e.hasZ?e.hasZ:a.hasZ,v=(x=!e.spatialReference&&!a.spatialReference)?y:e.spatialReference||a.spatialReference,b=x?g:null,F=e.geometryType||a.geometryType,I=e.objectIdField||a.objectIdField,M=e.timeInfo,x&&t.push({name:"feature-layer:spatial-reference-not-found",message:"Spatial reference not provided or found in features. Defaults to WGS84"}),!F)throw new n("feature-layer:missing-property","geometryType not set and couldn't be inferred from the provided features");if(!I)throw new n("feature-layer:missing-property","objectIdField not set and couldn't be found in the provided fields");for(a.objectIdField&&I!==a.objectIdField&&(t.push({name:"feature-layer:duplicated-oid-field",message:'Provided objectIdField "'+I+'" doesn\'t match the field name "'+a.objectIdField+'", found in the provided fields'}),I=a.objectIdField),I&&!a.objectIdField&&(E=null,s.some((function(e){return e.name===I&&(E=e,!0)}))?(E.type="esriFieldTypeOID",E.editable=!1,E.nullable=!1):s.unshift({alias:I,name:I,type:"esriFieldTypeOID",editable:!1,nullable:!1})),j=0,T=s;j<T.length;j++){if(null==(X=T[j]).name&&(X.name=X.alias),null==X.alias&&(X.alias=X.name),!X.name)throw new n("feature-layer:invalid-field-name","field name is missing",{field:X});if(X.name===I&&(X.type="esriFieldTypeOID"),-1===p.kebabDict.jsonValues.indexOf(X.type))throw new n("feature-layer:invalid-field-type",'invalid type for field "'+X.name+'"',{field:X})}for(R={},this._requiredFields=[],w=0,B=s;w<B.length;w++)"esriFieldTypeOID"!==(X=B[w]).type&&"esriFieldTypeGlobalID"!==X.type&&(X.editable=null==X.editable||!!X.editable,X.nullable=null==X.nullable||!!X.nullable,Y=m.getFieldDefaultValue(X),X.nullable||void 0!==Y?R[X.name]=Y:this._requiredFields.push(X));return this._fieldsIndex=new f(s),this._createDefaultAttributes=d.createDefaultAttributesFunction(R,I),M&&(M.startTimeField&&((q=this._fieldsIndex.get(M.startTimeField))?(M.startTimeField=q.name,q.type="esriFieldTypeDate"):M.startTimeField=null),M.endTimeField&&((D=this._fieldsIndex.get(M.endTimeField))?(M.endTimeField=D.name,D.type="esriFieldTypeDate"):M.endTimeField=null),M.trackIdField&&((S=this._fieldsIndex.get(M.trackIdField))?M.trackIdField=S.name:(M.trackIdField=null,t.push({name:"feature-layer:invalid-timeInfo-trackIdField",message:"trackIdField is missing",details:{timeInfo:M}}))),M.startTimeField||M.endTimeField||(t.push({name:"feature-layer:invalid-timeInfo",message:"startTimeField and endTimeField are missing or invalid",details:{timeInfo:M}}),M=null)),O={warnings:t,featureErrors:[],layerDefinition:i.__assign(i.__assign({},_),{drawingInfo:d.createDrawingInfo(F),templates:d.createDefaultTemplate(R),extent:b,geometryType:F,objectIdField:I,fields:s,hasZ:!!c,hasM:!!o,timeInfo:M}),assignedObjectIds:{}},this._queryEngine=new h.default({fields:s,geometryType:F,hasM:o,hasZ:c,objectIdField:I,spatialReference:v,featureStore:new l.default({geometryType:F,hasM:o,hasZ:c}),timeInfo:M}),r&&r.length?(k=r.reduce((function(e,t){var i=t.attributes&&t.attributes[I];return null==i||isNaN(i)||!isFinite(i)?e:Math.max(e,i)}),0),this._nextObjectId=1+k,[4,u.checkProjectionSupport(r,v)]):(this._nextObjectId=1,[2,O]);case 1:return A.sent(),[2,this._loadInitialFeatures(O,r)]}}))}))},e.prototype.applyEdits=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n;return i.__generator(this,(function(i){switch(i.label){case 0:return[4,r.all([c.loadGeometryEngineForSimplify(n=(t=this._queryEngine).spatialReference,t.geometryType),u.checkProjectionSupport(e.adds,n),u.checkProjectionSupport(e.updates,n)])];case 1:return i.sent(),[2,this._applyEdits(e)]}}))}))},e.prototype.queryFeatures=function(e,t){return void 0===t&&(t={}),i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(i){return[2,this._queryEngine.executeQuery(e,t.signal)]}))}))},e.prototype.queryFeatureCount=function(e,t){return void 0===t&&(t={}),i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(i){return[2,this._queryEngine.executeQueryForCount(e,t.signal)]}))}))},e.prototype.queryObjectIds=function(e,t){return void 0===t&&(t={}),i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(i){return[2,this._queryEngine.executeQueryForIds(e,t.signal)]}))}))},e.prototype.queryExtent=function(e,t){return void 0===t&&(t={}),i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(i){return[2,this._queryEngine.executeQueryForExtent(e,t.signal)]}))}))},e.prototype._inferLayerProperties=function(e,t){for(var i=void 0,n=void 0,r=null,s=null,o=null,l=0,u=e;l<u.length;l++){var h=u[l].geometry;if(h&&(r||(r=a.getJsonType(h)),s||(s=h.spatialReference),null==i&&(i=x(h)),null==n&&(n=v(h)),r&&s&&null!=i&&null!=n))break}if(t&&t.length){var d=null;t.some((function(e){var t="esriFieldTypeOID"===e.type,i=!e.type&&e.name&&"objectid"===e.name.toLowerCase();return d=e,t||i}))&&(o=d.name)}return{geometryType:r,spatialReference:s,objectIdField:o,hasM:n,hasZ:i}},e.prototype._loadInitialFeatures=function(e,t){for(var i=this._queryEngine,n=i.geometryType,r=i.hasM,s=i.hasZ,l=i.objectIdField,h=i.spatialReference,d=i.featureStore,f=[],p=0,m=t;p<m.length;p++){var y=m[p];if(null!=y.uid&&(e.assignedObjectIds[y.uid]=-1),y.geometry&&n!==a.getJsonType(y.geometry))e.featureErrors.push(c.createFeatureEditErrorResult("Incorrect geometry type."));else{var g=this._createDefaultAttributes(),_=c.mixAttributes(this._fieldsIndex,this._requiredFields,g,y.attributes,!0,e.warnings);_?e.featureErrors.push(_):(this._assignObjectId(g,y.attributes,!0),y.attributes=g,null!=y.uid&&(e.assignedObjectIds[y.uid]=y.attributes[l]),y.geometry&&(y.geometry=u.project(y.geometry,y.geometry.spatialReference,h)),f.push(y))}}if(d.addMany(o.convertFromFeatures([],f,n,s,r,l)),e.layerDefinition.extent=this._queryEngine.fullExtent,e.layerDefinition.timeInfo){var x=this._queryEngine.timeExtent;e.layerDefinition.timeInfo.timeExtent=[x.start,x.end]}return e},e.prototype._applyEdits=function(e){var t=e.adds,i=e.updates,n=e.deletes,r={addResults:[],deleteResults:[],updateResults:[],uidToObjectId:{}};if(t&&t.length&&this._applyAddEdits(r,t),i&&i.length&&this._applyUpdateEdits(r,i),n&&n.length){for(var a=0,s=n;a<s.length;a++)r.deleteResults.push(c.createFeatureEditSuccessResult(s[a]));this._queryEngine.featureStore.removeManyById(n)}return{fullExtent:this._queryEngine.fullExtent,featureEditResults:r}},e.prototype._applyAddEdits=function(e,t){for(var i=e.addResults,n=this._queryEngine,r=n.geometryType,s=n.hasM,l=n.hasZ,h=n.objectIdField,d=n.spatialReference,f=n.featureStore,p=[],m=0,y=t;m<y.length;m++){var g=y[m];if(g.geometry&&r!==a.getJsonType(g.geometry))i.push(c.createFeatureEditErrorResult("Incorrect geometry type."));else{var _=this._createDefaultAttributes(),x=c.mixAttributes(this._fieldsIndex,this._requiredFields,_,g.attributes);x?i.push(x):(this._assignObjectId(_,g.attributes),g.attributes=_,null!=g.uid&&(e.uidToObjectId[g.uid]=g.attributes[h]),g.geometry&&(g.geometry=u.project(c.simplify(g.geometry,d),g.geometry.spatialReference,d)),p.push(g),i.push(c.createFeatureEditSuccessResult(g.attributes[h])))}}f.addMany(o.convertFromFeatures([],p,r,l,s,h))},e.prototype._applyUpdateEdits=function(e,t){for(var i=e.updateResults,n=this._queryEngine,r=n.geometryType,s=n.hasM,l=n.hasZ,h=n.objectIdField,d=n.spatialReference,f=n.featureStore,p=0,m=t;p<m.length;p++){var y=m[p],g=y.attributes,_=y.geometry,x=g&&g[h];if(null!=x)if(f.has(x)){var v=o.convertToFeature(f.getFeature(x),r,l,s);if(_){if(r!==a.getJsonType(_)){i.push(c.createFeatureEditErrorResult("Incorrect geometry type."));continue}v.geometry=u.project(c.simplify(_,d),_.spatialReference,d)}if(g){var b=c.mixAttributes(this._fieldsIndex,this._requiredFields,v.attributes,g);if(b){i.push(b);continue}}f.add(o.convertFromFeature(v,r,l,s,h)),i.push(c.createFeatureEditSuccessResult(x))}else i.push(c.createFeatureEditErrorResult("Feature with object id "+x+" missing"));else i.push(c.createFeatureEditErrorResult("Identifier field "+h+" missing"))}},e.prototype._assignObjectId=function(e,t,i){void 0===i&&(i=!1);var n=this._queryEngine.objectIdField;e[n]=i&&t&&isFinite(t[n])?t[n]:this._nextObjectId++},e}();t.default=b}).apply(null,n))||(e.exports=r)},jEml:function(e,t,i){var n,r;n=[i("FT4I")],void 0===(r=(function(e){"use strict";function t(e,i){if(!(this instanceof t))return new t(e,i);this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),i&&("function"==typeof i?this.toBBox=i:this._initFormat(i)),this.clear()}function i(e,t,i){if(!i)return t.indexOf(e);for(var n=0;n<t.length;n++)if(i(e,t[n]))return n;return-1}function n(e,t){r(e,0,e.children.length,t,e)}function r(e,t,i,n,r){r||(r=c(null)),r.minX=1/0,r.minY=1/0,r.maxX=-1/0,r.maxY=-1/0;for(var s,o=t;o<i;o++)s=e.children[o],a(r,e.leaf?n(s):s);return r}function a(e,t){return e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY),e}function s(e,t){return e.minX-t.minX}function o(e,t){return e.minY-t.minY}function l(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function u(e){return e.maxX-e.minX+(e.maxY-e.minY)}function h(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function d(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function c(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function f(t,i,n,r,a){for(var s,o=[i,n];o.length;)(n=o.pop())-(i=o.pop())<=r||(s=i+Math.ceil((n-i)/r/2)*r,e(t,s,i,n,a),o.push(i,s,s,n))}return t.prototype={all:function(){return this._all(this.data,[])},search:function(e){var t=this.data,i=[],n=this.toBBox;if(!d(e,t))return i;for(var r,a,s,o,l=[];t;){for(r=0,a=t.children.length;r<a;r++)s=t.children[r],d(e,o=t.leaf?n(s):s)&&(t.leaf?i.push(s):h(e,o)?this._all(s,i):l.push(s));t=l.pop()}return i},collides:function(e){var t=this.data,i=this.toBBox;if(!d(e,t))return!1;for(var n,r,a,s,o=[];t;){for(n=0,r=t.children.length;n<r;n++)if(a=t.children[n],d(e,s=t.leaf?i(a):a)){if(t.leaf||h(e,s))return!0;o.push(a)}t=o.pop()}return!1},load:function(e){if(!e||!e.length)return this;if(e.length<this._minEntries){for(var t=0,i=e.length;t<i;t++)this.insert(e[t]);return this}var n=this._build(e.slice(),0,e.length-1,0);if(this.data.children.length)if(this.data.height===n.height)this._splitRoot(this.data,n);else{if(this.data.height<n.height){var r=this.data;this.data=n,n=r}this._insert(n,this.data.height-n.height-1,!0)}else this.data=n;return this},insert:function(e){return e&&this._insert(e,this.data.height-1),this},clear:function(){return this.data=c([]),this},remove:function(e,t){if(!e)return this;for(var n,r,a,s,o=this.data,l=this.toBBox(e),u=[],d=[];o||u.length;){if(o||(o=u.pop(),r=u[u.length-1],n=d.pop(),s=!0),o.leaf&&-1!==(a=i(e,o.children,t)))return o.children.splice(a,1),u.push(o),this._condense(u),this;s||o.leaf||!h(o,l)?r?(n++,o=r.children[n],s=!1):o=null:(u.push(o),d.push(n),n=0,r=o,o=o.children[0])}return this},toBBox:function(e){return e},compareMinX:s,compareMinY:o,toJSON:function(){return this.data},fromJSON:function(e){return this.data=e,this},_all:function(e,t){for(var i=[];e;)e.leaf?t.push.apply(t,e.children):i.push.apply(i,e.children),e=i.pop();return t},_build:function(e,t,i,r){var a,s=i-t+1,o=this._maxEntries;if(s<=o)return n(a=c(e.slice(t,i+1)),this.toBBox),a;r||(r=Math.ceil(Math.log(s)/Math.log(o)),o=Math.ceil(s/Math.pow(o,r-1))),(a=c([])).leaf=!1,a.height=r;var l,u,h,d,p=Math.ceil(s/o),m=p*Math.ceil(Math.sqrt(o));for(f(e,t,i,m,this.compareMinX),l=t;l<=i;l+=m)for(f(e,l,h=Math.min(l+m-1,i),p,this.compareMinY),u=l;u<=h;u+=p)d=Math.min(u+p-1,h),a.children.push(this._build(e,u,d,r-1));return n(a,this.toBBox),a},_chooseSubtree:function(e,t,i,n){for(var r,a,s,o,u,h,d,c,f,p;n.push(t),!t.leaf&&n.length-1!==i;){for(d=c=1/0,r=0,a=t.children.length;r<a;r++)u=l(s=t.children[r]),f=e,p=s,(h=(Math.max(p.maxX,f.maxX)-Math.min(p.minX,f.minX))*(Math.max(p.maxY,f.maxY)-Math.min(p.minY,f.minY))-u)<c?(c=h,d=u<d?u:d,o=s):h===c&&u<d&&(d=u,o=s);t=o||t.children[0]}return t},_insert:function(e,t,i){var n=i?e:(0,this.toBBox)(e),r=[],s=this._chooseSubtree(n,this.data,t,r);for(s.children.push(e),a(s,n);t>=0&&r[t].children.length>this._maxEntries;)this._split(r,t),t--;this._adjustParentBBoxes(n,r,t)},_split:function(e,t){var i=e[t],r=i.children.length,a=this._minEntries;this._chooseSplitAxis(i,a,r);var s=this._chooseSplitIndex(i,a,r),o=c(i.children.splice(s,i.children.length-s));o.height=i.height,o.leaf=i.leaf,n(i,this.toBBox),n(o,this.toBBox),t?e[t-1].children.push(o):this._splitRoot(i,o)},_splitRoot:function(e,t){this.data=c([e,t]),this.data.height=e.height+1,this.data.leaf=!1,n(this.data,this.toBBox)},_chooseSplitIndex:function(e,t,i){var n,a,s,o,u,h,d,c,f,p,m,y,g,_;for(h=d=1/0,n=t;n<=i-t;n++)f=a=r(e,0,n,this.toBBox),p=s=r(e,n,i,this.toBBox),m=Math.max(f.minX,p.minX),y=Math.max(f.minY,p.minY),g=Math.min(f.maxX,p.maxX),_=Math.min(f.maxY,p.maxY),o=Math.max(0,g-m)*Math.max(0,_-y),u=l(a)+l(s),o<h?(h=o,c=n,d=u<d?u:d):o===h&&u<d&&(d=u,c=n);return c},_chooseSplitAxis:function(e,t,i){var n=e.leaf?this.compareMinX:s,r=e.leaf?this.compareMinY:o;this._allDistMargin(e,t,i,n)<this._allDistMargin(e,t,i,r)&&e.children.sort(n)},_allDistMargin:function(e,t,i,n){e.children.sort(n);var s,o,l=this.toBBox,h=r(e,0,t,l),d=r(e,i-t,i,l),c=u(h)+u(d);for(s=t;s<i-t;s++)o=e.children[s],a(h,e.leaf?l(o):o),c+=u(h);for(s=i-t-1;s>=t;s--)o=e.children[s],a(d,e.leaf?l(o):o),c+=u(d);return c},_adjustParentBBoxes:function(e,t,i){for(var n=i;n>=0;n--)a(t[n],e)},_condense:function(e){for(var t,i=e.length-1;i>=0;i--)0===e[i].children.length?i>0?(t=e[i-1].children).splice(t.indexOf(e[i]),1):this.clear():n(e[i],this.toBBox)},_initFormat:function(e){var t=["return a"," - b",";"];this.compareMinX=new Function("a","b",t.join(e[0])),this.compareMinY=new Function("a","b",t.join(e[1])),this.toBBox=new Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}},t}).apply(null,n))||(e.exports=r)}}]);