1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[892],{13854:(e,t,s)=>{let r;s.d(t,{$1:()=>h,CR:()=>f,MB:()=>y,Yx:()=>p,bP:()=>d});var i=s(61348),n=s(75149),u=s(47174);class a{constructor(){this.code=null,this.description=null}}class o{constructor(e){this.error=new a,this.globalId=null,this.objectId=null,this.success=!1,this.uniqueId=null,this.error.description=e}}function p(e){return new o(e)}class l{constructor(e){this.globalId=null,this.success=!0,this.objectId=this.uniqueId=e}}function d(e){return new l(e)}let c=new Set;function y(e,t,s,r=!1){for(let n in c.clear(),s){let a=e.get(n);if(!a)continue;let o=function(e,t){let s=t;return(0,u.WA)(e)&&"string"==typeof t?s=parseFloat(t):(0,u.yM)(e)&&null!=t&&"string"!=typeof t?s=String(t):(0,u.vE)(e)&&"string"==typeof t&&(s=(0,i._U)(t)),(0,u.WX)(s)}(a,s[n]);if(c.add(a.name),a&&(r||a.editable)){let e=(0,u.CJ)(a,o);if(e)return p((0,u.uo)(e,a,o));t[a.name]=o}}for(let t of e.requiredFields??[])if(!c.has(t.name))return p(`missing required field "${t.name}"`);return null}function f(e,t){if(!e||!(0,n.fn)(t))return e;if("rings"in e||"paths"in e){if(null==r)throw TypeError("geometry engine not loaded");return r.simplify(t,e)}return e}async function m(){return null==r&&(r=await Promise.all([s.e(4484),s.e(6663)]).then(s.bind(s,72645))),r}async function h(e,t){(0,n.fn)(e)&&("esriGeometryPolygon"===t||"esriGeometryPolyline"===t)&&await m()}},27581:(e,t,s)=>{s.d(t,{$:()=>r,P:()=>i});let r={supportsDate:!1,supportsFixedInterval:!1,supportsAutoInterval:!1,supportsFixedBoundaries:!1,supportedStatistics:void 0},i={analytics:{supportsCacheHint:!1},attachment:{supportsContentType:!1,supportsExifInfo:!1,supportsKeywords:!1,supportsName:!1,supportsSize:!1,supportsCacheHint:!1,supportsResize:!1},data:{isVersioned:!1,isBranchVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:!1},editing:{supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsGeometryUpdate:!1,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsAsyncApplyEdits:!1,zDefault:void 0},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:!1,supportsDelete:!1,supportsEditing:!1,supportsChangeTracking:!1,supportsQuery:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryBins:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:!1,supportsExceedsLimitStatistics:!1,supportsAsyncConvert3D:!1},queryRelated:{supportsCount:!1,supportsOrderBy:!1,supportsPagination:!1,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryBins:r,query:{maxRecordCount:0,maxRecordCountFactor:0,standardMaxRecordCount:0,supportsCacheHint:!1,supportsCentroid:!1,supportsCompactGeometry:!1,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsDisjointSpatialRelationship:!1,supportsDistance:!1,supportsDistinct:!1,supportsExtent:!1,supportsFormatPBF:!1,supportsGeometryProperties:!1,supportsHavingClause:!1,supportsHistoricMoment:!1,supportsMaxRecordCountFactor:!1,supportsOrderBy:!1,supportsPagination:!1,supportsPercentileStatistics:!1,supportsQuantization:!1,supportsQuantizationEditMode:!1,supportsQueryByAnonymous:!1,supportsQueryByOthers:!1,supportsQueryGeometry:!1,supportsResultType:!1,supportsSqlExpression:!1,supportsStandardizedQueriesOnly:!1,supportsTopFeaturesQuery:!1,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsStatistics:!1,tileMaxRecordCount:0}}},53270:(e,t,s)=>{s.d(t,{H:()=>i,L:()=>r});let r=1;function i(e,t){let s=0;for(let r of t){let t=r.attributes?.[e];"number"==typeof t&&isFinite(t)&&(s=Math.max(s,t))}return s}},60892:(e,t,s)=>{s.r(t),s.d(t,{default:()=>I});var r=s(55114),i=s(20996),n=s(75149),u=s(52004),a=s(53270),o=s(85087),p=s(45252),l=s(42703),d=s(86290),c=s(13854),y=s(80414),f=s(64413),m=s(47174),h=s(87234);let g=n.KK,b={xmin:-180,ymin:-90,xmax:180,ymax:90,spatialReference:n.KK},F={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:!0,supportsSqlExpression:!0,supportsDisjointSpatialRel:!0,supportsQueryWithCacheHint:!0}};class I{constructor(){this._queryEngine=null,this._nextObjectId=null}destroy(){this._queryEngine?.destroy(),this._queryEngine=this._createDefaultAttributes=null}async load(e){let t=[],{features:s}=e,i=this._inferLayerProperties(s,e.fields),n=e.fields||[],u=null!=e.hasM?e.hasM:!!i.hasM,c=null!=e.hasZ?e.hasZ:!!i.hasZ,I=!e.spatialReference&&!i.spatialReference,T=I?g:e.spatialReference||i.spatialReference,E=e.geometryType||i.geometryType,x=!E,R=e.objectIdField||i.objectIdField,A=e.timeInfo,C=new y.A(n);
1if(!x&&(I&&t.push({name:"feature-layer:spatial-reference-not-found",message:"Spatial reference not provided or found in features. Defaults to WGS84"}),!E))throw new r.A("feature-layer:missing-property","geometryType not set and couldn't be inferred from the provided features");if(!R)throw new r.A("feature-layer:missing-property","objectIdField not set and couldn't be found in the provided fields");if(i.objectIdField&&R!==i.objectIdField&&(t.push({name:"feature-layer:duplicated-oid-field",message:`Provided objectIdField "${R}" doesn't match the field name "${i.objectIdField}", found in the provided fields`}),R=i.objectIdField),R&&!i.objectIdField){let e=C.get(R);e?(R=e.name,e.type="esriFieldTypeOID",e.editable=!1,e.nullable=!1):n.unshift({alias:R,name:R,type:"esriFieldTypeOID",editable:!1,nullable:!1})}for(let e of n){if(null==e.name&&(e.name=e.alias),null==e.alias&&(e.alias=e.name),!e.name)throw new r.A("feature-layer:invalid-field-name","field name is missing",{field:e});if(e.name===R&&(e.type="esriFieldTypeOID"),!f.m.jsonValues.includes(e.type))throw new r.A("feature-layer:invalid-field-type",`invalid type for field "${e.name}"`,{field:e});null==e.length&&(e.length=(0,m._b)(e))}let _={};for(let e of n)if("esriFieldTypeOID"!==e.type&&"esriFieldTypeGlobalID"!==e.type){let t=(0,m.lD)(e);void 0!==t&&(_[e.name]=t)}if(A){if(A.startTimeField){let e=C.get(A.startTimeField);e?(A.startTimeField=e.name,e.type="esriFieldTypeDate"):A.startTimeField=null}if(A.endTimeField){let e=C.get(A.endTimeField);e?(A.endTimeField=e.name,e.type="esriFieldTypeDate"):A.endTimeField=null}if(A.trackIdField){let e=C.get(A.trackIdField);e?A.trackIdField=e.name:(A.trackIdField=null,t.push({name:"feature-layer:invalid-timeInfo-trackIdField",message:"trackIdField is missing",details:{timeInfo:A}}))}A.startTimeField||A.endTimeField||(t.push({name:"feature-layer:invalid-timeInfo",message:"startTimeField and endTimeField are missing or invalid",details:{timeInfo:A}}),A=null)}let S=C.dateFields.length?{timeZoneIANA:e.dateFieldsTimeZone??h.n$}:null;this._createDefaultAttributes=(0,d.Vx)(_,R);let D={warnings:t,featureErrors:[],layerDefinition:{...F,drawingInfo:(0,d.F0)(E),templates:(0,d.e2)(_),extent:I?b:null,geometryType:E,objectIdField:R,fields:n,hasZ:c,hasM:u,timeInfo:A,dateFieldsTimeReference:S},assignedObjectIds:{}};if(this._queryEngine=new l.d({fieldsIndex:y.A.fromLayerJSON({fields:n,timeInfo:A,dateFieldsTimeReference:S}),geometryType:E,hasM:u,hasZ:c,objectIdField:R,spatialReference:T,featureStore:new o.A({geometryType:E,hasM:u,hasZ:c}),timeInfo:A}),!s?.length)return this._nextObjectId=a.L,D;let q=(0,a.H)(R,s);return this._nextObjectId=q+1,await (0,p.Nk)(s,T),this._loadInitialFeatures(D,s)}async applyEdits(e){let{spatialReference:t,geometryType:s}=this._queryEngine;return await Promise.all([(0,c.$1)(t,s),(0,p.Nk)(e.adds,t),(0,p.Nk)(e.updates,t)]),this._applyEdits(e)}queryFeatures(e,t={}){return this._queryEngine.executeQuery(e,t.signal)}queryFeatureCount(e,t={}){return this._queryEngine.executeQueryForCount(e,t.signal)}queryObjectIds(e,t={}){return this._queryEngine.executeQueryForIds(e,t.signal)}queryExtent(e,t={}){return this._queryEngine.executeQueryForExtent(e,t.signal)}querySnapping(e,t={}){return this._queryEngine.executeQueryForSnapping(e,t.signal)}_inferLayerProperties(e,t){let s,r,n=null,u=null,a=null;for(let t of e){let e=t.geometry;if(null!=e&&(n||(n=(0,i.$B)(e)),u||(u=e.spatialReference),null==s&&(s=(0,i.fT)(e)?null!=e.z:!!e.hasZ),null==r&&(r=(0,i.fT)(e)?null!=e.m:!!e.hasM),n&&u&&null!=s&&null!=r))break}if(t&&t.length){let e=null;t.some(t=>{let s="esriFieldTypeOID"===t.type,r=!t.type&&t.name&&"objectid"===t.name.toLowerCase();return e=t,s||r})&&(a=e.name)}return{geometryType:n,spatialReference:u,objectIdField:a,hasM:r,hasZ:s}}async _loadInitialFeatures(e,t){let{geometryType:s,hasM:r,hasZ:n,objectIdField:a,spatialReference:o,featureStore:l,fieldsIndex:d}=this._queryEngine,y=[];for(let r of t){if(null!=r.uid&&(e.assignedObjectIds[r.uid]=-1),r.geometry&&s!==(0,i.$B)(r.geometry)){e.featureErrors.push((0,c.Yx)("Incorrect geometry type."));continue}let t=this._createDefaultAttributes(),n=(0,c.MB)(d,t,r.attributes,!0);n?e.featureErrors.push(n):(this._assignObjectId(t,r.attributes,!0),r.attributes=t,null!=r.uid&&(e.assignedObjectIds[r.uid]=r.attributes[a]),null!=r.geometry&&(r.geometry=(0,p.Cv)(r.geometry,r.geometry.spatialReference,o)),y.push(r))}l.addMany((0,u.Di)([],y,s,n,r,a));let{fullExtent:f,timeExtent:m}=await this._queryEngine.fetchRecomputedExtents();if(e.layerDefinition.extent=f,m){let{start:t,end:s}=m;e.layerDefinition.timeInfo.timeExtent=[t,s]}return e}async _applyEdits(e){let{adds:t,updates:s,deletes:r}=e,i={addResults:[],deleteResults:[],updateResults:[],uidToObjectId:{}};if(t?.length&&this._applyAddEdits(i,t),s?.length&&this._applyUpdateEdits(i,s),r?.length){for(let e of r)i.deleteResults.push((0,c.bP)(e));this._queryEngine.featureStore.removeManyById(r)}let{fullExtent:n,timeExtent:u}=await this._queryEngine.fetchRecomputedExtents();return{extent:n,timeExtent:u,featureEditResults:i}}_applyAddEdits(e,t){let{addResults:s}=e,{geometryType:r,hasM:n,hasZ:a,objectIdField:o,spatialReference:l,featureStore:d,fieldsIndex:y}=this._queryEngine,f=[];for(let n of t){if(n.geometry&&r!==(0,i.$B)(n.geometry)){s.push((0,c.Yx)("Incorrect geometry type."));continue}let t=this._createDefaultAttributes(),u=(0,c.MB)(y,t,n.attributes);if(u)s.push(u);else{if(this._assignObjectId(t,n.attributes),n.attributes=t,null!=n.uid){let t=n.attributes[o];e.uidToObjectId[n.uid]=t}if(null!=n.geometry){let e=n.geometry.spatialReference??l;n.geometry=(0,p.Cv)((0,c.CR)(n.geometry,e),e,l)}f.push(n),s.push((0,c.bP)(n.attributes[o]))}}d.addMany((0,u.Di)([],f,r,a,n,o))}_applyUpdateEdits({updateResults:e},t){let{geometryType:s,hasM:r,hasZ:n,objectIdField:a,spatialReference:o,featureStore:l,fieldsIndex:d}=this._queryEngine;for(let y of t){let{attributes:t,geometry:f}=y,m=t?.[a];if(null==m){e.push((0,c.Yx)(`Identifier field ${a} missing`));continue}if(!l.has(m)){e.push((0,c.Yx)(`Feature with object id ${m} missing`));continue}let h=(0,u.oN)(l.getFeature(m),s,n,r);if(null!=f){if(s!==(0,i.$B)(f)){e.push((0,c.Yx)("Incorrect geometry type."));continue}let t=f.spatialReference??o;h.geometry=(0,p.Cv)((0,c.CR)(f,t),t,o)}if(t){let s=(0,c.MB)(d,h.attributes,t);
1if(s){e.push(s);continue}}l.add((0,u.E2)(h,s,n,r,a)),e.push((0,c.bP)(m))}}_assignObjectId(e,t,s=!1){let r=this._queryEngine.objectIdField;s&&t&&isFinite(t[r])?e[r]=t[r]:e[r]=this._nextObjectId++}}},61348:(e,t,s)=>{function r(e){return null!=a(e)||null!=u(e)}function i(e){return o.test(e)}function n(e){return a(e)??u(e)}function u(e){let t=new Date(e);return!function(e,t){if(Number.isNaN(e.getTime()))return!1;let s=!0;if(l&&/\d+\W*$/.test(t)){let e=t.match(/[a-zA-Z]{2,}/);if(e){let t=!1,r=0;for(;!t&&r<=e.length;)t=!p.test(e[r]),r++;s=!t}}return s}(t,e)?null:Number.isNaN(t.getTime())?null:t.getTime()-6e4*t.getTimezoneOffset()}function a(e){let t,s=o.exec(e);if(!s?.groups)return null;let r=s.groups,i=+r.year,n=r.month-1,u=+r.day,a=+(r.hours??"0"),p=+(r.minutes??"0"),l=+(r.seconds??"0");if(a>23||p>59||l>59)return null;let d=r.ms??"0",c=d?+d.padEnd(3,"0").slice(0,3):0;if(r.isUTC||!r.offsetSign)t=Date.UTC(i,n,u,a,p,l,c);else{let e=+r.offsetHours,s=+r.offsetMinutes;t=6e4*("+"===r.offsetSign?-1:1)*(60*e+s)+Date.UTC(i,n,u,a,p,l,c)}return Number.isNaN(t)?null:t}s.d(t,{Br:()=>i,Cq:()=>r,_U:()=>n});let o=/^(?:(?<year>-?\d{4,})-(?<month>\d{2})-(?<day>\d{2}))(?:T(?<hours>\d{2}):(?<minutes>\d{2}):(?<seconds>\d{2})(?:\.(?<ms>\d+))?)?(?:(?<isUTC>Z)|(?:(?<offsetSign>\+|-)(?<offsetHours>\d{2}):(?<offsetMinutes>\d{2})))?$/,p=/^((jan(uary)?)|(feb(ruary)?)|(mar(ch)?)|(apr(il)?)|(may)|(jun(e)?)|(jul(y)?)|(aug(ust)?)|(sep(tember)?)|(oct(ober)?)|(nov(ember)?)|(dec(ember)?)|(am)|(pm)|(gmt)|(utc))$/i,l=!Number.isNaN(new Date("technology 10").getTime())},86290:(e,t,s)=>{s.d(t,{F0:()=>o,Vx:()=>d,e2:()=>y,f:()=>f});var r=s(74552),i=s(13356),n=s(25004),u=s(27581),a=s(73754);function o(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?a.Cb:"esriGeometryPolyline"===e?a.yM:a.WR}}}let p=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/,l=1;function d(e,t){if((0,r.A)("esri-csp-restrictions"))return()=>({[t]:null,...e});try{let s=`this${c(t)} = null;`;for(let t in e)s+=`this${c(t)} = ${JSON.stringify(e[t])};`;let r=Function(` 2 return class AttributesClass$${l++} { 3 constructor() { 4 ${s}; 5 } 6 } 7 `)();return()=>new r}catch(s){return()=>({[t]:null,...e})}}function c(e){return p.test(e)?`.${e}`:`["${e}"]`}function y(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,i.o8)(e)}}]}function f(e,t){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:n.F,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryBins:u.$,editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}}}]);
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.