PageSourceSearch

https://www.bouyguestelecom.fr/statics/landingpages/_next/static/chunks/582.ba0deaae6fe61082.js

js bouyguestelecom.fr collected 2026-09-24 08:39:07 UTC 22,655 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[582],{9531:(e,t,i)=>{i.d(t,{NH:()=>a,ip:()=>o,sU:()=>h,vG:()=>d}),i(74552);var r=i(55114),n=i(85314),s=i(86858);function a(e){let t=l(e);return null!=t?t.toDataURL():""}async function o(e,t){let i=l(e);if(null==i)throw new r.A("imageToArrayBuffer","Unsupported image type");let a=function(e){if(!(e instanceof HTMLImageElement))return"image/png";let t=e.src;if((0,s.DB)(t)){let e=(0,s.r$)(t);return"image/jpeg"===e?.mediaType?e.mediaType:"image/png"}return/\.png$/i.test(t)?"image/png":/\.(jpg|jpeg)$/i.test(t)?"image/jpeg":"image/png"}(e),o=await new Promise(e=>i.toBlob(e,a));if((0,n.Te)(t),!o)throw new r.A("imageToArrayBuffer","Failed to encode image");let h=await o.arrayBuffer();return(0,n.Te)(t),{data:h,type:a}}function l(e){if(e instanceof HTMLCanvasElement)return e;if(e instanceof HTMLVideoElement)return null;let t=document.createElement("canvas");t.width=e.width,t.height=e.height;let i=t.getContext("2d");return e instanceof HTMLImageElement?i.drawImage(e,0,0,e.width,e.height):e instanceof ImageData&&i.putImageData(e,0,0),t}function h(e){let t=[],i=new Uint8Array(e);for(let e=0;e<i.length;e++)t.push(String.fromCharCode(i[e]));return"data:application/octet-stream;base64,"+btoa(t.join(""))}function d(e){if(e.byteLength<8)return!1;let t=new Uint8Array(e);return 137===t[0]&&80===t[1]&&78===t[2]&&71===t[3]&&13===t[4]&&10===t[5]&&26===t[6]&&10===t[7]}},20390:(e,t,i)=>{i.d(t,{A:()=>s,J:()=>n});var r=i(13689);function n(e,t){let i;if("string"==typeof e)i=(0,r.Wm)(e+`-seed(${t})`);else{let r=12;i=e^t;do i=107*(i>>8^i)+r|0;while(0!=--r)}return(1+-(i/0x80000000))/2}function s(e){return Math.floor(n(e,a)*o)}let a=0x32d2550,o=10},27594:(e,t,i)=>{i.d(t,{A:()=>C});var r=i(40566),n=i(81868),s=i(99895),a=i(3790),o=i(57055),l=i(34698),h=i(75149),d=i(87444),u=i(73307),c=i(31462),m=i(88284),p=i(45850),f=i(78108),_=i(10153),y=i(99793),v=i(49493),g=i(80256),w=i(33402);class x extends g.ZA{}(0,v._)([(0,g.C5)(0,w.ZY)],x.prototype,"pos",void 0),(0,v._)([(0,g.C5)(1,w.ZY)],x.prototype,"uv",void 0);class A extends g.HS{}class T extends g.k2{}(0,v._)([(0,g.Pi)(w.U)],T.prototype,"dvs",void 0);class M extends g.k2{}(0,v._)([(0,g.Pi)(w.ZY)],M.prototype,"perspective",void 0),(0,v._)([(0,g.Pi)(w.ZY)],M.prototype,"texSize",void 0),(0,v._)([(0,g.Pi)(w.nt)],M.prototype,"wrapAroundShift",void 0),(0,v._)([(0,g.Pi)(w.nt)],M.prototype,"opacity",void 0),(0,v._)([(0,g.Pi)(w.z7)],M.prototype,"texture",void 0);class E extends g.A{vertex(e){let t=e.uv.divide(this.config.texSize),i=new w.nt(1).add((0,w.Om)(t,this.config.perspective)),r=new w.eB(e.pos.add(new w.ZY(this.config.wrapAroundShift,0)),1),n=this.transform.dvs.multiply(r);return{uv:t,glPosition:new w.Zb(n.xy.multiply(i),0,i)}}fragment(e){let t=(0,w.US)(this.config.texture,e.uv).multiply(this.config.opacity),i=new g.mm;return i.glFragColor=t,i}}(0,v._)([(0,g.Pi)(T)],E.prototype,"transform",void 0),(0,v._)([(0,g.Pi)(M)],E.prototype,"config",void 0),(0,v._)([(0,v.a)(0,(0,g.hF)(x))],E.prototype,"vertex",null),(0,v._)([(0,v.a)(0,(0,g.hF)(A))],E.prototype,"fragment",null);var S=i(36609);class b extends _.j{constructor(){super(...arguments),this.type=y.N.Overlay,this._mesh=null,this.shaders={overlay:new E}}render(e,t){let{context:i,painter:r}=e,n=this._getMesh(e,t);r.setPipelineState(f.i);let{isWrapAround:s,wrapAroundShift:a}=t.config,o={...t.config,wrapAroundShift:0},l={shader:this.shaders.overlay,uniforms:{transform:t.transform,config:o},defines:null,optionalAttributes:null,useComputeBuffer:!1};r.setPipelineState({...f.i,stencil:{write:!1,test:{compare:S.MT.EQUAL,op:{fail:S.eA.KEEP,zFail:S.eA.KEEP,zPass:S.eA.REPLACE},ref:0,mask:255}}}),r.submitDrawMeshUntyped(i,l,n),s&&(o.wrapAroundShift=a,r.submitDrawMeshUntyped(i,l,n))}shutdown(){(0,m.pR)(this._mesh)}_getMesh(e,t){let{context:i}=e;if(this._mesh){let e=this._mesh.vertexBuffers.get("positions");if(!e)throw Error("Buffer not found");e.setData(t.position)}else{let e=null!=t.index?t.index.length:t.position.length/2;this._mesh=new p.e(i,{vertex:{positions:t.position,uvs:t.tex},index:null!=t.index?{index:t.index}:void 0,groups:[{attributes:[{name:"pos",count:2,type:S.pe.FLOAT,location:0,vertex:"positions",stride:8,offset:0},{name:"tex",count:2,type:S.pe.UNSIGNED_SHORT,location:1,vertex:"uvs",stride:4,offset:0}],index:null!=t.index?"index":void 0,primitive:S.WR.TRIANGLE_STRIP}],parts:[{group:0,start:0,count:e}]})}return this._mesh}}class C extends c.A{constructor(){super(...arguments),this._viewStateId=-1,this._dvsMat3=(0,s.vt)(),this._overlayTechnique=new b}get dvsMat3(){return this._dvsMat3}beforeRender(e){for(let t of(this._updateMatrices(e),this._updateOverlays(e,this.children),this.children))t.beforeRender(e)}doRender(e){if(e.drawPhase!==u.S5.MAP||!this.visible)return;super.doRender(e);let t=this._overlayTechnique;for(let i of this.children)i.draw(e,t)}onDetach(){this._overlayTechnique.shutdown()}_updateMatrices(e){let{state:t}=e,{id:i,size:s,pixelRatio:h,resolution:d,rotation:u,viewpoint:c,displayMat3:m}=t;if(this._viewStateId===i)return;let p=(0,r.DF)(u),f=h*s[0],_=h*s[1];this._localOrigin=c.targetGeometry.clone();let{x:y,y:v}=this._localOrigin,g=(0,l.mT)(y,t.spatialReference);this._localOrigin.x=g,this._localOrigin.y=v;let w=(0,n.D_)(this._dvsMat3);(0,n.lw)(w,w,m),(0,n.Tl)(w,w,(0,a.fA)(f/2,_/2)),(0,n.hs)(w,w,(0,o.fA)(f/(d*f),-_/(d*_),1)),(0,n.e$)(w,w,-p),this._viewStateId=i}_updateOverlays(e,t){let{state:i}=e,{rotation:n,spatialReference:s,worldScreenWidth:a,size:o,viewpoint:l}=i,u=this._localOrigin,c,m=0,p=(0,h.Vp)(s);if(p&&s.isWrappable){let e,t=o[0],h=o[1],u=(0,r.DF)(n),f=Math.round(t*Math.abs(Math.cos(u))+h*Math.abs(Math.sin(u))),[_,y]=p.valid,v=(0,d.FT)(s),{x:g,y:w}=l.targetGeometry,x=[0,0];i.toScreen(x,[g,w]);let A=[0,0];e=f>a?.5*a:.5*f;let T=Math.floor((g+.5*v)/v),M=[x[0]+e,0];i.toMap(A,M),A[0]>y+T*v&&(m=v),M[0]=x[0]-e,i.toMap(A,M),A[0]<_+T*v&&(m=-v),c={worldWidth:v,xBounds:[_,y]}}for(let e of t)e.updateDrawCoords(u,m,s,c)}}},30582:(e,t,i)=>{i.r(t),i.d(t,{default:()=>$});var r=i(49493);i(98952),i(35968),i(46636),i(30939),i(91115),i(34005),i(64357),i(71094),i(10575),i(49562),i(41140);var n=i(64988);i(96098);var s=i(52984),a=i(55114);i(74552);var o=i(94839),l=i(85314),h=i(23096),d=i(9491);i(32243);var u=i(44708),c=i(54249),m=i(78820),p=i(27390),f=i(98414);i(48630),i(32978),i(2460),i(21990),i(5904);var _=i(13240);i(20644);var y=i(3917);i(15365),i(20124),i(1589),i(47069),i(7989),i(32307),i(444),i(77091),i(18509),i(78552),i(75149),i(4498),i(68863),i(86225),i(6046),i(47297),i(94420),i(2204),i(95700),i(73368),i(96617),i(96839),i(41270),i(31595),i(29394),i(82725),i(14178),i(35394),i(27446),i(42764),i(13285),i(4636),i(79397),i(26883),i(3790),i(75317),i(10360),i(10062),i(74372),i(17933),i(50661),i(73307),i(92961),i(10092),i(37338);var v=i(36609);i(1279),i(25205);var g=i(87960);i(69229),i(42013),i(19432),i(78572),i(33550),i(36610),i(30854),i(3585),i(22254),i(75174),i(60633),i(73801),i(86858),i(42988),i(56465),i(99793),i(50764),i(87718),i(85953),i(43592),i(42806),i(73257),i(35495),i(74507),i(56782),i(97320),i(90352),i(71902),i(77290),i(44094),i(28394),i(61662),i(53908),i(30801),i(10968),i(8037),i(55729),i(54680),i(8950),i(15815),i(59513),i(9358),i(70777),i(2071),i(57055),i(64172),i(5120),i(20026),i(45533),i(16128),i(92739),i(78321),i(7705),i(17927),i(12079),i(75983),i(28244),i(90964),i(37191),i(1259),i(57356),i(6713);var w=i(60145),x=i(65271),A=i(4069),T=i(68891),M=i(88284),E=i(41163),S=i(78824),b=i(97671),C=i(30237),F=i(22018),R=i(30868),V=i(56429);let D=[1,1],q=(0,S.vt)(),O={none:_.fu.None,loop:_.fu.Loop,oscillate:_.fu.Oscillate};class P extends F.q{constructor(e){super(),this.elementView=e,this.isWrapAround=!1,this.wrapAroundShift=0,this.perspectiveTransform=(0,C.vt)(),this._handles=new T.A,this._vertices=new Float32Array(8),this._indices=new Uint16Array([0,0,0,1,1,0,1,1,1,1,0,0,0,0,0,1,1,0,1,1]),this._handles.add([(0,h.wB)(()=>this.elementView.element.opacity,e=>this.opacity=e,h.Vh),(0,h.wB)(()=>[this.elementView.coords],()=>{this.requestRender()},h.Vh),(0,h.wB)(()=>["animationOptions"in this.elementView.element&&this.elementView.element.animationOptions],(
1)=>{this._handles.remove("play"),this.texture=(0,M.WD)(this.texture),this.requestRender()},h.Vh),(0,h.z7)(()=>this.elementView.element.loaded,()=>{let e=this.elementView.element;this.ready(),"video"===e.type&&null!=e.content&&(this._handles.add([(0,A.on)(e.content,"play",()=>this.requestRender()),(0,A.on)(e.content,"loadeddata",()=>this.requestRender()),(0,A.on)(e.content,"loaded",()=>this.requestRender())]),"requestVideoFrameCallback"in e.content?e.content.requestVideoFrameCallback(()=>this.requestRender()):this._handles.add([(0,A.on)(e.content,"seeked",()=>this.requestRender())]),this.requestRender())},h.Vh)]),e.element.load().catch(t=>{n.A.getLogger("esri.views.2d.layers.MediaLayerView2D").error(new a.A("element-load-error","Element cannot be displayed",{element:e,error:t}))})}getMesh(e){throw Error("Method not implemented.")}destroy(){this._handles.destroy(),this.texture=(0,M.WD)(this.texture)}get textureSize(){return D}get dvsMat3(){return this.parent.dvsMat3}beforeRender(e){let{context:t}=e,i=this.elementView.element.content;if(null!=i){let e=i instanceof HTMLImageElement,n=i instanceof HTMLVideoElement,s=e?i.naturalWidth:n?i.videoWidth:i.width,a=e?i.naturalHeight:n?i.videoHeight:i.height;if(this._updatePerspectiveTransform(s,a),this.texture)n&&(this.texture.setData(i),this.texture.generateMipmap(),"requestVideoFrameCallback"in i?i.requestVideoFrameCallback(()=>this.requestRender()):i.paused||this.requestRender());else{let e=new V.R;if(e.wrapMode=v.pF.CLAMP_TO_EDGE,e.preMultiplyAlpha=!0,e.width=s,e.height=a,"getFrame"in i){var r;"animationOptions"in this.elementView.element&&this._handles.add((0,R.ZH)(i,(r=this.elementView.element.animationOptions)?{type:"CIMAnimatedSymbolProperties",...r,playAnimation:r.playing,repeatType:r.repeatType?O[r.repeatType]:void 0}:{type:"CIMAnimatedSymbolProperties"},null,i=>{this.texture?this.texture.setData(i):this.texture=new g.g(t,e,i),this.requestRender()}),"play")}else this.texture=new g.g(t,e,i);this.texture.generateMipmap(),n&&("requestVideoFrameCallback"in i?i.requestVideoFrameCallback(()=>this.requestRender()):i.paused||this.requestRender())}}super.beforeRender(e)}_createTransforms(){return null}draw(e,t){this.isReady&&null!=this.texture?t.render(e,{transform:{dvs:this.dvsMat3},config:{perspective:this.perspectiveTransform,texSize:D,wrapAroundShift:this.wrapAroundShift,isWrapAround:this.isWrapAround,opacity:this.opacity,texture:{texture:this.texture,unit:0}},position:this._vertices,tex:this._indices}):this.requestRender()}updateDrawCoords(e,t,i,r){let{coords:n,bounds:s}=this.elementView;if(null==n||null==s)return;let[a,o,l,h]=n.rings[0],d=this._vertices,{x:u,y:c}=e;d.set([o[0]-u,o[1]-c,a[0]-u,a[1]-c,l[0]-u,l[1]-c,h[0]-u,h[1]-c]);let m=t;if(r){let[e,,t]=s,{worldWidth:i,xBounds:n}=r,[a,o]=n;e<a&&t>a?m=i:t>o&&e<o&&(m=-i)}this.wrapAroundShift=m,this.isWrapAround=0!==m}_updatePerspectiveTransform(e,t){let i=this._vertices;(0,E.O)(q,[0,0,e,0,0,t,e,t],[i[0],i[1],i[4],i[5],i[2],i[3],i[6],i[7]]),(0,b.hZ)(this.perspectiveTransform,q[6]/q[8]*e,q[7]/q[8]*t)}}var z=i(27594),L=i(13419),Z=i(62578),U=i(29498);let k=class extends U.A{constructor(){super(...arguments),this.tool="transform"}};(0,r._)([(0,d.MZ)()],k.prototype,"tool",void 0),k=(0,r._)([(0,u.$)("esri.views.3d.layers.support.MediaLayerInteractionOptions")],k);let B=e=>{let t=class extends e{constructor(...e){super(...e),this.layer=null,this.interactive=!1,this.interactionOptions=new k,this.selectedElement=null}};return(0,r._)([(0,d.MZ)()],t.prototype,"layer",void 0),(0,r._)([(0,d.MZ)()],t.prototype,"interactive",void 0),(0,r._)([(0,d.MZ)()],t.prototype,"interactionOptions",void 0),(0,r._)([(0,d.MZ)()],t.prototype,"selectedElement",void 0),t=(0,r._)([(0,u.$)("esri.views.layers.MediaLayerView")],t)};var H=i(80132);let I=class extends(0,L.e)(B(Z.A)){constructor(){super(...arguments),this._overlayContainer=null,this._fetchQueue=null,this._tileStrategy=null,this._elementReferences=new Map,this._debugGraphicsView=null,this._interaction=null,this.layer=null,this.elements=new s.A}initialize(){this.addHandles([(0,h.wB)(()=>[this.interactive,this.suspended],async()=>
1{if(this.interactive&&!this._interaction){let{MediaLayerInteraction:e}=await i.e(9968).then(i.bind(i,59968));this._interaction=new e({view:this.view,layer:this.layer}),this.selectedElement!==this._interaction.selectedElement&&(this._interaction.selectedElement=this.selectedElement),this.interactionOptions!==this._interaction.options&&(this._interaction.options=this.interactionOptions)}this._interaction&&(this._interaction.enabled=!this.suspended&&this.interactive)},h.pc),(0,h.wB)(()=>this.interactionOptions,e=>{this._interaction&&(this._interaction.options=e)},h.pc),(0,h.wB)(()=>this.selectedElement,e=>{this._interaction&&(this._interaction.selectedElement=e)},h.pc)])}attach(){this.addAttachHandles([(0,h.on)(()=>this.layer.effectiveSource,"refresh",()=>{this._tileStrategy.refresh(e=>this._updateTile(e)),this.requestUpdate()}),(0,h.on)(()=>this.layer.effectiveSource,"change",({element:e})=>this._elementUpdateHandler(e))]),this._overlayContainer=new z.A,this.container.addChild(this._overlayContainer),this._fetchQueue=new w.A({tileInfoView:this.view.featuresTilingScheme,concurrency:10,process:(e,t)=>this._queryElements(e,t),scheduler:this.scheduler,priority:H.W6.MAPVIEW_FETCH_QUEUE}),this._tileStrategy=new x.A({cachePolicy:"purge",resampling:!0,acquireTile:e=>this._acquireTile(e),releaseTile:e=>this._releaseTile(e),tileInfoView:this.view.featuresTilingScheme}),this.requestUpdate()}detach(){this.elements.removeAll(),this._tileStrategy.destroy(),this._fetchQueue.destroy(),this._overlayContainer.removeAllChildren(),this.container.removeAllChildren(),this._elementReferences.clear(),this._debugGraphicsView?.destroy()}supportsSpatialReference(e){return!0}viewChange(){this.requestUpdate()}moveEnd(){this.requestUpdate()}update(e){this._tileStrategy.update(e),this._debugGraphicsView?.update(e)}async hitTest(e,t){let i=[],r=e.normalize(),n=[r.x,r.y];for(let{elementView:{normalizedCoords:t,element:r}}of this._elementReferences.values())null!=t&&(0,m.t1)(t.rings,n)&&i.push({type:"media",element:r,layer:this.layer,mapPoint:e,sourcePoint:r.toSource(e)});return i.reverse()}canResume(){return null!=this.layer.source&&super.canResume()}async doRefresh(){this._fetchQueue.reset(),this._tileStrategy.refresh(e=>this._updateTile(e))}_acquireTile(e){let t=new j(e.clone());return this._updateTile(t),t}_updateTile(e){this._updatingHandles.addPromise(this._fetchQueue.push(e.key).then(t=>{let[i,r]=e.setElements(t);this._referenceElements(e,i),this._dereferenceElements(e,r),this.requestUpdate()},e=>{(0,l.zf)(e)||n.A.getLogger(this).error(e)}))}_releaseTile(e){this._fetchQueue.abort(e.key.id),e.elements&&this._dereferenceElements(e,e.elements),this.requestUpdate()}async _queryElements(e,t){let i=this.layer.effectiveSource;if(null==i)return[];this.view.featuresTilingScheme.getTileBounds(G,e,!0);let r=new y.A({xmin:G[0],ymin:G[1],xmax:G[2],ymax:G[3],spatialReference:this.view.spatialReference});return i.queryElements(r,t)}_referenceElements(e,t){if(null!=this.layer.source)for(let i of t)this._referenceElement(e,i)}_referenceElement(e,t){(0,o.tE)(this._elementReferences,t.uid,()=>{let e=new f._({element:t,spatialReference:this.view.spatialReference}),i=new P(e);return this._overlayContainer.addChild(i),this.elements.add(t),this._updatingHandles.addPromise(t.load().catch(e=>{n.A.getLogger("esri.views.2d.layers.MediaLayerView2D").error(new a.A("element-load-error","Element cannot be displayed",{element:t,error:e}))})),{debugGraphic:null,elementView:e,overlay:i,tiles:new Set}}).tiles.add(e)}_dereferenceElements(e,t){for(let i of t)this._dereferenceElement(e,i)}_dereferenceElement(e,t){let i=this._elementReferences.get(t.uid);i.tiles.delete(e),i.tiles.size||(this._overlayContainer.removeChild(i.overlay),i.overlay.destroy(),i.elementView.destroy(),this._elementReferences.delete(t.uid),this.elements.remove(t),this._debugGraphicsView?.graphics.remove(i.debugGraphic))}_elementUpdateHandler(e){let t=this._elementReferences.get(e.uid);if(t){let i=t.elementView.normalizedCoords;if(null==i)return this._overlayContainer.removeChild(t.overlay),t.overlay.destroy(),t.elementView.destroy(),this._elementReferences.delete(e.uid),this.elements.remove(e),void this._debugGraphicsView?.graphics.remove(t.debugGraphic);let r=[],n=[];for(let e of this._tileStrategy.tiles){let s=N(this.view.featuresTilingScheme,e,i);t.tiles.has(e)?s||n.push(e):s&&r.push(e)}for(let t of r)this._referenceElement(t,e);for(let t of n)this._dereferenceElement(t,e);return t=this._elementReferences.get(e.uid),void(t?.debugGraphic&&(t.debugGraphic.geometry=t.elementView.normalizedCoords,this._debugGraphicsView.graphicUpdateHandler({graphic:t.debugGraphic,property:"geometry"})))}let i=new f._({element:e,spatialReference:this.view.spatialReference}).normalizedCoords;if(null!=i)for(let t of this._tileStrategy.tiles)N(this.view.featuresTilingScheme,t,i)&&this._referenceElement(t,e)}};(0,r._)([(0,d.MZ)()],I.prototype,"layer",void 0),(0,r._)([(0,d.MZ)({readOnly:!0})],I.prototype,"elements",void 0),I=(0,r._)([(0,u.$)("esri.views.2d.layers.MediaLayerView2D")],I);let G=(0,c.vt)(),W={xmin:0,ymin:0,xmax:0,ymax:0};function N(e,t,i){return e.getTileBounds(G,t.key,!0),W.xmin=G[0],W.ymin=G[1],W.xmax=G[2],W.ymax=G[3],(0,p.fA)(W,i)}class j{constructor(e){this.key=e,this.elements=null,this.isReady=!1,this.visible=!0}setElements(e){let t=[],i=new Set(this.elements);for(let r of(this.elements=e,e))i.has(r)?i.delete(r):t.push(r);return this.isReady=!0,[t,Array.from(i)]}destroy(){}}let $=I},30868:(e,t,i)=>{i.d(t,{ZH:()=>h});var r=i(1655),n=i(97489);i(9531);var s=i(13240),a=i(20390);function o(e,t){let{width:i,height:r,getFrame:s}=e,a=e.frameDurations.slice(),o=a.pop();return a.push((0,n.l5)(o+t)),{frameCount:e.frameCount,duration:e.duration+t,frameDurations:a,getFrame:s,width:i,height:r}}class l{constructor(e,t,i,r){this._animation=e,this._repeatType=i,this._onFrameData=r,this._direction=1,this._currentFrame=0,this.timeToFrame=this._animation.frameDurations[this._currentFrame];let n=0;for(;t>n;)n+=this.timeToFrame,this.nextFrame();let s=this._animation.getFrame(this._currentFrame);this._onFrameData(s)}nextFrame(){if(this._currentFrame+=this._direction,this._direction>0){if(this._currentFrame===this._animation.frameDurations.length)switch(this._repeatType){case s.fu.None:this._currentFrame-=this._direction;break;case s.fu.Loop:this._currentFrame=0;break;case s.fu.Oscillate:this._currentFrame-=this._direction,this._direction=-1}}else if(-1===this._currentFrame)switch(this._repeatType){case s.fu.None:this._currentFrame-=this._direction;break;case s.fu.Loop:this._currentFrame=this._animation.frameDurations.length-1;break;case s.fu.Oscillate:this._currentFrame-=this._direction,this._direction=1}this.timeToFrame=this._animation.frameDurations[this._currentFrame];let e=this._animation.getFrame(this._currentFrame);this._onFrameData(e)}}function h(e,t,i,h){let d=null==t.playAnimation||t.playAnimation,u=function(e,t,i,r){let h,{repeatType:d}=t;if(null==d&&(d=s.fu.Loop),!0===t.reverseAnimation&&(e=function(e){let{width:t,height:i}=e,r=e.frameDurations.reverse();return{frameCount:e.frameCount,duration:e.duration,frameDurations:r,getFrame:t=>{let i=e.frameDurations.length-1-t;return e.getFrame(i)},width:t,height:i}}(e)),null!=t.duration&&(e=function(e,t){let{width:i,height:r,getFrame:s}=e,a=t/e.duration,o=e.frameDurations.map(e=>(0,n.l5)(e*a));return{frameCount:e.frameCount,duration:e.duration,frameDurations:o,getFrame:s,width:i,height:r}}(e,(0,n.l5)(1e3*t.duration))),null!=t.repeatDelay){let i=1e3*t.repeatDelay;d===s.fu.Loop?e=o(e,(0,n.l5)(i)):d===s.fu.Oscillate&&(e=function(e,t){let{width:i,height:r,getFrame:s}=e,a=e.frameDurations.slice(),o=a.shift();return a.unshift((0,n.l5)(o+t)),{frameCount:e.frameCount,duration:e.duration+t,frameDurations:a,getFrame:s,width:i,height:r}}(o(e,(0,n.l5)(i/2)),(0,n.l5)(i/2)))}if(null!=t.startTimeOffset)h=(0,n.l5)(1e3*t.startTimeOffset);else if(null!=t.randomizeStartTime){var u;let r=null!=t.randomizeStartSeed?t.randomizeStartSeed:0x4eea9d9,s=(0,a.J)(i,r);h=(0,n.l5)(s*(u=e,(0,n.l5)(u.frameDurations.reduce((e,t)=>
1e+t,0))))}else h=(0,n.l5)(0);return new l(e,h,d,r)}(e,t,i,h),c,m=u.timeToFrame;return function e(){c=d?setTimeout(()=>{u.nextFrame(),m=u.timeToFrame,e()},m):void 0}(),(0,r.hA)(()=>d&&clearTimeout(c))}},41163:(e,t,i)=>{i.d(t,{O:()=>c,W:()=>u});var r=i(81868),n=i(78824),s=i(97671),a=i(33790);let o=(0,i(74832).vt)(),l=(0,n.vt)(),h=(0,n.vt)(),d=(0,n.vt)();function u(e,t,i){return(0,a.i)(o,t[0],t[1],1),(0,a.q)(o,o,(0,r.mg)(l,i)),0===o[2]?(0,s.hZ)(e,o[0],o[1]):(0,s.hZ)(e,o[0]/o[2],o[1]/o[2])}function c(e,t,i){return m(h,t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]),m(d,i[0],i[1],i[2],i[3],i[4],i[5],i[6],i[7]),(0,r.lw)(e,(0,r.KC)(h,h),d),0!==e[8]&&(e[0]/=e[8],e[1]/=e[8],e[2]/=e[8],e[3]/=e[8],e[4]/=e[8],e[5]/=e[8],e[6]/=e[8],e[7]/=e[8],e[8]/=e[8]),e}function m(e,t,i,n,s,h,d,u,c){(0,r.hZ)(e,t,n,h,i,s,d,1,1,1),(0,a.i)(o,u,c,1),(0,r.KC)(l,e);let[m,p,f]=(0,a.q)(o,o,(0,r.mg)(l,l));return(0,r.hZ)(l,m,0,0,0,p,0,0,0,f),(0,r.lw)(e,l,e)}},78824:(e,t,i)=>{function r(){return[1,0,0,0,1,0,0,0,1]}function n(e,t,i,r,n,s,a,o,l){return[e,t,i,r,n,s,a,o,l]}i.d(t,{fA:()=>n,vt:()=>r,zK:()=>s});let s=r();Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:function(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8]]},create:r,createView:function(e,t){return new Float64Array(e,t,9)},fromValues:n},Symbol.toStringTag,{value:"Module"}))},98414:(e,t,i)=>{i.d(t,{_:()=>u});var r=i(49493),n=i(29498),s=i(9491);i(74552),i(64988),i(32243);var a=i(44708),o=i(47069),l=i(42398),h=i(54249),d=i(6038);let u=class extends n.A{constructor(e){super(e)}get bounds(){let e=this.coords;return null==e?.extent?null:(0,h.VY)(e.extent)}get coords(){let e=this.element.georeference?.coords;return(0,l.projectOrLoad)(e,this.spatialReference).geometry}get normalizedCoords(){return o.A.fromJSON((0,d.jZ)(this.coords))}get normalizedBounds(){let e=null!=this.normalizedCoords?this.normalizedCoords.extent:null;return null!=e?(0,h.VY)(e):null}};(0,r._)([(0,s.MZ)()],u.prototype,"spatialReference",void 0),(0,r._)([(0,s.MZ)()],u.prototype,"element",void 0),(0,r._)([(0,s.MZ)()],u.prototype,"bounds",null),(0,r._)([(0,s.MZ)()],u.prototype,"coords",null),(0,r._)([(0,s.MZ)()],u.prototype,"normalizedCoords",null),(0,r._)([(0,s.MZ)()],u.prototype,"normalizedBounds",null),u=(0,r._)([(0,a.$)("esri.layers.support.MediaElementView")],u)}}]);

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.