@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
1 lines • 810 kB
JavaScript
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6830],{4146:(e,t,i)=>{i.d(t,{A:()=>v});var s=i(90237),r=i(78888),n=i(49186),a=i(65529),o=i(4902),l=i(92474),u=i(53966),h=i(74887),c=i(84952),d=i(10107),p=(i(44208),i(87811),i(40608)),m=i(5443),g=i(16930),f=i(92602),y=i(64272);let _=0,v=class extends(a.A.EventedMixin(o.A.IdentifiableMixin(l.A))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new m.A(-180,-90,180,90,g.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+_++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=g.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await i.e(7982).then(i.bind(i,27982))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},{fromItem:s}=await i.e(5613).then(i.bind(i,45613));try{return await s(t)}catch(e){const i=t?.portalItem,s=i?.id||"unset",r=i?.portal?.url||f.A.portalUrl;throw u.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+r+"', id: '"+s+"')",e),e}}(e)}initialize(){this.when().catch((e=>{(0,h.zf)(e)||u.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})}))}destroy(){const e=this.parent;if(e){const t=this;"layers"in e&&e.layers.includes(t)?e.layers.remove(t):"tables"in e&&e.tables.includes(t)?e.tables.remove(t):"baseLayers"in e&&e.baseLayers.includes(t)?e.baseLayers.remove(t):"referenceLayers"in e&&e.referenceLayers.includes(t)&&e.referenceLayers.remove(t),this._set("parent",null)}}get effectiveVisible(){let e=this.visible;const t=this.parent;return e&&t&&"effectiveVisible"in t&&(e&&=t.effectiveVisible),e}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){return(0,c.An)(this.url)}createLayerView(e,t){return Promise.reject(new n.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,r.A)(e,{query:{f:"json"},responseType:"json"})).data;throw new n.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,s._)([(0,d.MZ)({type:String})],v.prototype,"attributionDataUrl",void 0),(0,s._)([(0,d.MZ)({readOnly:!0})],v.prototype,"effectiveVisible",null),(0,s._)([(0,d.MZ)({type:m.A})],v.prototype,"fullExtent",void 0),(0,s._)([(0,d.MZ)({readOnly:!0})],v.prototype,"hasAttributionData",null),(0,s._)([(0,d.MZ)({type:String,clonable:!1})],v.prototype,"id",void 0),(0,s._)([(0,d.MZ)({type:Boolean,nonNullable:!0})],v.prototype,"legendEnabled",void 0),(0,s._)([(0,d.MZ)({type:["show","hide","hide-children"]})],v.prototype,"listMode",void 0),(0,s._)([(0,d.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],v.prototype,"opacity",void 0),(0,s._)([(0,d.MZ)({clonable:!1})],v.prototype,"parent",void 0),(0,s._)([(0,d.MZ)({readOnly:!0})],v.prototype,"parsedUrl",null),(0,s._)([(0,d.MZ)({type:Boolean,readOnly:!0})],v.prototype,"persistenceEnabled",void 0),(0,s._)([(0,d.MZ)({type:Boolean})],v.prototype,"popupEnabled",void 0),(0,s._)([(0,d.MZ)({type:Boolean})],v.prototype,"attributionVisible",void 0),(0,s._)([(0,d.MZ)({type:g.A})],v.prototype,"spatialReference",void 0),(0,s._)([(0,d.MZ)({type:String})],v.prototype,"title",void 0),(0,s._)([(0,d.MZ)({readOnly:!0,json:{read:!1}})],v.prototype,"type",void 0),(0,s._)([(0,d.MZ)()],v.prototype,"url",void 0),(0,s._)([(0,d.MZ)({type:y.T})],v.prototype,"visibilityTimeExtent",void 0),(0,s._)([(0,d.MZ)({type:Boolean,nonNullable:!0})],v.prototype,"visible",void 0),v=(0,s._)([(0,p.$)("esri.layers.Layer")],v)},4197:(e,t,i)=>{i.d(t,{jh:()=>r,l5:()=>a,xm:()=>n});var s=i(34275);function r(e,t=!1){return e<=s.y9?t?new Array(e).fill(0):new Array(e):new Float64Array(e)}function n(e){return((0,s.iu)(e)?e.byteLength/8:e.length)<=s.y9?Array.from(e):new Float64Array(e)}function a(e,t,i){return Array.isArray(e)?e.slice(t,t+i):e.subarray(t,t+i)}},4902:(e,t,i)=>{i.d(t,{A:()=>h});var s=i(90237),r=i(40608);let n=0;const a=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+n++})}};return t=(0,s._)([(0,r.$)("esri.core.Identifiable")],t),t},o=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:n++})}};return t=(0,s._)([(0,r.$)("esri.core.Identifiable.NumericIdentifiable")],t),t};let l=class extends(a(class{})){};var u;l=(0,s._)([(0,r.$)("esri.core.Identifiable")],l),(u=l||(l={})).IdentifiableMixin=a,u.NumericIdentifiableMixin=o;const h=l},8303:(e,t,i)=>{i.d(t,{A:()=>S});var s=i(90237),r=i(92602),n=i(70333),a=i(78888),o=i(60999),l=i(49186),u=i(53966),h=i(97768),c=i(74887),d=i(84952),p=i(10107),m=(i(44208),i(87811),i(36005)),g=i(40608),f=i(43937),y=i(77548),_=i(20655),v=i(80812),b=i(41318),T=i(10407);const S=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,h.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,i){if(t.itemId)return new v.default({id:t.itemId,portal:i?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:s}=await i.e(1204).then(i.bind(i,41204));return(0,c.Te)(t),await s({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,c.zf)(e)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch((e=>((0,c.QP)(e),!0))))}async setUserPrivileges(e,t){if(!r.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:i,fullEdit:s},content:{updateItem:r}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",i),this._set("userHasFullEditingPrivileges",s),this._set("userHasUpdateItemPrivileges",r)}catch(e){(0,c.QP)(e)}}async _fetchUserPrivileges(e,t){let i=this.portalItem;if(!e||!i||!i.loaded||i.sourceUrl)return this._fetchFallbackUserPrivileges(t);const s=!n.id?.findCredential(this.url),r=e===i.id;if(r&&i.portal.user)return this._getUserPrivileges(i,s);let a,o;if(r)a=i.portal.url;else try{a=await(0,y.wI)(this.url,t)}catch(e){(0,c.QP)(e)}if(!a||!(0,d.b8)(a,i.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;o=await(n.id?.getCredential(`${a}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,c.QP)(e)}const l=!0,u=!1,h=!1;if(!o)return{features:{edit:l,fullEdit:u},content:{updateItem:h}};try{if(r?await i.reload():(i=new v.default({id:e,portal:{url:a}}),await i.load(t)),i.portal.user)return this._getUserPrivileges(i,s)}catch(e){(0,c.QP)(e)}return{features:{edit:l,fullEdit:u},content:{updateItem:h}}}_getUserPrivileges(e,t){const i=(0,T.It)(e);return t&&(i.features.edit=!0),i}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,c.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?n.id?.findCredential(this.url):null;if(!t)return!0;const i=w.credential===t?w.user:await this._fetchEditingUser(e);return w.credential=t,w.user=i,null==i?.privileges||i.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const i=n.id?.findServerInfo(this.url??"");if(!i?.owningSystemUrl)return null;const s=`${i.owningSystemUrl}/sharing/rest`,r=_.A.getDefault();if(r&&r.loaded&&(0,d.S8)(r.restUrl)===(0,d.S8)(s))return r.user;const l=`${s}/community/self`,u=null!=e?e.signal:null,h=await(0,o.Ke)((0,a.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return h.ok?b.A.fromJSON(h.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const i=t?.portal,s=this.portalItem?.id&&(this.portalItem.portal||_.A.getDefault());return i&&s&&!(0,d.ut)(s.restUrl,i.restUrl)?(t.messages&&t.messages.push(new l.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,s._)([(0,p.MZ)({type:v.default})],t.prototype,"portalItem",null),(0,s._)([(0,m.w)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,s._)([(0,f.K)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,s._)([(0,p.MZ)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,s._)([(0,p.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),(0,s._)([(0,p.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasFullEditingPrivileges",void 0),(0,s._)([(0,p.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasUpdateItemPrivileges",void 0),t=(0,s._)([(0,g.$)("esri.layers.mixins.PortalLayer")],t),t},w={credential:null,user:null}},11053:(e,t,i)=>{i.d(t,{c:()=>s,g:()=>r});var s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}},18768:(e,t,i)=>{i.d(t,{b:()=>l});var s=i(90237),r=i(53966),n=i(10107),a=(i(44208),i(87811),i(40608)),o=i(60694);const l=e=>{let t=class extends e{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,o.qg)(this.url);if(e?.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,o.Jf)(e,r.A.getLogger(this)))}};return(0,s._)([(0,n.MZ)()],t.prototype,"title",null),(0,s._)([(0,n.MZ)({type:String})],t.prototype,"url",null),t=(0,s._)([(0,a.$)("esri.layers.mixins.ArcGISService")],t),t}},20557:(e,t,i)=>{i.d(t,{Fm:()=>l,Hz:()=>p,JQ:()=>d,JZ:()=>b,ND:()=>g,R_:()=>a,U9:()=>c,fu:()=>r,nr:()=>m,oF:()=>n,rq:()=>u,z$:()=>h});const s=[["binary","application/octet-stream","bin",""]];function r(e,t){return null!=y(t.name,e?.supportedFormats??[])}function n(e,t){if(!e)return!1;const i=u(t,e.supportedFormats??[]);return null!=i&&e.editFormats.includes(i)}function a(e,t){return _(function(e,t){const i=e.toLowerCase();return f(t).find((e=>v(e)===i))}(e,t))}function o(e,t){return _(y(e,t))}function l(e,t){return v(function(e,t){return f(t).find((t=>_(t)===e))}(e,t))}function u(e,t){return o(e.name,t)??a(e.type,t)}function h(e,t,i){return a(e,i)??o(t,i)}function c({supportedFormats:e}){return h("model/gltf-binary","glb",e)}function d(e){const t=c(e);return null!=t&&e.editFormats.includes(t)}function p(e){if(!e)return null;const t=c(e),i=function({supportedFormats:e}){return h("model/gltf+json","gltf",e)}(e);let s=null;for(const r of e.queryFormats){if(r===t)return r;r===i&&(s=r)}return s}function m({supportedFormats:e}){return h("application/esri3do-SR_world","wld",e)}function g({supportedFormats:e}){return h("application/esri3do-SR_prj","prj",e)}function f(e){return[...s,...e]}function y(e,t){const i=e.toLowerCase();return f(t).find((e=>function(e){return e?.[2].split(",").map((e=>e.toLowerCase()))??[]}(e).some((e=>i.endsWith(e)))))}function _(e){return e?.[0]}function v(e){return e?.[1].toLowerCase()}function b(e){return e.tables?.find((e=>"assetMaps"===e.role))}},22453:(e,t,i)=>{i.d(t,{S:()=>m,d:()=>C});var s=i(44208),r=i(60694),n=i(20557);function a(e,t,i){return!!l(e,t,i)}function o(e,t,i){return l(e,t,i)}function l(e,t,i){return e&&e.hasOwnProperty(t)?e[t]:i}const u={name:"supportsName",size:"supportsSize",contentType:"supportsContentType",keywords:"supportsKeywords",exifInfo:"supportsExifInfo"};function h(e){const t=e?.supportedSpatialAggregationStatistics?.map((e=>e.toLowerCase()));return{envelope:!!t?.includes("envelopeaggregate"),centroid:!!t?.includes("centroidaggregate"),convexHull:!!t?.includes("convexhullaggregate")}}function c(e,t){const i=e?.supportedOperationsWithCacheHint?.map((e=>e.toLowerCase()));return!!i?.includes(t.toLowerCase())}function d(e){const t=e?.supportedStatisticTypes?.map((e=>e.toLowerCase()));return{count:!!t?.includes("count"),sum:!!t?.includes("sum"),min:!!t?.includes("min"),max:!!t?.includes("max"),avg:!!t?.includes("avg"),var:!!t?.includes("var"),stddev:!!t?.includes("stddev"),percentileContinuous:!!t?.includes("percentile_cont"),percentileDiscrete:!!t?.includes("percentile_disc"),envelope:!!t?.includes("envelopeaggregate"),centroid:!!t?.includes("centroidaggregate"),convexHull:!!t?.includes("convexhullaggregate")}}function p(e){const t=e?.supportedNormalizationTypes?.map((e=>e.toLowerCase()));return{field:!!t?.includes("field"),log:!!t?.includes("log"),naturalLog:!!t?.includes("naturallog"),percentOfTotal:!!t?.includes("percentoftotal"),squareRoot:!!t?.includes("squareroot")}}function m(e,t){return{analytics:g(e),attachment:f(e),data:y(e),metadata:_(e),operations:v(e.capabilities,e,t),query:b(e,t),queryAttributeBins:w(e),queryRelated:T(e),queryTopFeatures:S(e),editing:E(e)}}function g(e){return{supportsCacheHint:c(e.advancedQueryCapabilities,"queryAnalytics")}}function f(e){const t=e.attachmentProperties,i={supportsName:!1,supportsSize:!1,supportsContentType:!1,supportsKeywords:!1,supportsExifInfo:!1,supportsCacheHint:c(e.advancedQueryCapabilities,"queryAttachments"),supportsOrderByFields:a(e.advancedQueryCapabilities,"supportsQueryAttachmentOrderByFields",!1),supportsResize:a(e,"supportsAttachmentsResizing",!1)};return t&&Array.isArray(t)&&t.forEach((e=>{const t=u[e.name];t&&(i[t]=!!e.isEnabled)})),i}function y(e){return{isVersioned:a(e,"isDataVersioned",!1),isBranchVersioned:a(e,"isDataBranchVersioned",!1),supportsAttachment:a(e,"hasAttachments",!1),supportsM:a(e,"hasM",!1),supportsZ:a(e,"hasZ",!1)}}function _(e){return{supportsAdvancedFieldProperties:a(e,"supportsFieldDescriptionProperty",!1)}}function v(e,t,i){const s=e?.toLowerCase().split(",").map((e=>e.trim()))??[],n=i?(0,r.qg)(i):null,o=s.includes("MapServer"===n?.serverType?"data":"query"),l=s.includes("editing")&&!t.datesInUnknownTimezone&&!(!0===t.uniqueIdInfo?.OIDFieldContainsHashValue);let u=l&&s.includes("create"),h=l&&s.includes("delete"),c=l&&s.includes("update");const d=s.includes("changetracking"),p=t.advancedQueryCapabilities;return l&&!(u||h||c)&&(u=h=c=!0),{supportsCalculate:a(t,"supportsCalculate",!1),supportsTruncate:a(t,"supportsTruncate",!1),supportsValidateSql:a(t,"supportsValidateSql",!1),supportsAdd:u,supportsDelete:h,supportsEditing:l,supportsChangeTracking:d,supportsQuery:o,supportsQueryAnalytics:a(p,"supportsQueryAnalytic",!1),supportsQueryAttachments:a(p,"supportsQueryAttachments",!1),supportsQueryBins:a(p,"supportsQueryBins",!1)||!!t.queryBinsCapabilities,supportsQueryTopFeatures:a(p,"supportsTopFeaturesQuery",!1),supportsResizeAttachments:a(t,"supportsAttachmentsResizing",!1),supportsSync:s.includes("sync"),supportsUpdate:c,supportsExceedsLimitStatistics:a(t,"supportsExceedsLimitStatistics",!1),supportsAsyncConvert3D:a(t,"supportsAsyncConvert3D",!1)}}function b(e,t){const i=e.advancedQueryCapabilities,l=e.ownershipBasedAccessControlForFeatures,u=e.archivingInfo,d=e.currentVersion,p=t?.includes("MapServer"),m=!p||d>=(0,s.A)("mapserver-pbf-version-support"),g=(0,r.Wo)(t),f=new Set((e.supportedQueryFormats??"").split(",").map((e=>e.toLowerCase().trim())));return{maxRecordCount:o(e,"maxRecordCount",void 0),maxRecordCountFactor:o(e,"maxRecordCountFactor",void 0),maxUniqueIDCount:o(e,"maxUniqueIDCount",void 0),standardMaxRecordCount:o(e,"standardMaxRecordCount",void 0),supportedSpatialAggregationStatistics:h(i),supportsCacheHint:a(i,"supportsQueryWithCacheHint",!1)||c(i,"query"),supportsCentroid:a(i,"supportsReturningGeometryCentroid",!1),supportsCompactGeometry:g,supportsCurrentUser:a(i,"supportsCurrentUserQueries",!1),supportsDefaultSpatialReference:a(i,"supportsDefaultSR",!1),supportsDisjointSpatialRelationship:a(i,"supportsDisjointSpatialRel",!1),supportsDistance:a(i,"supportsQueryWithDistance",!1),supportsDistinct:a(i,"supportsDistinct",e.supportsAdvancedQueries),supportsExtent:a(i,"supportsReturningQueryExtent",!1),supportsFormatPBF:m&&f.has("pbf"),supportsFullTextSearch:a(i,"supportsFullTextSearch",!1),supportsGeometryProperties:a(i,"supportsReturningGeometryProperties",!1),supportsHavingClause:a(i,"supportsHavingClause",!1),supportsHistoricMoment:a(u,"supportsQueryWithHistoricMoment",!1),supportsMaxRecordCountFactor:a(i,"supportsMaxRecordCountFactor",!1),supportsOrderBy:a(i,"supportsOrderBy",e.supportsAdvancedQueries),supportsPagination:a(i,"supportsPagination",!1),supportsPaginationOnAggregatedQueries:a(i,"supportsPaginationOnAggregatedQueries",!1),supportsPercentileStatistics:a(i,"supportsPercentileStatistics",!1),supportsQuantization:a(e,"supportsCoordinatesQuantization",!1),supportsQuantizationEditMode:a(e,"supportsQuantizationEditMode",!1),supportsQueryByAnonymous:a(l,"allowAnonymousToQuery",!0),supportsQueryByOthers:a(l,"allowOthersToQuery",!0),supportsQueryGeometry:a(e,"supportsReturningQueryGeometry",!1),supportsResultType:a(i,"supportsQueryWithResultType",!1),supportsReturnMesh:!!(0,n.Hz)(e.infoFor3D),supportsSpatialAggregationStatistics:a(i,"supportsSpatialAggregationStatistics",!1),supportsSqlExpression:a(i,"supportsSqlExpression",!1),supportsStandardizedQueriesOnly:a(e,"useStandardizedQueries",!1),supportsStatistics:a(i,"supportsStatistics",e.supportsStatistics),supportsTopFeaturesQuery:a(i,"supportsTopFeaturesQuery",!1),supportsTrueCurve:a(i,"supportsTrueCurve",!1),tileMaxRecordCount:o(e,"tileMaxRecordCount",void 0)}}function T(e){const t=e.advancedQueryCapabilities,i=a(t,"supportsAdvancedQueryRelated",!1);return{supportsPagination:a(t,"supportsQueryRelatedPagination",!1),supportsCount:i,supportsOrderBy:i,supportsCacheHint:c(t,"queryRelated")}}function S(e){return{supportsCacheHint:c(e.advancedQueryCapabilities,"queryTopFilter")}}function w(e){const t=e?e.queryBinsCapabilities:void 0;return{supportsDate:a(t,"supportsDateBin",!1),supportsFixedInterval:a(t,"supportsFixedIntervalBin",!1),supportsAutoInterval:a(t,"supportsAutoIntervalBin",!1),supportsFixedBoundaries:a(t,"supportsFixedBoundariesBin",!1),supportsStackBy:a(t,"supportsStackBy",!1),supportsSplitBy:a(t,"supportsSplitBy",!1),supportsSnapToData:a(t,"supportsSnapToData",!1),supportsReturnFullIntervalBin:a(t,"supportsReturnFullIntervalBin",!1),supportsFirstDayOfWeek:a(t,"supportsFirstDayOfWeek",!1),supportsNormalization:a(t,"supportsNormalization",!1),supportedStatistics:d(t),supportedNormalizationTypes:p(t)}}function E(e){const t=e.ownershipBasedAccessControlForFeatures,i=e?e.advancedEditingCapabilities:void 0;return{supportsGeometryUpdate:a(e,"allowGeometryUpdates",!0),supportsGlobalId:a(e,"supportsApplyEditsWithGlobalIds",!1),supportsReturnServiceEditsInSourceSpatialReference:a(e,"supportsReturnServiceEditsInSourceSR",!1),supportsRollbackOnFailure:a(e,"supportsRollbackOnFailureParameter",!1),supportsUpdateWithoutM:a(e,"allowUpdateWithoutMValues",!1),supportsUploadWithItemId:a(e,"supportsAttachmentsByUploadId",!1),supportsDeleteByAnonymous:a(t,"allowAnonymousToDelete",!0),supportsDeleteByOthers:a(t,"allowOthersToDelete",!0),supportsUpdateByAnonymous:a(t,"allowAnonymousToUpdate",!0),supportsUpdateByOthers:a(t,"allowOthersToUpdate",!0),supportsAsyncApplyEdits:a(i,"supportsAsyncApplyEdits",!1),zDefault:o(e,"zDefault",void 0)}}function C(e){return{operations:{supportsAppend:a(e,"supportsAppend",!1),supportsCoverageQuery:e?.playbackInfo?.klv["0601"]??!1,supportsExportClip:a(e,"supportsExportClip",!1),supportsExportFrameset:a(e,"supportsExportFrameset",!1),supportsMensuration:a(e,"supportsMensuration",!1),supportsPreviews:a(e,"supportsPreviews",!1),supportsUpdate:a(e,"supportsUpdate",!1)}}}},25036:(e,t,i)=>{i.d(t,{j:()=>a});var s=i(90237),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608));const a=e=>{let t=class extends e{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;t&&"effectiveScaleRange"in t&&function(e,t){e.minScale=e.minScale>0?t.minScale>0?Math.min(e.minScale,t.minScale):e.minScale:t.minScale,e.maxScale=e.maxScale>0?t.maxScale>0?Math.max(e.maxScale,t.maxScale):e.maxScale:t.maxScale}(e,t.effectiveScaleRange);const i=this._get("effectiveScaleRange");return i&&i.minScale===e.minScale&&i.maxScale===e.maxScale?i:e}};return(0,s._)([(0,r.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"minScale",void 0),(0,s._)([(0,r.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"maxScale",void 0),(0,s._)([(0,r.MZ)({readOnly:!0})],t.prototype,"effectiveScaleRange",null),t=(0,s._)([(0,n.$)("esri.layers.mixins.ScaleRangeLayer")],t),t}},27865:(e,t,i)=>{i.d(t,{O9:()=>n,dw:()=>a,mj:()=>r});var s=i(59247);function r(e,t){const i=e.length>t.length?e:t;return(e.length>t.length?t:e).every(((e,t)=>e.type===i[t].type))}function n(e,t){const i=e.length>t.length?e:t,r=e.length>t.length?t:e;for(let e=r.length;e<i.length;e++)r.push((0,s.sK)(i[e]))}function a(e){const t=e[0];return!!t&&"type"in t}},29242:(e,t,i)=>{function s(){return[1,0,0,0,1,0,0,0,1]}function r(e,t,i,s,r,n,a,o,l){return[e,t,i,s,r,n,a,o,l]}i.d(t,{fA:()=>r,vt:()=>s,zK:()=>n});const n=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:n,clone:function(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8]]},create:s,fromValues:r},Symbol.toStringTag,{value:"Module"}))},37531:(e,t,i)=>{i.d(t,{dt:()=>p,GG:()=>_,UQ:()=>y,Sx:()=>c});var s=i(68197),r=i(60999),n=(i(44208),i(51850)),a=(i(76369),i(62046)),o=(i(2741),i(78888),i(66344));new Map([["dash",[4,3]],["dashdot",[4,3,1,3]],["dot",[1,3]],["longdash",[8,3]],["longdashdot",[8,3,1,3]],["longdashdotdot",[8,3,1,3,1,3]],["shortdash",[4,1]],["shortdashdot",[4,1,1,1]],["shortdashdotdot",[4,1,1,1,1,1]],["shortdot",[1,1]],["solid",[]]]),new o.q(1e3),new s.A([128,128,128]);var l=i(28975),u=i(33910);const h=new s.A("white");function c(e,t){if(!e)return null;let i=null;return(0,u.wk)(e)?i=function(e){const t=e.symbolLayers;if(!t)return null;let i=null;return t.forEach((e=>{"object"===e.type&&e.resource?.href||(i="water"===e.type?e.color:e.material?e.material.color:null)})),i?new s.A(i):null}(e):(0,u.$y)(e)&&(i="cim"===e.type?(0,a.Nk)(e):e.color?new s.A(e.color):null),i?d(i,t):null}function d(e,t){if(null==t||null==e)return e;const i=e.toRgba();return i[3]=i[3]*t,new s.A(i)}function p(e,t,i){e&&(t||null!=i)&&(t&&(t=new s.A(t)),(0,u.wk)(e)?function(e,t,i){const s=e.symbolLayers;if(!s)return;const r=e=>d(t??e??(null!=i?h:null),i);s.forEach((e=>{if("object"!==e.type||!e.resource?.href||t)if("water"===e.type)e.color=r(e.color);else{const t=null!=e.material?e.material.color:null,s=r(t);if(null==e.material?e.material=new l.N({color:s}):e.material.color=s,null!=i&&"outline"in e&&null!=e.outline?.color&&(e.outline.color=d(e.outline.color,i)),"marker"in e&&null!=e.marker){const t=r(e.marker.color);e.marker.color=t}}}))}(e,t,i):(0,u.$y)(e)&&function(e,t,i){(t=t??e.color)&&(e.color=d(t,i)),null!=i&&"outline"in e&&e.outline?.color&&(e.outline.color=d(e.outline.color,i))}(e,t,i))}function m(e){for(const t of e)if("number"==typeof t)return t;return null}function g(e,t,i){for(let s=0;s<3;s++){const r=e[s];switch(r){case"symbol-value":{const e=i[s];return null!=e?e/t[s]:1}case"proportional":break;default:if(r&&t[s])return r/t[s]}}return null}function f(e,t,i,s){switch(e){case"proportional":return i*s;case"symbol-value":return null!=t?t:i;default:return e}}async function y(e,t){if(e&&t)return(0,u.wk)(e)?async function(e,t){const s=e.symbolLayers;s&&await(0,r.jJ)(s,(async e=>async function(e,t){switch(e.type){case"extrude":!function(e,t){const i=t[2];"number"==typeof i&&(e.size=i)}(e,t);break;case"icon":case"line":case"text":!function(e,t){const i=m(t);null!=i&&(e.size=i)}(e,t);break;case"path":!function(e,t){const i=g(t,n.Un,[e.width,void 0,e.height]);null!=i&&(e.width=f(t[0],e.width,1,i),e.height=f(t[2],e.height,1,i))}(e,t);break;case"object":await async function(e,t){const{resourceSize:s,symbolSize:r}=await async function(e){const{computeObjectLayerResourceSize:t}=await i.e(5404).then(i.bind(i,95404)),s=await t(e,10),{width:r,height:n,depth:a}=e,o=[r,a,n];let l=1;for(let e=0;e<3;e++){const t=o[e];if(null!=t){l=t/s[e];break}}for(let e=0;e<3;e++)null==o[e]&&(o[e]=s[e]*l);return{resourceSize:s,symbolSize:o}}(e),n=g(t,s,r);null!=n&&(e.width=f(t[0],r[0],s[0],n),e.depth=f(t[1],r[1],s[1],n),e.height=f(t[2],r[2],s[2],n))}(e,t)}}(e,t)))}(e,t):void((0,u.$y)(e)&&function(e,t){const i=m(t);if(null!=i)switch(e.type){case"simple-marker":e.size=i;break;case"picture-marker":{const t=e.width/e.height;t>1?(e.width=i,e.height=i*t):(e.width=i*t,e.height=i);break}case"simple-line":e.width=i;break;case"text":e.font.size=i}}(e,t))}function _(e,t,i){if(e&&null!=t)if((0,u.wk)(e)){const s=e.symbolLayers;s&&s.forEach((e=>{if("object"===e.type)switch(i){case"tilt":e.tilt=(e.tilt??0)+t;break;case"roll":e.roll=(e.roll??0)+t;break;default:e.heading=(e.heading??0)+t}"icon"===e.type&&(e.angle+=t)}))}else(0,u.$y)(e)&&("simple-marker"!==e.type&&"picture-marker"!==e.type&&"text"!==e.type||(e.angle+=t))}},38954:(e,t,i)=>{i.d(t,{A:()=>m,B:()=>p,C:()=>h,D:()=>c,E:()=>O,F:()=>U,H:()=>B,a:()=>L,b:()=>y,c:()=>a,d:()=>u,e:()=>E,f:()=>l,g:()=>f,h:()=>C,i:()=>o,j:()=>_,k:()=>b,l:()=>n,m:()=>k,n:()=>w,o:()=>I,q:()=>D,r:()=>S,s:()=>v,t:()=>x,u:()=>T,v:()=>A,w:()=>d,x:()=>F,y:()=>q,z:()=>g});var s=i(51850),r=i(34304);function n(e){const t=e[0],i=e[1],s=e[2];return Math.sqrt(t*t+i*i+s*s)}function a(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function o(e,t,i,s){return e[0]=t,e[1]=i,e[2]=s,e}function l(e,t,i){return e[0]=t[0]+i[0],e[1]=t[1]+i[1],e[2]=t[2]+i[2],e}function u(e,t,i){return e[0]=t[0]-i[0],e[1]=t[1]-i[1],e[2]=t[2]-i[2],e}function h(e,t,i){return e[0]=t[0]*i[0],e[1]=t[1]*i[1],e[2]=t[2]*i[2],e}function c(e,t,i){return e[0]=t[0]/i[0],e[1]=t[1]/i[1],e[2]=t[2]/i[2],e}function d(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function p(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function m(e,t,i){return e[0]=Math.min(t[0],i[0]),e[1]=Math.min(t[1],i[1]),e[2]=Math.min(t[2],i[2]),e}function g(e,t,i){return e[0]=Math.max(t[0],i[0]),e[1]=Math.max(t[1],i[1]),e[2]=Math.max(t[2],i[2]),e}function f(e,t,i){return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e}function y(e,t,i,s){return e[0]=t[0]+i[0]*s,e[1]=t[1]+i[1]*s,e[2]=t[2]+i[2]*s,e}function _(e,t){const i=t[0]-e[0],s=t[1]-e[1],r=t[2]-e[2];return Math.sqrt(i*i+s*s+r*r)}function v(e,t){const i=t[0]-e[0],s=t[1]-e[1],r=t[2]-e[2];return i*i+s*s+r*r}function b(e){const t=e[0],i=e[1],s=e[2];return t*t+i*i+s*s}function T(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function S(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function w(e,t){const i=t[0],s=t[1],r=t[2];let n=i*i+s*s+r*r;return n>0&&(n=1/Math.sqrt(n),e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n),e}function E(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function C(e,t,i){const s=t[0],r=t[1],n=t[2],a=i[0],o=i[1],l=i[2];return e[0]=r*l-n*o,e[1]=n*a-s*l,e[2]=s*o-r*a,e}function k(e,t,i,s){const r=t[0],n=t[1],a=t[2];return e[0]=r+s*(i[0]-r),e[1]=n+s*(i[1]-n),e[2]=a+s*(i[2]-a),e}function x(e,t,i){const s=t[0],r=t[1],n=t[2];return e[0]=i[0]*s+i[4]*r+i[8]*n+i[12],e[1]=i[1]*s+i[5]*r+i[9]*n+i[13],e[2]=i[2]*s+i[6]*r+i[10]*n+i[14],e}function I(e,t,i){const s=t[0],r=t[1],n=t[2];return e[0]=s*i[0]+r*i[3]+n*i[6],e[1]=s*i[1]+r*i[4]+n*i[7],e[2]=s*i[2]+r*i[5]+n*i[8],e}function A(e,t,i){const s=i[0],r=i[1],n=i[2],a=i[3],o=t[0],l=t[1],u=t[2],h=r*u-n*l,c=n*o-s*u,d=s*l-r*o,p=r*d-n*c,m=n*h-s*d,g=s*c-r*h,f=2*a;return e[0]=o+h*f+2*p,e[1]=l+c*f+2*m,e[2]=u+d*f+2*g,e}const M=(0,s.vt)(),P=(0,s.vt)();function D(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function O(e,t,i){const s=i[0]-t[0],r=i[1]-t[1],n=i[2]-t[2];let a=s*s+r*r+n*n;return a>0?(a=1/Math.sqrt(a),e[0]=s*a,e[1]=r*a,e[2]=n*a,e):(e[0]=0,e[1]=0,e[2]=0,e)}const L=u,N=h,R=c,U=_,F=v,B=n,q=b;Object.freeze(Object.defineProperty({__proto__:null,abs:d,add:l,angle:function(e,t){w(M,e),w(P,t);const i=E(M,P);return i>1?0:i<-1?Math.PI:Math.acos(i)},bezier:function(e,t,i,s,r,n){const a=1-n,o=a*a,l=n*n,u=o*a,h=3*n*o,c=3*l*a,d=l*n;return e[0]=t[0]*u+i[0]*h+s[0]*c+r[0]*d,e[1]=t[1]*u+i[1]*h+s[1]*c+r[1]*d,e[2]=t[2]*u+i[2]*h+s[2]*c+r[2]*d,e},ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e},clamp:function(e,t=0,i=1){return e[0]=Math.min(Math.max(e[0],t),i),e[1]=Math.min(Math.max(e[1],t),i),e[2]=Math.min(Math.max(e[2],t),i),e},copy:a,cross:C,crossAndNormalize:function(e,t,i){const s=t[0],r=t[1],n=t[2],a=i[0],o=i[1],l=i[2],u=r*l-n*o,h=n*a-s*l,c=s*o-r*a,d=Math.sqrt(u*u+h*h+c*c);return e[0]=u/d,e[1]=h/d,e[2]=c/d,e},direction:O,dist:U,distance:_,div:R,divide:c,dot:E,equals:function(e,t){if(e===t)return!0;const i=e[0],s=e[1],n=e[2],a=t[0],o=t[1],l=t[2],u=(0,r.FD)();return Math.abs(i-a)<=u*Math.max(1,Math.abs(i),Math.abs(a))&&Math.abs(s-o)<=u*Math.max(1,Math.abs(s),Math.abs(o))&&Math.abs(n-l)<=u*Math.max(1,Math.abs(n),Math.abs(l))},exactEquals:D,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e},hermite:function(e,t,i,s,r,n){const a=n*n,o=a*(2*n-3)+1,l=a*(n-2)+n,u=a*(n-1),h=a*(3-2*n);return e[0]=t[0]*o+i[0]*l+s[0]*u+r[0]*h,e[1]=t[1]*o+i[1]*l+s[1]*u+r[1]*h,e[2]=t[2]*o+i[2]*l+s[2]*u+r[2]*h,e},inverse:S,len:B,length:n,lerp:k,max:g,min:m,mul:N,multiply:h,negate:T,normalize:w,random:function(e,t=1){const i=r.Ov,s=2*i()*Math.PI,n=2*i()-1,a=Math.sqrt(1-n*n)*t;return e[0]=Math.cos(s)*a,e[1]=Math.sin(s)*a,e[2]=n*t,e},rotateX:function(e,t,i,s){const r=[],n=[];return r[0]=t[0]-i[0],r[1]=t[1]-i[1],r[2]=t[2]-i[2],n[0]=r[0],n[1]=r[1]*Math.cos(s)-r[2]*Math.sin(s),n[2]=r[1]*Math.sin(s)+r[2]*Math.cos(s),e[0]=n[0]+i[0],e[1]=n[1]+i[1],e[2]=n[2]+i[2],e},rotateY:function(e,t,i,s){const r=[],n=[];return r[0]=t[0]-i[0],r[1]=t[1]-i[1],r[2]=t[2]-i[2],n[0]=r[2]*Math.sin(s)+r[0]*Math.cos(s),n[1]=r[1],n[2]=r[2]*Math.cos(s)-r[0]*Math.sin(s),e[0]=n[0]+i[0],e[1]=n[1]+i[1],e[2]=n[2]+i[2],e},rotateZ:function(e,t,i,s){const r=[],n=[];return r[0]=t[0]-i[0],r[1]=t[1]-i[1],r[2]=t[2]-i[2],n[0]=r[0]*Math.cos(s)-r[1]*Math.sin(s),n[1]=r[0]*Math.sin(s)+r[1]*Math.cos(s),n[2]=r[2],e[0]=n[0]+i[0],e[1]=n[1]+i[1],e[2]=n[2]+i[2],e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e},scale:f,scaleAndAdd:y,set:o,sign:p,sqrDist:F,sqrLen:q,squaredDistance:v,squaredLength:b,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:L,subtract:u,transformMat3:I,transformMat4:x,transformQuat:A},Symbol.toStringTag,{value:"Module"}))},59247:(e,t,i)=>{i.d(t,{bv:()=>l,Fk:()=>u,yG:()=>h,$b:()=>c,Nd:()=>d,jm:()=>p,sK:()=>f});var s=i(40876),r=i(90629);function n(){const e=new Float32Array(16);return e[0]=1,e[5]=1,e[10]=1,e[15]=1,e}const a=n();Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:function(e){const t=new Float32Array(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},create:n,fromValues:function(e,t,i,s,r,n,a,o,l,u,h,c,d,p,m,g){const f=new Float32Array(16);return f[0]=e,f[1]=t,f[2]=i,f[3]=s,f[4]=r,f[5]=n,f[6]=a,f[7]=o,f[8]=l,f[9]=u,f[10]=h,f[11]=c,f[12]=d,f[13]=p,f[14]=m,f[15]=g,f}},Symbol.toStringTag,{value:"Module"}));var o=i(58083);class l{constructor(e,t,i){this.strength=e,this.radius=t,this.threshold=i,this.type="bloom"}interpolate(e,t,i){this.strength=m(e.strength,t.strength,i),this.radius=m(e.radius,t.radius,i),this.threshold=m(e.threshold,t.threshold,i)}clone(){return new l(this.strength,this.radius,this.threshold)}toJSON(){return{type:"bloom",radius:g(this.radius),strength:this.strength,threshold:this.threshold}}}class u{constructor(e){this.radius=e,this.type="blur"}interpolate(e,t,i){this.radius=Math.round(m(e.radius,t.radius,i))}clone(){return new u(this.radius)}toJSON(){return{type:"blur",radius:g(this.radius)}}}class h{constructor(e,t){this.type=e,this.amount=t,"invert"!==this.type&&"grayscale"!==this.type&&"sepia"!==this.type||(this.amount=Math.min(this.amount,1))}get colorMatrix(){return this._colorMatrix||this._updateMatrix(),this._colorMatrix}interpolate(e,t,i){this.amount=m(e.amount,t.amount,i),this._updateMatrix()}clone(){return new h(this.type,this.amount)}toJSON(){return{type:this.type,amount:this.amount}}_updateMatrix(){const e=this._colorMatrix||n();switch(this.type){case"brightness":this._colorMatrix=((e,t)=>{const i=(0,o.hZ)(e,t,0,0,0,0,t,0,0,0,0,t,0,0,0,0,1);return(0,o.mg)(i,i)})(e,this.amount);break;case"contrast":this._colorMatrix=((e,t)=>{const i=(0,o.hZ)(e,t,0,0,.5-.5*t,0,t,0,.5-.5*t,0,0,t,.5-.5*t,0,0,0,1);return(0,o.mg)(i,i)})(e,this.amount);break;case"grayscale":this._colorMatrix=(e=>{const t=1-this.amount,i=(0,o.hZ)(e,.2126+.7874*t,.7152-.7152*t,.0722-.0722*t,0,.2126-.2126*t,.7152+.2848*t,.0722-.0722*t,0,.2126-.2126*t,.7152-.7152*t,.0722+.9278*t,0,0,0,0,1);return(0,o.mg)(i,i)})(e);break;case"invert":this._colorMatrix=((e,t)=>{const i=1-2*t,s=(0,o.hZ)(e,i,0,0,t,0,i,0,t,0,0,i,t,0,0,0,1);return(0,o.mg)(s,s)})(e,this.amount);break;case"saturate":this._colorMatrix=((e,t)=>{const i=(0,o.hZ)(e,.213+.787*t,.715-.715*t,.072-.072*t,0,.213-.213*t,.715+.285*t,.072-.072*t,0,.213-.213*t,.715-.715*t,.072+.928*t,0,0,0,0,1);return(0,o.mg)(i,i)})(e,this.amount);break;case"sepia":this._colorMatrix=(e=>{const t=1-this.amount,i=(0,o.hZ)(e,.393+.607*t,.769-.769*t,.189-.189*t,0,.349-.349*t,.686+.314*t,.168-.168*t,0,.272-.272*t,.534-.534*t,.131+.869*t,0,0,0,0,1);return(0,o.mg)(i,i)})(e)}}}class c{constructor(e,t,i,s){this.offsetX=e,this.offsetY=t,this.blurRadius=i,this.color=s,this.type="drop-shadow"}interpolate(e,t,i){this.offsetX=m(e.offsetX,t.offsetX,i),this.offsetY=m(e.offsetY,t.offsetY,i),this.blurRadius=m(e.blurRadius,t.blurRadius,i),this.color[0]=Math.round(m(e.color[0],t.color[0],i)),this.color[1]=Math.round(m(e.color[1],t.color[1],i)),this.color[2]=Math.round(m(e.color[2],t.color[2],i)),this.color[3]=m(e.color[3],t.color[3],i)}clone(){return new c(this.offsetX,this.offsetY,this.blurRadius,[...this.color])}toJSON(){const e=[...this.color];return e[3]*=255,{type:"drop-shadow",xoffset:g(this.offsetX),yoffset:g(this.offsetY),blurRadius:g(this.blurRadius),color:e}}}class d{constructor(e){this.angle=e,this.type="hue-rotate"}get colorMatrix(){return this._colorMatrix||this._updateMatrix(),this._colorMatrix}interpolate(e,t,i){this.angle=m(e.angle,t.angle,i),this._updateMatrix()}clone(){return new d(this.angle)}toJSON(){return{type:"hue-rotate",angle:this.angle}}_updateMatrix(){const e=this._colorMatrix||n();this._colorMatrix=((e,t)=>{const i=Math.sin(t*Math.PI/180),s=Math.cos(t*Math.PI/180),r=(0,o.hZ)(e,.213+.787*s-.213*i,.715-.715*s-.715*i,.072-.072*s+.928*i,0,.213-.213*s+.143*i,.715+.285*s+.14*i,.072-.072*s-.283*i,0,.213-.213*s-.787*i,.715-.715*s+.715*i,.072+.928*s+.072*i,0,0,0,0,1);return(0,o.mg)(r,r)})(e,this.angle)}}class p{constructor(e){this.amount=e,this.type="opacity",this.amount=Math.min(this.amount,1)}interpolate(e,t,i){this.amount=m(e.amount,t.amount,i)}clone(){return new p(this.amount)}toJSON(){return{type:"opacity",amount:this.amount}}}function m(e,t,i){return e+(t-e)*i}function g(e){return Math.round(1e3*(0,r.PN)(e))/1e3}function f(e){switch(e.type){case"grayscale":case"sepia":case"invert":return new h(e.type,0);case"saturate":case"brightness":case"contrast":return new h(e.type,1);case"opacity":return new p(1);case"hue-rotate":return new d(0);case"blur":return new u(0);case"drop-shadow":return new c(0,0,0,[...(0,s.TS)("transparent")]);case"bloom":return new l(0,0,1)}}},61269:(e,t,i)=>{i.r(t),i.d(t,{default:()=>Wd});var s=i(90237),r=i(68197),n=i(78888),a=i(51447),o=i(49186),l=i(53966),u=i(34727),h=i(92071),c=i(74887),d=i(36708),p=i(10107),m=i(56507),g=(i(44208),i(87811),i(36005)),f=i(40608),y=i(35666),_=i(5443),v=i(82799),b=i(16930),T=i(4146),S=i(18768),w=i(63074),E=i(69208),C=i(16131),k=i(8303),x=i(25036),I=i(60694),A=i(10873),M=i(4718),P=i(84952),D=i(69540),O=i(25482);let L=class extends(D.A.ClonableMixin(O.A)){constructor(e){super(e),this.framerate=null,this.containerFormat=null,this.gop=null,this.aspectRatio=null,this.klv=null}};(0,s._)([(0,p.MZ)({type:String})],L.prototype,"framerate",void 0),(0,s._)([(0,p.MZ)({type:String})],L.prototype,"containerFormat",void 0),(0,s._)([(0,p.MZ)({type:Number})],L.prototype,"gop",void 0),(0,s._)([(0,p.MZ)({type:String})],L.prototype,"aspectRatio",void 0),(0,s._)([(0,p.MZ)({type:Object})],L.prototype,"klv",void 0),L=(0,s._)([(0,f.$)("esri.layers.support.PlaybackInfo")],L);const N=L;var R=i(22453),U=i(86738),F=i(39829);let B=class extends(D.A.ClonableMixin(O.A)){constructor(e){super(e),this.frameCenter=null,this.frameOutline=null,this.lineOfSight=null,this.sensorLocation=null,this.sensorTrail=null}};(0,s._)([(0,p.MZ)({type:U.A})],B.prototype,"frameCenter",void 0),(0,s._)([(0,p.MZ)({type:F.A})],B.prototype,"frameOutline",void 0),(0,s._)([(0,p.MZ)({type:v.A})],B.prototype,"lineOfSight",void 0),(0,s._)([(0,p.MZ)({type:U.A})],B.prototype,"sensorLocation",void 0),(0,s._)([(0,p.MZ)({type:v.A})],B.prototype,"sensorTrail",void 0),B=(0,s._)([(0,f.$)("esri.layers.support.TelemetryData")],B);const q={type:Boolean,json:{write:!0}};let j=class extends(D.A.ClonableMixin(O.A)){constructor(e){super(e),this.frame=!1,this.frameCenter=!1,this.frameOutline=!0,this.lineOfSight=!0,this.sensorLocation=!0,this.sensorTrail=!0}};(0,s._)([(0,p.MZ)(q)],j.prototype,"frame",void 0),(0,s._)([(0,p.MZ)(q)],j.prototype,"frameCenter",void 0),(0,s._)([(0,p.MZ)(q)],j.prototype,"frameOutline",void 0),(0,s._)([(0,p.MZ)(q)],j.prototype,"lineOfSight",void 0),(0,s._)([(0,p.MZ)(q)],j.prototype,"sensorLocation",void 0),(0,s._)([(0,p.MZ)(q)],j.prototype,"sensorTrail",void 0),j=(0,s._)([(0,f.$)("esri.layers.support.TelemetryDisplay")],j);var $=i(69622),H=i(43937);let V=class extends $.A{constructor(){super(...arguments),this.sourcePoint=null,this.mapPoint=null}};(0,s._)([(0,p.MZ)()],V.prototype,"sourcePoint",void 0),(0,s._)([(0,p.MZ)({type:U.A})],V.prototype,"mapPoint",void 0),V=(0,s._)([(0,f.$)("esri.layers.support.VideoFrame.ControlPoint")],V);let z=class extends(D.A.ClonableMixin(O.A)){constructor(e){super(e),this.frame=null,this.controlPoints=null}readControlPoints(e){return e.map((e=>({sourcePoint:{x:e.frameX,y:e.frameY},mapPoint:new U.A(e.point)})))}writeControlPoints(e,t){null!=e&&function(e){return null!=e?.sourcePoint&&null!=e.mapPoint}(e[0])&&(t.controlPoints=e.map((e=>{const t=e.sourcePoint,i=e.mapPoint;return{frameX:t.x,frameY:t.y,point:i.toJSON()}})))}};(0,s._)([(0,p.MZ)({type:String})],z.prototype,"frame",void 0),(0,s._)([(0,p.MZ)({type:[V],json:{write:{allowNull:!1,isRequired:!0}}})],z.prototype,"controlPoints",void 0),(0,s._)([(0,g.w)("controlPoints")],z.prototype,"readControlPoints",null),(0,s._)([(0,H.K)("controlPoints")],z.prototype,"writeControlPoints",null),z=(0,s._)([(0,f.$)("esri.layers.support.VideoFrame")],z);const W=z;let G=class extends(D.A.ClonableMixin(O.A)){constructor(e){super(e),this.duration=null,this.end=null,this.start=null,this.timezone="UTC"}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?e.getTime():null}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?e.getTime():null}};(0,s._)([(0,p.MZ)({type:Number,json:{write:{allowNull:!0}}})],G.prototype,"duration",void 0),(0,s._)([(0,p.MZ)({type:Date,json:{write:{allowNull:!0}}})],G.prototype,"end",void 0),(0,s._)([(0,g.w)("end")],G.prototype,"readEnd",null),(0,s._)([(0,H.K)("end")],G.prototype,"writeEnd",null),(0,s._)([(0,p.MZ)({type:Date,json:{write:{allowNull:!0}}})],G.prototype,"start",void 0),(0,s._)([(0,g.w)("start")],G.prototype,"readStart",null),(0,s._)([(0,H.K)("start")],G.prototype,"writeStart",null),(0,s._)([(0,p.MZ)({type:String})],G.prototype,"timezone",void 0),G=(0,s._)([(0,f.$)("esri.layers.support.VideoTimeExtent")],G);const X=G;var Z=i(56058);class K extends EventTarget{constructor(){super(...arguments),this._readyState=0,this._responseType="",this.timeout=0,this._withCredentials=!1,this.onabort=null,this.onerror=null,this.onload=null,this.onloadend=null,this.onloadstart=null,this.onprogress=null,this.ontimeout=null,this.onreadystatechange=null,this.UNSENT=0,this.OPENED=1,this.HEADERS_RECEIVED=2,this.LOADING=3,this.DONE=4,this._abortController=null,this._error=null,this._options={},this._response=null,this._sendFlag=!1,this._url=""}get readyState(){return this._readyState}get response(){return""===this.responseType||"text"===this.responseType?this.responseText:this.readyState!==this.DONE||this._error||!this._response?null:this._response.data}get responseText(){return""!==this.responseType&&"text"!==this.responseType&&this._throwDOMException(),this.readyState!==this.DONE?"":this._response?this._response.data:null!=this._error?.raw?"string"==typeof this._error.raw?this._error.raw:JSON.stringify(this._error.raw):""}get responseType(){return this._responseType}set responseType(e){("document"!==e||globalThis instanceof Window)&&(this.readyState!==this.LOADING&&this.readyState!==this.DONE||this._throwDOMException(),this._responseType=e)}get responseURL(){return(this._response||this._error)?.url??""}get responseXML(){return""!==this.responseType&&"document"!==this.responseType&&this._throwDOMException(),this.readyState!==this.DONE?null:this._response?.data??null}get status(){return(this._response||this._error)?.httpStatus??0}get statusText(){return""}get upload(){return console.warn("upload not implemented"),null}get withCredentials(){return this._withCredentials}set withCredentials(e){this.readyState!==this.UNSENT&&this.readyState!==this.OPENED&&this._throwDOMException(),this._withCredentials=e}static{this.UNSENT=0}static{this.OPENED=1}static{this.HEADERS_RECEIVED=2}static{this.LOADING=3}static{this.DONE=4}abort(){this.readyState===this.OPENED&&this._sendFlag||this.readyState===this.HEADERS_RECEIVED||this.readyState===this.LOADING?(this._sendFlag=!1,this._error=null,this._response=null,this._abortController?.abort(),this._updateReadyState(this.DONE),this._dispatchProgressEvent("abort"),this._dispatchProgressEvent("loadend")):this.readyState===this.DONE&&this._updateReadyState(this.UNSENT)}getAllResponseHeaders(){let e="";const t=(this._response||this._error)?.getAllHeaders?.();if(t)for(const[i,s]of t)e+=`${i}: ${s}\r\n`;return e}getResponseHeader(e){return(this._response||this._error)?.getHeader?.(e)??null}open(e,t){switch(this._sendFlag=!1,this._options={},e){case"GET":this._options.method="auto";break;case"POST":this._options.method="post";break;case"HEAD":this._options.method="head";break;case"DELETE":this._options.method="delete";break;case"PUT":this._options.method="put"}this._url=t,this._error=null,this._response=null,this._abortController=new AbortController,this._updateReadyState(this.OPENED)}overrideMimeType(e){throw new Error("overrideMimeType not implemented")}send(e){(this.readyState!==this.OPENED||this._sendFlag)&&this._throwDOMException(),this._sendFlag=!0,this._updateReadyState(this.LOADING),this._dispatchProgressEvent("loadstart");const t=this._options;e instanceof URLSearchParams?t.body=e.toString():t.body=e,t.responseType=""===this.responseType?"text":"arraybuffer"===this.responseType?"array-buffer":this.responseType,t.signal=this._abortController?.signal,this.timeout&&(t.timeout=this.timeout),this.withCredentials&&(t.withCredentials=!0),(0,n.A)(this._url,t).then((e=>{this._response=e,this._updateReadyState(this.DONE),this._dispatchProgressEvent("load")})).catch((e=>{this._sendFlag&&(this._error=e.details,this._updateReadyState(this.DONE),(0,Z.c8)(e)?this._dispatchProgressEvent("timeout"):"AbortError"===e.name?this._dispatchProgressEvent("abort"):this._dispatchProgressEvent("error"))})).finally((()=>{this._sendFlag&&this._dispatchProgressEvent("loadend")}))}setRequestHeader(e,t){(this.readyState!==this.OPENED||this._sendFlag)&&this._throwDOMException(),this._options.headers??={},this._options.headers[e]=t}_dispatchProgressEvent(e){const t=new ProgressEvent(e,{loaded:0,total:0});this.dispatchEvent(t),this[`on${e}`]?.(t)}_throwDOMException(){throw new DOMException("","InvalidStateError")}_updateReadyState(e){if(this._readyState!==e&&(this._readyState=e,e!==this.UNSENT)){const e=new Event("readystatechange");this.dispatchEvent(e),this.onreadystatechange?.(e)}}}var Q=i(29242),Y=i(51850),J=i(77690),ee=i(38954),te=i(98764),ie=i(9762),se=i(79258),re=i(62046),ne=i(37531);const ae="application/x-mpegURL",oe=10013,le=10014,ue=10015,he=10023,ce=10024,de=10025,pe=90001,me=90002;function ge(e,t,i){if(!e)return null;const s=e.clone();switch(s.type){case"simple-fill":(0,ne.dt)(s,i),s.outline.color=t;break;case"simple-line":(0,ne.dt)(s,t);break;case"simple-marker":(0,ne.dt)(s,t),s?.outline?.color&&(s.outline.color=t);break;case"cim":(0,re.Fe)(s,t)}return s}const fe=Math.PI/180;let ye=class extends $.A{constructor(e){super(),this.averageElevation=0,this.imageHeight=0,this.imageWidth=0,this.metadataSupportsTransforms=!1,this.platformHeadingAngle=0,this.platformPitchAngle=0,this.platformRollAngle=0,this.sensorHeadingAngle=0,this.sensorAltitude=0,this.sensorHorizontalFieldOfView=0,this.sensorLatitude=0,this.sensorLongitude=0,this.sensorPitchAngle=0,this.sensorRollAngle=0,this.sensorVerticalFieldOfView=0,this.vttMetadata=new Map,this._createMat3FromValues=e=>{const t=e[0],i=e[1],s=e[2];return(0,Q.fA)(t[0],i[0],s[0],t[1],i[1],s[1],t[2],i[2],s[2])},this._multiplyMat3=(e,t)=>{const i=(0,Q.vt)();return(0,J.lw)(i,e,t),i},this._transposeMat3=e=>{const t=(0,Q.vt)();return(0,J.mg)(t,e),t},this._calculateCameraFovForward=()=>this._createMat3FromValues([[0,0,1],[Math.tan(.5*this.sensorHorizontalFieldOfView*fe),0,0],[0,Math.tan(.5*this.sensorVerticalFieldOfView*fe),0]]),this._calculateCameraFovReverse=()=>this._createMat3FromValues([[0,1/Math.tan(.5*this.sensorHorizontalFieldOfView*fe),0],[0,0,1/Math.tan(.5*this.sensorVerticalFieldOfView*fe)],[1,0,0]]),this._calculateCameraLook=()=>this._getRotationMatrixZYX(this.sensorHeadingAngle*fe,this.sensorPitchAngle*fe,this.sensorRollAngle*fe),this._calculateImageDimensionsForward=()=>this._createMat3FromValues([[2/this.imageWidth,0,-1],[0,-2/this.imageHeight,-1],[0,0,1]]),this._calculateImageDimensionsReverse=()=>this._createMat3FromValues([[this.imageWidth/2,0,this.imageWidth/2],[0,-this.imageHeight/2,-this.imageHeight/2],[0,0,1]]),this._calculatePlatformPositionMatrix=()=>{const e=Math.sin(this.sensorLatitude*fe),t=Math.cos(this.sensorLatitude*fe),i=Math.sin(this.sensorLongitude*fe),s=Math.cos(this.sensorLongitude*fe);return this._createMat3FromValues([[-e*s,-i,-t*s],[-e*i,s,-t*i],[t,0,-e]])},this._calculatePlatformOrientation=()=>this._getRotationMatrixZYX(this.platformHeadingAngle*fe,this.platformPitchAngle*fe,this.platformRollAngle*fe),this._extractValues=e=>{this.imageWidth=e.get(pe)?.value,this.imageHeight=e.get(me)?.value;const t=e.get(10075)?.value;this.sensorAltitude=t??e.get(ue)?.value,this.sensorLatitude=e.get(oe)?.value,this.sensorLongitude=e.get(le)?.value,this.sensorHeadingAngle=e.get(10018)?.value,this.sensorPitchAngle=e.get(10019)?.value,this.sensorRollAngle=e.get(10020)?.value,this.sensorHorizontalFieldOfView=e.get(10016)?.value,this.sensorVerticalFieldOfView=e.get(10017)?.value,this.platformHeadingAngle=e.get(10005)?.value,this.platformPitchAngle=e.get(10006)?.value,this.platformRollAngle=e.get(10007)?.value,this.averageElevation=e.get(de)?.value||0},this._getRotationMatrixZYX=(e,t,i)=>{const s=Math.cos(e),r=Math.sin(e),n=Math.cos(t),a=Math.sin(t),o=Math.cos(i),l=Math.sin(i);return this._createMat3FromValues([[s*n,s*a*l-o*r,r*l+s*o*a],[n*r,s*o+r*a*l,o*r*a-s*l],[-a,n*l,n*o]])},this._initCameraSensor=()=>{const e=this._calculateCameraFovForward(),t=this._calculateCameraFovReverse(),i=this._calculateCameraLook(),s=this._calculateImageDimensionsForward(),r=this._calculateImageDimensionsReverse(),n=this._calculatePlatformPositionMatrix(),a=this._calculatePlatformOrientation(),o=this._multiplyMat3(this._multiplyMat3(n,a),i);this._imageToEarthTransform=this._multiplyMat3(this._multiplyMat3(o,e),s);const l=this._multiplyMat3(r,t);this._earthToImageTransform=this._multiplyMat3(l,this._transposeMat3(o)),this._platformPositionEcef=this._projectPointToECEF(this.sensorLongitude,this.sensorLatitude,this.sensorAltitude||this.averageElevation)},this._metadataSupportsTransforms=e=>{if(!e?.size)return!1;const t=e.get(pe)?.value??0,i=e.get(me)?.value??0;if(t<=0||i<=0)return!1;const s=e.get(10075)?.value,r=e.get(ue)?.value,n=e.get(oe)?.value,a=e.get(le)?.value;if(null==s&&null==r||null==n||null==a)return!1;const o=e.get(10005)?.value,l=e.get(10006)?.value,u=e.get(10007)?.value;if(null==o||null==l||null==u)return!1;const h=e.get(10016)?.value,c=e.get(10017)?.value;if(null==h||null==c)return!1;const d=e.get(10018)?.value,p=e.get(10019)?.value,m=e.get(10020)?.value;return null!=d&&null!=p&&null!=m},this._projectPointToECEF=(e,t,i)=>{const s=[];return(0,ie.projectBuffer)([e,t,i],b.A.WGS84,0,s,te.Y0,0),new U.A({x:s[0],y:s[1],z:s[2],spatialReference:te.Y0})},this._projectImageVectorToEllipsoid=(e,t)=>{const i=se.$O.semiMajorAxis+t,s=se.$O.semi