1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[34243,59424],{53550:function(){},59424:function(t,e,r){"use strict";r.d(e,{c:function(){return o},g:function(){return i}});var o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function i(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}},59546:function(t,e,r){"use strict";r.d(e,{p:function(){return s}});var o=r(63895),i=r(32118);class s 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(t){("document"!==t||globalThis instanceof Window)&&(this.readyState!==this.LOADING&&this.readyState!==this.DONE||this._throwDOMException(),this._responseType=t)}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(t){this.readyState!==this.UNSENT&&this.readyState!==this.OPENED&&this._throwDOMException(),this._withCredentials=t}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 t="",e=(this._response||this._error)?.getAllHeaders?.();if(e)for(let[r,o]of e)t+=`${r}: ${o}\r 2`;return t}getResponseHeader(t){return(this._response||this._error)?.getHeader?.(t)??null}open(t,e){switch(this._sendFlag=!1,this._options={},t){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=e,this._error=null,this._response=null,this._abortController=new AbortController,this._updateReadyState(this.OPENED)}overrideMimeType(t){throw Error("overrideMimeType not implemented")}send(t){(this.readyState!==this.OPENED||this._sendFlag)&&this._throwDOMException(),this._sendFlag=!0,this._updateReadyState(this.LOADING),this._dispatchProgressEvent("loadstart");let e=this._options;t instanceof URLSearchParams?e.body=t.toString():e.body=t,e.responseType=""===this.responseType?"text":"arraybuffer"===this.responseType?"array-buffer":this.responseType,e.signal=this._abortController?.signal,this.timeout&&(e.timeout=this.timeout),this.withCredentials&&(e.withCredentials=!0),(0,o.Z)(this._url,e).then(t=>{this._response=t,this._updateReadyState(this.DONE),this._dispatchProgressEvent("load")}).catch(t=>{this._sendFlag&&(this._error=t.details,this._updateReadyState(this.DONE),(0,i.q4)(t)?this._dispatchProgressEvent("timeout"):"AbortError"===t.name?this._dispatchProgressEvent("abort"):this._dispatchProgressEvent("error"))}).finally(()=>{this._sendFlag&&this._dispatchProgressEvent("loadend")})}setRequestHeader(t,e){(this.readyState!==this.OPENED||this._sendFlag)&&this._throwDOMException(),this._options.headers??={},this._options.headers[t]=e}_dispatchProgressEvent(t){let e=new ProgressEvent(t,{loaded:0,total:0});this.dispatchEvent(e),this[`on${t}`]?.(e)}_throwDOMException(){throw new DOMException("","InvalidStateError")}_updateReadyState(t){if(this._readyState!==t&&(this._readyState=t,t!==this.UNSENT)){let t=new Event("readystatechange");this.dispatchEvent(t),this.onreadystatechange?.(t)}}}},9418:function(t,e,r){"use strict";function o(){return[1,0,0,0,1,0,0,0,1]}function i(t,e,r,o,i,s,n,l,a){return[t,e,r,o,i,s,n,l,a]}r.d(e,{Ue:function(){return o},Wd:function(){return s},al:function(){return i}});let s=o();
2Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:o,fromValues:i},Symbol.toStringTag,{value:"Module"}))},29666:function(t,e,r){"use strict";r.d(e,{rS:function(){return h},wY:function(){return u}});var o=r(84804),i=r(93271),s=r(78532);let n=new i.Z(o.kU),l=new i.Z(o.JL),a=new i.Z(o.mM),u=new i.Z(o.pn);function h(t){let e=p.get(t);if(e)return e;let r=n;if(t){if(t===l)r=l;else if(t===a)r=a;else{let e=t.wkid,o=t.latestWkid;if(null!=e||null!=o)(0,s.o$)(e)||(0,s.o$)(o)?r=l:((0,s.ME)(e)||(0,s.ME)(o))&&(r=a);else{let e=t.wkt2??t.wkt;if(e){let t=e.toUpperCase();t===d?r=l:t===y&&(r=a)}}}}return p.set(t,r),r}let p=new Map,d=l.wkt.toUpperCase(),y=a.wkt.toUpperCase()},75623:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return ty}});var o=r(73322),i=r(74260),s=r(63895),n=r(93415),l=r(21670),a=r(58583),u=r(67210),h=r(55387),p=r(4580),d=r(57682),y=r(86652),c=r(58413);r(95263),r(42082);var m=r(20352),g=r(18301),_=r(3842),v=r(47259),f=r(14448),b=r(93271),C=r(19660),E=r(66322),S=r(46661),w=r(69107),O=r(41606),T=r(74412),P=r(26838),M=r(93938),N=r(11770),A=r(5057),I=r(21955),Z=r(57864),F=r(94931);let H=class extends Z.Z.ClonableMixin(F.Z){constructor(t){super(t),this.framerate=null,this.containerFormat=null,this.gop=null,this.aspectRatio=null,this.klv=null}};(0,o._)([(0,y.Cb)({type:String})],H.prototype,"framerate",void 0),(0,o._)([(0,y.Cb)({type:String})],H.prototype,"containerFormat",void 0),(0,o._)([(0,y.Cb)({type:Number})],H.prototype,"gop",void 0),(0,o._)([(0,y.Cb)({type:String})],H.prototype,"aspectRatio",void 0),(0,o._)([(0,y.Cb)({type:Object})],H.prototype,"klv",void 0);let x=H=(0,o._)([(0,g.j)("esri.layers.support.PlaybackInfo")],H);var V=r(95355),L=r(15486),R=r(45844),D=r(81738),U=r(87535),j=r(79482);let k=class extends D.Z{constructor(){super(...arguments),this.sourcePoint=null,this.mapPoint=null}};(0,o._)([(0,y.Cb)()],k.prototype,"sourcePoint",void 0),(0,o._)([(0,y.Cb)({type:j.Z})],k.prototype,"mapPoint",void 0),k=(0,o._)([(0,g.j)("esri.layers.support.VideoFrame.ControlPoint")],k);let z=class extends Z.Z.ClonableMixin(F.Z){constructor(t){super(t),this.frame=null,this.controlPoints=null}readControlPoints(t){return t.map(t=>({sourcePoint:{x:t.frameX,y:t.frameY},mapPoint:new j.Z(t.point)}))}writeControlPoints(t,e){var r;null!=t&&(r=t[0],null!=r?.sourcePoint&&null!=r.mapPoint)&&(e.controlPoints=t.map(t=>{let e=t.sourcePoint,r=t.mapPoint;return{frameX:e.x,frameY:e.y,point:r.toJSON()}}))}};(0,o._)([(0,y.Cb)({type:String})],z.prototype,"frame",void 0),(0,o._)([(0,y.Cb)({type:[k],json:{write:{allowNull:!1,isRequired:!0}}})],z.prototype,"controlPoints",void 0),(0,o._)([(0,m.r)("controlPoints")],z.prototype,"readControlPoints",null),(0,o._)([(0,U.c)("controlPoints")],z.prototype,"writeControlPoints",null);let W=z=(0,o._)([(0,g.j)("esri.layers.support.VideoFrame")],z);var G=r(53078),Y=r(62069),J=r(62506),q=r(5758),$=r(13184),X=r(98276),B=r(84182),Q=r(52938),K=r(24180),tt=r(58876);function te(t,e){return{ignoreOrigin:this.originIdOf(e)<_.s3.PORTAL_ITEM}}let tr=[],to=new i.Z([255,127,0]),ti=new i.Z([0,0,0,.05]),ts=new Q.Z({angle:0,color:to,size:10,style:"cross"}),tn=new X.Z({color:ti,outline:new B.Z({color:to,width:2})}),tl=new B.Z({color:to,width:1}),ta=new Q.Z({angle:0,color:to,outline:{color:[255,255,255],width:1.33},size:10,style:"circle"}),tu=new B.Z({color:to,width:1}),th={types:{base:K.Z,key:"type",typeMap:{"simple-marker":Q.Z,"picture-marker":$.Z,cim:q.Z}},json:{name:"drawingInfo.sensorSymbol",write:{writer:tt.cW,overridePolicy:te}}};function tp(t,e){return{type:e,json:{name:t,write:{overridePolicy:te}}}}let td=class extends(0,S.h7)((0,P.M)((0,E.Y)((0,O.q)((0,T.I)((0,h.R)((0,w.N)(C.Z))))))){constructor(t){super(t),this.capabilities=null,this.co
2decs=null,this.connectionInfo=null,this.controller=new Y.Z,this.copyright=null,this.created=null,this.customParameters=null,this.description=null,this.elevationSource=null,this.frame=null,this.frameCenterSymbol=ts.clone(),this.frameCount=null,this.frameEffect=null,this.frameOpacity=1,this.frameOutlineSymbol=tn.clone(),this.fullExtent=null,this.initialExtent=null,this.layerId=null,this.operationalLayerType="ArcGISVideoLayer",this.playbackInfo=null,this.posterUrl=null,this.qualities=null,this.sensorSymbolOrientation={source:"platformHeading",symbolOffset:0},this.sensorSymbol=ta.clone(),this.sensorSightLineSymbol=tl.clone(),this.sensorTrailSymbol=tu.clone(),this.serviceItemId=null,this.sourceJSON=null,this.sourceQuality=null,this.sourceType=null,this.spatialReference=b.Z.WGS84,this.start=0,this.telemetryDisplay=new R.Z,this.type="video",this.url=null,this.version=null,this.videoLayersInfo=null}initialize(){this.addHandles([(0,d.YP)(()=>this.metadata,()=>{this.notifyChange("telemetry"),this.notifyChange("groundControlPoints"),this.notifyChange("frameHorizonPoints")}),(0,d.YP)(()=>this.telemetry?.sensorLocation,t=>this._setSensorTrail(t),d.nn)]),(0,d.N1)(()=>this.loaded&&"can-play"===this.state&&this.duration>0).then(()=>{this.start>=0&&this.start<=this.duration&&this.setCurrentTime(this.start)})}destroy(){this.removeAllHandles(),this.controller&&this.controller.destroy()}load(t){let e=null!=t?t.signal:null,r=this.loadFromPortal({supportedTypes:["Video Service"],supportsData:!1},t).catch(p.r9).then(()=>this._fetchService(e));return this.addResolvingPromise(r),Promise.resolve(this)}get autoplay(){return this.controller?.autoplay??!1}set autoplay(t){this.controller.autoplay=t}get buffered(){return this.controller.buffered}readCapabilitiesFromService(t,e){return(0,V.j)(e)}readConnectionInfo(t,e){let r=Object.values(e.connectionUrl);return r?.length&&(this.controller.playerUrl=r[0]),e.connectionUrl}get currentTime(){return this.controller.currentTime}get duration(){return this.controller.duration}get ended(){return this.controller.ended}get frameHorizonPoints(){return(0,J.F8)(this.metadata)}get groundControlPoints(){return(0,J.Hi)(this.metadata)}get isLive(){return this.controller?.isLive??!1}get livestreamStatus(){return this.controller?.livestreamStatus}get loop(){return this.controller.loop}set loop(t){this.controller.loop=t}get metadata(){return this.controller?.currentMetadata}get mimeType(){return this.controller?.mimeType}get muted(){return this.controller.muted}set muted(t){this.controller.muted=t}get parsedUrl(){return function(t){let e=(0,I.mN)(t.url);return null!=e&&null!=t.layerId&&(e.path=(0,I.v_)(e.path,t.layerId.toString())),e}(this)}get playbackRate(){return this.controller.rate}set playbackRate(t){this.controller.rate=t}get playerUrl(){return this.controller.playerUrl}get playing(){return this.controller.playing}get started(){return this.controller?.started??!1}get state(){return this.controller.state}get telemetry(){return(0,J.ME)(this.metadata)}readTitleFromService(t,{name:e}){return this.url?(0,M.a7)(this.url,e):e}get videoElement(){return this.controller?.element}get videoHeight(){return this.controller?.videoHeight}readLayerInfosFromService(t,e){return(0,J.ge)(e)}get videoTimeExtent(){return(0,n.Mr)(a.Z.getLogger(this),"videoTimeExtent",{replacement:"fullTimeExtent",version:"4.33",warnOnce:!0}),this.fullTimeExtent}get videoWidth(){return this.controller?.videoWidth}get volume(){return this.controller?.volume??0}set volume(t){this.controller.volume=t}get waiting(){return this.controller.waiting}play(){this.controller.play()}pause(){this.controller.pause()}reset(){tr=[],this.controller.reset()}setCurrentTime(t){if(this.duration<0)return;let e=(0,u.uZ)(t,0,this.duration);this.controller.setCurrentTime(e)}toGround(t,e){return this.controller?.sensorModel?.metadataSupportsTransforms?this.controller.sensorModel.transformImageToGeo(t,e):null}toVideo(t){if(!this.controller?.sensorModel?.metadataSupportsTransforms)return null;let e=this.controller.sensorModel.transformGeoToImage(t.x,t.y,t.z);return{x:e[0],y:e[1]}}updateTelemetryColor(t){this.frameCenterSymbol=(0,J.HU)(this.frameCenterSymbol,t)??ts,this.frameOutlineSymbol=(0,J.HU)(this.frameOutlineSymbol,t,ti)??tn,this.sensorSightLineSymbol=(0,J.HU)(this.sensorSightLineSymbol,t)??tl,this.sensorTrailSymbol=(0,J.HU)(this.sensorTrailSymbol,t)??tu,this.sensorSymbol=(0,J.HU)(this.sensorSymbol,t)??ta}write(t,e){return null==this.layerId?(e?.messages?.push(new l.Z("layer:unsupported",`Layer (${this.title}, ${this.id}) of type '${this.declaredClass}' cannot be saved to a web map, web scene, or portal item. The ArcGIS server version must be greater than 11.2.`)),null):super.write(t,e)}async _fetchService(t){if(this.sourceJSON)return void this.read(this.sourceJSON,{origin:"service",url:this.parsedUrl});let{data:e,ssl:r}=await (0,s.Z)(this.url,{query:{f:"json",...this.parsedUrl.query,...this.customParameters},signal:t});if(r&&(this.url=this.url.replace(/^http:/i,"https:")),!e?.currentVersion)return e.currentVersion="11.2",this.sourceJSON=e,void this.read(this.sourceJSON,{origin:"service",url:this.parsedUrl});
2if(this.layerId??=e.layers?.[0]?.id??null,null==this.layerId)throw new l.Z("arcgis-layers:url-mismatch","The url is not a valid arcgis resource");let{data:o}=await (0,s.Z)(this.parsedUrl.path,{query:{f:"json",...this.customParameters},signal:t});this.sourceJSON={...e,...o},this.read(this.sourceJSON,{origin:"service",url:this.parsedUrl})}_setSensorTrail(t){if(!t)return;let e=(tr=[...(0,J.F7)(t,tr)]).map(t=>t.toArray()),r=new f.Z({hasZ:t.hasZ,paths:[e]});this.telemetry.sensorTrail=r.clone()}};(0,o._)([(0,y.Cb)({type:Boolean,json:{write:{ignoreOrigin:!0}}})],td.prototype,"autoplay",null),(0,o._)([(0,y.Cb)({readOnly:!0})],td.prototype,"buffered",null),(0,o._)([(0,y.Cb)({readOnly:!0})],td.prototype,"cameraInfo",void 0),(0,o._)([(0,y.Cb)({readOnly:!0,json:{read:!1}})],td.prototype,"capabilities",void 0),(0,o._)([(0,m.r)("service","capabilities",["supportsAppend","supportsCoverageQuery","supportsExportClip","supportsExportFrameset","supportsMensuration","supportsPreviews","supportsUpdate"])],td.prototype,"readCapabilitiesFromService",null),(0,o._)([(0,y.Cb)({readOnly:!0})],td.prototype,"codecs",void 0),(0,o._)([(0,y.Cb)({readOnly:!0})],td.prototype,"connectionInfo",void 0),(0,o._)([(0,m.r)("connectionInfo",["connectionUrl"])],td.prototype,"readConnectionInfo",null),(0,o._)([(0,y.Cb)()],td.prototype,"controller",void 0),(0,o._)([(0,y.Cb)({type:String})],td.prototype,"copyright",void 0),(0,o._)([(0,y.Cb)({readOnly:!0,type:Date})],td.prototype,"created",void 0),(0,o._)([(0,y.Cb)({type:Number})],td.prototype,"currentTime",null),(0,o._)([(0,y.Cb)({json:{write:!1}})],td.prototype,"customParameters",void 0),(0,o._)([(0,y.Cb)({type:String})],td.prototype,"description",void 0),(0,o._)([(0,y.Cb)({type:Number})],td.prototype,"duration",null),(0,o._)([(0,y.Cb)({readOnly:!0})],td.prototype,"elevationSource",void 0),(0,o._)([(0,y.Cb)({type:Boolean})],td.prototype,"ended",null),(0,o._)([(0,y.Cb)({type:W})],td.prototype,"frame",void 0),(0,o._)([(0,y.Cb)(tp("drawingInfo.frameCenterSymbol",Q.Z))],td.prototype,"frameCenterSymbol",void 0),(0,o._)([(0,y.Cb)({readOnly:!0,type:c.z8})],td.prototype,"frameCount",void 0),(0,o._)([(0,y.Cb)(S.qu)],td.prototype,"frameEffect",void 0),(0,o._)([(0,y.Cb)(N.Oh)],td.prototype,"frameOpacity",void 0),(0,o._)([(0,y.Cb)(tp("drawingInfo.frameOutlineSymbol",X.Z))],td.prototype,"frameOutlineSymbol",void 0),(0,o._)([(0,y.Cb)({type:v.Z})],td.prototype,"fullExtent",void 0),(0,o._)([(0,y.Cb)({readOnly:!0})],td.prototype,"frameHorizonPoints",null),(0,o._)([(0,y.Cb)({readOnly:!0,json:{read:{reader:J.VW,source:"time"}},type:G.Z})],td.prototype,"fullTimeExtent",void 0),(0,o._)([(0,y.Cb)({readOnly:!0})],td.prototype,"groundControlPoints",null),(0,o._)([(0,y.Cb)(N.id)],td.prototype,"id",void 0),(0,o._)([(0,y.Cb)({type:v.Z})],td.prototype,"initialExtent",void 0),(0,o._)([(0,y.Cb)({readOnly:!0})],td.prototype,"isLive",null),(0,o._)([(0,y.Cb)({type:c.z8,json:{read:!1,origins:{service:{read:{source:"id"}}}}})],td.prototype,"layerId",void 0),(0,o._)([(0,y.Cb)({readOnly:!0})],td.prototype,"livestreamStatus",null),(0,o._)([(0,y.Cb)({type:Boolean})],td.prototype,"loop",null),(0,o._)([(0,y.Cb)({readOnly:!0})],td.prototype,"metadata",null),(0,o._)([(0,y.Cb)({readOnly:!0})],td.prototype,"mimeType",null),(0,o._)([(0,y.Cb)({type:Boolean,json:{write:{ignoreOrigin:!0}}})],td.prototype,"muted",null),(0,o._)([(0,y.Cb)({type:["ArcGISVideoLayer"]})],td.prototype,"operationalLayerType",void 0),(0,o._)([(0,y.Cb)({readOnly:!0})],td.prototype,"parsedUrl",null),(0,o._)([(0,y.Cb)({type:x})],td.prototype,"playbackInfo",void 0),(0,o._)([(0,y.Cb)({type:Number})],td.prototype,"playbackRate",null),(0,o._)([(0,y.Cb)({readOnly:!0,type:String})],td.prototype,"playerUrl",null),(0,o._)([(0,y.Cb)({readOnly:!0})],td.prototype,"playing",null),(0,o._)([(0,y.Cb)({readOnly:!0,json:{read:{source:"poster"}}})],td.prototype,"posterUrl",void 0),(0,o._)([(0,y.Cb)({readOnly:!0})],td.prototype,"qualities",void 0),(0,o._)([(0,y.Cb)()],td.prototype,"sensorSymbolOrientation",void 0),(0,o._)([(0,y.Cb)(th)],td.prototype,"sensorSymbol",void 0),(0,o._)([(0,y.Cb)(tp("drawingInfo.sensorSightLineSymbol",B.Z))],td.prototype,"sensorSightLineSymbol",void 0),(0,o._)([(0,y.Cb)(tp("drawingInfo.sensorTrailSymbol",B.Z))],td.prototype,"sensorTrailSymbol",void 0),(0,o._)([(0,y.Cb)({readOnly:!0})],td.prototype,"serviceItemId",void 0),(0,o._)([(0,y.Cb)()],td.prototype,"sourceJSON",void 0),(0,o._)([(0,y.Cb)({readOnly:!0})],td.prototype,"sourceQuality",void 0),(0,o._)([(0,y.Cb)({readOnly:!0,json:{name:"serviceType"}})],td.prototype,"sourceType",void 0),(0,o._)([(0,y.Cb)()],td.prototype,"spatialReference",void 0),(0,o._)([(0,y.Cb)({json:{write:!0}})],td.prototype,"start",void 0),(0,o._)([(0,y.Cb)({readOnly:!0})],td.prototype,"started",null),(0,o._)([(0,y.Cb)({readOnly:!0,t
2ype:String})],td.prototype,"state",null),(0,o._)([(0,y.Cb)({readOnly:!0,type:L.Z})],td.prototype,"telemetry",null),(0,o._)([(0,y.Cb)({type:R.Z,nonNullable:!0,json:{write:{ignoreOrigin:!0}}})],td.prototype,"telemetryDisplay",void 0),(0,o._)([(0,m.r)("service","title",["name"])],td.prototype,"readTitleFromService",null),(0,o._)([(0,y.Cb)({readOnly:!0})],td.prototype,"type",void 0),(0,o._)([(0,y.Cb)(function(){let t=(0,A.d9)(N.HQ),e=t.json?.write;return"object"==typeof e&&e&&(e.writer=function(t,e,r,o){(0,M.wH)(this,t,null,e,o)}),{...t,set:function(t){if(null==t)return void this._set("url",t);let e=(0,M.XG)({layer:this,url:t,nonStandardUrlAllowed:!0,logger:a.Z.getLogger(this)});this._set("url",e.url),null!=e.layerId&&this._set("layerId",e.layerId)}}}())],td.prototype,"url",void 0),(0,o._)([(0,y.Cb)({readOnly:!0,type:Number,json:{read:{source:"currentVersion"}}})],td.prototype,"version",void 0),(0,o._)([(0,y.Cb)({readOnly:!0})],td.prototype,"videoElement",null),(0,o._)([(0,y.Cb)({readOnly:!0})],td.prototype,"videoHeight",null),(0,o._)([(0,y.Cb)({readOnly:!0,json:{read:!1}})],td.prototype,"videoLayersInfo",void 0),(0,o._)([(0,m.r)("service","videoLayersInfo",["id","name","poster","serviceType","type"])],td.prototype,"readLayerInfosFromService",null),(0,o._)([(0,y.Cb)({type:G.Z,readOnly:!0})],td.prototype,"videoTimeExtent",null),(0,o._)([(0,y.Cb)({readOnly:!0})],td.prototype,"videoWidth",null),(0,o._)([(0,y.Cb)()],td.prototype,"volume",null),(0,o._)([(0,y.Cb)({readOnly:!0})],td.prototype,"waiting",null);let ty=td=(0,o._)([(0,g.j)("esri.layers.VideoLayer")],td)},7348:function(t,e,r){"use strict";r.d(e,{Z:function(){return v}});var o=r(73322),i=r(81738),s=r(86652);r(95263),r(58583),r(42082);var n=r(18301),l=r(9418),a=r(88815),u=r(52669),h=r(1941),p=r(79482),d=r(93271),y=r(29666),c=r(49956),m=r(96787),g=r(62506);let _=Math.PI/180,v=class extends i.Z{constructor(t){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=t=>{let e=t[0],r=t[1],o=t[2];return(0,l.al)(e[0],r[0],o[0],e[1],r[1],o[1],e[2],r[2],o[2])},this._multiplyMat3=(t,e)=>{let r=(0,l.Ue)();return(0,u.Jp)(r,t,e),r},this._transposeMat3=t=>{let e=(0,l.Ue)();return(0,u.p4)(e,t),e},this._calculateCameraFovForward=()=>this._createMat3FromValues([[0,0,1],[Math.tan(.5*this.sensorHorizontalFieldOfView*_),0,0],[0,Math.tan(.5*this.sensorVerticalFieldOfView*_),0]]),this._calculateCameraFovReverse=()=>this._createMat3FromValues([[0,1/Math.tan(.5*this.sensorHorizontalFieldOfView*_),0],[0,0,1/Math.tan(.5*this.sensorVerticalFieldOfView*_)],[1,0,0]]),this._calculateCameraLook=()=>this._getRotationMatrixZYX(this.sensorHeadingAngle*_,this.sensorPitchAngle*_,this.sensorRollAngle*_),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=()=>{let t=Math.sin(this.sensorLatitude*_),e=Math.cos(this.sensorLatitude*_),r=Math.sin(this.sensorLongitude*_),o=Math.cos(this.sensorLongitude*_);return this._createMat3FromValues([[-t*o,-r,-e*o],[-t*r,o,-e*r],[e,0,-t]])},this._calculatePlatformOrientation=()=>this._getRotationMatrixZYX(this.platformHeadingAngle*_,this.platformPitchAngle*_,this.platformRollAngle*_),this._extractValues=t=>{this.imageWidth=t.get(g.Eu.EsriVideoWidth)?.value,this.imageHeight=t.get(g.Eu.EsriVideoHeight)?.value;let e=t.get(g.Eu.SensorEllipsoidHeight)?.value;this.sensorAltitude=e??t.get(g.Eu.SensorTrueAltitude)?.value,this.sensorLatitude=t.get(g.Eu.SensorLatitude)?.value,this.sensorLongitude=t.get(g.Eu.SensorLongitude)?.value,this.sensorHeadingAngle=t.get(g.Eu.SensorAzimuthAngle)?.value,this.sensorPitchAngle=t.get(g.Eu.SensorElevationAngle)?.value,this.sensorRollAngle=t.get(g.Eu.SensorRollAngle)?.value,this.sensorHorizontalFieldOfView=t.get(g.Eu.SensorHorizontalFOV)?.value,this.sensorVerticalFieldOfView=t.get(g.Eu.SensorVerticalFOV)?.value,this.platformHeadingAngle=t.get(g.Eu.PlatformHeadingAngle)?.value,this.platformPitchAngle=t.get(g.Eu.PlatformPitchAngle)?.value,this.platformRollAngle=t.get(g.Eu.PlatformRollAngle)?.value,this.averageElevation=t.get(g.Eu.FrameCenterElevation)?.value||0},this._getRotationMatrixZYX=(t,e,r)=>{let o=Math.cos(t),i=Math.sin(t),s=Math.cos(e),n=Math.sin(e),l=Math.cos(r),a=Math.sin(r);
2return this._createMat3FromValues([[o*s,o*n*a-l*i,i*a+o*l*n],[s*i,o*l+i*n*a,l*i*n-o*a],[-n,s*a,s*l]])},this._initCameraSensor=()=>{let t=this._calculateCameraFovForward(),e=this._calculateCameraFovReverse(),r=this._calculateCameraLook(),o=this._calculateImageDimensionsForward(),i=this._calculateImageDimensionsReverse(),s=this._calculatePlatformPositionMatrix(),n=this._calculatePlatformOrientation(),l=this._multiplyMat3(this._multiplyMat3(s,n),r);this._imageToEarthTransform=this._multiplyMat3(this._multiplyMat3(l,t),o);let a=this._multiplyMat3(i,e);this._earthToImageTransform=this._multiplyMat3(a,this._transposeMat3(l)),this._platformPositionEcef=this._projectPointToECEF(this.sensorLongitude,this.sensorLatitude,this.sensorAltitude||this.averageElevation)},this._metadataSupportsTransforms=t=>{if(!t?.size)return!1;let e=t.get(g.Eu.EsriVideoWidth)?.value??0,r=t.get(g.Eu.EsriVideoHeight)?.value??0;if(e<=0||r<=0)return!1;let o=t.get(g.Eu.SensorEllipsoidHeight)?.value,i=t.get(g.Eu.SensorTrueAltitude)?.value,s=t.get(g.Eu.SensorLatitude)?.value,n=t.get(g.Eu.SensorLongitude)?.value;if(null==o&&null==i||null==s||null==n)return!1;let l=t.get(g.Eu.PlatformHeadingAngle)?.value,a=t.get(g.Eu.PlatformPitchAngle)?.value,u=t.get(g.Eu.PlatformRollAngle)?.value;if(null==l||null==a||null==u)return!1;let h=t.get(g.Eu.SensorHorizontalFOV)?.value,p=t.get(g.Eu.SensorVerticalFOV)?.value;if(null==h||null==p)return!1;let d=t.get(g.Eu.SensorAzimuthAngle)?.value,y=t.get(g.Eu.SensorElevationAngle)?.value,c=t.get(g.Eu.SensorRollAngle)?.value;return null!=d&&null!=y&&null!=c},this._projectPointToECEF=(t,e,r)=>{let o=[];return(0,c.projectBuffer)([t,e,r],d.Z.WGS84,0,o,y.wY,0),new p.Z({x:o[0],y:o[1],z:o[2],spatialReference:y.wY})},this._projectImageVectorToEllipsoid=(t,e)=>{let r=m.sv.semiMajorAxis+e,o=m.sv.semiMinorAxis+e,{x:i,y:s,z:n}=this._platformPositionEcef,l=n??this.averageElevation,u=(0,a.al)(i,s,r/o*l),p=(0,h.e)(t,t),d=(0,h.e)(t,u),y=(-d-Math.sqrt(d*d-p*((0,h.e)(u,u)-r*r)))/p;if(y<0)return[NaN,NaN,NaN];let c=(0,a.Ue)();return(0,h.b)(c,u,t,y),c[2]=c[2]*(o/r),c};let e=t?.videoMetadata;this.updateSensorModel(e)}updateSensorModel(t){t?.size&&(this._set("metadataSupportsTransforms",this._metadataSupportsTransforms(t)),this.metadataSupportsTransforms&&(this._extractValues(t),this._initCameraSensor()))}transformGeoToImage(t,e,r){let o=this._platformPositionEcef;if(!o)return[0,0];let{x:i,y:s,z:n}=o,l=(0,a.al)(i,s,n),u=this._projectPointToECEF(t,e,r||this.averageElevation),p=(0,a.Ue)(),d=(0,a.al)(u.x,u.y,u.z);(0,h.d)(p,d,l),(0,h.o)(p,p,this._earthToImageTransform);let y=p[0],c=p[1],m=p[2],g=(0,a.al)(NaN,NaN,NaN);return isNaN(m)||(g=(0,a.al)(y/m,c/m,m/m)),[g[0],g[1]]}transformImageToGeo(t,e){let r;let o=(0,a.al)(t,e,1),i=(0,a.Ue)();(0,h.o)(i,o,this._imageToEarthTransform);let s=this._projectImageVectorToEllipsoid(i,this.averageElevation);if(!isNaN(s[0])){let t=[];(0,c.projectBuffer)([s[0],s[1],s[2]],y.wY,0,t,d.Z.WGS84,0),r=new p.Z({x:t[0],y:t[1],z:t[2],spatialReference:d.Z.WGS84})}return r}};(0,o._)([(0,s.Cb)()],v.prototype,"averageElevation",void 0),(0,o._)([(0,s.Cb)()],v.prototype,"imageHeight",void 0),(0,o._)([(0,s.Cb)()],v.prototype,"imageWidth",void 0),(0,o._)([(0,s.Cb)({readOnly:!0})],v.prototype,"metadataSupportsTransforms",void 0),(0,o._)([(0,s.Cb)()],v.prototype,"platformHeadingAngle",void 0),(0,o._)([(0,s.Cb)()],v.prototype,"platformPitchAngle",void 0),(0,o._)([(0,s.Cb)()],v.prototype,"platformRollAngle",void 0),(0,o._)([(0,s.Cb)()],v.prototype,"sensorHeadingAngle",void 0),(0,o._)([(0,s.Cb)()],v.prototype,"sensorAltitude",void 0),(0,o._)([(0,s.Cb)()],v.prototype,"sensorHorizontalFieldOfView",void 0),(0,o._)([(0,s.Cb)()],v.prototype,"sensorLatitude",void 0),(0,o._)([(0,s.Cb)()],v.prototype,"sensorLongitude",void 0),(0,o._)([(0,s.Cb)()],v.prototype,"sensorPitchAngle",void 0),(0,o._)([(0,s.Cb)()],v.prototype,"sensorRollAngle",void 0),(0,o._)([(0,s.Cb)()],v.prototype,"sensorVerticalFieldOfView",void 0),(0,o._)([(0,s.Cb)()],v.prototype,"vttMetadata",void 0),v=(0,o._)([(0,n.j)("esri.layers.video.VideoCameraSensorModel")],v)}}]);
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.