From ebd7788630a362ddd9ef53873c4df490212bd48c Mon Sep 17 00:00:00 2001 From: boeckMt Date: Wed, 29 Nov 2023 15:39:08 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20dlr-eoc/?= =?UTF-8?q?ukis-frontend-libraries@07eef69d340819a6066d41153a590d49e292c38?= =?UTF-8?q?8=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 151.a22877e85c9a9400.js | 1 + 270.68b9da206dc51488.js | 1 + 3rdpartylicenses.txt | 21 +++++++++++++++++++++ 712.ec49f870e3fd5199.js | 1 + 788.e118ce280bc38581.js | 1 - 839.deab7edf51ba9868.js | 1 - 892.a7be54076d6b55ba.js | 1 + 899.697f411c6548efc1.js | 1 + assets/route-maplibre.jpg | Bin 0 -> 44940 bytes index.html | 2 +- main.48f0abc4a0d8c232.js | 1 - main.58a2c91e5b044bd9.js | 1 + runtime.2b1dfdaee78b08ec.js | 1 - runtime.ca817e4046f9afdb.js | 1 + 14 files changed, 29 insertions(+), 5 deletions(-) create mode 100644 151.a22877e85c9a9400.js create mode 100644 270.68b9da206dc51488.js create mode 100644 712.ec49f870e3fd5199.js delete mode 100644 788.e118ce280bc38581.js delete mode 100644 839.deab7edf51ba9868.js create mode 100644 892.a7be54076d6b55ba.js create mode 100644 899.697f411c6548efc1.js create mode 100644 assets/route-maplibre.jpg delete mode 100644 main.48f0abc4a0d8c232.js create mode 100644 main.58a2c91e5b044bd9.js delete mode 100644 runtime.2b1dfdaee78b08ec.js create mode 100644 runtime.ca817e4046f9afdb.js diff --git a/151.a22877e85c9a9400.js b/151.a22877e85c9a9400.js new file mode 100644 index 000000000..a7c33cc84 --- /dev/null +++ b/151.a22877e85c9a9400.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdemo_maps=self.webpackChunkdemo_maps||[]).push([[151],{5151:(q,S,n)=>{n.r(S),n.d(S,{RouteMapModule:()=>H,RouteMapRoutingModule:()=>T});var w=n(8692),F=n(8808),L=n(7223),l=n(5548),M=n(790),c=n(4074),g=n(1899),G=n(3590),_=n(6852);const R=JSON.parse('{"type":"FeatureCollection","poperties":{"description":"This are a few test cities and locations collected with geojson.io"},"features":[{"type":"Feature","properties":{"name":"Munich"},"geometry":{"type":"Point","coordinates":[11.575899124145508,48.137740422322295]}},{"type":"Feature","properties":{"name":"Landshut"},"geometry":{"type":"Point","coordinates":[12.152938842773436,48.5370678355958]}},{"type":"Feature","properties":{"name":"Ulm"},"geometry":{"type":"Point","coordinates":[9.986572265624998,48.40003249610685]}},{"type":"Feature","properties":{"name":"Ingolstadt"},"geometry":{"type":"Point","coordinates":[11.42578125,48.75618876280552]}},{"type":"Feature","properties":{"name":"Paris"},"geometry":{"type":"Point","coordinates":[2.3291015625,48.83579746243093]}},{"type":"Feature","properties":{"name":"Dreux"},"geometry":{"type":"Point","coordinates":[1.3677978515625,48.73445537176822]}},{"type":"Feature","properties":{"name":"Meaux"},"geometry":{"type":"Point","coordinates":[2.8729248046875,48.95497369808868]}},{"type":"Feature","properties":{"name":"Rome"},"geometry":{"type":"Point","coordinates":[12.480468749999998,41.86956082699455]}},{"type":"Feature","properties":{"name":"Anzio"},"geometry":{"type":"Point","coordinates":[12.6287841796875,41.4509614012039]}},{"type":"Feature","properties":{"name":"Berlin"},"geometry":{"type":"Point","coordinates":[13.403320312499998,52.50953477032727]}},{"type":"Feature","properties":{"name":"Potsdam"},"geometry":{"type":"Point","coordinates":[13.058624267578125,52.40074312027673]}}]}');var E=n(1786),A=n(694),I=n(795),D=n(5253),e=n(4537);let b=(()=>{class a{constructor(){}ngOnInit(){}}return a.\u0275fac=function(t){return new(t||a)},a.\u0275cmp=e.Xpm({type:a,selectors:[["app-example-layer-description"]],inputs:{layer:"layer",description:"description"},decls:9,vars:1,consts:[[1,"custom-description"]],template:function(t,o){1&t&&(e.TgZ(0,"div",0),e._uU(1),e.TgZ(2,"p"),e._uU(3," This description was styled with a dynamic component as the layer.description. "),e.qZA(),e.TgZ(4,"p"),e._uU(5," Keep in mind that this breaks @dlr-eoc/services-ogc generateResourceFromLayer() for this layer when exporting a "),e.TgZ(6,"b"),e._uU(7,"IOwsContext"),e.qZA(),e._uU(8,". "),e.qZA()()),2&t&&(e.xp6(1),e.hij(" ",o.description,". "))},styles:[".custom-description[_ngcontent-%COMP%]{word-break:normal;color:#0072a3}.custom-description[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{word-break:normal;color:#ffa52e}"]}),a})(),J=(()=>{class a{constructor(){this.legendImages=[]}ngOnInit(){this.legendImages=this.group.layers.filter(t=>t.legendImg&&"string"==typeof t.legendImg).map(t=>({url:t.legendImg})).reverse()}}return a.\u0275fac=function(t){return new(t||a)},a.\u0275cmp=e.Xpm({type:a,selectors:[["app-example-group-legend"]],inputs:{group:"group"},decls:6,vars:4,consts:[[1,"wrapper"],["width","256","height","256",1,"stacked",3,"src"],["usemap","#legendmap",3,"src"],["name","legendmap"],["shape","rect","coords","0,0,256,128","alt","top","title","Show full Image overlay","target","_blank",3,"href"],["shape","rect","coords","0,128,256,256","alt","below","title","Show full Image base","target","_blank",3,"href"]],template:function(t,o){1&t&&(e.TgZ(0,"div",0),e._UZ(1,"img",1)(2,"img",2),e.TgZ(3,"map",3),e._UZ(4,"area",4)(5,"area",5),e.qZA()()),2&t&&(e.xp6(1),e.Q6J("src",o.legendImages[0].url,e.LSH),e.xp6(1),e.Q6J("src",o.legendImages[1].url,e.LSH),e.xp6(2),e.Q6J("href",o.legendImages[0].url,e.LSH),e.xp6(1),e.Q6J("href",o.legendImages[1].url,e.LSH))},styles:[".wrapper[_ngcontent-%COMP%]{position:relative}.wrapper[_ngcontent-%COMP%] .stacked[_ngcontent-%COMP%]{position:absolute;pointer-events:none}"]}),a})();var U=n(4969),d=n(6799);let B=(()=>{class a{constructor(){this.fillColor="rgba(196, 203, 205, 1)",this.fillChanged=!1}ngOnInit(){const t=this.layer;if(t){const o=t.options.style;let s=o.layers.findIndex(p=>"water"===p.id);this.fillChanged=o.layers[s].paint["fill-color"]!==this.fillColor}}switchWater(t){const o=this.layer,s=o.options.style;let p=s.layers.findIndex(y=>"water"===y.id);this.fillChanged?(s.layers[p].paint["fill-color"]=this.fillColor,this.fillChanged=!1):(s.layers[p].paint["fill-color"]="rgba(0, 0, 0, 1)",this.fillChanged=!0),this.layersSvc.updateLayer(o)}}return a.\u0275fac=function(t){return new(t||a)},a.\u0275cmp=e.Xpm({type:a,selectors:[["app-vtile-layer-action"]],inputs:{layer:"layer",layersSvc:"layersSvc"},decls:4,vars:2,consts:[["type","checkbox","name","switch_water","clrCheckbox","",3,"value","checked","change"]],template:function(t,o){1&t&&(e.TgZ(0,"clr-checkbox-wrapper")(1,"label"),e._uU(2," Change Water color "),e.qZA(),e.TgZ(3,"input",0),e.NdJ("change",function(p){return o.switchWater(p)}),e.qZA()()),2&t&&(e.xp6(3),e.Q6J("value",o.fillChanged)("checked",o.fillChanged))},dependencies:[d.MgK,d.KKC,d.PEh]}),a})();var C=n(3534),k=n(408),N=n(580),V=n(3307);function j(a,i){if(1&a&&e._UZ(0,"ukis-map-ol",12),2&a){const t=e.oxw();e.Q6J("layersSvc",t.layersSvc)("mapState",t.mapStateSvc)("controls",t.controls)}}let Q=(()=>{class a{constructor(t,o,s,p){this.layersSvc=t,this.mapStateSvc=o,this.mapSvc=s,this.wmsSvc=p,this.class="content-container",this.showMap=!0,this.controls={attribution:!0,scaleLine:!0}}ngOnInit(){this.mapSvc.map.addControl(new G.S),this.addBaseLayers(),this.addLayers(),this.addOverlays(),this.setExtent()}setExtent(){this.mapStateSvc.setExtent([-14,33,40,57])}parseCapabilities(){this.wmsSvc.getCapabilities("https://geoservice.dlr.de/eoc/land/wms").subscribe(t=>{const o=this.wmsSvc.getLayerFromCapabilities("AGRODE_S2_EVI_P1M",t);console.log(o)})}addBaseLayers(){const t=new l.DJ({name:"Transparenter Hintergrund",id:"blank",type:"geojson"}),o=new c.aZ({tileSize:512}),s=new c.HF,p=new l.WQ({id:"eocLiteAndOverlay",name:"EOC Lite with Overlay",description:"merged/stacked Layers EOC Lite with Overlay",legendImg:o.legendImg,layers:[o,s],visible:!0}),y=new l.RC({type:"wmts",url:"https://tiles.geoservice.dlr.de/service/wmts",name:"Relief",id:"world_relief_bw",params:{layer:"eoc:world_relief_bw",style:"_empty",matrixSetOptions:{matrixSet:"EPSG:3857",tileMatrixPrefix:"EPSG:3857"}},visible:!1,description:{component:b,inputs:{description:"eoc:world_relief_bw as web map tile service"}},attribution:'Relief: DLR/EOC',legendImg:""});[p,new c.gY({id:"OSM_Base"}),t,y,new l.DJ({name:"Open Map Styles",id:"planet_eoc_vector_tiles",attribution:'\xa9 OpenMapTiles \xa9 OpenStreetMap contributors',description:'EOC-Geoservice TMS-Service, Vector Tiles with OpenMapTiles and customised positron Style.',type:"tms",url:"https://{s}.tiles.geoservice.dlr.de/service/tms/1.0.0/planet_eoc@EPSG%3A900913@pbf/{z}/{x}/{y}.pbf?flipy=true",subdomains:["a","b","c","d"],options:{style:U,styleSource:"planet_eoc"},visible:!1,action:{component:B,inputs:{layersSvc:this.layersSvc}}})].map(h=>this.layersSvc.addLayer(h,"Baselayers"))}addLayers(){const t=new l.YY({type:"wms",url:"https://geoservice.dlr.de/eoc/land/wms",name:"GUF Mosaic",id:"GUF28_DLR_v1_Mosaic",params:{LAYERS:"GUF28_DLR_v1_Mosaic",STYLES:"guf_8bit"},tileSize:512,visible:!1,description:"GUF28_DLR_v1_Mosaic",attribution:' | GUF\xae: DLR License',legendImg:"",popup:{asyncPopup:(r,f)=>{!function Z(a,i,t){const o=a.layer.getSource(),s=a.mapEvent,p=i.map.getView().getResolution(),y=o.getFeatureInfoUrl(s.coordinate,p,i.EPSG,{INFO_FORMAT:"application/json"});fetch(y).then(u=>u.json()).catch(u=>{console.log(u)}).then(u=>{if(u.features.length){const m=i.createPopupHtml(u.features[0].properties);t(m)}else t("

No Data!

")})}(r,this.mapSvc,f)}}}),o=new l.RC({type:"wmts",url:"https://tiles.geoservice.dlr.de/service/wmts",name:"TDM90 DEM",id:"TDM90_DEM",params:{layer:"TDM90_DEM",style:"default",matrixSetOptions:{matrixSet:"EPSG:3857",tileMatrixPrefix:"EPSG:3857"},format:"image/png"},visible:!1,description:"TDM90_DEM maxZoom: 8",attribution:' | TDM90 Data \xa9: DLR licensed for scientific use',legendImg:"https://tiles.geoservice.dlr.de/service/wmts?layer=TDM90_DEM&style=default&tilematrixset=EPSG%3A3857&Service=WMTS&Request=GetTile&Version=1.0.0&Format=image%2Fpng&TileMatrix=EPSG%3A3857%3A4&TileCol=8&TileRow=5",cssClass:"custom-layer"}),s=new l.DJ({id:"geojson_test",name:"GeoJSON Vector Layer",attribution:"\xa9 DLR GeoJSON",type:"geojson",data:{type:"FeatureCollection",features:[{type:"Feature",properties:{title:"Polygon"},geometry:{type:"Polygon",coordinates:[[[11.53564453125,48.80686346108517],[11.42578125,48.61838518688487],[11.97509765625,48.516604348867475],[12.2607421875,48.69096039092549],[12.0849609375,48.99463598353405],[11.53564453125,48.80686346108517]]]}},{type:"Feature",properties:{title:"Rectangle"},geometry:{type:"Polygon",coordinates:[[[10.986328125,43.89789239125797],[11.755371093749998,43.89789239125797],[11.755371093749998,44.41808794374846],[10.986328125,44.41808794374846],[10.986328125,43.89789239125797]]]}},{type:"Feature",properties:{title:"Line"},geometry:{type:"LineString",coordinates:[[13.29345703125,48.268569112964336],[15.073242187499998,47.56170075451973],[14.1064453125,46.40756396630067],[15.886230468750002,44.94924926661153]]}},{type:"Feature",properties:{title:"Point"},geometry:{type:"Point",coordinates:[11.513671874999998,46.42271253466717]}}]},visible:!1,popup:{event:"move",dynamicPopup:{component:_.F,getAttributes:r=>({data:r.properties})}}}),p=new l.DJ({id:"geojson_test_3",name:"GeoJSON Point Layer",type:"geojson",data:{type:"FeatureCollection",features:[{type:"Feature",properties:{title:"Munich",type:"City",image:"https://en.wikipedia.org/wiki/Munich#/media/File:Stadtbild_M%C3%BCnchen.jpg",wiki:"https://en.wikipedia.org/wiki/Munich"},geometry:{type:"Point",coordinates:[11.557617187499998,48.151428143221224]}}]},visible:!1,popup:{properties:{title:"Title",type:"Type"}}}),y=new l.DJ({id:"geojson_test_2",name:"Vector Layer in Group",type:"geojson",data:{type:"FeatureCollection",features:[{type:"Feature",properties:{type:"Polygon",name:"Vector Layer in Group",data:"geojson"},geometry:{type:"Polygon",coordinates:[[[-4.9658203125,41.09591205639546],[-6.459960937499999,39.52099229357195],[-5.009765625,38.42777351132902],[-1.8896484375,38.77121637244273],[-.68115234375,40.84706035607122],[-2.900390625,41.65649719441145],[-4.9658203125,41.09591205639546]]]}}]},visible:!1,popup:["type","name"],actions:[{title:"download",icon:"download-cloud",action:r=>{console.log(r)}}]}),u=new l.DJ({id:"geojson_test_cluster",name:"Cluster - GeoJSON Vector Layer",type:"geojson",cluster:{distance:20},data:R,visible:!0,actions:[{title:"update Layer",icon:"sync",action:r=>{r.cluster.distance=25,r.options||(r.options={}),r.options.style=f=>{const P=f.get("features").length;return new E.ZP({image:new I.Z({radius:P<=1?6:10,stroke:new D.Z({color:"#fff"}),fill:new A.Z({color:P<=1?"green":"red"})})})},this.layersSvc.updateLayer(r)}}],popup:{popupFunction:r=>`
${JSON.stringify(r.properties)}
`},expanded:{tab:"settings",expanded:!1}}),m=new l.DJ({id:"WfsLayer",name:"WFS Pennsylvania",type:"wfs",visible:!1,url:"https://ahocevar.com/geoserver/wfs?service=WFS&request=GetFeature&outputFormat=application/json&version=1.1.0&srsname=EPSG:3857&typenames=usa:states&cql_filter=STATE_NAME='Pennsylvania'",bbox:[-83.1005859375,38.37611542403604,-72.50976562499999,43.03677585761058],popup:{dynamicPopup:{component:_.F,getAttributes:r=>({data:r})}}}),v=new c.RP;v.cssClass="hide";const h=new c.HF,x=new c.fc;x.legendImg="https://tiles.geoservice.dlr.de/service/wmts?layer=eoc%3Aliteoverlay&style=_empty&tilematrixset=EPSG%3A3857&Service=WMTS&Request=GetTile&Version=1.0.0&Format=image%2Fpng&TileMatrix=EPSG%3A3857%3A4&TileCol=8&TileRow=5";const Y=new l.ex({id:"group_1",name:"Test Group",layers:[v,h,x],description:"This is a group with a hidden eocBasemap (layer.cssClass = hide), eocBaseoverlay and a eocLiteoverlay",expanded:{tab:"description"},actions:[{title:"download",icon:"download-cloud",action:r=>{console.log(r)}}]}),O=new c.fc;O.id="eoc_Liteoverlay_2";const K=new l.ex({id:"group_2",name:"Test Group 2",description:{component:b,inputs:{description:"A LayerGroup with a hidden vectorLayer2."}},legendImg:{component:J},cssClass:"custom-layer-group",layers:[o,y,O]}),X=new l.ex({id:"group_3",name:"Test Group Vector-Data",expanded:!1,layers:[s,p,m]});[t,new c.HX({popup:{popupFunction:r=>`\n \n \n \n \n \n \n \n \n \n \n \n
Name: ${r.properties.name}
type: ${r.properties.type}
\n \n `}}),X,K,Y,u].map(r=>{r instanceof l.mh?this.layersSvc.addLayer(r,"Layers"):r instanceof l.ex&&this.layersSvc.addLayerGroup(r)})}addOverlays(){const t=new c.um({crossOrigin:"anonymous"}),o=new c.zc({crossOrigin:"anonymous"});this.layersSvc.addLayer(t,"Overlays"),this.layersSvc.addLayer(o,"Overlays");const s=new c.um({id:"merge_BlueMarble"}),p=new c.fc({id:"merge_Liteoverlay"}),y=new l.WQ({id:"BlueMarbleTile_Overlay",name:"BlueMarble with Overlay",visible:!1,legendImg:s.legendImg,description:"merged/stacked Layers BlueMarble with Overlay",layers:[s,p]});this.layersSvc.addLayer(y,"Overlays")}updateLayerGroup(){const t=this.layersSvc.getLayerOrGroupById("group_1");t.expanded=!0,t.layers[1].cssClass=null,this.layersSvc.updateLayerGroup(t);const o=this.layersSvc.getLayerOrGroupById("group_2");o.layers[1].visible=!0,this.layersSvc.updateLayerGroup(o)}addLayerToGroup(){const t=this.layersSvc.getLayerOrGroupById("group_2"),o=new c.Bz;this.layersSvc.addLayerToGroup(o,t)}removeAllLayers(){this.layersSvc.removeLayers()}toggleMap(){this.showMap=!this.showMap}}return a.\u0275fac=function(t){return new(t||a)(e.Y36(l.KD),e.Y36(M.I3),e.Y36(g.BR),e.Y36(C.zU))},a.\u0275cmp=e.Xpm({type:a,selectors:[["app-route-map"]],hostVars:2,hostBindings:function(t,o){2&t&&e.Tol(o.class)},features:[e._Bn([l.KD,M.I3,g.BR])],decls:34,vars:14,consts:[[1,"content-area"],["id","olMap",3,"layersSvc","mapState","controls",4,"ngIf"],[1,"right",3,"clrVerticalNavCollapsible","clr-nav-level"],[1,"layers",3,"clrVerticalNavGroupExpanded"],["shape","world","title","Overlays","clrVerticalNavIcon",""],[1,"padding","title-ellipsis"],[3,"layersSvc","mapStateSvc","layerfilter"],["shape","layers","clrVerticalNavIcon","","title","layers"],[3,"layersSvc","mapStateSvc"],["shape","world","title","Baselayers","clrVerticalNavIcon",""],["shape","cog","title","Actions","clrVerticalNavIcon",""],[1,"btn","btn-primary",3,"click"],["id","olMap",3,"layersSvc","mapState","controls"]],template:function(t,o){1&t&&(e.TgZ(0,"main",0),e.YNc(1,j,1,3,"ukis-map-ol",1),e.qZA(),e.TgZ(2,"clr-vertical-nav",2)(3,"clr-vertical-nav-group",3),e._UZ(4,"clr-icon",4),e._uU(5," Overlays "),e.TgZ(6,"clr-vertical-nav-group-children",5),e._UZ(7,"ukis-layer-control",6),e.qZA()(),e.TgZ(8,"clr-vertical-nav-group",3),e._UZ(9,"clr-icon",7),e._uU(10," Layers "),e.TgZ(11,"clr-vertical-nav-group-children",5),e._UZ(12,"ukis-layer-control",8),e.qZA()(),e.TgZ(13,"clr-vertical-nav-group",3),e._UZ(14,"clr-icon",9),e._uU(15," Baselayers "),e.TgZ(16,"clr-vertical-nav-group-children",5),e._UZ(17,"ukis-base-layer-control",8),e.qZA()(),e.TgZ(18,"clr-vertical-nav-group",3),e._UZ(19,"clr-icon",10),e._uU(20," Actions "),e.TgZ(21,"clr-vertical-nav-group-children",5)(22,"button",11),e.NdJ("click",function(){return o.updateLayerGroup()}),e._uU(23,"update LayerGroup"),e.qZA(),e.TgZ(24,"button",11),e.NdJ("click",function(){return o.addLayerToGroup()}),e._uU(25,"add Layer to LayerGroup"),e.qZA(),e.TgZ(26,"button",11),e.NdJ("click",function(){return o.removeAllLayers()}),e._uU(27,"remove All Layers"),e.qZA(),e.TgZ(28,"button",11),e.NdJ("click",function(){return o.setExtent()}),e._uU(29,"set Extent"),e.qZA(),e.TgZ(30,"button",11),e.NdJ("click",function(){return o.parseCapabilities()}),e._uU(31,"Parse WMS capabilities"),e.qZA(),e.TgZ(32,"button",11),e.NdJ("click",function(){return o.toggleMap()}),e._uU(33,"toggle Map"),e.qZA()()()()),2&t&&(e.xp6(1),e.Q6J("ngIf",o.showMap),e.xp6(1),e.Q6J("clrVerticalNavCollapsible",!0)("clr-nav-level",2),e.xp6(1),e.Q6J("clrVerticalNavGroupExpanded",!0),e.xp6(4),e.Q6J("layersSvc",o.layersSvc)("mapStateSvc",o.mapStateSvc)("layerfilter","Overlays"),e.xp6(1),e.Q6J("clrVerticalNavGroupExpanded",!0),e.xp6(4),e.Q6J("layersSvc",o.layersSvc)("mapStateSvc",o.mapStateSvc),e.xp6(1),e.Q6J("clrVerticalNavGroupExpanded",!0),e.xp6(4),e.Q6J("layersSvc",o.layersSvc)("mapStateSvc",o.mapStateSvc),e.xp6(1),e.Q6J("clrVerticalNavGroupExpanded",!0))},dependencies:[w.O5,d.qvL,d.saT,d.fzC,d.A0B,d.d6G,d.ogR,k.E,N.l,V.j],styles:["[_nghost-%COMP%] .custom-layer-group .head>.title{color:#660f00}[_nghost-%COMP%] .custom-layer .head>.title{color:#b87d00}[_nghost-%COMP%] .zoom-number{bottom:2.5em;left:8px}"]}),a})();var z=n(5508);const W=[{path:"",component:Q}];let T=(()=>{class a{}return a.\u0275fac=function(t){return new(t||a)},a.\u0275mod=e.oAB({type:a}),a.\u0275inj=e.cJS({imports:[L.Bz.forChild(W),L.Bz]}),a})(),H=(()=>{class a{}return a.\u0275fac=function(t){return new(t||a)},a.\u0275mod=e.oAB({type:a}),a.\u0275inj=e.cJS({imports:[w.ez,F.q,T,d.K6A,z.cE,g.oC,C.yU]}),a})()}}]); \ No newline at end of file diff --git a/270.68b9da206dc51488.js b/270.68b9da206dc51488.js new file mode 100644 index 000000000..fd7ef5323 --- /dev/null +++ b/270.68b9da206dc51488.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdemo_maps=self.webpackChunkdemo_maps||[]).push([[270],{4074:(l,r,o)=>{o.d(r,{um:()=>b,RP:()=>y,HF:()=>u,Kl:()=>p,aZ:()=>c,fc:()=>m,HX:()=>f,zc:()=>n,gY:()=>s,Bz:()=>d});var a=o(5548);class s extends a.YY{constructor(e){const t={name:"OpenStreetMap",displayName:"OpenStreetMap",id:"osm",visible:!1,type:"xyz",url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",subdomains:["a","b","c"],attribution:'©, OpenStreetMap contributors',continuousWorld:!1,legendImg:"https://a.tile.openstreetmap.org/3/4/3.png",description:"OpenStreetMap z-x-y Tiles",opacity:1};e&&Object.assign(t,e),super(t)}}class n extends a.YY{constructor(e){const t={name:"OpenSeaMap",displayName:"OpenSeaMap",id:"OpenSeaMap",visible:!1,type:"xyz",removable:!1,url:"https://{s}.openseamap.org/seamark/{z}/{x}/{y}.png",subdomains:["t1"],attribution:'©, OpenSeaMap',continuousWorld:!1,legendImg:"https://t1.openseamap.org/seamark/10/554/321.png",description:"http://map.openseamap.org/",opacity:1};e&&Object.assign(t,e),super(t)}}class p extends a.TI{constructor(e){const t={name:"EOC Litemap",displayName:"EOC Litemap",id:"eoc_litemap",visible:!1,type:"wms",removable:!1,params:{LAYERS:"litemap",FORMAT:"image/png",TRANSPARENT:!0},url:"https://geoservice.dlr.de/eoc/basemap/wms",attribution:'©, DLR',continuousWorld:!1,legendImg:"https://geoservice.dlr.de/eoc/basemap/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&LAYERS=litemap&ATTRIBUTION=&WIDTH=256&HEIGHT=256&CRS=EPSG%3A3857&STYLES=&BBOX=0%2C0%2C10018754.171394622%2C10018754.171394622",description:"http://www.naturalearthdata.com/about/",opacity:1};e&&Object.assign(t,e),super(t)}}class c extends a.RC{constructor(e){const t={name:"EOC Litemap Tile",displayName:"EOC Litemap Tile",id:"eoc_litemap_tile",visible:!1,type:"wmts",removable:!1,params:{layer:"eoc:litemap",format:"image/png",style:"_empty",matrixSetOptions:{matrixSet:"EPSG:3857",tileMatrixPrefix:"EPSG:3857"}},url:"https://tiles.geoservice.dlr.de/service/wmts",attribution:'©, DLR',continuousWorld:!1,legendImg:"https://tiles.geoservice.dlr.de/service/wmts?layer=eoc%3Alitemap&style=_empty&tilematrixset=EPSG%3A3857&Service=WMTS&Request=GetTile&Version=1.0.0&Format=image%2Fpng&TileMatrix=EPSG%3A3857%3A5&TileCol=18&TileRow=11",description:"EOC Litemap as web map tile service",opacity:1};e&&Object.assign(t,e),super(t)}}class m extends a.RC{constructor(e){const t={name:"EOC Liteoverlay Tile",displayName:"EOC LiteoverlayTile",id:"eoc_Liteoverlay_tile",visible:!1,type:"wmts",removable:!1,params:{layer:"eoc:liteoverlay",format:"image/png",style:"_empty",matrixSetOptions:{matrixSet:"EPSG:3857",tileMatrixPrefix:"EPSG:3857"}},url:"https://tiles.geoservice.dlr.de/service/wmts",attribution:'©, DLR',continuousWorld:!1,legendImg:"https://tiles.geoservice.dlr.de/service/wmts?layer=eoc%3Aliteoverlay&style=_empty&tilematrixset=EPSG%3A3857&Service=WMTS&Request=GetTile&Version=1.0.0&Format=image%2Fpng&TileMatrix=EPSG%3A3857%3A5&TileCol=18&TileRow=11",description:"This is the liteoverlay provided for EOC Service Portals",opacity:1};e&&Object.assign(t,e),super(t)}}class y extends a.RC{constructor(e){const t={name:"EOC Basemap Tile",displayName:"EOC Basemap Tile",id:"eoc_basemap_tile",visible:!1,type:"wmts",removable:!1,params:{layer:"eoc:basemap",format:"image/png",style:"_empty",matrixSetOptions:{matrixSet:"EPSG:3857",tileMatrixPrefix:"EPSG:3857"}},url:"https://tiles.geoservice.dlr.de/service/wmts",attribution:'©, DLR',continuousWorld:!1,legendImg:"https://tiles.geoservice.dlr.de/service/wmts?layer=eoc%3Abasemap&style=_empty&tilematrixset=EPSG%3A3857&Service=WMTS&Request=GetTile&Version=1.0.0&Format=image%2Fpng&TileMatrix=EPSG%3A3857%3A5&TileCol=18&TileRow=11",description:"This is the basemap for DLR Service Portals",opacity:1};e&&Object.assign(t,e),super(t)}}class u extends a.RC{constructor(e){const t={name:"EOC Baseoverlay Tile",displayName:"EOC Baseoverlay Tile",id:"eoc_Baseoverlay_tile",visible:!1,type:"wmts",removable:!1,params:{layer:"eoc:baseoverlay",format:"image/png",style:"_empty",matrixSetOptions:{matrixSet:"EPSG:3857",tileMatrixPrefix:"EPSG:3857"}},url:"https://tiles.geoservice.dlr.de/service/wmts",attribution:'©, DLR',continuousWorld:!1,legendImg:"https://tiles.geoservice.dlr.de/service/wmts?layer=eoc%3Abaseoverlay&style=_empty&tilematrixset=EPSG%3A3857&Service=WMTS&Request=GetTile&Version=1.0.0&Format=image%2Fpng&TileMatrix=EPSG%3A3857%3A5&TileCol=18&TileRow=11",description:"This is the basemap for DLR Service Portals",opacity:1};e&&Object.assign(t,e),super(t)}}class b extends a.RC{constructor(e){const t={name:"BlueMarble Tile",displayName:"BlueMarble Tile",id:"blueMarble_tile",visible:!1,type:"wmts",removable:!1,params:{layer:"bmng_topo_bathy",format:"image/png",style:"_empty",matrixSetOptions:{matrixSet:"EPSG:3857",tileMatrixPrefix:"EPSG:3857"}},url:"https://tiles.geoservice.dlr.de/service/wmts",attribution:'©, DLR',continuousWorld:!1,legendImg:"https://tiles.geoservice.dlr.de/service/wmts?layer=bmng_topo_bathy&style=_empty&tilematrixset=EPSG%3A3857&Service=WMTS&Request=GetTile&Version=1.0.0&Format=image%2Fpng&TileMatrix=EPSG%3A3857%3A5&TileCol=18&TileRow=11",description:"Blue Marble NG dataset with topography and bathymetry",opacity:1};e&&Object.assign(t,e),super(t)}}class d extends a.RC{constructor(e){const t={name:"World Relief B/W Tile",displayName:"World Relief B/W Tile",id:"eoc:world_relief_bw",visible:!1,type:"wmts",removable:!1,params:{layer:"eoc:world_relief_bw",format:"image/png",style:"_empty",matrixSetOptions:{matrixSet:"EPSG:3857",tileMatrixPrefix:"EPSG:3857"}},url:"https://tiles.geoservice.dlr.de/service/wmts",attribution:'©, DLR',continuousWorld:!1,legendImg:"https://tiles.geoservice.dlr.de/service/wmts?layer=eoc%3Aworld_relief_bw&style=_empty&tilematrixset=EPSG%3A3857&Service=WMTS&Request=GetTile&Version=1.0.0&Format=image%2Fpng&TileMatrix=EPSG%3A3857%3A5&TileCol=18&TileRow=11",description:"World Relief Black / White",opacity:1};e&&Object.assign(t,e),super(t)}}class f extends a.RC{constructor(e){const t={name:"Hillshade Tile",displayName:"Hillshade Tile",id:"eoc_hillshade",visible:!1,type:"wmts",removable:!1,params:{layer:"hillshade",format:"image/png",style:"_empty",matrixSetOptions:{matrixSet:"EPSG:3857",tileMatrixPrefix:"EPSG:3857"}},url:"https://tiles.geoservice.dlr.de/service/wmts",attribution:'©, DLR',continuousWorld:!1,legendImg:"https://tiles.geoservice.dlr.de/service/wmts?layer=hillshade&style=_empty&tilematrixset=EPSG%3A3857&Service=WMTS&Request=GetTile&Version=1.0.0&Format=image%2Fpng&TileMatrix=EPSG%3A3857%3A5&TileCol=18&TileRow=11",description:"Global Hillshade based on GMTED2010",opacity:1};e&&Object.assign(t,e),super(t)}}},4969:l=>{l.exports=JSON.parse('{"version":8,"name":"Positron","metadata":{"mapbox:autocomposite":false,"mapbox:groups":{"101da9f13b64a08fa4b6ac1168e89e5f":{"collapsed":false,"name":"Places"},"a14c9607bc7954ba1df7205bf660433f":{"name":"Boundaries"},"b6371a3f2f5a9932464fa3867530a2e5":{"collapsed":false,"name":"Transportation"}},"mapbox:type":"template","openmaptiles:mapbox:owner":"openmaptiles","openmaptiles:mapbox:source:url":"mapbox://openmaptiles.4qljc88t","openmaptiles:version":"3.x","maputnik:renderer":"mbgljs","maputnik:thunderforest_access_token":""},"sources":{"planet_eoc":{"type":"vector","__Comment":"The url to the tilejson is not public available so we use the tiles array to skip the request, to make use of the tms service. See https://github.com/openlayers/ol-mapbox-style/blob/v8.2.1/src/util.js#L109","url":"","tiles":["https://a.tiles.geoservice.dlr.de/service/tms/1.0.0/planet_eoc@EPSG%3A900913@pbf/{z}/{x}/{y}.pbf?flipy=true","https://b.tiles.geoservice.dlr.de/service/tms/1.0.0/planet_eoc@EPSG%3A900913@pbf/{z}/{x}/{y}.pbf?flipy=true","https://c.tiles.geoservice.dlr.de/service/tms/1.0.0/planet_eoc@EPSG%3A900913@pbf/{z}/{x}/{y}.pbf?flipy=true","https://d.tiles.geoservice.dlr.de/service/tms/1.0.0/planet_eoc@EPSG%3A900913@pbf/{z}/{x}/{y}.pbf?flipy=true"]}},"sprite":"https://openmaptiles.github.io/positron-gl-style/sprite","glyphs":"http://fonts.openmaptiles.org/{fontstack}/{range}.pbf","layers":[{"id":"background","type":"background","paint":{"background-color":"rgb(242,243,240)"}},{"id":"park","type":"fill","source":"planet_eoc","source-layer":"park","filter":["==","$type","Polygon"],"layout":{"visibility":"none"},"paint":{"fill-color":"rgb(230, 233, 229)"}},{"id":"water","type":"fill","source":"planet_eoc","source-layer":"water","filter":["all",["==","$type","Polygon"],["!=","brunnel","tunnel"]],"layout":{"visibility":"visible"},"paint":{"fill-antialias":true,"fill-color":"rgba(196, 203, 205, 1)"}},{"id":"landcover_ice_shelf","type":"fill","source":"planet_eoc","source-layer":"landcover","maxzoom":8,"filter":["all",["==","$type","Polygon"],["==","subclass","ice_shelf"]],"layout":{"visibility":"visible"},"paint":{"fill-color":"hsl(0, 0%, 98%)","fill-opacity":0.7}},{"id":"landcover_glacier","type":"fill","source":"planet_eoc","source-layer":"landcover","maxzoom":8,"filter":["all",["==","$type","Polygon"],["==","subclass","glacier"]],"layout":{"visibility":"visible"},"paint":{"fill-color":"hsl(0, 0%, 98%)","fill-opacity":{"base":1,"stops":[[0,1],[8,0.5]]}}},{"id":"landuse_residential","type":"fill","source":"planet_eoc","source-layer":"landuse","minzoom":0,"maxzoom":24,"filter":["all",["==","$type","Polygon"],["==","class",""]],"layout":{"visibility":"visible"},"paint":{"fill-color":"rgb(234, 234, 230)","fill-opacity":{"base":0.6,"stops":[[8,0.8],[9,0.6]]}}},{"id":"landcover_wood","type":"fill","source":"planet_eoc","source-layer":"landcover","minzoom":0,"filter":["all",["==","$type","Polygon"],["==","class","wood"]],"layout":{"visibility":"none"},"paint":{"fill-color":"rgb(220,224,220)","fill-opacity":{"base":1,"stops":[[0,1],[12,1]]}}},{"id":"waterway","type":"line","source":"planet_eoc","source-layer":"waterway","filter":["==","$type","LineString"],"layout":{"visibility":"visible"},"paint":{"line-color":"hsl(195, 17%, 78%)"}},{"id":"water_name","type":"symbol","source":"planet_eoc","source-layer":"water_name","filter":["==","$type","LineString"],"layout":{"symbol-placement":"line","symbol-spacing":500,"text-field":"{name:latin}\\n{name:nonlatin}","text-font":["Metropolis Medium Italic","Noto Sans Italic"],"text-rotation-alignment":"map","text-size":12},"paint":{"text-color":"rgb(157,169,177)","text-halo-blur":1,"text-halo-color":"rgb(242,243,240)","text-halo-width":1}},{"id":"building","type":"fill","source":"planet_eoc","source-layer":"building","minzoom":12,"paint":{"fill-antialias":true,"fill-color":"rgb(234, 234, 229)","fill-outline-color":"rgb(219, 219, 218)"}},{"id":"tunnel_motorway_casing","type":"line","metadata":{"mapbox:group":"b6371a3f2f5a9932464fa3867530a2e5"},"source":"planet_eoc","source-layer":"transportation","minzoom":6,"filter":["all",["==","$type","LineString"],["all",["==","brunnel","tunnel"],["==","class","motorway"]]],"layout":{"line-cap":"butt","line-join":"miter","visibility":"visible"},"paint":{"line-color":"rgb(213, 213, 213)","line-opacity":1,"line-width":{"base":1.4,"stops":[[5.8,0],[6,3],[20,40]]}}},{"id":"tunnel_motorway_inner","type":"line","metadata":{"mapbox:group":"b6371a3f2f5a9932464fa3867530a2e5"},"source":"planet_eoc","source-layer":"transportation","minzoom":6,"filter":["all",["==","$type","LineString"],["all",["==","brunnel","tunnel"],["==","class","motorway"]]],"layout":{"line-cap":"round","line-join":"round","visibility":"visible"},"paint":{"line-color":"rgb(234,234,234)","line-width":{"base":1.4,"stops":[[4,2],[6,1.3],[20,30]]}}},{"id":"aeroway-taxiway","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"planet_eoc","source-layer":"aeroway","minzoom":12,"filter":["all",["in","class","taxiway"]],"layout":{"line-cap":"round","line-join":"round","visibility":"visible"},"paint":{"line-color":"hsl(0, 0%, 88%)","line-opacity":1,"line-width":{"base":1.55,"stops":[[13,1.8],[20,20]]}}},{"id":"aeroway-runway-casing","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"planet_eoc","source-layer":"aeroway","minzoom":11,"filter":["all",["in","class","runway"]],"layout":{"line-cap":"round","line-join":"round","visibility":"visible"},"paint":{"line-color":"hsl(0, 0%, 88%)","line-opacity":1,"line-width":{"base":1.5,"stops":[[11,6],[17,55]]}}},{"id":"aeroway-area","type":"fill","metadata":{"mapbox:group":"1444849345966.4436"},"source":"planet_eoc","source-layer":"aeroway","minzoom":4,"filter":["all",["==","$type","Polygon"],["in","class","runway","taxiway"]],"layout":{"visibility":"visible"},"paint":{"fill-color":"rgba(255, 255, 255, 1)","fill-opacity":{"base":1,"stops":[[13,0],[14,1]]}}},{"id":"aeroway-runway","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"planet_eoc","source-layer":"aeroway","minzoom":11,"filter":["all",["in","class","runway"],["==","$type","LineString"]],"layout":{"line-cap":"round","line-join":"round","visibility":"visible"},"paint":{"line-color":"rgba(255, 255, 255, 1)","line-opacity":1,"line-width":{"base":1.5,"stops":[[11,4],[17,50]]}}},{"id":"road_area_pier","type":"fill","metadata":{},"source":"planet_eoc","source-layer":"transportation","filter":["all",["==","$type","Polygon"],["==","class","pier"]],"layout":{"visibility":"none"},"paint":{"fill-antialias":true,"fill-color":"rgb(242,243,240)"}},{"id":"road_pier","type":"line","metadata":{},"source":"planet_eoc","source-layer":"transportation","filter":["all",["==","$type","LineString"],["in","class","pier"]],"layout":{"line-cap":"round","line-join":"round","visibility":"none"},"paint":{"line-color":"rgb(242,243,240)","line-width":{"base":1.2,"stops":[[15,1],[17,4]]}}},{"id":"highway_path","type":"line","metadata":{"mapbox:group":"b6371a3f2f5a9932464fa3867530a2e5"},"source":"planet_eoc","source-layer":"transportation","filter":["all",["==","$type","LineString"],["==","class","path"]],"layout":{"line-cap":"round","line-join":"round","visibility":"none"},"paint":{"line-color":"rgba(238, 235, 235, 1)","line-opacity":0.9,"line-width":{"base":1.2,"stops":[[13,1],[20,10]]}}},{"id":"highway_minor","type":"line","metadata":{"mapbox:group":"b6371a3f2f5a9932464fa3867530a2e5"},"source":"planet_eoc","source-layer":"transportation","minzoom":0,"filter":["all",["==","$type","LineString"],["in","class","minor","service","track"]],"layout":{"line-cap":"round","line-join":"round","visibility":"none"},"paint":{"line-color":"rgba(245, 244, 244, 1)","line-opacity":0.9,"line-width":{"base":1.55,"stops":[[13,1.8],[20,20]]}}},{"id":"highway_major_casing","type":"line","metadata":{"mapbox:group":"b6371a3f2f5a9932464fa3867530a2e5"},"source":"planet_eoc","source-layer":"transportation","minzoom":11,"filter":["all",["==","$type","LineString"],["in","class","primary","secondary","tertiary","trunk"]],"layout":{"line-cap":"butt","line-join":"miter","visibility":"none"},"paint":{"line-color":"rgb(213, 213, 213)","line-dasharray":[12,0],"line-width":{"base":1.3,"stops":[[10,3],[20,23]]}}},{"id":"highway_major_inner","type":"line","metadata":{"mapbox:group":"b6371a3f2f5a9932464fa3867530a2e5"},"source":"planet_eoc","source-layer":"transportation","minzoom":11,"filter":["all",["==","$type","LineString"],["in","class","primary","secondary","tertiary","trunk"]],"layout":{"line-cap":"round","line-join":"round","visibility":"none"},"paint":{"line-color":"#fff","line-width":{"base":1.3,"stops":[[10,2],[20,20]]}}},{"id":"highway_motorway_casing","type":"line","metadata":{"mapbox:group":"b6371a3f2f5a9932464fa3867530a2e5"},"source":"planet_eoc","source-layer":"transportation","minzoom":0,"filter":["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway"]]],"layout":{"line-cap":"butt","line-join":"miter","visibility":"none"},"paint":{"line-color":"rgb(213, 213, 213)","line-dasharray":[2,0],"line-opacity":1,"line-width":{"base":1.4,"stops":[[5.8,0],[6,3],[20,40]]}}},{"id":"highway_motorway_inner","type":"line","metadata":{"mapbox:group":"b6371a3f2f5a9932464fa3867530a2e5"},"source":"planet_eoc","source-layer":"transportation","minzoom":0,"filter":["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway"]]],"layout":{"line-cap":"round","line-join":"round","visibility":"none"},"paint":{"line-color":{"base":1,"stops":[[5.8,"hsla(0, 0%, 85%, 0.53)"],[6,"#fff"]]},"line-width":{"base":1.4,"stops":[[4,2],[6,1.3],[20,30]]}}},{"id":"highway_motorway_subtle","type":"line","metadata":{"mapbox:group":"b6371a3f2f5a9932464fa3867530a2e5"},"source":"planet_eoc","source-layer":"transportation","minzoom":0,"maxzoom":20,"filter":["all",["==","$type","LineString"],["==","class","motorway"]],"layout":{"line-cap":"round","line-join":"round","visibility":"none"},"paint":{"line-color":"hsla(0, 0%, 85%, 0.53)","line-width":{"base":1.4,"stops":[[4,2],[6,1.3]]}}},{"id":"railway_transit","type":"line","metadata":{"mapbox:group":"b6371a3f2f5a9932464fa3867530a2e5"},"source":"planet_eoc","source-layer":"transportation","minzoom":16,"filter":["all",["==","$type","LineString"],["all",["==","class","transit"],["!in","brunnel","tunnel"]]],"layout":{"line-join":"round","visibility":"visible"},"paint":{"line-color":"#dddddd","line-width":3}},{"id":"railway_transit_dashline","type":"line","metadata":{"mapbox:group":"b6371a3f2f5a9932464fa3867530a2e5"},"source":"planet_eoc","source-layer":"transportation","minzoom":16,"filter":["all",["==","$type","LineString"],["all",["==","class","transit"],["!in","brunnel","tunnel"]]],"layout":{"line-join":"round","visibility":"visible"},"paint":{"line-color":"#fafafa","line-dasharray":[3,3],"line-width":2}},{"id":"railway_service","type":"line","metadata":{"mapbox:group":"b6371a3f2f5a9932464fa3867530a2e5"},"source":"planet_eoc","source-layer":"transportation","minzoom":16,"filter":["all",["==","$type","LineString"],["all",["==","class","rail"],["has","service"]]],"layout":{"line-join":"round","visibility":"visible"},"paint":{"line-color":"#dddddd","line-width":3}},{"id":"railway_service_dashline","type":"line","metadata":{"mapbox:group":"b6371a3f2f5a9932464fa3867530a2e5"},"source":"planet_eoc","source-layer":"transportation","minzoom":16,"filter":["all",["==","$type","LineString"],["==","class","rail"],["has","service"]],"layout":{"line-join":"round","visibility":"visible"},"paint":{"line-color":"#fafafa","line-dasharray":[3,3],"line-width":2}},{"id":"railway","type":"line","metadata":{"mapbox:group":"b6371a3f2f5a9932464fa3867530a2e5"},"source":"planet_eoc","source-layer":"transportation","minzoom":13,"filter":["all",["==","$type","LineString"],["all",["!has","service"],["==","class","rail"]]],"layout":{"line-join":"round","visibility":"visible"},"paint":{"line-color":"#dddddd","line-width":{"base":1.3,"stops":[[16,3],[20,7]]}}},{"id":"railway_dashline","type":"line","metadata":{"mapbox:group":"b6371a3f2f5a9932464fa3867530a2e5"},"source":"planet_eoc","source-layer":"transportation","minzoom":13,"filter":["all",["==","$type","LineString"],["all",["!has","service"],["==","class","rail"]]],"layout":{"line-join":"round","visibility":"visible"},"paint":{"line-color":"#fafafa","line-dasharray":[3,3],"line-width":{"base":1.3,"stops":[[16,2],[20,6]]}}},{"id":"highway_motorway_bridge_casing","type":"line","metadata":{"mapbox:group":"b6371a3f2f5a9932464fa3867530a2e5"},"source":"planet_eoc","source-layer":"transportation","minzoom":0,"filter":["all",["==","$type","LineString"],["all",["==","brunnel","bridge"],["==","class","motorway"]]],"layout":{"line-cap":"butt","line-join":"miter","visibility":"none"},"paint":{"line-color":"rgb(213, 213, 213)","line-dasharray":[2,0],"line-opacity":1,"line-width":{"base":1.4,"stops":[[5.8,0],[6,5],[20,45]]}}},{"id":"highway_motorway_bridge_inner","type":"line","metadata":{"mapbox:group":"b6371a3f2f5a9932464fa3867530a2e5"},"source":"planet_eoc","source-layer":"transportation","minzoom":0,"filter":["all",["==","$type","LineString"],["all",["==","brunnel","bridge"],["==","class","motorway"]]],"layout":{"line-cap":"round","line-join":"round","visibility":"none"},"paint":{"line-color":{"base":1,"stops":[[5.8,"hsla(0, 0%, 85%, 0.53)"],[6,"#fff"]]},"line-width":{"base":1.4,"stops":[[4,2],[6,1.3],[20,30]]}}},{"id":"highway_name_other","type":"symbol","metadata":{"mapbox:group":"b6371a3f2f5a9932464fa3867530a2e5"},"source":"planet_eoc","source-layer":"transportation_name","filter":["all",["!=","class","motorway"],["==","$type","LineString"]],"layout":{"symbol-placement":"line","symbol-spacing":350,"text-field":"{name:latin} {name:nonlatin}","text-font":["Metropolis Regular","Noto Sans Regular"],"text-max-angle":30,"text-pitch-alignment":"viewport","text-rotation-alignment":"map","text-size":10,"text-transform":"uppercase","visibility":"none"},"paint":{"text-color":"#bbb","text-halo-blur":1,"text-halo-color":"#fff","text-halo-width":2,"text-translate":[0,0]}},{"id":"highway_name_motorway","type":"symbol","metadata":{"mapbox:group":"b6371a3f2f5a9932464fa3867530a2e5"},"source":"planet_eoc","source-layer":"transportation_name","minzoom":9,"filter":["all",["==","$type","LineString"],["==","class","motorway"]],"layout":{"symbol-placement":"line","symbol-spacing":350,"text-field":"{ref}","text-font":["Metropolis Light","Noto Sans Regular"],"text-pitch-alignment":"viewport","text-rotation-alignment":"viewport","text-size":10,"visibility":"none"},"paint":{"text-color":"rgb(117, 129, 145)","text-halo-blur":1,"text-halo-color":"hsl(0, 0%, 100%)","text-halo-width":1,"text-translate":[0,2]}},{"id":"boundary_state","type":"line","metadata":{"mapbox:group":"a14c9607bc7954ba1df7205bf660433f"},"source":"planet_eoc","source-layer":"boundary","filter":["==","admin_level",4],"layout":{"line-cap":"round","line-join":"round","visibility":"none"},"paint":{"line-blur":0.4,"line-color":"rgb(230, 204, 207)","line-dasharray":[2,2],"line-opacity":1,"line-width":{"base":1.3,"stops":[[3,1],[22,15]]}}},{"id":"boundary_country_z0-4","type":"line","metadata":{"mapbox:group":"a14c9607bc7954ba1df7205bf660433f"},"source":"planet_eoc","source-layer":"boundary","maxzoom":5,"filter":["all",["==","admin_level",2],["!has","claimed_by"]],"layout":{"line-cap":"round","line-join":"round"},"paint":{"line-blur":{"base":1,"stops":[[0,0.4],[22,4]]},"line-color":"rgba(181, 170, 171, 1)","line-opacity":1,"line-width":{"base":1.1,"stops":[[3,1],[22,20]]}}},{"id":"boundary_country_z5-","type":"line","metadata":{"mapbox:group":"a14c9607bc7954ba1df7205bf660433f"},"source":"planet_eoc","source-layer":"boundary","minzoom":5,"filter":["==","admin_level",2],"layout":{"line-cap":"round","line-join":"round"},"paint":{"line-blur":{"base":1,"stops":[[0,0.4],[22,4]]},"line-color":"rgba(181, 170, 171, 1)","line-opacity":1,"line-width":{"base":1.1,"stops":[[3,1],[22,20]]}}},{"id":"place_suburb","type":"symbol","metadata":{"mapbox:group":"101da9f13b64a08fa4b6ac1168e89e5f"},"source":"planet_eoc","source-layer":"place","minzoom":9,"maxzoom":15,"filter":["all",["==","$type","Point"],["==","class","suburb"]],"layout":{"text-anchor":"center","text-field":"{name:latin}\\n{name:nonlatin}","text-font":["Metropolis Regular","Noto Sans Regular"],"text-justify":"center","text-offset":[0.5,0],"text-size":10,"text-transform":"uppercase","visibility":"visible"},"paint":{"text-color":"rgb(117, 129, 145)","text-halo-blur":1,"text-halo-color":"rgb(242,243,240)","text-halo-width":1}},{"id":"place_village","type":"symbol","metadata":{"mapbox:group":"101da9f13b64a08fa4b6ac1168e89e5f"},"source":"planet_eoc","source-layer":"place","minzoom":11,"maxzoom":24,"filter":["all",["==","$type","Point"],["==","class","village"]],"layout":{"icon-size":0.4,"text-anchor":"left","text-field":"{name:latin}\\n{name:nonlatin}","text-font":["Metropolis Regular","Noto Sans Regular"],"text-justify":"left","text-offset":[0.5,0.2],"text-size":10,"text-transform":"uppercase","visibility":"visible"},"paint":{"icon-opacity":0.7,"text-color":"rgb(117, 129, 145)","text-halo-blur":1,"text-halo-color":"rgb(242,243,240)","text-halo-width":1}},{"id":"place_town","type":"symbol","metadata":{"mapbox:group":"101da9f13b64a08fa4b6ac1168e89e5f"},"source":"planet_eoc","source-layer":"place","minzoom":9,"maxzoom":15,"filter":["all",["==","$type","Point"],["==","class","town"]],"layout":{"icon-image":{"base":1,"stops":[[0,"circle-11"],[8,""]]},"icon-size":0.4,"text-anchor":{"base":1,"stops":[[0,"left"],[8,"center"]]},"text-field":"{name:latin}\\n{name:nonlatin}","text-font":["Metropolis Regular","Noto Sans Regular"],"text-justify":"left","text-offset":[0.5,0.2],"text-size":10,"text-transform":"uppercase","visibility":"visible"},"paint":{"icon-opacity":0.7,"text-color":"rgb(117, 129, 145)","text-halo-blur":1,"text-halo-color":"rgb(242,243,240)","text-halo-width":1}},{"id":"place_city","type":"symbol","metadata":{"mapbox:group":"101da9f13b64a08fa4b6ac1168e89e5f"},"source":"planet_eoc","source-layer":"place","minzoom":7,"maxzoom":14,"filter":["all",["==","$type","Point"],["all",["!=","capital",2],["==","class","city"],[">","rank",3]]],"layout":{"icon-image":{"base":1,"stops":[[0,"circle-11"],[8,""]]},"icon-size":0.4,"text-anchor":{"base":1,"stops":[[0,"left"],[8,"center"]]},"text-field":"{name:latin}\\n{name:nonlatin}","text-font":["Metropolis Regular","Noto Sans Regular"],"text-justify":"left","text-offset":[0.5,0.2],"text-size":10,"text-transform":"uppercase","visibility":"visible"},"paint":{"icon-opacity":0.7,"text-color":"rgb(117, 129, 145)","text-halo-blur":1,"text-halo-color":"rgb(242,243,240)","text-halo-width":1}},{"id":"place_capital","type":"symbol","metadata":{"mapbox:group":"101da9f13b64a08fa4b6ac1168e89e5f"},"source":"planet_eoc","source-layer":"place","minzoom":3,"maxzoom":12,"filter":["all",["==","$type","Point"],["all",["==","capital",2],["==","class","city"]]],"layout":{"icon-image":{"base":1,"stops":[[0,"circle-11"],[8,""]]},"text-anchor":{"base":1,"stops":[[0,"left"],[8,"center"]]},"text-field":"{name:latin}\\n{name:nonlatin}","text-font":["Metropolis Regular","Noto Sans Regular"],"text-justify":"left","text-offset":[0.5,0.2],"text-transform":"uppercase","visibility":"visible","text-size":14,"icon-size":0},"paint":{"icon-opacity":0.7,"text-color":"rgb(117, 129, 145)","text-halo-blur":1,"text-halo-color":"rgb(242,243,240)","text-halo-width":1}},{"id":"place_city_large","type":"symbol","metadata":{"mapbox:group":"101da9f13b64a08fa4b6ac1168e89e5f"},"source":"planet_eoc","source-layer":"place","minzoom":4,"maxzoom":12,"filter":["all",["==","$type","Point"],["all",["!=","capital",2],["<=","rank",3],["==","class","city"]]],"layout":{"icon-image":{"base":1,"stops":[[0,"circle-11"],[8,""]]},"icon-size":0.4,"text-anchor":{"base":1,"stops":[[0,"left"],[8,"center"]]},"text-field":"{name:latin}\\n{name:nonlatin}","text-font":["Metropolis Regular","Noto Sans Regular"],"text-justify":"left","text-offset":[0.5,0.2],"text-size":14,"text-transform":"uppercase","visibility":"visible"},"paint":{"icon-opacity":0.7,"text-color":"rgb(117, 129, 145)","text-halo-blur":1,"text-halo-color":"rgb(242,243,240)","text-halo-width":1}},{"id":"place_state","type":"symbol","metadata":{"mapbox:group":"101da9f13b64a08fa4b6ac1168e89e5f"},"source":"planet_eoc","source-layer":"place","maxzoom":12,"filter":["all",["==","$type","Point"],["==","class","state"]],"layout":{"text-field":"{name:latin}\\n{name:nonlatin}","text-font":["Metropolis Regular","Noto Sans Regular"],"text-size":10,"text-transform":"uppercase","visibility":"visible"},"paint":{"text-color":"rgb(113, 129, 144)","text-halo-blur":1,"text-halo-color":"rgb(242,243,240)","text-halo-width":1}},{"id":"place_country_other","type":"symbol","metadata":{"mapbox:group":"101da9f13b64a08fa4b6ac1168e89e5f"},"source":"planet_eoc","source-layer":"place","maxzoom":8,"filter":["all",["==","$type","Point"],["==","class","country"],["!has","iso_a2"]],"layout":{"text-field":"{name:latin}","text-font":["Metropolis Light Italic","Noto Sans Italic"],"text-size":{"base":1,"stops":[[0,9],[6,11]]},"text-transform":"uppercase","visibility":"visible"},"paint":{"text-color":{"base":1,"stops":[[3,"rgb(157,169,177)"],[4,"rgb(153, 153, 153)"]]},"text-halo-color":"rgba(236,236,234,0.7)","text-halo-width":1.4}},{"id":"place_country_minor","type":"symbol","metadata":{"mapbox:group":"101da9f13b64a08fa4b6ac1168e89e5f"},"source":"planet_eoc","source-layer":"place","maxzoom":8,"filter":["all",["==","$type","Point"],["==","class","country"],[">=","rank",2],["has","iso_a2"]],"layout":{"text-field":"{name:latin}","text-font":["Metropolis Regular","Noto Sans Regular"],"text-size":{"base":1,"stops":[[0,10],[6,12]]},"text-transform":"uppercase","visibility":"visible"},"paint":{"text-color":{"base":1,"stops":[[3,"rgb(157,169,177)"],[4,"rgb(153, 153, 153)"]]},"text-halo-color":"rgba(236,236,234,0.7)","text-halo-width":1.4}},{"id":"place_country_major","type":"symbol","metadata":{"mapbox:group":"101da9f13b64a08fa4b6ac1168e89e5f"},"source":"planet_eoc","source-layer":"place","maxzoom":6,"filter":["all",["==","$type","Point"],["<=","rank",1],["==","class","country"],["has","iso_a2"]],"layout":{"text-anchor":"center","text-field":"{name:latin}","text-font":["Metropolis Regular","Noto Sans Regular"],"text-size":{"base":1.4,"stops":[[0,10],[3,12],[4,14]]},"text-transform":"uppercase","visibility":"visible"},"paint":{"text-color":{"base":1,"stops":[[3,"rgb(157,169,177)"],[4,"rgb(153, 153, 153)"]]},"text-halo-color":"rgba(236,236,234,0.7)","text-halo-width":1.4}}],"id":"positron"}')}}]); \ No newline at end of file diff --git a/3rdpartylicenses.txt b/3rdpartylicenses.txt index ae9a0a981..43a62fbbb 100644 --- a/3rdpartylicenses.txt +++ b/3rdpartylicenses.txt @@ -1293,6 +1293,9 @@ Apache-2.0 @dlr-eoc/map-cesium Apache-2.0 +@dlr-eoc/map-maplibre +Apache-2.0 + @dlr-eoc/map-ol Apache-2.0 @@ -1314,6 +1317,9 @@ Apache-2.0 @dlr-eoc/shared-assets Apache-2.0 +@dlr-eoc/utilities +Apache-2.0 + @dlr-eoc/utils-maps Apache-2.0 @@ -1357,6 +1363,21 @@ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +@mapbox/togeojson +BSD-2-Clause +Copyright (c) 2016 Mapbox All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +@maplibre/distfiles + @michaellangbein/jsonix BSD-3-Clause diff --git a/712.ec49f870e3fd5199.js b/712.ec49f870e3fd5199.js new file mode 100644 index 000000000..402db07b9 --- /dev/null +++ b/712.ec49f870e3fd5199.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdemo_maps=self.webpackChunkdemo_maps||[]).push([[712],{6797:(q,U,m)=>{m.d(U,{H:()=>k});var n=m(882),s=m(3637),w=m(6561),B=m(4869);function k(F=0,D,R){let b=-1;return(0,w.k)(D)?b=Number(D)<1?1:Number(D):(0,B.K)(D)&&(R=D),(0,B.K)(R)||(R=s.P),new n.y(O=>{const N=(0,w.k)(F)?F:+F-R.now();return R.schedule(H,N,{index:0,period:b,subscriber:O})})}function H(F){const{index:D,period:R,subscriber:b}=F;if(b.next(D),!b.closed){if(-1===R)return b.complete();F.index=D+1,this.schedule(F,R)}}},6561:(q,U,m)=>{m.d(U,{k:()=>s});var n=m(9796);function s(w){return!(0,n.k)(w)&&w-parseFloat(w)+1>=0}},9880:(q,U,m)=>{m.d(U,{_:()=>B});var n=m(4537);function s(k,H){}let w=(()=>{class k{constructor(F){this.viewContainerRef=F}}return k.\u0275fac=function(F){return new(F||k)(n.Y36(n.s_b))},k.\u0275dir=n.lG2({type:k,selectors:[["","ukisAddHost",""]]}),k})(),B=(()=>{class k{constructor(){this.dynamicComponentChange=new n.vpe,this.subs=[]}loadComponent(){this.dynamicComponent&&(this.viewContainerRef=this.ukisAddHost.viewContainerRef,this.viewContainerRef.clear(),this.componentRef=this.viewContainerRef.createComponent(this.dynamicComponent.component),this.setInputOutputs())}setInputOutputs(){this.componentRef&&this.dynamicComponent.inputs&&Object.keys(this.dynamicComponent.inputs).map(D=>{const R=D;if(this.dynamicComponent.inputs){this.componentRef.instance[R]=this.dynamicComponent.inputs[R];const b=`${R}Change`;if(this.componentRef.instance[b]&&this.componentRef.instance[b]instanceof n.vpe){const O=this.componentRef.instance[b].subscribe(N=>{this.dynamicComponent.inputs&&(this.dynamicComponent.inputs[R]=N),this.dynamicComponent.outputs&&this.dynamicComponent.outputs[b]&&this.dynamicComponent.outputs[b](N),this.dynamicComponentChange.emit(this.dynamicComponent)});this.subs.push(O)}}})}ngOnChanges(F){F.dynamicComponent&&(Array.isArray(this.subs)&&this.subs.map(D=>D.unsubscribe()),this.subs.map(D=>D.unsubscribe()),this.subs=[],this.setInputOutputs())}ngOnInit(){this.loadComponent()}ngOnDestroy(){this.componentRef&&(this.subs.map(F=>F.unsubscribe()),this.componentRef.destroy(),this.componentRef=null),this.viewContainerRef&&(this.viewContainerRef.clear(),this.viewContainerRef=null)}}return k.\u0275fac=function(F){return new(F||k)},k.\u0275cmp=n.Xpm({type:k,selectors:[["ukis-dynamic-component"]],viewQuery:function(F,D){if(1&F&&n.Gf(w,7),2&F){let R;n.iGM(R=n.CRH())&&(D.ukisAddHost=R.first)}},inputs:{dynamicComponent:"dynamicComponent"},outputs:{dynamicComponentChange:"dynamicComponentChange"},features:[n.TTD],decls:1,vars:0,consts:[["ukisAddHost",""]],template:function(F,D){1&F&&n.YNc(0,s,0,0,"ng-template",0)},dependencies:[w],encapsulation:2}),k})()},580:(q,U,m)=>{m.d(U,{l:()=>b});var n=m(5548),s=m(4537),w=m(8692),B=m(7927),k=m(8106),H=m(8518);function F(O,N){if(1&O&&s._UZ(0,"ukis-layerentry-group",4),2&O){const z=s.oxw().$implicit,x=s.oxw();s.Q6J("layersSvc",x.layersSvc)("mapState",x.mapStateSvc)("group",z)("layerGroups",x.layergroups)}}function D(O,N){if(1&O&&s._UZ(0,"ukis-layerentry",5),2&O){const z=s.oxw().$implicit,x=s.oxw();s.Q6J("layerGroups",x.layergroups)("expanded",!1)("layersSvc",x.layersSvc)("mapState",x.mapStateSvc)("layer",z)("group",null)}}function R(O,N){if(1&O&&(s.TgZ(0,"div",1),s.YNc(1,F,1,4,"ukis-layerentry-group",2),s.YNc(2,D,1,6,"ukis-layerentry",3),s.qZA()),2&O){const z=N.$implicit,x=s.oxw();s.xp6(1),s.Q6J("ngIf",x.isLayerGroup(z)),s.xp6(1),s.Q6J("ngIf",!x.isLayerGroup(z))}}let b=(()=>{class O{constructor(){this.layergroups=[]}ngOnInit(){this.layerGroupsSubscription=this.layersSvc.getLayerGroups().subscribe(z=>{this.layergroups=z.filter(x=>"Baselayers"===x.filtertype)})}isLayerGroup(z){return z instanceof n.ex}ngOnDestroy(){this.layerGroupsSubscription.unsubscribe()}}return O.\u0275fac=function(z){return new(z||O)},O.\u0275cmp=s.Xpm({type:O,selectors:[["ukis-base-layer-control"]],inputs:{layersSvc:"layersSvc",mapStateSvc:"mapStateSvc"},decls:2,vars:3,consts:[["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[3,"layersSvc","mapState","group","layerGroups",4,"ngIf"],[3,"layerGroups","expanded","layersSvc","mapState","layer","group",4,"ngIf"],[3,"layersSvc","mapState","group","layerGroups"],[3,"layerGroups","expanded","layersSvc","mapState","layer","group"]],template:function(z,x){1&z&&(s.YNc(0,R,3,2,"div",0),s.ALo(1,"reverse")),2&z&&s.Q6J("ngForOf",s.lcZ(1,1,x.layergroups))},dependencies:[w.sg,w.O5,B.S,k.m,H.B]}),O})()},408:(q,U,m)=>{m.d(U,{E:()=>z});var n=m(5548),s=m(4537),w=m(8692),B=m(3066),k=m(7927),H=m(8106),F=m(8092),D=m(8518);function R(x,M){if(1&x&&(s.TgZ(0,"ukis-layerentry-group",5)(1,"span",6),s._uU(2),s.qZA()()),2&x){const I=s.oxw().$implicit,L=s.oxw();s.Q6J("layersSvc",L.layersSvc)("mapState",L.mapStateSvc)("group",I)("layerGroups",L.layergroups)("groupSort",L.layersSort)("groupLayersSort",L.groupLayersSort),s.xp6(2),s.hij(" ",I.displayName||I.name," ")}}function b(x,M){if(1&x&&(s.TgZ(0,"ukis-layerentry",7)(1,"span",6),s._uU(2),s.qZA()()),2&x){const I=s.oxw().$implicit,L=s.oxw();s.Q6J("layerGroups",L.layergroups)("expanded",!1)("layersSvc",L.layersSvc)("mapState",L.mapStateSvc)("layer",I)("group",null)("sorting",L.layersSort),s.xp6(2),s.hij(" ",I.displayName||I.name," ")}}const O=function(x){return{id:x}};function N(x,M){if(1&x&&(s.ynx(0),s.TgZ(1,"div",2),s.YNc(2,R,3,7,"ukis-layerentry-group",3),s.YNc(3,b,3,8,"ukis-layerentry",4),s.qZA(),s.BQk()),2&x){const I=M.$implicit,L=s.oxw();s.xp6(1),s.Q6J("cdkDragData",s.VKq(3,O,I.id)),s.xp6(1),s.Q6J("ngIf",L.isLayerGroup(I)&&I.filtertype===L.layerfilter),s.xp6(1),s.Q6J("ngIf",!L.isLayerGroup(I)&&I.filtertype===L.layerfilter)}}let z=(()=>{class x{constructor(){this.layerfilter="Layers",this.layersSort=!0,this.groupLayersSort=!0,this.layergroups=[]}ngOnInit(){this.layerGroupsSubscription=this.layersSvc.getLayerGroups().subscribe(I=>{this.layergroups=I})}isLayerGroup(I){return I instanceof n.ex}ngOnDestroy(){this.layerGroupsSubscription.unsubscribe()}drop(I){const L=this.layergroups,X=L.length,ie=I.container.data;let K,Q;if(X===ie.length)K=X-I.previousIndex-1,Q=X-I.currentIndex-1;else{const ne=ie[I.currentIndex],$=L.findIndex(J=>J.id===I.item.data.id);let oe=L.findIndex(J=>J.id===ne.id);I.previousIndex===I.currentIndex&&(oe=$),K=$,Q=oe}this.layersSvc.arrayMove(this.layergroups,K,Q),this.layersSvc.setLayerGroups(this.layergroups)}checkBaselayer(I,L){return!!("Baselayers"===I.filtertype||L&&"Baselayers"===L.filtertype)}checkClassHide(I){return!I?.cssClass?.includes("hide")}}return x.\u0275fac=function(I){return new(I||x)},x.\u0275cmp=s.Xpm({type:x,selectors:[["ukis-layer-control"]],inputs:{layersSvc:"layersSvc",mapStateSvc:"mapStateSvc",layerfilter:"layerfilter",layersSort:"layersSort",groupLayersSort:"groupLayersSort"},decls:6,vars:13,consts:[["cdkDropList","",3,"cdkDropListDisabled","cdkDropListData","cdkDropListDropped"],[4,"ngFor","ngForOf"],["cdkDragLockAxis","y","cdkDrag","",1,"list-item",3,"cdkDragData"],[3,"layersSvc","mapState","group","layerGroups","groupSort","groupLayersSort",4,"ngIf"],[3,"layerGroups","expanded","layersSvc","mapState","layer","group","sorting",4,"ngIf"],[3,"layersSvc","mapState","group","layerGroups","groupSort","groupLayersSort"],["cdkDragHandle","",1,"move-item"],[3,"layerGroups","expanded","layersSvc","mapState","layer","group","sorting"]],template:function(I,L){1&I&&(s.TgZ(0,"div",0),s.NdJ("cdkDropListDropped",function(ie){return L.drop(ie)}),s.ALo(1,"reverse"),s.ALo(2,"itemsfilter"),s.YNc(3,N,4,5,"ng-container",1),s.ALo(4,"reverse"),s.ALo(5,"itemsfilter"),s.qZA()),2&I&&(s.Q6J("cdkDropListDisabled",!L.layersSort)("cdkDropListData",s.lcZ(1,3,s.xi3(2,5,L.layergroups,L.checkClassHide))),s.xp6(3),s.Q6J("ngForOf",s.lcZ(4,8,s.xi3(5,10,L.layergroups,L.checkClassHide))))},dependencies:[w.sg,w.O5,B.Wj,B.Zt,B.Bh,k.S,H.m,F.J,D.B],styles:[".list-item[_ngcontent-%COMP%]{cursor:pointer}.move-item[_ngcontent-%COMP%]{cursor:move}.cdk-drop-list-disabled[_ngcontent-%COMP%] .move-item[_ngcontent-%COMP%]{cursor:pointer}.cdk-drag-preview[_ngcontent-%COMP%]{display:flex;align-items:center;padding:15px 10px;box-sizing:border-box;border-radius:2px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f;overflow:hidden}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:.2}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.example-box[_ngcontent-%COMP%]:last-child{border:none}.cdk-drop-list-dragging[_ngcontent-%COMP%] .list-item[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}"]}),x})()},8106:(q,U,m)=>{m.d(U,{m:()=>f});var n=m(3066),s=m(4537),w=m(8692),B=m(6799),k=m(9880),H=m(7927),F=m(8092),D=m(8518);function R(h,g){if(1&h){const l=s.EpF();s.TgZ(0,"span",8),s.NdJ("click",function(){s.CHM(l);const u=s.oxw();return s.KtG(u.showProperties())}),s._uU(1),s.qZA()}if(2&h){const l=s.oxw();s.Q6J("title",l.getLayerName(l.group)),s.xp6(1),s.hij(" ",l.getLayerName(l.group)," ")}}const b=function(h){return{disabled:h}};function O(h,g){if(1&h){const l=s.EpF();s.TgZ(0,"span")(1,"clr-icon",9),s.NdJ("click",function(){s.CHM(l);const u=s.oxw();return s.KtG(u.setLayerGroupIndex(u.group,"down"))}),s.qZA(),s.TgZ(2,"clr-icon",10),s.NdJ("click",function(){s.CHM(l);const u=s.oxw();return s.KtG(u.setLayerGroupIndex(u.group,"up"))}),s.qZA()()}if(2&h){const l=s.oxw();s.xp6(1),s.Q6J("ngClass",s.VKq(2,b,l.isLast(l.group))),s.xp6(1),s.Q6J("ngClass",s.VKq(4,b,l.isFirst(l.group)))}}const N=function(h){return{"is-solid":h}};function z(h,g){if(1&h){const l=s.EpF();s.TgZ(0,"span")(1,"label"),s._UZ(2,"clr-icon",11),s.TgZ(3,"input",12),s.NdJ("change",function(){s.CHM(l);const u=s.oxw();return s.KtG(u.setGroupLayersVisibility())}),s.qZA()()()}if(2&h){const l=s.oxw();s.xp6(2),s.s9C("title",l.group.visible?"Hide Group":"Show Group"),s.Q6J("ngClass",s.VKq(6,N,l.group.visible)),s.uIk("shape",l.group.visible?"eye":"eye-hide"),s.xp6(1),s.Q6J("type","checkbox")("checked",l.group.visible)("name","group")}}function x(h,g){if(1&h){const l=s.EpF();s.TgZ(0,"clr-icon",27),s.NdJ("click",function(){s.CHM(l);const u=s.oxw(2);return s.KtG(u.switchTab("settings"))}),s.qZA()}if(2&h){const l=s.oxw(2);s.s9C("title",l.activeTabs.settings?"Hide settings":"Show settings"),s.Q6J("ngClass",s.VKq(2,N,l.activeTabs.settings))}}function M(h,g){if(1&h){const l=s.EpF();s.TgZ(0,"clr-icon",28),s.NdJ("click",function(){s.CHM(l);const u=s.oxw(2);return s.KtG(u.switchTab("legend"))}),s.qZA()}if(2&h){const l=s.oxw(2);s.s9C("title",l.activeTabs.legend?"Hide Legend":"Show Legend"),s.Q6J("ngClass",s.VKq(2,N,l.activeTabs.legend))}}function I(h,g){if(1&h){const l=s.EpF();s.TgZ(0,"clr-icon",29),s.NdJ("click",function(){s.CHM(l);const u=s.oxw(2);return s.KtG(u.switchTab("description"))}),s.qZA()}if(2&h){const l=s.oxw(2);s.s9C("title",l.activeTabs.description?"Hide Info":"Show Info"),s.Q6J("ngClass",s.VKq(2,N,l.activeTabs.description))}}function L(h,g){if(1&h){const l=s.EpF();s.TgZ(0,"clr-icon",2),s.NdJ("click",function(){const E=s.CHM(l).$implicit,c=s.oxw(2);return s.KtG(E.action(c.group))}),s.qZA()}if(2&h){const l=g.$implicit;s.Q6J("title",l.title),s.uIk("shape",l.icon)}}function X(h,g){if(1&h){const l=s.EpF();s.TgZ(0,"clr-icon",30),s.NdJ("click",function(){s.CHM(l);const u=s.oxw(2);return s.KtG(u.zoomTo(u.group))}),s.qZA()}}function ie(h,g){if(1&h){const l=s.EpF();s.TgZ(0,"clr-icon",31),s.NdJ("click",function(){s.CHM(l);const u=s.oxw(2);return s.KtG(u.removeLayerGroup(u.group))}),s.qZA()}}function se(h,g){if(1&h){const l=s.EpF();s.ynx(0),s.TgZ(1,"ukis-dynamic-component",35),s.NdJ("dynamicComponentChange",function(u){s.CHM(l);const E=s.oxw(3);return s.KtG(E.dynamicComponents.description=u)}),s.qZA(),s.BQk()}if(2&h){const l=s.oxw(3);s.xp6(1),s.Q6J("dynamicComponent",l.dynamicComponents.description)}}function K(h,g){if(1&h&&s._UZ(0,"span",36),2&h){const l=s.oxw(3);s.Q6J("innerHTML",l.group.description,s.oJD)}}function Q(h,g){if(1&h&&(s.TgZ(0,"div",32),s.YNc(1,se,2,1,"ng-container",33),s.YNc(2,K,1,1,"ng-template",null,34,s.W1O),s.qZA()),2&h){const l=s.MAs(3),S=s.oxw(2);s.xp6(1),s.Q6J("ngIf",S.checkIsComponentItem(S.group,"description"))("ngIfElse",l)}}function ne(h,g){if(1&h){const l=s.EpF();s.ynx(0),s.TgZ(1,"ukis-dynamic-component",35),s.NdJ("dynamicComponentChange",function(u){s.CHM(l);const E=s.oxw(3);return s.KtG(E.group.action=u)}),s.qZA(),s.BQk()}if(2&h){const l=s.oxw(3);s.xp6(1),s.Q6J("dynamicComponent",l.group.action)}}function $(h,g){if(1&h&&(s.TgZ(0,"div",37),s.YNc(1,ne,2,1,"ng-container",6),s.qZA()),2&h){const l=s.oxw(2);s.xp6(1),s.Q6J("ngIf",l.checkIsComponentItem(l.group,"action"))}}function oe(h,g){if(1&h){const l=s.EpF();s.ynx(0),s.TgZ(1,"ukis-dynamic-component",35),s.NdJ("dynamicComponentChange",function(u){s.CHM(l);const E=s.oxw(3);return s.KtG(E.dynamicComponents.legendImg=u)}),s.qZA(),s.BQk()}if(2&h){const l=s.oxw(3);s.xp6(1),s.Q6J("dynamicComponent",l.dynamicComponents.legendImg)}}function J(h,g){if(1&h&&(s.TgZ(0,"a",40),s._UZ(1,"img",41),s.qZA()),2&h){const l=s.oxw(3);s.Q6J("href",l.group.legendImg,s.LSH),s.xp6(1),s.Q6J("src",l.group.legendImg,s.LSH)}}function ae(h,g){if(1&h&&(s.TgZ(0,"div",38),s.YNc(1,oe,2,1,"ng-container",33),s.YNc(2,J,2,2,"ng-template",null,39,s.W1O),s.qZA()),2&h){const l=s.MAs(3),S=s.oxw(2);s.xp6(1),s.Q6J("ngIf",S.checkIsComponentItem(S.group,"legendImg"))("ngIfElse",l)}}const le=function(h){return{id:h}};function _e(h,g){if(1&h){const l=s.EpF();s.ynx(0),s.TgZ(1,"div",42)(2,"ukis-layerentry",43),s.NdJ("update",function(u){s.CHM(l);const E=s.oxw(2);return s.KtG(E.layerUpdate(u,E.group))}),s.TgZ(3,"span",44),s._uU(4),s.qZA()()(),s.BQk()}if(2&h){const l=g.$implicit,S=s.oxw(2);s.xp6(1),s.Q6J("cdkDragData",s.VKq(8,le,l.id)),s.xp6(1),s.Q6J("expanded",S.openAllLayersProperties)("layersSvc",S.layersSvc)("mapState",S.mapState)("layer",l)("group",S.group)("sorting",S.groupLayersSort),s.xp6(2),s.hij(" ",l.displayName||l.name," ")}}function V(h,g){if(1&h){const l=s.EpF();s.TgZ(0,"div",13)(1,"div",14),s.YNc(2,x,1,4,"clr-icon",15),s.YNc(3,M,1,4,"clr-icon",16),s.YNc(4,I,1,4,"clr-icon",17),s.TgZ(5,"clr-icon",18),s.NdJ("click",function(){s.CHM(l);const u=s.oxw();return s.KtG(u.showHideAllDetails())}),s.qZA(),s.YNc(6,L,1,2,"clr-icon",19),s._UZ(7,"span"),s.YNc(8,X,1,0,"clr-icon",20),s.YNc(9,ie,1,0,"clr-icon",21),s.qZA(),s.YNc(10,Q,4,2,"div",22),s.YNc(11,$,2,1,"div",23),s.YNc(12,ae,4,2,"div",24),s.TgZ(13,"div",25),s.NdJ("cdkDropListDropped",function(u){s.CHM(l);const E=s.oxw();return s.KtG(E.drop(u))}),s.ALo(14,"reverse"),s.ALo(15,"itemsfilter"),s.YNc(16,_e,5,10,"ng-container",26),s.ALo(17,"reverse"),s.ALo(18,"itemsfilter"),s.qZA()()}if(2&h){const l=s.oxw();s.xp6(2),s.Q6J("ngIf",l.group.action),s.xp6(1),s.Q6J("ngIf",l.group.legendImg),s.xp6(1),s.Q6J("ngIf",l.group.description),s.xp6(1),s.s9C("title",l.openAllLayersProperties?"Hide all layers details":"Show all layers details"),s.Q6J("ngClass",s.VKq(24,N,l.openAllLayersProperties)),s.xp6(1),s.Q6J("ngForOf",l.group.actions),s.xp6(2),s.Q6J("ngIf",l.canZoomToGroup),s.xp6(1),s.Q6J("ngIf",l.group.removable),s.xp6(1),s.Q6J("ngIf",l.group.description&&l.activeTabs.description),s.xp6(1),s.Q6J("ngIf",l.group.action&&l.activeTabs.settings),s.xp6(1),s.Q6J("ngIf",l.group.legendImg&&l.activeTabs.legend),s.xp6(1),s.Q6J("cdkDropListDisabled",!l.groupLayersSort)("cdkDropListData",s.lcZ(14,14,s.xi3(15,16,l.group.layers,l.checkClassHide))),s.xp6(3),s.Q6J("ngForOf",s.lcZ(17,19,s.xi3(18,21,l.group.layers,l.checkClassHide)))}}const P=["*"];var d=(()=>{return(h=d||(d={})).settings="settings",h.legend="legend",h.description="description",d;var h})();let f=(()=>{class h{constructor(){this.groupSort=!0,this.groupLayersSort=!0,this.canZoomToGroup=!1,this.activeTabs={settings:!1,legend:!0,description:!1},this.dynamicComponents={legendImg:null,action:null,description:null}}get visible(){return this.group.visible}get cssClass(){return this.group.cssClass}set openAllLayersProperties(l){this.group&&this.group.layers.length&&this.group.layers.forEach(S=>S.expanded=l)}get openAllLayersProperties(){return!(!this.group||!this.group.layers.length)&&this.group.layers.filter(l=>!0===l.expanded).length===this.group.layers.length}ngOnInit(){this.group.bbox&&this.group.bbox.length>=4&&(this.canZoomToGroup=!0),"object"==typeof this.group?.expanded&&Object.keys(d).includes(this.group.expanded.tab)?(this.switchTab(this.group.expanded.tab),!1===this.group.expanded.expanded&&(this.activeTabs[this.group.expanded.tab]=!1)):this.setDefaultActiveTabs()}setDefaultActiveTabs(){this.group?.action||(this.activeTabs.settings=!1)}checkIsComponentItem(l,S){const u=l[S];let E=!1;if(u&&"object"==typeof u&&"component"in u){const c=u.component;u.inputs?u.inputs&&!u.inputs.group?this.dynamicComponents[S]={component:u.component,inputs:Object.assign({},u.inputs,{group:l})}:u.inputs&&u.inputs.group&&(this.dynamicComponents[S]={component:u.component,inputs:Object.assign({},u.inputs)}):this.dynamicComponents[S]={component:c,inputs:{group:l}},u.outputs&&(this.dynamicComponents[S].outputs=Object.assign({},u.outputs)),E=!0}return E}checkBaselayer(l){return!(!l||"Baselayers"!==l.filtertype)}checkClassHide(l){return!l?.cssClass?.includes("hide")}getLayerName(l){return l.displayName?l.displayName:l.name}setLayerGroupIndex(l,S){this.layersSvc.setGroupLayerIndex(l,S)}setGroupLayersVisibility(){this.group.visible=!this.group.visible,this.layersSvc.updateLayerGroup(this.group)}removeLayerGroup(l){this.layersSvc.removeLayerGroup(l)}zoomTo(l){this.mapState&&l.bbox&&l.bbox.length>=4&&this.mapState.setExtent(l.bbox)}layerUpdate(l,S){this.layersSvc.updateLayerGroup(S)}showProperties(){this.group.expanded=!this.group.expanded}switchTab(l,S=!0){for(const u of Object.keys(this.activeTabs)){const E=l===u;this.activeTabs[u]=(!this.activeTabs[u]||!S)&&E}}showHideAllDetails(){if(this.openAllLayersProperties){this.openAllLayersProperties=!1;for(const l of Object.keys(this.activeTabs))this.activeTabs[l]=!1}else this.openAllLayersProperties=!0,this.group.legendImg?this.switchTab("legend",!1):this.group.description?this.switchTab("description",!1):this.group.action&&this.switchTab("settings",!1)}isFirst(l){return this.layersSvc.isGroupFirst(l,this.layerGroups,l.filtertype)}isLast(l){return this.layersSvc.isGroupLast(l,this.layerGroups,l.filtertype)}drop(l){const S=this.group.layers,u=S.length,E=l.container.data;let y,v;if(u===E.length)y=u-l.previousIndex-1,v=u-l.currentIndex-1;else{const G=E[l.currentIndex],Y=S.findIndex(re=>re.id===l.item.data.id);let ve=S.findIndex(re=>re.id===G.id);l.previousIndex===l.currentIndex&&(ve=Y),y=Y,v=ve}(0,n.bA)(this.group.layers,y,v),this.layersSvc.updateLayerGroup(this.group)}}return h.\u0275fac=function(l){return new(l||h)},h.\u0275cmp=s.Xpm({type:h,selectors:[["ukis-layerentry-group"]],hostVars:4,hostBindings:function(l,S){2&l&&(s.Tol(S.cssClass),s.ekj("group-visible",S.visible))},inputs:{layersSvc:"layersSvc",mapState:"mapState",group:"group",layerGroups:"layerGroups",groupSort:"groupSort",groupLayersSort:"groupLayersSort"},ngContentSelectors:P,decls:10,vars:7,consts:[[1,"layergroup"],[1,"head"],[1,"iconButton",3,"title","click"],[1,"item-title-replacement","title",3,"title","click"],["ref",""],["class","title",3,"title","click",4,"ngIf"],[4,"ngIf"],["class","body",4,"ngIf"],[1,"title",3,"title","click"],["shape","arrow","title","up",1,"iconButton","move-item",3,"ngClass","click"],["shape","arrow","title","down","dir","down",1,"iconButton","move-item",3,"ngClass","click"],[1,"iconButton",3,"ngClass","title"],[1,"hide",3,"type","checked","name","change"],[1,"body"],[1,"tools"],["shape","cog","class","iconButton",3,"ngClass","title","click",4,"ngIf"],["shape","image","class","iconButton",3,"title","ngClass","click",4,"ngIf"],["shape","info-standard","class","iconButton",3,"ngClass","title","click",4,"ngIf"],["shape","details",1,"iconButton",3,"ngClass","title","click"],["class","iconButton",3,"title","click",4,"ngFor","ngForOf"],["shape","zoom-in","class","iconButton","title","Zoom to group",3,"click",4,"ngIf"],["shape","trash","class","iconButton","title","Remove group",3,"click",4,"ngIf"],["class","tabsbody description",4,"ngIf"],["class","tabsbody layersettings",4,"ngIf"],["class","tabsbody legend",4,"ngIf"],["cdkDropList","",3,"cdkDropListDisabled","cdkDropListData","cdkDropListDropped"],[4,"ngFor","ngForOf"],["shape","cog",1,"iconButton",3,"ngClass","title","click"],["shape","image",1,"iconButton",3,"title","ngClass","click"],["shape","info-standard",1,"iconButton",3,"ngClass","title","click"],["shape","zoom-in","title","Zoom to group",1,"iconButton",3,"click"],["shape","trash","title","Remove group",1,"iconButton",3,"click"],[1,"tabsbody","description"],[4,"ngIf","ngIfElse"],["descriptionText",""],[3,"dynamicComponent","dynamicComponentChange"],[3,"innerHTML"],[1,"tabsbody","layersettings"],[1,"tabsbody","legend"],["imageUrl",""],["target","_blank","title","Show full Image",3,"href"],[3,"src"],["cdkDragLockAxis","y","cdkDrag","",1,"sublayers",3,"cdkDragData"],[3,"expanded","layersSvc","mapState","layer","group","sorting","update"],["cdkDragHandle","",1,"move-item"]],template:function(l,S){if(1&l&&(s.F$t(),s.TgZ(0,"div",0)(1,"div",1)(2,"clr-icon",2),s.NdJ("click",function(){return S.showProperties()}),s.qZA(),s.TgZ(3,"div",3,4),s.NdJ("click",function(){return S.showProperties()}),s.Hsn(5),s.qZA(),s.YNc(6,R,2,2,"span",5),s.YNc(7,O,3,6,"span",6),s.YNc(8,z,4,8,"span",6),s.qZA(),s.YNc(9,V,19,26,"div",7),s.qZA()),2&l){const u=s.MAs(4);s.xp6(2),s.s9C("title",S.group.expanded?"Close":"Open"),s.uIk("shape",S.group.expanded?"folder-open":"folder"),s.xp6(1),s.Q6J("title",S.getLayerName(S.group)),s.xp6(3),s.Q6J("ngIf",0==u.children.length),s.xp6(1),s.Q6J("ngIf",S.layerGroups.length>1&&S.groupSort),s.xp6(1),s.Q6J("ngIf",!S.checkBaselayer(S.group)),s.xp6(1),s.Q6J("ngIf",S.group.expanded)}},dependencies:[w.mk,w.sg,w.O5,B.qvL,B.MgK,n.Wj,n.Zt,n.Bh,k._,H.S,F.J,D.B],styles:[".title[_ngcontent-%COMP%]{cursor:pointer}.item-title-replacement[_ngcontent-%COMP%]:empty{display:none}.move-item[_ngcontent-%COMP%]{cursor:move}.cdk-drop-list-disabled[_ngcontent-%COMP%] .move-item[_ngcontent-%COMP%]{cursor:pointer}.cdk-drag-preview[_ngcontent-%COMP%]{display:flex;align-items:center;padding:0 10px;box-sizing:border-box;border-radius:2px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f;overflow:hidden}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:.2}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.example-box[_ngcontent-%COMP%]:last-child{border:none}.cdk-drop-list-dragging[_ngcontent-%COMP%] .sublayers[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.info[_ngcontent-%COMP%]{padding-left:.2rem}.tabsbody[_ngcontent-%COMP%]{overflow:hidden}.tabsbody[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:auto;max-width:100%}"]}),h})()},7927:(q,U,m)=>{m.d(U,{S:()=>S});var n=m(4537),s=m(5548),w=m(8692),B=m(6799),k=m(92),H=m(9880);const F=function(u){return{disabled:u}};function D(u,E){if(1&u){const c=n.EpF();n.TgZ(0,"clr-icon",11),n.NdJ("click",function(){n.CHM(c);const v=n.oxw();return n.KtG(v.showProperties())}),n.qZA()}if(2&u){const c=n.oxw();n.Q6J("ngStyle",c.getExpandShape())("ngClass",n.VKq(2,F,c.is_expandable()))}}function R(u,E){if(1&u){const c=n.EpF();n.TgZ(0,"span",12),n.NdJ("click",function(){n.CHM(c);const v=n.oxw();return n.KtG(v.showProperties())}),n._uU(1),n.qZA()}if(2&u){const c=n.oxw();n.Q6J("title",c.getLayerName(c.layer)),n.xp6(1),n.hij(" ",c.getLayerName(c.layer)," ")}}function b(u,E){if(1&u){const c=n.EpF();n.TgZ(0,"span")(1,"clr-icon",13),n.NdJ("click",function(){n.CHM(c);const v=n.oxw();return n.KtG(v.setLayerIndex(v.layer,"down",v.group))}),n.qZA(),n.TgZ(2,"clr-icon",14),n.NdJ("click",function(){n.CHM(c);const v=n.oxw();return n.KtG(v.setLayerIndex(v.layer,"up",v.group))}),n.qZA()()}if(2&u){const c=n.oxw();n.xp6(1),n.Q6J("hidden",c.layerGroups&&1==c.layerGroups.length)("ngClass",n.VKq(4,F,c.isLast(c.layer))),n.xp6(1),n.Q6J("hidden",c.layerGroups&&1==c.layerGroups.length)("ngClass",n.VKq(6,F,c.isFirst(c.layer)))}}const O=function(u){return{"is-solid":u}};function N(u,E){if(1&u&&n._UZ(0,"clr-icon",15),2&u){const c=n.oxw();n.s9C("title",c.layer.visible?"Choose another layer":"Show layer"),n.Q6J("ngClass",n.VKq(3,O,c.layer.visible)),n.uIk("shape",c.layer.visible?"dot-circle":"circle")}}function z(u,E){if(1&u&&n._UZ(0,"clr-icon",15),2&u){const c=n.oxw();n.s9C("title",c.layer.visible?"Hide layer":"Show layer"),n.Q6J("ngClass",n.VKq(3,O,c.layer.visible)),n.uIk("shape",c.layer.visible?"eye":"eye-hide")}}const x=function(u){return{active:u}};function M(u,E){if(1&u){const c=n.EpF();n.TgZ(0,"clr-icon",25),n.NdJ("click",function(){n.CHM(c);const v=n.oxw(2);return n.KtG(v.switchTab("settings"))}),n.qZA()}if(2&u){const c=n.oxw(2);n.Q6J("ngClass",n.VKq(1,x,c.activeTabs.settings))}}function I(u,E){if(1&u){const c=n.EpF();n.TgZ(0,"clr-icon",26),n.NdJ("click",function(){n.CHM(c);const v=n.oxw(2);return n.KtG(v.switchTab("legend"))}),n.qZA()}if(2&u){const c=n.oxw(2);n.Q6J("ngClass",n.VKq(1,x,c.activeTabs.legend))}}function L(u,E){if(1&u){const c=n.EpF();n.TgZ(0,"clr-icon",27),n.NdJ("click",function(){n.CHM(c);const v=n.oxw(2);return n.KtG(v.switchTab("description"))}),n.qZA()}if(2&u){const c=n.oxw(2);n.Q6J("ngClass",n.VKq(1,x,c.activeTabs.description))}}function X(u,E){if(1&u){const c=n.EpF();n.TgZ(0,"clr-icon",28),n.NdJ("click",function(){const G=n.CHM(c).$implicit,Y=n.oxw(2);return n.KtG(G.action(Y.layer))}),n.qZA()}if(2&u){const c=E.$implicit;n.Q6J("title",c.title),n.uIk("shape",c.icon)}}function ie(u,E){if(1&u){const c=n.EpF();n.TgZ(0,"clr-icon",29),n.NdJ("click",function(){n.CHM(c);const v=n.oxw(2);return n.KtG(v.zoomTo(v.layer))}),n.qZA()}}function se(u,E){if(1&u){const c=n.EpF();n.TgZ(0,"clr-icon",30),n.NdJ("click",function(){n.CHM(c);const v=n.oxw(2);return n.KtG(v.removeLayer(v.group,v.layer))}),n.qZA()}}function K(u,E){if(1&u){const c=n.EpF();n.TgZ(0,"div",37)(1,"label"),n._uU(2,"Opacity: "),n.TgZ(3,"input",38),n.NdJ("change",function(){n.CHM(c);const v=n.oxw(4);return n.KtG(v.setLayerOpacity(v.layer))})("ngModelChange",function(v){n.CHM(c);const G=n.oxw(4);return n.KtG(G.layer.opacity=v)}),n.qZA()(),n.TgZ(4,"span"),n._uU(5),n.qZA()()}if(2&u){const c=n.oxw(4);n.xp6(3),n.Q6J("value",c.layer.opacity)("min",0)("max",1)("step",.1)("ngModel",c.layer.opacity),n.xp6(2),n.Oqu(" "+c.layer.opacity)}}function Q(u,E){if(1&u&&(n.TgZ(0,"option",41),n._uU(1),n.qZA()),2&u){const c=E.$implicit,y=n.oxw(5);n.Q6J("value",c.name),n.uIk("selected",!!y.isSelectedStyle(c.name)||null),n.xp6(1),n.Oqu(c.title)}}function ne(u,E){if(1&u){const c=n.EpF();n.ynx(0),n.TgZ(1,"select",39),n.NdJ("change",function(v){n.CHM(c);const G=n.oxw(4);return n.KtG(G.executeChangeStyle(v))}),n.YNc(2,Q,2,3,"option",40),n.qZA(),n.BQk()}if(2&u){const c=n.oxw(4);n.xp6(2),n.Q6J("ngForOf",c.layer.styles)}}function $(u,E){if(1&u){const c=n.EpF();n.ynx(0),n.TgZ(1,"ukis-dynamic-component",42),n.NdJ("dynamicComponentChange",function(v){n.CHM(c);const G=n.oxw(4);return n.KtG(G.dynamicComponents.action=v)}),n.qZA(),n.BQk()}if(2&u){const c=n.oxw(4);n.xp6(1),n.Q6J("dynamicComponent",c.dynamicComponents.action)}}function oe(u,E){if(1&u&&(n.TgZ(0,"div",35),n.YNc(1,K,6,6,"div",36),n.YNc(2,ne,3,1,"ng-container",6),n.YNc(3,$,2,1,"ng-container",6),n.qZA()),2&u){const c=n.oxw(3);n.xp6(1),n.Q6J("ngIf",!c.checkBaselayer(c.layer,c.group)),n.xp6(1),n.Q6J("ngIf",c.layer.styles&&(null==c.layer.styles?null:c.layer.styles.length)>1),n.xp6(1),n.Q6J("ngIf",c.checkIsComponentItem(c.layer,"action"))}}function J(u,E){if(1&u){const c=n.EpF();n.ynx(0),n.TgZ(1,"ukis-dynamic-component",42),n.NdJ("dynamicComponentChange",function(v){n.CHM(c);const G=n.oxw(4);return n.KtG(G.dynamicComponents.legendImg=v)}),n.qZA(),n.BQk()}if(2&u){const c=n.oxw(4);n.xp6(1),n.Q6J("dynamicComponent",c.dynamicComponents.legendImg)}}function ae(u,E){if(1&u&&(n.TgZ(0,"a",46),n._UZ(1,"img",47),n.qZA()),2&u){const c=n.oxw(4);n.Q6J("href",c.layer.legendImg,n.LSH),n.xp6(1),n.Q6J("src",c.layer.legendImg,n.LSH)}}function le(u,E){if(1&u&&(n.TgZ(0,"div",43),n.YNc(1,J,2,1,"ng-container",44),n.YNc(2,ae,2,2,"ng-template",null,45,n.W1O),n.qZA()),2&u){const c=n.MAs(3),y=n.oxw(3);n.xp6(1),n.Q6J("ngIf",y.checkIsComponentItem(y.layer,"legendImg"))("ngIfElse",c)}}function _e(u,E){if(1&u){const c=n.EpF();n.ynx(0),n.TgZ(1,"ukis-dynamic-component",42),n.NdJ("dynamicComponentChange",function(v){n.CHM(c);const G=n.oxw(4);return n.KtG(G.dynamicComponents.description=v)}),n.qZA(),n.BQk()}if(2&u){const c=n.oxw(4);n.xp6(1),n.Q6J("dynamicComponent",c.dynamicComponents.description)}}function V(u,E){if(1&u&&n._UZ(0,"span",50),2&u){const c=n.oxw(4);n.Q6J("innerHTML",c.layer.description,n.oJD)}}function P(u,E){if(1&u&&(n.TgZ(0,"div",48),n.YNc(1,_e,2,1,"ng-container",44),n.YNc(2,V,1,1,"ng-template",null,49,n.W1O),n.qZA()),2&u){const c=n.MAs(3),y=n.oxw(3);n.xp6(1),n.Q6J("ngIf",y.checkIsComponentItem(y.layer,"description"))("ngIfElse",c)}}function d(u,E){if(1&u&&(n.TgZ(0,"div",31),n.YNc(1,oe,4,3,"div",32),n.YNc(2,le,4,2,"div",33),n.YNc(3,P,4,2,"div",34),n.qZA()),2&u){const c=n.oxw(2);n.xp6(1),n.Q6J("ngIf",c.activeTabs.settings),n.xp6(1),n.Q6J("ngIf",c.activeTabs.legend&&c.layer.legendImg),n.xp6(1),n.Q6J("ngIf",c.activeTabs.description&&c.layer.description)}}function f(u,E){if(1&u&&(n.TgZ(0,"div",16)(1,"div",17),n.YNc(2,M,1,3,"clr-icon",18),n.YNc(3,I,1,3,"clr-icon",19),n.YNc(4,L,1,3,"clr-icon",20),n.YNc(5,X,1,2,"clr-icon",21),n._UZ(6,"span"),n.YNc(7,ie,1,0,"clr-icon",22),n.YNc(8,se,1,0,"clr-icon",23),n.qZA(),n.YNc(9,d,4,3,"div",24),n.qZA()),2&u){const c=n.oxw();n.xp6(2),n.Q6J("ngIf",!c.checkBaselayer(c.layer,c.group)||c.layer.action),n.xp6(1),n.Q6J("ngIf",c.layer.legendImg),n.xp6(1),n.Q6J("ngIf",c.layer.description),n.xp6(1),n.Q6J("ngForOf",c.layer.actions),n.xp6(2),n.Q6J("ngIf",c.canZoomToLayer),n.xp6(1),n.Q6J("ngIf",c.layer.removable),n.xp6(1),n.Q6J("ngIf",c.hasTabsbody&&c.hasActiveTabs())}}const h=function(u){return{expanded:u}},g=["*"];var l=(()=>{return(u=l||(l={})).settings="settings",u.legend="legend",u.description="description",l;var u})();let S=(()=>{class u{constructor(){this.expandable=!0,this.sorting=!0,this.update=new n.vpe,this.canZoomToLayer=!1,this.activeTabs={settings:!1,legend:!0,description:!1},this.hasTabsbody=!0,this.dynamicComponents={legendImg:null,action:null,description:null}}get visible(){return this.layer.visible}get cssClass(){return this.layer.cssClass}set expanded(c){this.layer&&(this.layer.expanded=c)}get expanded(){return!!this.layer&&!!this.layer.expanded}checkIsComponentItem(c,y){const v=c[y];let G=!1;if(v&&"object"==typeof v&&"component"in v){const Y=v.component;v.inputs?v.inputs&&!v.inputs.layer?this.dynamicComponents[y]={component:v.component,inputs:Object.assign({},v.inputs,{layer:c})}:v.inputs&&v.inputs.layer&&(this.dynamicComponents[y]={component:v.component,inputs:Object.assign({},v.inputs)}):this.dynamicComponents[y]={component:Y,inputs:{layer:c}},v.outputs&&(this.dynamicComponents[y].outputs=Object.assign({},v.outputs)),G=!0}return G}getLayerName(c){return c.displayName?c.displayName:c.name}ngOnInit(){this.layersSvc||console.error("you need to provide a layersService!"),"object"==typeof this.layer?.expanded&&Object.keys(l).includes(this.layer.expanded.tab)?(this.switchTab(this.layer.expanded.tab),!1===this.layer.expanded.expanded&&(this.activeTabs[this.layer.expanded.tab]=!1)):this.setDefaultActiveTabs(),this.layer.bbox&&this.layer.bbox.length>=4&&(this.canZoomToLayer=!0),"Baselayers"!==this.layer.filtertype||this.layer.legendImg||this.layer.description||this.layer.action||this.layer.actions||this.layer.styles||this.layer.styles?.length>1||(this.hasTabsbody=!1)}setDefaultActiveTabs(){this.layer.legendImg||this.switchTab("description"),!this.layer.legendImg&&!this.layer.description&&this.switchTab("settings")}setLayerVisibility(c,y){if(y){if(y.layers.length>0)if("Baselayers"===y.filtertype){for(const v of y.layers)v.visible=v===c;this.update.emit({layer:this.layer})}else{const v=y.visible;c.visible=!c.visible,v!==y.visible?this.update.emit({layer:this.layer}):this.layersSvc.updateLayer(c,c.filtertype||"Layers")}}else if("Baselayers"===c.filtertype){c.visible=!c.visible;const v=this.layerGroups.filter(G=>"Baselayers"===G.filtertype);for(const G of v)G instanceof s.mh&&G.id!==c.id&&(G.visible=!c.visible,this.layersSvc.updateLayer(G,G.filtertype||"Baselayers"))}else c.visible=!c.visible,this.layersSvc.updateLayer(c,c.filtertype||"Layers")}setLayerIndex(c,y,v){v?this.layersSvc.setLayerIndexInGroup(c,y,v):this.layersSvc.setGroupLayerIndex(c,y)}removeLayer(c,y){c?this.layersSvc.removeLayerFromGroup(y,c):this.layersSvc.removeLayer(y,y.filtertype)}zoomTo(c){this.mapState&&c.bbox&&c.bbox.length>=4&&this.mapState.setExtent(c.bbox)}setLayerOpacity(c){this.group?this.update.emit({layer:c}):this.layersSvc.updateLayer(c,c.filtertype||"Layers")}checkBaselayer(c,y){return!!("Baselayers"===c.filtertype||y&&"Baselayers"===y.filtertype)}is_expandable(){return this.group?!this.layer.legendImg&&"Baselayers"===this.group.filtertype:!this.hasTabsbody}showProperties(){this.is_expandable()||(this.expanded=!this.expanded)}switchTab(c,y=!0){for(const v of Object.keys(this.activeTabs)){const G=c===v;this.activeTabs[v]=(!this.activeTabs[v]||!y)&&G}}hasActiveTabs(){return Object.values(this.activeTabs).filter(c=>c).length>0}isSelectedStyle(c){return this.layer instanceof s.TI?this.layer.params.STYLES===c:this.layer instanceof s.RC&&this.layer.params.style===c}executeChangeStyle(c){const y=c.target.value;if(this.layer.styles){const v=this.layer.styles.find(G=>G.name===y);v&&(this.layer.legendImg=v.legendURL,this.layer instanceof s.TI?this.layer.params.STYLES=v.name:this.layer instanceof s.RC&&(this.layer.params.style=v.name),this.layersSvc.updateLayer(this.layer,this.layer.filtertype))}}isFirst(c){return this.group?this.layersSvc.isGroupFirst(c,this.group.layers):this.layersSvc.isGroupFirst(c,null,c.filtertype)}isLast(c){return this.group?this.layersSvc.isGroupLast(c,this.group.layers):this.layersSvc.isGroupLast(c,null,c.filtertype)}getExpandShape(){return this.expanded?{transform:"rotate(180deg)"}:{transform:"rotate(90deg)"}}}return u.\u0275fac=function(c){return new(c||u)},u.\u0275cmp=n.Xpm({type:u,selectors:[["ukis-layerentry"]],hostVars:4,hostBindings:function(c,y){2&c&&(n.Tol(y.cssClass),n.ekj("layer-visible",y.visible))},inputs:{layersSvc:"layersSvc",mapState:"mapState",layer:"layer",group:"group",layerGroups:"layerGroups",expanded:"expanded",expandable:"expandable",sorting:"sorting"},outputs:{update:"update"},ngContentSelectors:g,decls:14,vars:13,consts:[[1,"layer",3,"ngClass"],[1,"head"],["shape","angle","class","iconButton","title","Details",3,"ngStyle","ngClass","click",4,"ngIf"],[1,"item-title-replacement","title",3,"title","click"],["ref",""],["class","title",3,"title","click",4,"ngIf"],[4,"ngIf"],["class","iconButton",3,"ngClass","title",4,"ngIf","ngIfElse"],["notBaselayer",""],[1,"hide",3,"type","name","checked","change"],["class","body",4,"ngIf"],["shape","angle","title","Details",1,"iconButton",3,"ngStyle","ngClass","click"],[1,"title",3,"title","click"],["shape","arrow","title","up",1,"iconButton",3,"hidden","ngClass","click"],["shape","arrow","title","down","dir","down",1,"iconButton",3,"hidden","ngClass","click"],[1,"iconButton",3,"ngClass","title"],[1,"body"],[1,"tools"],["title","Layer settings","shape","cog","class","iconButton",3,"ngClass","click",4,"ngIf"],["title","Layer Legend","shape","image","class","iconButton",3,"ngClass","click",4,"ngIf"],["title","Layer info","shape","info-standard","class","iconButton",3,"ngClass","click",4,"ngIf"],["class","iconButton",3,"title","click",4,"ngFor","ngForOf"],["shape","zoom-in","class","iconButton","title","Zoom to layer",3,"click",4,"ngIf"],["shape","trash","class","iconButton","title","Remove layer",3,"click",4,"ngIf"],["class","tabsbody",4,"ngIf"],["title","Layer settings","shape","cog",1,"iconButton",3,"ngClass","click"],["title","Layer Legend","shape","image",1,"iconButton",3,"ngClass","click"],["title","Layer info","shape","info-standard",1,"iconButton",3,"ngClass","click"],[1,"iconButton",3,"title","click"],["shape","zoom-in","title","Zoom to layer",1,"iconButton",3,"click"],["shape","trash","title","Remove layer",1,"iconButton",3,"click"],[1,"tabsbody"],["class","layersettings",4,"ngIf"],["class","legend",4,"ngIf"],["class","description",4,"ngIf"],[1,"layersettings"],["class","form-group",4,"ngIf"],[1,"form-group"],["type","range","name","points",1,"ukis-range-input","opacity-input",3,"value","min","max","step","ngModel","change","ngModelChange"],["clrSelect","",3,"change"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[3,"dynamicComponent","dynamicComponentChange"],[1,"legend"],[4,"ngIf","ngIfElse"],["imageUrl",""],["target","_blank","title","Show full Image",3,"href"],[3,"src"],[1,"description"],["descriptionText",""],[3,"innerHTML"]],template:function(c,y){if(1&c&&(n.F$t(),n.TgZ(0,"div",0)(1,"div",1),n.YNc(2,D,1,4,"clr-icon",2),n.TgZ(3,"div",3,4),n.NdJ("click",function(){return y.showProperties()}),n.Hsn(5),n.qZA(),n.YNc(6,R,2,2,"span",5),n.YNc(7,b,3,8,"span",6),n.TgZ(8,"label"),n.YNc(9,N,1,5,"clr-icon",7),n.YNc(10,z,1,5,"ng-template",null,8,n.W1O),n.TgZ(12,"input",9),n.NdJ("change",function(){return y.setLayerVisibility(y.layer,y.group)}),n.qZA()()(),n.YNc(13,f,10,7,"div",10),n.qZA()),2&c){const v=n.MAs(4),G=n.MAs(11);n.Q6J("ngClass",n.VKq(11,h,y.expanded)),n.xp6(2),n.Q6J("ngIf",y.hasTabsbody),n.xp6(1),n.Q6J("title",y.getLayerName(y.layer)),n.xp6(3),n.Q6J("ngIf",0==v.children.length),n.xp6(1),n.Q6J("ngIf",!y.checkBaselayer(y.layer,y.group)&&y.sorting),n.xp6(2),n.Q6J("ngIf",y.checkBaselayer(y.layer,y.group))("ngIfElse",G),n.xp6(3),n.Q6J("type",y.checkBaselayer(y.layer,y.group)?"radio":"checkbox")("name","layer")("checked",y.layer.visible),n.xp6(1),n.Q6J("ngIf",y.expandable&&y.expanded)}},dependencies:[w.mk,w.sg,w.O5,w.PC,B.qvL,B.MgK,B.otW,k.YN,k.Kr,k.Fj,k.eT,k.JJ,k.On,H._],styles:[".title[_ngcontent-%COMP%]{cursor:pointer}.item-title-replacement[_ngcontent-%COMP%]:empty{display:none}.body[_ngcontent-%COMP%]{cursor:default}.tabsbody[_ngcontent-%COMP%]{overflow:hidden}.tabsbody[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:auto;max-width:100%}"]}),u})()},8518:(q,U,m)=>{m.d(U,{B:()=>s});var n=m(4537);let s=(()=>{class w{transform(k){return"string"==typeof k?k.split("").reverse().join(""):Array.isArray(k)?k.slice().reverse():k}}return w.\u0275fac=function(k){return new(k||w)},w.\u0275pipe=n.Yjl({name:"reverse",type:w,pure:!1}),w})()},8092:(q,U,m)=>{m.d(U,{J:()=>w});var n=m(4537);let w=(()=>{class B{transform(H,F){return H.filter(F)}}return B.\u0275fac=function(H){return new(H||B)},B.\u0275pipe=n.Yjl({name:"itemsfilter",type:B,pure:!1}),B})()},5508:(q,U,m)=>{m.d(U,{cE:()=>N}),m(408),m(580);var w=m(8692),B=m(6799),k=m(92),H=m(3066),F=m(9765),D=m(4537);let R=(()=>{class M{constructor(){this.alertSource=new F.xQ,this.alert$=this.alertSource.asObservable()}alert(L){this.alertSource.next(L)}}return M.\u0275fac=function(L){return new(L||M)},M.\u0275prov=D.Yz7({token:M,factory:M.\u0275fac,providedIn:"root"}),M})(),b=(()=>{class M{constructor(){this.progressSource=new F.xQ,this.progress$=this.progressSource.asObservable()}progress(L){this.progressSource.next(L)}}return M.\u0275fac=function(L){return new(L||M)},M.\u0275prov=D.Yz7({token:M,factory:M.\u0275fac,providedIn:"root"}),M})(),O=(()=>{class M{}return M.\u0275fac=function(L){return new(L||M)},M.\u0275mod=D.oAB({type:M}),M.\u0275inj=D.cJS({providers:[R,b],imports:[w.ez,B.K6A]}),M})(),N=(()=>{class M{}return M.\u0275fac=function(L){return new(L||M)},M.\u0275mod=D.oAB({type:M}),M.\u0275inj=D.cJS({imports:[w.ez,B.K6A,k.u5,H._t,O]}),M})();m(7927),m(8106)},5548:(q,U,m)=>{m.d(U,{AO:()=>ie,ED:()=>D,sM:()=>b,Sw:()=>k,R6:()=>H,mh:()=>x,ex:()=>K,KD:()=>le,YY:()=>M,WQ:()=>se,jn:()=>R,CY:()=>n,DJ:()=>L,KF:()=>F,TI:()=>$,MR:()=>s,RC:()=>Q,$6:()=>w,Aq:()=>B});const n="tms",s="wms",w="wmts",B="xyz",k="geojson",H="kml",F="wfs",D="custom",R="stacked",b={Baselayers:"Baselayers",Overlays:"Overlays",Layers:"Layers"};class x{constructor(P){this.name="",this.id="",this.opacity=1,this.visible=!0,this.removable=!1,this.filtertype="Layers",this.continuousWorld=!1,this.expanded=!1,Object.assign(this,P)}get time(){return this.protTime}set time(P){this.protTime=P}}class M extends x{constructor(P){if(super(P),this.styles&&this.styles.length>0){let d=this.styles.find(f=>f.default);d||(d=this.styles[0]),this.legendImg=d.legendURL,this.params?(this.type===s?this.params.STYLES=d.name:this.type===w&&(this.params.style=d.name),this.params.STYLES=d.name):this.type===w&&(this.params||(this.params={}),this.params.style=d.name)}}set time(P){this.params&&(this.params.TIME=P),this.protTime=P}get time(){return this.protTime}}class L extends x{constructor(P){super(P)}}class ie extends x{constructor(P){super(P),this.type=D,this.custom_layer={},Object.assign(this,P)}}class se extends x{constructor(P){super(P),this.type=R,this.layers=[],Object.assign(this,P)}}class K{constructor(P){this.filtertype="Layers",this.removable=!0,this.layerRemovable=!0,this.expanded=!1,P&&void 0!==P.visible&&P.layers&&P.layers.length&&(P.layers=P.layers.map(d=>(d.visible=P.visible,d))),Object.assign(this,P)}get visible(){return this.layers&&this.layers.length&&(this.protVisible=this.layers.filter(P=>P.visible).length>0),this.protVisible}set visible(P){this.protVisible=P,this.layers&&this.layers.length&&(this.layers=this.layers.map(d=>(d.visible=P,d)))}}class Q extends M{constructor(P){super(P)}}class $ extends M{constructor(P){super(P)}}var J=m(6215),ae=m(4537);let le=(()=>{class V{constructor(){this.store=new J.X(Array()),this.baseLayers=new J.X(Array()),this.overlays=new J.X(Array()),this.layers=new J.X(Array())}addLayer(d,f,h){if(this.isInLayergroups(d))console.error(`layer or Group with id: ${d.id} already exists!`);else{f?d.filtertype=f:f=d.filtertype;const g=this.store.getValue();h||(g.push(d),this.store.next(g)),this.filterFiltertype(f)}}removeLayer(d,f,h){this.isInLayergroups(d)?h?(console.log(`layer: ${d.id} is removed with force!`),this._removeLayer(d,f)):d.removable?this._removeLayer(d,f):d.removable||console.log(`layer: ${d.id} is not removable!`):console.error(`layer with id: ${d.id} not in storeItems!`)}_removeLayer(d,f){f?f!==d.filtertype&&console.error(`the layer with id: ${d.id} you want to remove from ${f} is from filtertype: ${d.filtertype}`):f=d.filtertype;const h=this.store.getValue().filter(g=>g instanceof x?g.id!==d.id:g);this.store.next(h),this.filterFiltertype(f)}updateLayer(d,f){this.isInLayergroups(d)?(f?f!==d.filtertype&&console.error(`the layer with id: ${d.id} you want to update is from filtertype: ${d.filtertype} and not from ${f} `):f=d.filtertype,"Overlays"===d.filtertype&&(this.updateLayerOrGroupInStore(d),this.filterFiltertype(d.filtertype)),"Layers"===d.filtertype&&(this.updateLayerOrGroupInStore(d),this.filterFiltertype(d.filtertype)),"Baselayers"===d.filtertype&&(this.updateLayerOrGroupInStore(d),this.filterFiltertype(d.filtertype))):console.error(`layer with id: ${d.id} you want to update not in storeItems!`)}updateLayerOrGroupInStore(d){this.store.getValue().filter((f,h,g)=>{f instanceof x&&d instanceof x?f.id===d.id&&(g[h]=d,this.store.next(g)):f instanceof K&&d instanceof K&&f.id===d.id&&(g[h]=d,this.store.next(g))})}removeLayerOrGroupById(d,f,h){this.store.getValue().filter(g=>{g instanceof x?g.id===d&&this.removeLayer(g,g.filtertype||"Layers",h):g instanceof K&&(g.id===d?this.removeLayerGroup(g,h):g.layers.forEach(l=>{l.id===d&&this.removeLayerFromGroup(l,g,f,h)}))})}addLayerToGroup(d,f){this.isInLayergroups(d)?console.error(`layer with id: ${d.id} already exists!`):(d.filtertype!==f.filtertype&&(d.filtertype=f.filtertype),this.isInLayergroups(d,[f])?console.error(`layer with id: ${d.id} already exists in ${f.id}!`,f):(f.layers.push(d),this.updateLayerGroup(f)))}addLayerToGroupById(d,f){this.store.getValue().forEach(h=>{h instanceof K&&h.id===f&&this.addLayerToGroup(d,h)})}removeLayerFromGroup(d,f,h=!0,g){f.layers=f.layers.filter(l=>l.id!==d.id),this.updateLayerGroup(f),this.filterFiltertype(d.filtertype),0===f.layers.length&&h&&this.removeLayerGroup(f,g)}setLayerIndexInGroup(d,f,h){const g=h.layers.indexOf(d);switch(f){case"up":if(0===g)break;this.arrayMove(h.layers,g,g-1);break;case"down":if(g===h.layers.length-1)break;this.arrayMove(h.layers,g,g+1)}this.updateLayer(d,h.filtertype||"Layers")}addLayerGroup(d,f){if(!this.isInLayergroups(d)){f?d.filtertype=f:f=d.filtertype;const h=this.store.getValue();this.isInLayergroups(d,d.layers)&&(d.layers=d.layers.filter(g=>g.id!==d.id)),d.layers=d.layers.map(g=>(g.filtertype=d.filtertype,g)),h.push(d),this.store.next(h),this.updateLayerGroup(d)}}removeLayerGroup(d,f){this.isInLayergroups(d)?f?(console.log(`layerGroup: ${d.id} is removed with force!`),this._removeLayerGroup(d)):d.removable?this._removeLayerGroup(d):d.removable||console.log(`layerGroup: ${d.id} is not removable!`):console.error(`layer or Group with id: ${d.id} not in storeItems!`)}_removeLayerGroup(d){for(const g of d.layers)this.removeLayerFromGroup(g,d);const h=this.store.getValue().filter(function(g,l){return g.id!==d.id});this.store.next(h)}updateLayerGroup(d,f=!1){f&&(d=this.sortLayerGroup(d)),this.updateLayerOrGroupInStore(d);for(const h of d.layers)this.updateLayer(h,d.filtertype||"Layers")}arrayMove(d,f,h){d.splice(h<0?d.length+h:h,0,d.splice(f,1)[0])}setGroupLayerIndex(d,f){let h;if((d instanceof x&&d.filtertype||d instanceof K)&&(h=this.getNumOfGroups(d.filtertype)),h>1){const g=this.store.getValue(),l=g.indexOf(d);(!this.isGroupFirst(d)||!this.isGroupLast(d))&&("number"==typeof f?this.arrayMove(g,l,f):"up"===f?this.arrayMove(g,l,l-1):"down"===f&&this.arrayMove(g,l,l+1)),this.store.next(g),this.baseLayers.next(this.filterBaseLayers()),this.layers.next(this.filterLayers()),this.overlays.next(this.filterOverlays())}}getNumOfGroups(d){let f=0;const h=this.store.getValue();for(const g of h)g.filtertype===d&&f++;return f}isGroupFirst(d,f,h){let g=!1,l=this.store.getValue();return f&&(l=f),h&&(l=l.filter(S=>S.filtertype===h)),0===l.indexOf(d)&&(g=!0),g}isGroupLast(d,f,h){let g=!1,l=this.store.getValue();return f&&(l=f),h&&(l=l.filter(S=>S.filtertype===h)),l.indexOf(d)===l.length-1&&(g=!0),g}isInLayergroups(d,f){let g,h=!1;g=d instanceof x||d instanceof K?d.id:d;const l=this.getLayerOrGroupById(g,f);return(l&&l instanceof x||l instanceof K)&&(h=!0),h}getLayerOrGroupById(d,f){const h=[];let g=this.store.getValue();return f&&(g=f),g.map(l=>{l instanceof K?l.id===d?h.push(l):l.layers.map(S=>{S.id===d&&h.push(S)}):l instanceof x&&l.id===d&&h.push(l)}),h.length?1===h.length?h[0]:void(h.length>1&&console.log("there is a duplicate ID in the Layer Groups!")):null}getLayerById(d,f){let h,g=this.flattenDeepArray(this.store.getValue());return f&&(g=f),g.map(l=>{l.id===d&&(h=l)}),h}getBaseLayers(){return this.baseLayers.asObservable()}removeBaseLayers(d){let f=this.filterBaseLayers();return d&&(f=f.filter(d)),f.forEach(h=>{this.removeLayerOrGroupById(h.id)}),this.baseLayers.asObservable()}getBaseLayersCount(){return this.baseLayers.getValue().length}getOverlays(){return this.overlays.asObservable()}removeOverlays(d){let f=this.filterOverlays();return d&&(f=f.filter(d)),f.forEach(h=>{this.removeLayerOrGroupById(h.id)}),this.overlays.asObservable()}getOverlaysCount(){return this.overlays.getValue().length}getLayers(){return this.layers.asObservable()}removeLayers(d){let f=this.filterLayers();return d&&(f=f.filter(d)),f.forEach(h=>{this.removeLayerOrGroupById(h.id)}),this.layers.asObservable()}getLayersCount(){return this.layers.getValue().length}getLayerGroups(){return this.store.asObservable()}setLayerGroups(d,f){return d.length>0&&d.map(h=>{h instanceof K&&h.layers.length>0&&(h.layers=h.layers.map(g=>(g.filtertype=h.filtertype,g)))}),f?("Baselayers"===f?this.removeBaseLayers():"Layers"===f?this.removeLayers():"Overlays"===f&&this.removeOverlays(),d.map(h=>{h instanceof x?this.addLayer(h,f):h instanceof K&&this.addLayerGroup(h,f)})):(this.store.next(d),this.baseLayers.next(this.filterBaseLayers()),this.layers.next(this.filterLayers()),this.overlays.next(this.filterOverlays())),this.store.asObservable()}getLayerGroupsCount(){return this.store.getValue().length}flattenDeepArray(d){return d.reduce((f,h)=>h instanceof K&&Array.isArray(h.layers)?f.concat(this.flattenDeepArray(h.layers)):f.concat(h),[])}filterOverlays(){const d=this.store.getValue();return this.flattenDeepArray(d.filter(h=>"Overlays"===h.filtertype))}filterBaseLayers(){const d=this.store.getValue();return this.flattenDeepArray(d.filter(h=>"Baselayers"===h.filtertype))}filterLayers(){const d=this.store.getValue();return this.flattenDeepArray(d.filter(h=>"Layers"===h.filtertype))}filterFiltertype(d){"Baselayers"===d?this.baseLayers.next(this.filterBaseLayers()):"Overlays"===d?this.overlays.next(this.filterOverlays()):"Layers"===d&&this.layers.next(this.filterLayers())}sortLayerGroup(d){return d.layers.sort((f,h)=>{let g=0;return f instanceof M?g=1:h instanceof M&&(g=-1),g}),d}}return V.\u0275fac=function(d){return new(d||V)},V.\u0275prov=ae.Yz7({token:V,factory:V.\u0275fac,providedIn:"root"}),V})()},790:(q,U,m)=>{m.d(U,{U5:()=>n,I3:()=>H});class n{constructor(R,b,O,N=[-180,-90,180,90],z=(new Date).toISOString()){this.zoom=R,this.center=b,this.extent=N,this.time=z,this.options=Object.assign({maxzoom:0,minzoom:0,notifier:"map"},O)}sameCenter(R){return this.center.lat===R.lat&&this.center.lon===R.lon}sameZoom(R){return this.zoom===R}sameExtent(R){let O=!1;return this.extent.length===R.length&&(O=this.extent.every((N,z)=>R[z]===N)),O}sameNotifier(R){return this.options.notifier===R}}var s=m(6215),w=m(8002),B=m(4537);const k=new n(0,{lat:0,lon:0});let H=(()=>{class D{constructor(){this.mapState=new s.X(k),this.lastAction=new s.X(null)}getMapState(){return this.mapState}setMapState(b){if(b)if(this.lastAction.next("setState"),b instanceof n){const O=new n(b.zoom,b.center,b.options,b.extent,b.time);this.mapState.next(O)}else{const O={notifier:"user",...b.options},N=new n(b.zoom,b.center,O,b.extent,b.time);this.mapState.next(N)}}getExtent(){return this.mapState.pipe((0,w.U)(b=>b.extent))}setExtent(b,O="user"){if(!b)return;this.lastAction.next("setExtent");const N=this.getMapState().getValue();N.options.notifier=O;const z=new n(N.zoom,N.center,N.options,b,N.time);this.mapState.next(z)}setTime(b){const O=this.getMapState().getValue();O.time=b instanceof Date?b.toISOString():b,this.setMapState(O)}getLastAction(){return this.lastAction}}return D.\u0275fac=function(b){return new(b||D)},D.\u0275prov=B.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"}),D})()},3066:(q,U,m)=>{m.d(U,{Zt:()=>ri,Bh:()=>ti,Wj:()=>ei,_t:()=>oi,bA:()=>nt});var n=m(4537),s=m(8692);function w(r){return null!=r&&"false"!=`${r}`}function B(r,t=0){return function k(r){return!isNaN(parseFloat(r))&&!isNaN(Number(r))}(r)?Number(r):t}function D(r){return r instanceof n.SBq?r.nativeElement:r}var b=m(9765),O=m(5917),N=m(882),z=m(2759),x=m(3989),I=m(6493);const X=new class L extends I.v{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,o=-1,a=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++o0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}});let se=1;const K=Promise.resolve(),Q={};function ne(r){return r in Q&&(delete Q[r],!0)}const $={setImmediate(r){const t=se++;return Q[t]=!0,K.then(()=>ne(t)&&r()),t},clearImmediate(r){ne(r)}};new class ae extends I.v{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,o=-1,a=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++o0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=$.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&($.clearImmediate(e),t.scheduled=void 0)}});var V=m(3637),P=m(5345);class f{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new h(t,this.durationSelector))}}class h extends P.Ds{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let e;try{const{durationSelector:o}=this;e=o(t)}catch(o){return this.destination.error(o)}const i=(0,P.ft)(e,new P.IY(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:t,hasValue:e,throttled:i}=this;i&&(this.remove(i),this.throttled=void 0,i.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(t))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}var g=m(6797);function l(r,t=V.P){return function d(r){return function(e){return e.lift(new f(r))}}(()=>(0,g.H)(r,t))}var S=m(5435);let u;try{u=typeof Intl<"u"&&Intl.v8BreakIterator}catch{u=!1}let Y,we,E=(()=>{class r{constructor(e){this._platformId=e,this.isBrowser=this._platformId?(0,s.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!u)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return r.\u0275fac=function(e){return new(e||r)(n.LFG(n.Lbi))},r.\u0275prov=n.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();function re(r){return function ve(){if(null==Y&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Y=!0}))}finally{Y=Y||!1}return Y}()?r:!!r.capture}function Be(r){if(function pt(){if(null==we){const r=typeof document<"u"?document.head:null;we=!(!r||!r.createShadowRoot&&!r.attachShadow)}return we}()){const t=r.getRootNode?r.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function be(r){return r.composedPath?r.composedPath()[0]:r.target}let ft=(()=>{class r{constructor(e,i,o){this._ngZone=e,this._platform=i,this._scrolled=new b.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=o}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new N.y(i=>{this._globalSubscription||this._addGlobalListener();const o=e>0?this._scrolled.pipe(l(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,O.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){const o=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe((0,S.h)(a=>!a||o.indexOf(a)>-1))}getAncestorScrollContainers(e){const i=[];return this.scrollContainers.forEach((o,a)=>{this._scrollableContainsElement(a,e)&&i.push(a)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let o=D(i),a=e.getElementRef().nativeElement;do{if(o==a)return!0}while(o=o.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const e=this._getWindow();return(0,z.R)(e.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return r.\u0275fac=function(e){return new(e||r)(n.LFG(n.R0b),n.LFG(E),n.LFG(s.K0,8))},r.\u0275prov=n.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),mt=(()=>{class r{constructor(e,i,o){this._platform=e,this._change=new b.xQ,this._changeListener=a=>{this._change.next(a)},this._document=o,i.runOutsideAngular(()=>{if(e.isBrowser){const a=this._getWindow();a.addEventListener("resize",this._changeListener),a.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:i,height:o}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+o,right:e.left+i,height:o,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,i=this._getWindow(),o=e.documentElement,a=o.getBoundingClientRect();return{top:-a.top||e.body.scrollTop||i.scrollY||o.scrollTop||0,left:-a.left||e.body.scrollLeft||i.scrollX||o.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(l(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return r.\u0275fac=function(e){return new(e||r)(n.LFG(E),n.LFG(n.R0b),n.LFG(s.K0,8))},r.\u0275prov=n.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),yt=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=n.oAB({type:r}),r.\u0275inj=n.cJS({}),r})();var fe=m(3464),Mt=m(6561);function Ft(r){const{subscriber:t,counter:e,period:i}=r;t.next(e),this.schedule({subscriber:t,counter:e+1,period:i},i)}var He=m(6682),Se=m(6782),Ie=m(9761),Nt=m(8002),ze=m(5257),Bt=m(6239),Vt=m(3190);const Gt=new n.OlP("cdk-dir-doc",{providedIn:"root",factory:function Zt(){return(0,n.f3M)(s.K0)}}),Ht=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let je=(()=>{class r{constructor(e){if(this.value="ltr",this.change=new n.vpe,e){const o=e.documentElement?e.documentElement.dir:null;this.value=function zt(r){const t=r?.toLowerCase()||"";return"auto"===t&&typeof navigator<"u"&&navigator?.language?Ht.test(navigator.language)?"rtl":"ltr":"rtl"===t?"rtl":"ltr"}((e.body?e.body.dir:null)||o||"ltr")}}ngOnDestroy(){this.change.complete()}}return r.\u0275fac=function(e){return new(e||r)(n.LFG(Gt,8))},r.\u0275prov=n.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();function Le(r,t,e){for(let i in t)if(t.hasOwnProperty(i)){const o=t[i];o?r.setProperty(i,o,e?.has(i)?"important":""):r.removeProperty(i)}return r}function ue(r,t){const e=t?"":"none";Le(r.style,{"touch-action":t?"":"none","-webkit-user-drag":t?"":"none","-webkit-tap-highlight-color":t?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function Ue(r,t,e){Le(r.style,{position:t?"":"fixed",top:t?"":"0",opacity:t?"":"0",left:t?"":"-999em"},e)}function De(r,t){return t&&"none"!=t?r+" "+t:r}function Ke(r){const t=r.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(r)*t}function ke(r,t){return r.getPropertyValue(t).split(",").map(i=>i.trim())}function Re(r){const t=r.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height,x:t.x,y:t.y}}function Ae(r,t,e){const{top:i,bottom:o,left:a,right:p}=r;return e>=i&&e<=o&&t>=a&&t<=p}function ge(r,t,e){r.top+=t,r.bottom=r.top+r.height,r.left+=e,r.right=r.left+r.width}function We(r,t,e,i){const{top:o,right:a,bottom:p,left:_,width:C,height:T}=r,j=C*t,W=T*t;return i>o-W&&i_-j&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:Re(e)})})}handleScroll(t){const e=be(t),i=this.positions.get(e);if(!i)return null;const o=i.scrollPosition;let a,p;if(e===this._document){const T=this.getViewportScrollPosition();a=T.top,p=T.left}else a=e.scrollTop,p=e.scrollLeft;const _=o.top-a,C=o.left-p;return this.positions.forEach((T,j)=>{T.clientRect&&e!==j&&e.contains(j)&&ge(T.clientRect,_,C)}),o.top=a,o.left=p,{top:_,left:C}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function Je(r){const t=r.cloneNode(!0),e=t.querySelectorAll("[id]"),i=r.nodeName.toLowerCase();t.removeAttribute("id");for(let o=0;o{if(this.beforeStarted.next(),this._handles.length){const C=this._getTargetHandle(_);C&&!this._disabledHandles.has(C)&&!this.disabled&&this._initializeDragSequence(C,_)}else this.disabled||this._initializeDragSequence(this._rootElement,_)},this._pointerMove=_=>{const C=this._getPointerPositionOnPage(_);if(!this._hasStartedDragging){if(Math.abs(C.x-this._pickupPositionOnPage.x)+Math.abs(C.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const de=Date.now()>=this._dragStartTime+this._getDragStartDelay(_),he=this._dropContainer;if(!de)return void this._endDragSequence(_);(!he||!he.isDragging()&&!he.isReceiving())&&(_.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(_)))}return}_.preventDefault();const T=this._getConstrainedPointerPosition(C);if(this._hasMoved=!0,this._lastKnownPointerPosition=C,this._updatePointerDirectionDelta(T),this._dropContainer)this._updateActiveDropContainer(T,C);else{const j=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,W=this._activeTransform;W.x=T.x-j.x+this._passiveTransform.x,W.y=T.y-j.y+this._passiveTransform.y,this._applyRootElementTransform(W.x,W.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:T,event:_,distance:this._getDragDistance(T),delta:this._pointerDirectionDelta})})},this._pointerUp=_=>{this._endDragSequence(_)},this._nativeDragStart=_=>{if(this._handles.length){const C=this._getTargetHandle(_);C&&!this._disabledHandles.has(C)&&!this.disabled&&_.preventDefault()}else this.disabled||_.preventDefault()},this.withRootElement(t).withParent(e.parentDragRef||null),this._parentPositions=new Qe(i),p.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(t){const e=w(t);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(i=>ue(i,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(t){this._handles=t.map(i=>D(i)),this._handles.forEach(i=>ue(i,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(i=>{this._handles.indexOf(i)>-1&&e.add(i)}),this._disabledHandles=e,this}withPreviewTemplate(t){return this._previewTemplate=t,this}withPlaceholderTemplate(t){return this._placeholderTemplate=t,this}withRootElement(t){const e=D(t);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,xe),e.addEventListener("touchstart",this._pointerDown,Xe),e.addEventListener("dragstart",this._nativeDragStart,xe)}),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(t){return this._boundaryElement=t?D(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(t){return this._parentDragRef=t,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(t){!this._disabledHandles.has(t)&&this._handles.indexOf(t)>-1&&(this._disabledHandles.add(t),ue(t,!0))}enableHandle(t){this._disabledHandles.has(t)&&(this._disabledHandles.delete(t),ue(t,this.disabled))}withDirection(t){return this._direction=t,this}_withDropContainer(t){this._dropContainer=t}getFreeDragPosition(){const t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}}setFreeDragPosition(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this}withPreviewContainer(t){return this._previewContainer=t,this}_sortFromLastPointerPosition(){const t=this._lastKnownPointerPosition;t&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(t),t)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(t){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:t}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(t),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(t);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:t})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(t){me(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const i=this._rootElement,o=i.parentNode,a=this._placeholder=this._createPlaceholderElement(),p=this._anchor=this._anchor||this._document.createComment(""),_=this._getShadowRoot();o.insertBefore(p,i),this._initialTransform=i.style.transform||"",this._preview=this._createPreviewElement(),Ue(i,!1,Oe),this._document.body.appendChild(o.replaceChild(a,i)),this._getPreviewInsertionPoint(o,_).appendChild(this._preview),this.started.next({source:this,event:t}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:t}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(t,e){this._parentDragRef&&e.stopPropagation();const i=this.isDragging(),o=me(e),a=!o&&0!==e.button,p=this._rootElement,_=be(e),C=!o&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),T=o?function At(r){const t=r.touches&&r.touches[0]||r.changedTouches&&r.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}(e):function Rt(r){return 0===r.buttons||0===r.offsetX&&0===r.offsetY}(e);if(_&&_.draggable&&"mousedown"===e.type&&e.preventDefault(),i||a||C||T)return;if(this._handles.length){const ee=p.style;this._rootElementTapHighlight=ee.webkitTapHighlightColor||"",ee.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(ee=>this._updateOnScroll(ee)),this._boundaryElement&&(this._boundaryRect=Re(this._boundaryElement));const j=this._previewTemplate;this._pickupPositionInElement=j&&j.template&&!j.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,t,e);const W=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:W.x,y:W.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(t){Ue(this._rootElement,!0,Oe),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,i=e.getItemIndex(this),o=this._getPointerPositionOnPage(t),a=this._getDragDistance(o),p=e._isOverContainer(o.x,o.y);this.ended.next({source:this,distance:a,dropPoint:o,event:t}),this.dropped.next({item:this,currentIndex:i,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:p,distance:a,dropPoint:o,event:t}),e.drop(this,i,this._initialIndex,this._initialContainer,p,a,o,t),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:t,y:e},{x:i,y:o}){let a=this._initialContainer._getSiblingContainerFromPosition(this,t,e);!a&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(t,e)&&(a=this._initialContainer),a&&a!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=a,this._dropContainer.enter(this,t,e,a===this._initialContainer&&a.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:a,currentIndex:a.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(i,o),this._dropContainer._sortItem(this,t,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(t,e):this._applyPreviewTransform(t-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const t=this._previewTemplate,e=this.previewClass,i=t?t.template:null;let o;if(i&&t){const a=t.matchSize?this._initialClientRect:null,p=t.viewContainer.createEmbeddedView(i,t.context);p.detectChanges(),o=tt(p,this._document),this._previewRef=p,t.matchSize?it(o,a):o.style.transform=Te(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else o=Je(this._rootElement),it(o,this._initialClientRect),this._initialTransform&&(o.style.transform=this._initialTransform);return Le(o.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},Oe),ue(o,!1),o.classList.add("cdk-drag-preview"),o.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(a=>o.classList.add(a)):o.classList.add(e)),o}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const t=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(t.left,t.top);const e=function jt(r){const t=getComputedStyle(r),e=ke(t,"transition-property"),i=e.find(_=>"transform"===_||"all"===_);if(!i)return 0;const o=e.indexOf(i),a=ke(t,"transition-duration"),p=ke(t,"transition-delay");return Ke(a[o])+Ke(p[o])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(i=>{const o=p=>{(!p||be(p)===this._preview&&"transform"===p.propertyName)&&(this._preview?.removeEventListener("transitionend",o),i(),clearTimeout(a))},a=setTimeout(o,1.5*e);this._preview.addEventListener("transitionend",o)}))}_createPlaceholderElement(){const t=this._placeholderTemplate,e=t?t.template:null;let i;return e?(this._placeholderRef=t.viewContainer.createEmbeddedView(e,t.context),this._placeholderRef.detectChanges(),i=tt(this._placeholderRef,this._document)):i=Je(this._rootElement),i.style.pointerEvents="none",i.classList.add("cdk-drag-placeholder"),i}_getPointerPositionInElement(t,e,i){const o=e===this._rootElement?null:e,a=o?o.getBoundingClientRect():t,p=me(i)?i.targetTouches[0]:i,_=this._getViewportScrollPosition();return{x:a.left-t.left+(p.pageX-a.left-_.left),y:a.top-t.top+(p.pageY-a.top-_.top)}}_getPointerPositionOnPage(t){const e=this._getViewportScrollPosition(),i=me(t)?t.touches[0]||t.changedTouches[0]||{pageX:0,pageY:0}:t,o=i.pageX-e.left,a=i.pageY-e.top;if(this._ownerSVGElement){const p=this._ownerSVGElement.getScreenCTM();if(p){const _=this._ownerSVGElement.createSVGPoint();return _.x=o,_.y=a,_.matrixTransform(p.inverse())}}return{x:o,y:a}}_getConstrainedPointerPosition(t){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:i,y:o}=this.constrainPosition?this.constrainPosition(t,this,this._initialClientRect,this._pickupPositionInElement):t;if("x"===this.lockAxis||"x"===e?o=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(i=this._pickupPositionOnPage.x),this._boundaryRect){const{x:a,y:p}=this._pickupPositionInElement,_=this._boundaryRect,{width:C,height:T}=this._getPreviewRect(),j=_.top+p,W=_.bottom-(T-p);i=et(i,_.left+a,_.right-(C-a)),o=et(o,j,W)}return{x:i,y:o}}_updatePointerDirectionDelta(t){const{x:e,y:i}=t,o=this._pointerDirectionDelta,a=this._pointerPositionAtLastDirectionChange,p=Math.abs(e-a.x),_=Math.abs(i-a.y);return p>this._config.pointerDirectionChangeThreshold&&(o.x=e>a.x?1:-1,a.x=e),_>this._config.pointerDirectionChangeThreshold&&(o.y=i>a.y?1:-1,a.y=i),o}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,ue(this._rootElement,t))}_removeRootElementListeners(t){t.removeEventListener("mousedown",this._pointerDown,xe),t.removeEventListener("touchstart",this._pointerDown,Xe),t.removeEventListener("dragstart",this._nativeDragStart,xe)}_applyRootElementTransform(t,e){const i=Te(t,e),o=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=o.transform&&"none"!=o.transform?o.transform:""),o.transform=De(i,this._initialTransform)}_applyPreviewTransform(t,e){const i=this._previewTemplate?.template?void 0:this._initialTransform,o=Te(t,e);this._preview.style.transform=De(o,i)}_getDragDistance(t){const e=this._pickupPositionOnPage;return e?{x:t.x-e.x,y:t.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:t,y:e}=this._passiveTransform;if(0===t&&0===e||this.isDragging()||!this._boundaryElement)return;const i=this._rootElement.getBoundingClientRect(),o=this._boundaryElement.getBoundingClientRect();if(0===o.width&&0===o.height||0===i.width&&0===i.height)return;const a=o.left-i.left,p=i.right-o.right,_=o.top-i.top,C=i.bottom-o.bottom;o.width>i.width?(a>0&&(t+=a),p>0&&(t-=p)):t=0,o.height>i.height?(_>0&&(e+=_),C>0&&(e-=C)):e=0,(t!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:t})}_getDragStartDelay(t){const e=this.dragStartDelay;return"number"==typeof e?e:me(t)?e.touch:e?e.mouse:0}_updateOnScroll(t){const e=this._parentPositions.handleScroll(t);if(e){const i=be(t);this._boundaryRect&&i!==this._boundaryElement&&i.contains(this._boundaryElement)&&ge(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=Be(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(t,e){const i=this._previewContainer||"global";if("parent"===i)return t;if("global"===i){const o=this._document;return e||o.fullscreenElement||o.webkitFullscreenElement||o.mozFullScreenElement||o.msFullscreenElement||o.body}return D(i)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(t){return this._handles.find(e=>t.target&&(t.target===e||e.contains(t.target)))}}function Te(r,t){return`translate3d(${Math.round(r)}px, ${Math.round(t)}px, 0)`}function et(r,t,e){return Math.max(t,Math.min(e,r))}function me(r){return"t"===r.type[0]}function tt(r,t){const e=r.rootNodes;if(1===e.length&&e[0].nodeType===t.ELEMENT_NODE)return e[0];const i=t.createElement("div");return e.forEach(o=>i.appendChild(o)),i}function it(r,t){r.style.width=`${t.width}px`,r.style.height=`${t.height}px`,r.style.transform=Te(t.left,t.top)}function nt(r,t,e){const i=ye(t,r.length-1),o=ye(e,r.length-1);if(i===o)return;const a=r[i],p=o0)return null;const _="horizontal"===this.orientation,C=a.findIndex(te=>te.drag===t),T=a[p],W=T.clientRect,ee=C>p?1:-1,de=this._getItemOffsetPx(a[C].clientRect,W,ee),he=this._getSiblingOffsetPx(C,a,ee),pe=a.slice();return nt(a,C,p),a.forEach((te,ai)=>{if(pe[ai]===te)return;const ht=te.drag===t,Ne=ht?de:he,ut=ht?t.getPlaceholderElement():te.drag.getRootElement();te.offset+=Ne,_?(ut.style.transform=De(`translate3d(${Math.round(te.offset)}px, 0, 0)`,te.initialTransform),ge(te.clientRect,0,Ne)):(ut.style.transform=De(`translate3d(0, ${Math.round(te.offset)}px, 0)`,te.initialTransform),ge(te.clientRect,Ne,0))}),this._previousSwap.overlaps=Ae(W,e,i),this._previousSwap.drag=T.drag,this._previousSwap.delta=_?o.x:o.y,{previousIndex:C,currentIndex:p}}enter(t,e,i,o){const a=null==o||o<0?this._getItemIndexFromPointerPosition(t,e,i):o,p=this._activeDraggables,_=p.indexOf(t),C=t.getPlaceholderElement();let T=p[a];if(T===t&&(T=p[a+1]),!T&&(null==a||-1===a||a-1&&p.splice(_,1),T&&!this._dragDropRegistry.isDragging(T)){const j=T.getRootElement();j.parentElement.insertBefore(C,j),p.splice(a,0,t)}else D(this._element).appendChild(C),p.push(t);C.style.transform="",this._cacheItemPositions()}withItems(t){this._activeDraggables=t.slice(),this._cacheItemPositions()}withSortPredicate(t){this._sortPredicate=t}reset(){this._activeDraggables.forEach(t=>{const e=t.getRootElement();if(e){const i=this._itemPositions.find(o=>o.drag===t)?.initialTransform;e.style.transform=i||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(t){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(i=>i.drag===t)}updateOnScroll(t,e){this._itemPositions.forEach(({clientRect:i})=>{ge(i,t,e)}),this._itemPositions.forEach(({drag:i})=>{this._dragDropRegistry.isDragging(i)&&i._sortFromLastPointerPosition()})}_cacheItemPositions(){const t="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const i=e.getVisibleElement();return{drag:e,offset:0,initialTransform:i.style.transform||"",clientRect:Re(i)}}).sort((e,i)=>t?e.clientRect.left-i.clientRect.left:e.clientRect.top-i.clientRect.top)}_getItemOffsetPx(t,e,i){const o="horizontal"===this.orientation;let a=o?e.left-t.left:e.top-t.top;return-1===i&&(a+=o?e.width-t.width:e.height-t.height),a}_getSiblingOffsetPx(t,e,i){const o="horizontal"===this.orientation,a=e[t].clientRect,p=e[t+-1*i];let _=a[o?"width":"height"]*i;if(p){const C=o?"left":"top",T=o?"right":"bottom";-1===i?_-=p.clientRect[C]-a[T]:_+=a[C]-p.clientRect[T]}return _}_shouldEnterAsFirstChild(t,e){if(!this._activeDraggables.length)return!1;const i=this._itemPositions,o="horizontal"===this.orientation;if(i[0].drag!==this._activeDraggables[0]){const p=i[i.length-1].clientRect;return o?t>=p.right:e>=p.bottom}{const p=i[0].clientRect;return o?t<=p.left:e<=p.top}}_getItemIndexFromPointerPosition(t,e,i,o){const a="horizontal"===this.orientation,p=this._itemPositions.findIndex(({drag:_,clientRect:C})=>{if(_===t)return!1;if(o){const T=a?o.x:o.y;if(_===this._previousSwap.drag&&this._previousSwap.overlaps&&T===this._previousSwap.delta)return!1}return a?e>=Math.floor(C.left)&&e=Math.floor(C.top)&&i!0,this.sortPredicate=()=>!0,this.beforeStarted=new b.xQ,this.entered=new b.xQ,this.exited=new b.xQ,this.dropped=new b.xQ,this.sorted=new b.xQ,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=fe.w.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new b.xQ,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function Pt(r=0,t=V.P){return(!(0,Mt.k)(r)||r<0)&&(r=0),(!t||"function"!=typeof t.schedule)&&(t=V.P),new N.y(e=>(e.add(t.schedule(Ft,r,{subscriber:e,counter:0,period:r})),e))}(0,X).pipe((0,Se.R)(this._stopScrollTimers)).subscribe(()=>{const p=this._scrollNode,_=this.autoScrollStep;1===this._verticalScrollDirection?p.scrollBy(0,-_):2===this._verticalScrollDirection&&p.scrollBy(0,_),1===this._horizontalScrollDirection?p.scrollBy(-_,0):2===this._horizontalScrollDirection&&p.scrollBy(_,0)})},this.element=D(t),this._document=i,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new Qe(i),this._sortStrategy=new Qt(this.element,e),this._sortStrategy.withSortPredicate((p,_)=>this.sortPredicate(p,_,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(t,e,i,o){this._draggingStarted(),null==o&&this.sortingDisabled&&(o=this._draggables.indexOf(t)),this._sortStrategy.enter(t,e,i,o),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})}exit(t){this._reset(),this.exited.next({item:t,container:this})}drop(t,e,i,o,a,p,_,C={}){this._reset(),this.dropped.next({item:t,currentIndex:e,previousIndex:i,container:this,previousContainer:o,isPointerOverContainer:a,distance:p,dropPoint:_,event:C})}withItems(t){const e=this._draggables;return this._draggables=t,t.forEach(i=>i._withDropContainer(this)),this.isDragging()&&(e.filter(o=>o.isDragging()).every(o=>-1===t.indexOf(o))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(t){return this._sortStrategy.direction=t,this}connectedTo(t){return this._siblings=t.slice(),this}withOrientation(t){return this._sortStrategy.orientation=t,this}withScrollableParents(t){const e=D(this.element);return this._scrollableElements=-1===t.indexOf(e)?[e,...t]:t.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(t){return this._isDragging?this._sortStrategy.getItemIndex(t):this._draggables.indexOf(t)}isReceiving(){return this._activeSiblings.size>0}_sortItem(t,e,i,o){if(this.sortingDisabled||!this._clientRect||!We(this._clientRect,.05,e,i))return;const a=this._sortStrategy.sort(t,e,i,o);a&&this.sorted.next({previousIndex:a.previousIndex,currentIndex:a.currentIndex,container:this,item:t})}_startScrollingIfNecessary(t,e){if(this.autoScrollDisabled)return;let i,o=0,a=0;if(this._parentPositions.positions.forEach((p,_)=>{_===this._document||!p.clientRect||i||We(p.clientRect,.05,t,e)&&([o,a]=function Yt(r,t,e,i){const o=ot(t,i),a=at(t,e);let p=0,_=0;if(o){const C=r.scrollTop;1===o?C>0&&(p=1):r.scrollHeight-C>r.clientHeight&&(p=2)}if(a){const C=r.scrollLeft;1===a?C>0&&(_=1):r.scrollWidth-C>r.clientWidth&&(_=2)}return[p,_]}(_,p.clientRect,t,e),(o||a)&&(i=_))}),!o&&!a){const{width:p,height:_}=this._viewportRuler.getViewportSize(),C={width:p,height:_,top:0,right:p,bottom:_,left:0};o=ot(C,e),a=at(C,t),i=window}i&&(o!==this._verticalScrollDirection||a!==this._horizontalScrollDirection||i!==this._scrollNode)&&(this._verticalScrollDirection=o,this._horizontalScrollDirection=a,this._scrollNode=i,(o||a)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const t=D(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const t=D(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(t).clientRect}_reset(){this._isDragging=!1;const t=D(this.element).style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(t,e){return null!=this._clientRect&&Ae(this._clientRect,t,e)}_getSiblingContainerFromPosition(t,e,i){return this._siblings.find(o=>o._canReceive(t,e,i))}_canReceive(t,e,i){if(!this._clientRect||!Ae(this._clientRect,e,i)||!this.enterPredicate(t,this))return!1;const o=this._getShadowRoot().elementFromPoint(e,i);if(!o)return!1;const a=D(this.element);return o===a||a.contains(o)}_startReceiving(t,e){const i=this._activeSiblings;!i.has(t)&&e.every(o=>this.enterPredicate(o,this)||this._draggables.indexOf(o)>-1)&&(i.add(t),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(t=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(t);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const t=Be(D(this.element));this._cachedShadowRoot=t||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const t=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,t))}}function ot(r,t){const{top:e,bottom:i,height:o}=r,a=.05*o;return t>=e-a&&t<=e+a?1:t>=i-a&&t<=i+a?2:0}function at(r,t){const{left:e,right:i,width:o}=r,a=.05*o;return t>=e-a&&t<=e+a?1:t>=i-a&&t<=i+a?2:0}const Ee=re({passive:!1,capture:!0});let $t=(()=>{class r{constructor(e,i){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=o=>o.isDragging(),this.pointerMove=new b.xQ,this.pointerUp=new b.xQ,this.scroll=new b.xQ,this._preventDefaultWhileDragging=o=>{this._activeDragInstances.length>0&&o.preventDefault()},this._persistentTouchmoveListener=o=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&o.preventDefault(),this.pointerMove.next(o))},this._document=i}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,Ee)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,Ee)}startDragging(e,i){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const o=i.type.startsWith("touch");this._globalListeners.set(o?"touchend":"mouseup",{handler:a=>this.pointerUp.next(a),options:!0}).set("scroll",{handler:a=>this.scroll.next(a),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:Ee}),o||this._globalListeners.set("mousemove",{handler:a=>this.pointerMove.next(a),options:Ee}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((a,p)=>{this._document.addEventListener(p,a.handler,a.options)})})}}stopDragging(e){const i=this._activeDragInstances.indexOf(e);i>-1&&(this._activeDragInstances.splice(i,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const i=[this.scroll];return e&&e!==this._document&&i.push(new N.y(o=>this._ngZone.runOutsideAngular(()=>{const p=_=>{this._activeDragInstances.length&&o.next(_)};return e.addEventListener("scroll",p,!0),()=>{e.removeEventListener("scroll",p,!0)}}))),(0,He.T)(...i)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,i)=>{this._document.removeEventListener(i,e.handler,e.options)}),this._globalListeners.clear()}}return r.\u0275fac=function(e){return new(e||r)(n.LFG(n.R0b),n.LFG(s.K0))},r.\u0275prov=n.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const qt={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let Me=(()=>{class r{constructor(e,i,o,a){this._document=e,this._ngZone=i,this._viewportRuler=o,this._dragDropRegistry=a}createDrag(e,i=qt){return new Wt(e,i,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new Jt(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return r.\u0275fac=function(e){return new(e||r)(n.LFG(s.K0),n.LFG(n.R0b),n.LFG(mt),n.LFG($t))},r.\u0275prov=n.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const Pe=new n.OlP("CDK_DRAG_PARENT"),lt=new n.OlP("CdkDropListGroup"),ct=new n.OlP("CDK_DRAG_CONFIG");let Xt=0;const dt=new n.OlP("CdkDropList");let ei=(()=>{class r{constructor(e,i,o,a,p,_,C){this.element=e,this._changeDetectorRef=o,this._scrollDispatcher=a,this._dir=p,this._group=_,this._destroyed=new b.xQ,this.connectedTo=[],this.id="cdk-drop-list-"+Xt++,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new n.vpe,this.entered=new n.vpe,this.exited=new n.vpe,this.sorted=new n.vpe,this._unsortedItems=new Set,this._dropListRef=i.createDropList(e),this._dropListRef.data=this,C&&this._assignDefaults(C),this._dropListRef.enterPredicate=(T,j)=>this.enterPredicate(T.data,j.data),this._dropListRef.sortPredicate=(T,j,W)=>this.sortPredicate(T,j.data,W.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),r._dropLists.push(this),_&&_._items.add(this)}get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(e){this._dropListRef.disabled=this._disabled=w(e)}addItem(e){this._unsortedItems.add(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(e){this._unsortedItems.delete(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((e,i)=>e._dragRef.getVisibleElement().compareDocumentPosition(i._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const e=r._dropLists.indexOf(this);e>-1&&r._dropLists.splice(e,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(e){this._dir&&this._dir.change.pipe((0,Ie.O)(this._dir.value),(0,Se.R)(this._destroyed)).subscribe(i=>e.withDirection(i)),e.beforeStarted.subscribe(()=>{const i=function H(r){return Array.isArray(r)?r:[r]}(this.connectedTo).map(o=>"string"==typeof o?r._dropLists.find(p=>p.id===o):o);if(this._group&&this._group._items.forEach(o=>{-1===i.indexOf(o)&&i.push(o)}),!this._scrollableParentsResolved){const o=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(a=>a.getElementRef().nativeElement);this._dropListRef.withScrollableParents(o),this._scrollableParentsResolved=!0}e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.sortingDisabled=w(this.sortingDisabled),e.autoScrollDisabled=w(this.autoScrollDisabled),e.autoScrollStep=B(this.autoScrollStep,2),e.connectedTo(i.filter(o=>o&&o!==this).map(o=>o._dropListRef)).withOrientation(this.orientation)})}_handleEvents(e){e.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(i=>{this.entered.emit({container:this,item:i.item.data,currentIndex:i.currentIndex})}),e.exited.subscribe(i=>{this.exited.emit({container:this,item:i.item.data}),this._changeDetectorRef.markForCheck()}),e.sorted.subscribe(i=>{this.sorted.emit({previousIndex:i.previousIndex,currentIndex:i.currentIndex,container:this,item:i.item.data})}),e.dropped.subscribe(i=>{this.dropped.emit({previousIndex:i.previousIndex,currentIndex:i.currentIndex,previousContainer:i.previousContainer.data,container:i.container.data,item:i.item.data,isPointerOverContainer:i.isPointerOverContainer,distance:i.distance,dropPoint:i.dropPoint,event:i.event}),this._changeDetectorRef.markForCheck()})}_assignDefaults(e){const{lockAxis:i,draggingDisabled:o,sortingDisabled:a,listAutoScrollDisabled:p,listOrientation:_}=e;this.disabled=o??!1,this.sortingDisabled=a??!1,this.autoScrollDisabled=p??!1,this.orientation=_||"vertical",i&&(this.lockAxis=i)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(e=>e._dragRef))}}return r._dropLists=[],r.\u0275fac=function(e){return new(e||r)(n.Y36(n.SBq),n.Y36(Me),n.Y36(n.sBO),n.Y36(ft),n.Y36(je,8),n.Y36(lt,12),n.Y36(ct,8))},r.\u0275dir=n.lG2({type:r,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(e,i){2&e&&(n.uIk("id",i.id),n.ekj("cdk-drop-list-disabled",i.disabled)("cdk-drop-list-dragging",i._dropListRef.isDragging())("cdk-drop-list-receiving",i._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],data:["cdkDropListData","data"],orientation:["cdkDropListOrientation","orientation"],id:"id",lockAxis:["cdkDropListLockAxis","lockAxis"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[n._Bn([{provide:lt,useValue:void 0},{provide:dt,useExisting:r}])]}),r})();const Fe=new n.OlP("CdkDragHandle");let ti=(()=>{class r{constructor(e,i){this.element=e,this._stateChanges=new b.xQ,this._disabled=!1,this._parentDrag=i}get disabled(){return this._disabled}set disabled(e){this._disabled=w(e),this._stateChanges.next(this)}ngOnDestroy(){this._stateChanges.complete()}}return r.\u0275fac=function(e){return new(e||r)(n.Y36(n.SBq),n.Y36(Pe,12))},r.\u0275dir=n.lG2({type:r,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:["cdkDragHandleDisabled","disabled"]},features:[n._Bn([{provide:Fe,useExisting:r}])]}),r})();const ii=new n.OlP("CdkDragPlaceholder"),ni=new n.OlP("CdkDragPreview");let ri=(()=>{class r{constructor(e,i,o,a,p,_,C,T,j,W,ee){this.element=e,this.dropContainer=i,this._ngZone=a,this._viewContainerRef=p,this._dir=C,this._changeDetectorRef=j,this._selfHandle=W,this._parentDrag=ee,this._destroyed=new b.xQ,this.started=new n.vpe,this.released=new n.vpe,this.ended=new n.vpe,this.entered=new n.vpe,this.exited=new n.vpe,this.dropped=new n.vpe,this.moved=new N.y(de=>{const he=this._dragRef.moved.pipe((0,Nt.U)(pe=>({source:this,pointerPosition:pe.pointerPosition,event:pe.event,delta:pe.delta,distance:pe.distance}))).subscribe(de);return()=>{he.unsubscribe()}}),this._dragRef=T.createDrag(e,{dragStartThreshold:_&&null!=_.dragStartThreshold?_.dragStartThreshold:5,pointerDirectionChangeThreshold:_&&null!=_.pointerDirectionChangeThreshold?_.pointerDirectionChangeThreshold:5,zIndex:_?.zIndex}),this._dragRef.data=this,r._dragInstances.push(this),_&&this._assignDefaults(_),i&&(this._dragRef._withDropContainer(i._dropListRef),i.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(e){this._disabled=w(e),this._dragRef.disabled=this._disabled}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(e){this._dragRef.setFreeDragPosition(e)}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,ze.q)(1),(0,Se.R)(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(e){const i=e.rootElementSelector,o=e.freeDragPosition;i&&!i.firstChange&&this._updateRootElement(),o&&!o.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const e=r._dragInstances.indexOf(this);e>-1&&r._dragInstances.splice(e,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){const e=this.element.nativeElement;let i=e;this.rootElementSelector&&(i=void 0!==e.closest?e.closest(this.rootElementSelector):e.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(i||e)}_getBoundaryElement(){const e=this.boundaryElement;return e?"string"==typeof e?this.element.nativeElement.closest(e):D(e):null}_syncInputs(e){e.beforeStarted.subscribe(()=>{if(!e.isDragging()){const i=this._dir,o=this.dragStartDelay,a=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,p=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.dragStartDelay="object"==typeof o&&o?o:B(o),e.constrainPosition=this.constrainPosition,e.previewClass=this.previewClass,e.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(a).withPreviewTemplate(p).withPreviewContainer(this.previewContainer||"global"),i&&e.withDirection(i.value)}}),e.beforeStarted.pipe((0,ze.q)(1)).subscribe(()=>{if(this._parentDrag)return void e.withParent(this._parentDrag._dragRef);let i=this.element.nativeElement.parentElement;for(;i;){if(i.classList.contains("cdk-drag")){e.withParent(r._dragInstances.find(o=>o.element.nativeElement===i)?._dragRef||null);break}i=i.parentElement}})}_handleEvents(e){e.started.subscribe(i=>{this.started.emit({source:this,event:i.event}),this._changeDetectorRef.markForCheck()}),e.released.subscribe(i=>{this.released.emit({source:this,event:i.event})}),e.ended.subscribe(i=>{this.ended.emit({source:this,distance:i.distance,dropPoint:i.dropPoint,event:i.event}),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(i=>{this.entered.emit({container:i.container.data,item:this,currentIndex:i.currentIndex})}),e.exited.subscribe(i=>{this.exited.emit({container:i.container.data,item:this})}),e.dropped.subscribe(i=>{this.dropped.emit({previousIndex:i.previousIndex,currentIndex:i.currentIndex,previousContainer:i.previousContainer.data,container:i.container.data,isPointerOverContainer:i.isPointerOverContainer,item:this,distance:i.distance,dropPoint:i.dropPoint,event:i.event})})}_assignDefaults(e){const{lockAxis:i,dragStartDelay:o,constrainPosition:a,previewClass:p,boundaryElement:_,draggingDisabled:C,rootElementSelector:T,previewContainer:j}=e;this.disabled=C??!1,this.dragStartDelay=o||0,i&&(this.lockAxis=i),a&&(this.constrainPosition=a),p&&(this.previewClass=p),_&&(this.boundaryElement=_),T&&(this.rootElementSelector=T),j&&(this.previewContainer=j)}_setupHandlesListener(){this._handles.changes.pipe((0,Ie.O)(this._handles),(0,Bt.b)(e=>{const i=e.filter(o=>o._parentDrag===this).map(o=>o.element);this._selfHandle&&this.rootElementSelector&&i.push(this.element),this._dragRef.withHandles(i)}),(0,Vt.w)(e=>(0,He.T)(...e.map(i=>i._stateChanges.pipe((0,Ie.O)(i))))),(0,Se.R)(this._destroyed)).subscribe(e=>{const i=this._dragRef,o=e.element.nativeElement;e.disabled?i.disableHandle(o):i.enableHandle(o)})}}return r._dragInstances=[],r.\u0275fac=function(e){return new(e||r)(n.Y36(n.SBq),n.Y36(dt,12),n.Y36(s.K0),n.Y36(n.R0b),n.Y36(n.s_b),n.Y36(ct,8),n.Y36(je,8),n.Y36(Me),n.Y36(n.sBO),n.Y36(Fe,10),n.Y36(Pe,12))},r.\u0275dir=n.lG2({type:r,selectors:[["","cdkDrag",""]],contentQueries:function(e,i,o){if(1&e&&(n.Suo(o,ni,5),n.Suo(o,ii,5),n.Suo(o,Fe,5)),2&e){let a;n.iGM(a=n.CRH())&&(i._previewTemplate=a.first),n.iGM(a=n.CRH())&&(i._placeholderTemplate=a.first),n.iGM(a=n.CRH())&&(i._handles=a)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(e,i){2&e&&n.ekj("cdk-drag-disabled",i.disabled)("cdk-drag-dragging",i._dragRef.isDragging())},inputs:{data:["cdkDragData","data"],lockAxis:["cdkDragLockAxis","lockAxis"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],boundaryElement:["cdkDragBoundary","boundaryElement"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"],disabled:["cdkDragDisabled","disabled"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],previewContainer:["cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[n._Bn([{provide:Pe,useExisting:r}]),n.TTD]}),r})(),oi=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=n.oAB({type:r}),r.\u0275inj=n.cJS({providers:[Me],imports:[yt]}),r})()}}]); \ No newline at end of file diff --git a/788.e118ce280bc38581.js b/788.e118ce280bc38581.js deleted file mode 100644 index d4570b296..000000000 --- a/788.e118ce280bc38581.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdemo_maps=self.webpackChunkdemo_maps||[]).push([[788],{4074:(I,x,s)=>{s.d(x,{um:()=>M,RP:()=>h,HF:()=>T,Kl:()=>p,aZ:()=>w,fc:()=>m,HX:()=>R,zc:()=>_,gY:()=>L,Bz:()=>S});var u=s(5548);class L extends u.YY{constructor(i){const l={name:"OpenStreetMap",displayName:"OpenStreetMap",id:"osm",visible:!1,type:"xyz",url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",subdomains:["a","b","c"],attribution:'©, OpenStreetMap contributors',continuousWorld:!1,legendImg:"https://a.tile.openstreetmap.org/3/4/3.png",description:"OpenStreetMap z-x-y Tiles",opacity:1};i&&Object.assign(l,i),super(l)}}class _ extends u.YY{constructor(i){const l={name:"OpenSeaMap",displayName:"OpenSeaMap",id:"OpenSeaMap",visible:!1,type:"xyz",removable:!1,url:"https://{s}.openseamap.org/seamark/{z}/{x}/{y}.png",subdomains:["t1"],attribution:'©, OpenSeaMap',continuousWorld:!1,legendImg:"https://t1.openseamap.org/seamark/10/554/321.png",description:"http://map.openseamap.org/",opacity:1};i&&Object.assign(l,i),super(l)}}class p extends u.TI{constructor(i){const l={name:"EOC Litemap",displayName:"EOC Litemap",id:"eoc_litemap",visible:!1,type:"wms",removable:!1,params:{LAYERS:"litemap",FORMAT:"image/png",TRANSPARENT:!0},url:"https://geoservice.dlr.de/eoc/basemap/wms",attribution:'©, DLR',continuousWorld:!1,legendImg:"https://geoservice.dlr.de/eoc/basemap/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&LAYERS=litemap&ATTRIBUTION=&WIDTH=256&HEIGHT=256&CRS=EPSG%3A3857&STYLES=&BBOX=0%2C0%2C10018754.171394622%2C10018754.171394622",description:"http://www.naturalearthdata.com/about/",opacity:1};i&&Object.assign(l,i),super(l)}}class w extends u.RC{constructor(i){const l={name:"EOC Litemap Tile",displayName:"EOC Litemap Tile",id:"eoc_litemap_tile",visible:!1,type:"wmts",removable:!1,params:{layer:"eoc:litemap",format:"image/png",style:"_empty",matrixSetOptions:{matrixSet:"EPSG:3857",tileMatrixPrefix:"EPSG:3857"}},url:"https://tiles.geoservice.dlr.de/service/wmts",attribution:'©, DLR',continuousWorld:!1,legendImg:"https://tiles.geoservice.dlr.de/service/wmts?layer=eoc%3Alitemap&style=_empty&tilematrixset=EPSG%3A3857&Service=WMTS&Request=GetTile&Version=1.0.0&Format=image%2Fpng&TileMatrix=EPSG%3A3857%3A5&TileCol=18&TileRow=11",description:"EOC Litemap as web map tile service",opacity:1};i&&Object.assign(l,i),super(l)}}class m extends u.RC{constructor(i){const l={name:"EOC Liteoverlay Tile",displayName:"EOC LiteoverlayTile",id:"eoc_Liteoverlay_tile",visible:!1,type:"wmts",removable:!1,params:{layer:"eoc:liteoverlay",format:"image/png",style:"_empty",matrixSetOptions:{matrixSet:"EPSG:3857",tileMatrixPrefix:"EPSG:3857"}},url:"https://tiles.geoservice.dlr.de/service/wmts",attribution:'©, DLR',continuousWorld:!1,legendImg:"https://tiles.geoservice.dlr.de/service/wmts?layer=eoc%3Aliteoverlay&style=_empty&tilematrixset=EPSG%3A3857&Service=WMTS&Request=GetTile&Version=1.0.0&Format=image%2Fpng&TileMatrix=EPSG%3A3857%3A5&TileCol=18&TileRow=11",description:"This is the liteoverlay provided for EOC Service Portals",opacity:1};i&&Object.assign(l,i),super(l)}}class h extends u.RC{constructor(i){const l={name:"EOC Basemap Tile",displayName:"EOC Basemap Tile",id:"eoc_basemap_tile",visible:!1,type:"wmts",removable:!1,params:{layer:"eoc:basemap",format:"image/png",style:"_empty",matrixSetOptions:{matrixSet:"EPSG:3857",tileMatrixPrefix:"EPSG:3857"}},url:"https://tiles.geoservice.dlr.de/service/wmts",attribution:'©, DLR',continuousWorld:!1,legendImg:"https://tiles.geoservice.dlr.de/service/wmts?layer=eoc%3Abasemap&style=_empty&tilematrixset=EPSG%3A3857&Service=WMTS&Request=GetTile&Version=1.0.0&Format=image%2Fpng&TileMatrix=EPSG%3A3857%3A5&TileCol=18&TileRow=11",description:"This is the basemap for DLR Service Portals",opacity:1};i&&Object.assign(l,i),super(l)}}class T extends u.RC{constructor(i){const l={name:"EOC Baseoverlay Tile",displayName:"EOC Baseoverlay Tile",id:"eoc_Baseoverlay_tile",visible:!1,type:"wmts",removable:!1,params:{layer:"eoc:baseoverlay",format:"image/png",style:"_empty",matrixSetOptions:{matrixSet:"EPSG:3857",tileMatrixPrefix:"EPSG:3857"}},url:"https://tiles.geoservice.dlr.de/service/wmts",attribution:'©, DLR',continuousWorld:!1,legendImg:"https://tiles.geoservice.dlr.de/service/wmts?layer=eoc%3Abaseoverlay&style=_empty&tilematrixset=EPSG%3A3857&Service=WMTS&Request=GetTile&Version=1.0.0&Format=image%2Fpng&TileMatrix=EPSG%3A3857%3A5&TileCol=18&TileRow=11",description:"This is the basemap for DLR Service Portals",opacity:1};i&&Object.assign(l,i),super(l)}}class M extends u.RC{constructor(i){const l={name:"BlueMarble Tile",displayName:"BlueMarble Tile",id:"blueMarble_tile",visible:!1,type:"wmts",removable:!1,params:{layer:"bmng_topo_bathy",format:"image/png",style:"_empty",matrixSetOptions:{matrixSet:"EPSG:3857",tileMatrixPrefix:"EPSG:3857"}},url:"https://tiles.geoservice.dlr.de/service/wmts",attribution:'©, DLR',continuousWorld:!1,legendImg:"https://tiles.geoservice.dlr.de/service/wmts?layer=bmng_topo_bathy&style=_empty&tilematrixset=EPSG%3A3857&Service=WMTS&Request=GetTile&Version=1.0.0&Format=image%2Fpng&TileMatrix=EPSG%3A3857%3A5&TileCol=18&TileRow=11",description:"Blue Marble NG dataset with topography and bathymetry",opacity:1};i&&Object.assign(l,i),super(l)}}class S extends u.RC{constructor(i){const l={name:"World Relief B/W Tile",displayName:"World Relief B/W Tile",id:"eoc:world_relief_bw",visible:!1,type:"wmts",removable:!1,params:{layer:"eoc:world_relief_bw",format:"image/png",style:"_empty",matrixSetOptions:{matrixSet:"EPSG:3857",tileMatrixPrefix:"EPSG:3857"}},url:"https://tiles.geoservice.dlr.de/service/wmts",attribution:'©, DLR',continuousWorld:!1,legendImg:"https://tiles.geoservice.dlr.de/service/wmts?layer=eoc%3Aworld_relief_bw&style=_empty&tilematrixset=EPSG%3A3857&Service=WMTS&Request=GetTile&Version=1.0.0&Format=image%2Fpng&TileMatrix=EPSG%3A3857%3A5&TileCol=18&TileRow=11",description:"World Relief Black / White",opacity:1};i&&Object.assign(l,i),super(l)}}class R extends u.RC{constructor(i){const l={name:"Hillshade Tile",displayName:"Hillshade Tile",id:"eoc_hillshade",visible:!1,type:"wmts",removable:!1,params:{layer:"hillshade",format:"image/png",style:"_empty",matrixSetOptions:{matrixSet:"EPSG:3857",tileMatrixPrefix:"EPSG:3857"}},url:"https://tiles.geoservice.dlr.de/service/wmts",attribution:'©, DLR',continuousWorld:!1,legendImg:"https://tiles.geoservice.dlr.de/service/wmts?layer=hillshade&style=_empty&tilematrixset=EPSG%3A3857&Service=WMTS&Request=GetTile&Version=1.0.0&Format=image%2Fpng&TileMatrix=EPSG%3A3857%3A5&TileCol=18&TileRow=11",description:"Global Hillshade based on GMTED2010",opacity:1};i&&Object.assign(l,i),super(l)}}},5788:(I,x,s)=>{s.r(x),s.d(x,{RouteMapModule:()=>Q,RouteMapRoutingModule:()=>z});var u=s(8692),L=s(8808),_=s(7223),p=s(5548),w=s(790),m=s(4074),h=s(1899),T=s(3590),S=s(6852);const R=JSON.parse('{"type":"FeatureCollection","poperties":{"description":"This are a few test cities and locations collected with geojson.io"},"features":[{"type":"Feature","properties":{"name":"Munich"},"geometry":{"type":"Point","coordinates":[11.575899124145508,48.137740422322295]}},{"type":"Feature","properties":{"name":"Landshut"},"geometry":{"type":"Point","coordinates":[12.152938842773436,48.5370678355958]}},{"type":"Feature","properties":{"name":"Ulm"},"geometry":{"type":"Point","coordinates":[9.986572265624998,48.40003249610685]}},{"type":"Feature","properties":{"name":"Ingolstadt"},"geometry":{"type":"Point","coordinates":[11.42578125,48.75618876280552]}},{"type":"Feature","properties":{"name":"Paris"},"geometry":{"type":"Point","coordinates":[2.3291015625,48.83579746243093]}},{"type":"Feature","properties":{"name":"Dreux"},"geometry":{"type":"Point","coordinates":[1.3677978515625,48.73445537176822]}},{"type":"Feature","properties":{"name":"Meaux"},"geometry":{"type":"Point","coordinates":[2.8729248046875,48.95497369808868]}},{"type":"Feature","properties":{"name":"Rome"},"geometry":{"type":"Point","coordinates":[12.480468749999998,41.86956082699455]}},{"type":"Feature","properties":{"name":"Anzio"},"geometry":{"type":"Point","coordinates":[12.6287841796875,41.4509614012039]}},{"type":"Feature","properties":{"name":"Berlin"},"geometry":{"type":"Point","coordinates":[13.403320312499998,52.50953477032727]}},{"type":"Feature","properties":{"name":"Potsdam"},"geometry":{"type":"Point","coordinates":[13.058624267578125,52.40074312027673]}}]}');var d=s(1786),i=s(694),l=s(795),N=s(5253),e=s(4537);let O=(()=>{class o{constructor(){}ngOnInit(){}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-example-layer-description"]],inputs:{layer:"layer",description:"description"},decls:9,vars:1,consts:[[1,"custom-description"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e._uU(1),e.TgZ(2,"p"),e._uU(3," This description was styled with a dynamic component as the layer.description. "),e.qZA(),e.TgZ(4,"p"),e._uU(5," Keep in mind that this breaks @dlr-eoc/services-ogc generateResourceFromLayer() for this layer when exporting a "),e.TgZ(6,"b"),e._uU(7,"IOwsContext"),e.qZA(),e._uU(8,". "),e.qZA()()),2&t&&(e.xp6(1),e.hij(" ",a.description,". "))},styles:[".custom-description[_ngcontent-%COMP%]{word-break:normal;color:#0072a3}.custom-description[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{word-break:normal;color:#ffa52e}"]}),o})(),Z=(()=>{class o{constructor(){this.legendImages=[]}ngOnInit(){this.legendImages=this.group.layers.filter(t=>t.legendImg&&"string"==typeof t.legendImg).map(t=>({url:t.legendImg})).reverse()}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-example-group-legend"]],inputs:{group:"group"},decls:6,vars:4,consts:[[1,"wrapper"],["width","256","height","256",1,"stacked",3,"src"],["usemap","#legendmap",3,"src"],["name","legendmap"],["shape","rect","coords","0,0,256,128","alt","top","title","Show full Image overlay","target","_blank",3,"href"],["shape","rect","coords","0,128,256,256","alt","below","title","Show full Image base","target","_blank",3,"href"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e._UZ(1,"img",1)(2,"img",2),e.TgZ(3,"map",3),e._UZ(4,"area",4)(5,"area",5),e.qZA()()),2&t&&(e.xp6(1),e.Q6J("src",a.legendImages[0].url,e.LSH),e.xp6(1),e.Q6J("src",a.legendImages[1].url,e.LSH),e.xp6(2),e.Q6J("href",a.legendImages[0].url,e.LSH),e.xp6(1),e.Q6J("href",a.legendImages[1].url,e.LSH))},styles:[".wrapper[_ngcontent-%COMP%]{position:relative}.wrapper[_ngcontent-%COMP%] .stacked[_ngcontent-%COMP%]{position:absolute;pointer-events:none}"]}),o})();const B=JSON.parse('{"version":8,"name":"Positron","metadata":{"mapbox:autocomposite":false,"mapbox:groups":{"101da9f13b64a08fa4b6ac1168e89e5f":{"collapsed":false,"name":"Places"},"a14c9607bc7954ba1df7205bf660433f":{"name":"Boundaries"},"b6371a3f2f5a9932464fa3867530a2e5":{"collapsed":false,"name":"Transportation"}},"mapbox:type":"template","openmaptiles:mapbox:owner":"openmaptiles","openmaptiles:mapbox:source:url":"mapbox://openmaptiles.4qljc88t","openmaptiles:version":"3.x","maputnik:renderer":"mbgljs","maputnik:thunderforest_access_token":""},"sources":{"planet_eoc":{"type":"vector","__Comment":"The url to the tilejson is not public available so we use the tiles array to skip the request, to make use of the tms service. See https://github.com/openlayers/ol-mapbox-style/blob/v8.2.1/src/util.js#L109","url":"","tiles":["https://a.tiles.geoservice.dlr.de/service/tms/1.0.0/planet_eoc@EPSG%3A900913@pbf/{z}/{x}/{y}.pbf?flipy=true","https://b.tiles.geoservice.dlr.de/service/tms/1.0.0/planet_eoc@EPSG%3A900913@pbf/{z}/{x}/{y}.pbf?flipy=true","https://c.tiles.geoservice.dlr.de/service/tms/1.0.0/planet_eoc@EPSG%3A900913@pbf/{z}/{x}/{y}.pbf?flipy=true","https://d.tiles.geoservice.dlr.de/service/tms/1.0.0/planet_eoc@EPSG%3A900913@pbf/{z}/{x}/{y}.pbf?flipy=true"]}},"sprite":"https://openmaptiles.github.io/positron-gl-style/sprite","glyphs":"http://fonts.openmaptiles.org/{fontstack}/{range}.pbf","layers":[{"id":"background","type":"background","paint":{"background-color":"rgb(242,243,240)"}},{"id":"park","type":"fill","source":"planet_eoc","source-layer":"park","filter":["==","$type","Polygon"],"layout":{"visibility":"none"},"paint":{"fill-color":"rgb(230, 233, 229)"}},{"id":"water","type":"fill","source":"planet_eoc","source-layer":"water","filter":["all",["==","$type","Polygon"],["!=","brunnel","tunnel"]],"layout":{"visibility":"visible"},"paint":{"fill-antialias":true,"fill-color":"rgba(196, 203, 205, 1)"}},{"id":"landcover_ice_shelf","type":"fill","source":"planet_eoc","source-layer":"landcover","maxzoom":8,"filter":["all",["==","$type","Polygon"],["==","subclass","ice_shelf"]],"layout":{"visibility":"visible"},"paint":{"fill-color":"hsl(0, 0%, 98%)","fill-opacity":0.7}},{"id":"landcover_glacier","type":"fill","source":"planet_eoc","source-layer":"landcover","maxzoom":8,"filter":["all",["==","$type","Polygon"],["==","subclass","glacier"]],"layout":{"visibility":"visible"},"paint":{"fill-color":"hsl(0, 0%, 98%)","fill-opacity":{"base":1,"stops":[[0,1],[8,0.5]]}}},{"id":"landuse_residential","type":"fill","source":"planet_eoc","source-layer":"landuse","minzoom":0,"maxzoom":24,"filter":["all",["==","$type","Polygon"],["==","class",""]],"layout":{"visibility":"visible"},"paint":{"fill-color":"rgb(234, 234, 230)","fill-opacity":{"base":0.6,"stops":[[8,0.8],[9,0.6]]}}},{"id":"landcover_wood","type":"fill","source":"planet_eoc","source-layer":"landcover","minzoom":0,"filter":["all",["==","$type","Polygon"],["==","class","wood"]],"layout":{"visibility":"none"},"paint":{"fill-color":"rgb(220,224,220)","fill-opacity":{"base":1,"stops":[[0,1],[12,1]]}}},{"id":"waterway","type":"line","source":"planet_eoc","source-layer":"waterway","filter":["==","$type","LineString"],"layout":{"visibility":"visible"},"paint":{"line-color":"hsl(195, 17%, 78%)"}},{"id":"water_name","type":"symbol","source":"planet_eoc","source-layer":"water_name","filter":["==","$type","LineString"],"layout":{"symbol-placement":"line","symbol-spacing":500,"text-field":"{name:latin}\\n{name:nonlatin}","text-font":["Metropolis Medium Italic","Noto Sans Italic"],"text-rotation-alignment":"map","text-size":12},"paint":{"text-color":"rgb(157,169,177)","text-halo-blur":1,"text-halo-color":"rgb(242,243,240)","text-halo-width":1}},{"id":"building","type":"fill","source":"planet_eoc","source-layer":"building","minzoom":12,"paint":{"fill-antialias":true,"fill-color":"rgb(234, 234, 229)","fill-outline-color":"rgb(219, 219, 218)"}},{"id":"tunnel_motorway_casing","type":"line","metadata":{"mapbox:group":"b6371a3f2f5a9932464fa3867530a2e5"},"source":"planet_eoc","source-layer":"transportation","minzoom":6,"filter":["all",["==","$type","LineString"],["all",["==","brunnel","tunnel"],["==","class","motorway"]]],"layout":{"line-cap":"butt","line-join":"miter","visibility":"visible"},"paint":{"line-color":"rgb(213, 213, 213)","line-opacity":1,"line-width":{"base":1.4,"stops":[[5.8,0],[6,3],[20,40]]}}},{"id":"tunnel_motorway_inner","type":"line","metadata":{"mapbox:group":"b6371a3f2f5a9932464fa3867530a2e5"},"source":"planet_eoc","source-layer":"transportation","minzoom":6,"filter":["all",["==","$type","LineString"],["all",["==","brunnel","tunnel"],["==","class","motorway"]]],"layout":{"line-cap":"round","line-join":"round","visibility":"visible"},"paint":{"line-color":"rgb(234,234,234)","line-width":{"base":1.4,"stops":[[4,2],[6,1.3],[20,30]]}}},{"id":"aeroway-taxiway","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"planet_eoc","source-layer":"aeroway","minzoom":12,"filter":["all",["in","class","taxiway"]],"layout":{"line-cap":"round","line-join":"round","visibility":"visible"},"paint":{"line-color":"hsl(0, 0%, 88%)","line-opacity":1,"line-width":{"base":1.55,"stops":[[13,1.8],[20,20]]}}},{"id":"aeroway-runway-casing","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"planet_eoc","source-layer":"aeroway","minzoom":11,"filter":["all",["in","class","runway"]],"layout":{"line-cap":"round","line-join":"round","visibility":"visible"},"paint":{"line-color":"hsl(0, 0%, 88%)","line-opacity":1,"line-width":{"base":1.5,"stops":[[11,6],[17,55]]}}},{"id":"aeroway-area","type":"fill","metadata":{"mapbox:group":"1444849345966.4436"},"source":"planet_eoc","source-layer":"aeroway","minzoom":4,"filter":["all",["==","$type","Polygon"],["in","class","runway","taxiway"]],"layout":{"visibility":"visible"},"paint":{"fill-color":"rgba(255, 255, 255, 1)","fill-opacity":{"base":1,"stops":[[13,0],[14,1]]}}},{"id":"aeroway-runway","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"planet_eoc","source-layer":"aeroway","minzoom":11,"filter":["all",["in","class","runway"],["==","$type","LineString"]],"layout":{"line-cap":"round","line-join":"round","visibility":"visible"},"paint":{"line-color":"rgba(255, 255, 255, 1)","line-opacity":1,"line-width":{"base":1.5,"stops":[[11,4],[17,50]]}}},{"id":"road_area_pier","type":"fill","metadata":{},"source":"planet_eoc","source-layer":"transportation","filter":["all",["==","$type","Polygon"],["==","class","pier"]],"layout":{"visibility":"none"},"paint":{"fill-antialias":true,"fill-color":"rgb(242,243,240)"}},{"id":"road_pier","type":"line","metadata":{},"source":"planet_eoc","source-layer":"transportation","filter":["all",["==","$type","LineString"],["in","class","pier"]],"layout":{"line-cap":"round","line-join":"round","visibility":"none"},"paint":{"line-color":"rgb(242,243,240)","line-width":{"base":1.2,"stops":[[15,1],[17,4]]}}},{"id":"highway_path","type":"line","metadata":{"mapbox:group":"b6371a3f2f5a9932464fa3867530a2e5"},"source":"planet_eoc","source-layer":"transportation","filter":["all",["==","$type","LineString"],["==","class","path"]],"layout":{"line-cap":"round","line-join":"round","visibility":"none"},"paint":{"line-color":"rgba(238, 235, 235, 1)","line-opacity":0.9,"line-width":{"base":1.2,"stops":[[13,1],[20,10]]}}},{"id":"highway_minor","type":"line","metadata":{"mapbox:group":"b6371a3f2f5a9932464fa3867530a2e5"},"source":"planet_eoc","source-layer":"transportation","minzoom":0,"filter":["all",["==","$type","LineString"],["in","class","minor","service","track"]],"layout":{"line-cap":"round","line-join":"round","visibility":"none"},"paint":{"line-color":"rgba(245, 244, 244, 1)","line-opacity":0.9,"line-width":{"base":1.55,"stops":[[13,1.8],[20,20]]}}},{"id":"highway_major_casing","type":"line","metadata":{"mapbox:group":"b6371a3f2f5a9932464fa3867530a2e5"},"source":"planet_eoc","source-layer":"transportation","minzoom":11,"filter":["all",["==","$type","LineString"],["in","class","primary","secondary","tertiary","trunk"]],"layout":{"line-cap":"butt","line-join":"miter","visibility":"none"},"paint":{"line-color":"rgb(213, 213, 213)","line-dasharray":[12,0],"line-width":{"base":1.3,"stops":[[10,3],[20,23]]}}},{"id":"highway_major_inner","type":"line","metadata":{"mapbox:group":"b6371a3f2f5a9932464fa3867530a2e5"},"source":"planet_eoc","source-layer":"transportation","minzoom":11,"filter":["all",["==","$type","LineString"],["in","class","primary","secondary","tertiary","trunk"]],"layout":{"line-cap":"round","line-join":"round","visibility":"none"},"paint":{"line-color":"#fff","line-width":{"base":1.3,"stops":[[10,2],[20,20]]}}},{"id":"highway_motorway_casing","type":"line","metadata":{"mapbox:group":"b6371a3f2f5a9932464fa3867530a2e5"},"source":"planet_eoc","source-layer":"transportation","minzoom":0,"filter":["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway"]]],"layout":{"line-cap":"butt","line-join":"miter","visibility":"none"},"paint":{"line-color":"rgb(213, 213, 213)","line-dasharray":[2,0],"line-opacity":1,"line-width":{"base":1.4,"stops":[[5.8,0],[6,3],[20,40]]}}},{"id":"highway_motorway_inner","type":"line","metadata":{"mapbox:group":"b6371a3f2f5a9932464fa3867530a2e5"},"source":"planet_eoc","source-layer":"transportation","minzoom":0,"filter":["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway"]]],"layout":{"line-cap":"round","line-join":"round","visibility":"none"},"paint":{"line-color":{"base":1,"stops":[[5.8,"hsla(0, 0%, 85%, 0.53)"],[6,"#fff"]]},"line-width":{"base":1.4,"stops":[[4,2],[6,1.3],[20,30]]}}},{"id":"highway_motorway_subtle","type":"line","metadata":{"mapbox:group":"b6371a3f2f5a9932464fa3867530a2e5"},"source":"planet_eoc","source-layer":"transportation","minzoom":0,"maxzoom":20,"filter":["all",["==","$type","LineString"],["==","class","motorway"]],"layout":{"line-cap":"round","line-join":"round","visibility":"none"},"paint":{"line-color":"hsla(0, 0%, 85%, 0.53)","line-width":{"base":1.4,"stops":[[4,2],[6,1.3]]}}},{"id":"railway_transit","type":"line","metadata":{"mapbox:group":"b6371a3f2f5a9932464fa3867530a2e5"},"source":"planet_eoc","source-layer":"transportation","minzoom":16,"filter":["all",["==","$type","LineString"],["all",["==","class","transit"],["!in","brunnel","tunnel"]]],"layout":{"line-join":"round","visibility":"visible"},"paint":{"line-color":"#dddddd","line-width":3}},{"id":"railway_transit_dashline","type":"line","metadata":{"mapbox:group":"b6371a3f2f5a9932464fa3867530a2e5"},"source":"planet_eoc","source-layer":"transportation","minzoom":16,"filter":["all",["==","$type","LineString"],["all",["==","class","transit"],["!in","brunnel","tunnel"]]],"layout":{"line-join":"round","visibility":"visible"},"paint":{"line-color":"#fafafa","line-dasharray":[3,3],"line-width":2}},{"id":"railway_service","type":"line","metadata":{"mapbox:group":"b6371a3f2f5a9932464fa3867530a2e5"},"source":"planet_eoc","source-layer":"transportation","minzoom":16,"filter":["all",["==","$type","LineString"],["all",["==","class","rail"],["has","service"]]],"layout":{"line-join":"round","visibility":"visible"},"paint":{"line-color":"#dddddd","line-width":3}},{"id":"railway_service_dashline","type":"line","metadata":{"mapbox:group":"b6371a3f2f5a9932464fa3867530a2e5"},"source":"planet_eoc","source-layer":"transportation","minzoom":16,"filter":["all",["==","$type","LineString"],["==","class","rail"],["has","service"]],"layout":{"line-join":"round","visibility":"visible"},"paint":{"line-color":"#fafafa","line-dasharray":[3,3],"line-width":2}},{"id":"railway","type":"line","metadata":{"mapbox:group":"b6371a3f2f5a9932464fa3867530a2e5"},"source":"planet_eoc","source-layer":"transportation","minzoom":13,"filter":["all",["==","$type","LineString"],["all",["!has","service"],["==","class","rail"]]],"layout":{"line-join":"round","visibility":"visible"},"paint":{"line-color":"#dddddd","line-width":{"base":1.3,"stops":[[16,3],[20,7]]}}},{"id":"railway_dashline","type":"line","metadata":{"mapbox:group":"b6371a3f2f5a9932464fa3867530a2e5"},"source":"planet_eoc","source-layer":"transportation","minzoom":13,"filter":["all",["==","$type","LineString"],["all",["!has","service"],["==","class","rail"]]],"layout":{"line-join":"round","visibility":"visible"},"paint":{"line-color":"#fafafa","line-dasharray":[3,3],"line-width":{"base":1.3,"stops":[[16,2],[20,6]]}}},{"id":"highway_motorway_bridge_casing","type":"line","metadata":{"mapbox:group":"b6371a3f2f5a9932464fa3867530a2e5"},"source":"planet_eoc","source-layer":"transportation","minzoom":0,"filter":["all",["==","$type","LineString"],["all",["==","brunnel","bridge"],["==","class","motorway"]]],"layout":{"line-cap":"butt","line-join":"miter","visibility":"none"},"paint":{"line-color":"rgb(213, 213, 213)","line-dasharray":[2,0],"line-opacity":1,"line-width":{"base":1.4,"stops":[[5.8,0],[6,5],[20,45]]}}},{"id":"highway_motorway_bridge_inner","type":"line","metadata":{"mapbox:group":"b6371a3f2f5a9932464fa3867530a2e5"},"source":"planet_eoc","source-layer":"transportation","minzoom":0,"filter":["all",["==","$type","LineString"],["all",["==","brunnel","bridge"],["==","class","motorway"]]],"layout":{"line-cap":"round","line-join":"round","visibility":"none"},"paint":{"line-color":{"base":1,"stops":[[5.8,"hsla(0, 0%, 85%, 0.53)"],[6,"#fff"]]},"line-width":{"base":1.4,"stops":[[4,2],[6,1.3],[20,30]]}}},{"id":"highway_name_other","type":"symbol","metadata":{"mapbox:group":"b6371a3f2f5a9932464fa3867530a2e5"},"source":"planet_eoc","source-layer":"transportation_name","filter":["all",["!=","class","motorway"],["==","$type","LineString"]],"layout":{"symbol-placement":"line","symbol-spacing":350,"text-field":"{name:latin} {name:nonlatin}","text-font":["Metropolis Regular","Noto Sans Regular"],"text-max-angle":30,"text-pitch-alignment":"viewport","text-rotation-alignment":"map","text-size":10,"text-transform":"uppercase","visibility":"none"},"paint":{"text-color":"#bbb","text-halo-blur":1,"text-halo-color":"#fff","text-halo-width":2,"text-translate":[0,0]}},{"id":"highway_name_motorway","type":"symbol","metadata":{"mapbox:group":"b6371a3f2f5a9932464fa3867530a2e5"},"source":"planet_eoc","source-layer":"transportation_name","minzoom":9,"filter":["all",["==","$type","LineString"],["==","class","motorway"]],"layout":{"symbol-placement":"line","symbol-spacing":350,"text-field":"{ref}","text-font":["Metropolis Light","Noto Sans Regular"],"text-pitch-alignment":"viewport","text-rotation-alignment":"viewport","text-size":10,"visibility":"none"},"paint":{"text-color":"rgb(117, 129, 145)","text-halo-blur":1,"text-halo-color":"hsl(0, 0%, 100%)","text-halo-width":1,"text-translate":[0,2]}},{"id":"boundary_state","type":"line","metadata":{"mapbox:group":"a14c9607bc7954ba1df7205bf660433f"},"source":"planet_eoc","source-layer":"boundary","filter":["==","admin_level",4],"layout":{"line-cap":"round","line-join":"round","visibility":"none"},"paint":{"line-blur":0.4,"line-color":"rgb(230, 204, 207)","line-dasharray":[2,2],"line-opacity":1,"line-width":{"base":1.3,"stops":[[3,1],[22,15]]}}},{"id":"boundary_country_z0-4","type":"line","metadata":{"mapbox:group":"a14c9607bc7954ba1df7205bf660433f"},"source":"planet_eoc","source-layer":"boundary","maxzoom":5,"filter":["all",["==","admin_level",2],["!has","claimed_by"]],"layout":{"line-cap":"round","line-join":"round"},"paint":{"line-blur":{"base":1,"stops":[[0,0.4],[22,4]]},"line-color":"rgba(181, 170, 171, 1)","line-opacity":1,"line-width":{"base":1.1,"stops":[[3,1],[22,20]]}}},{"id":"boundary_country_z5-","type":"line","metadata":{"mapbox:group":"a14c9607bc7954ba1df7205bf660433f"},"source":"planet_eoc","source-layer":"boundary","minzoom":5,"filter":["==","admin_level",2],"layout":{"line-cap":"round","line-join":"round"},"paint":{"line-blur":{"base":1,"stops":[[0,0.4],[22,4]]},"line-color":"rgba(181, 170, 171, 1)","line-opacity":1,"line-width":{"base":1.1,"stops":[[3,1],[22,20]]}}},{"id":"place_suburb","type":"symbol","metadata":{"mapbox:group":"101da9f13b64a08fa4b6ac1168e89e5f"},"source":"planet_eoc","source-layer":"place","minzoom":9,"maxzoom":15,"filter":["all",["==","$type","Point"],["==","class","suburb"]],"layout":{"text-anchor":"center","text-field":"{name:latin}\\n{name:nonlatin}","text-font":["Metropolis Regular","Noto Sans Regular"],"text-justify":"center","text-offset":[0.5,0],"text-size":10,"text-transform":"uppercase","visibility":"visible"},"paint":{"text-color":"rgb(117, 129, 145)","text-halo-blur":1,"text-halo-color":"rgb(242,243,240)","text-halo-width":1}},{"id":"place_village","type":"symbol","metadata":{"mapbox:group":"101da9f13b64a08fa4b6ac1168e89e5f"},"source":"planet_eoc","source-layer":"place","minzoom":11,"maxzoom":24,"filter":["all",["==","$type","Point"],["==","class","village"]],"layout":{"icon-size":0.4,"text-anchor":"left","text-field":"{name:latin}\\n{name:nonlatin}","text-font":["Metropolis Regular","Noto Sans Regular"],"text-justify":"left","text-offset":[0.5,0.2],"text-size":10,"text-transform":"uppercase","visibility":"visible"},"paint":{"icon-opacity":0.7,"text-color":"rgb(117, 129, 145)","text-halo-blur":1,"text-halo-color":"rgb(242,243,240)","text-halo-width":1}},{"id":"place_town","type":"symbol","metadata":{"mapbox:group":"101da9f13b64a08fa4b6ac1168e89e5f"},"source":"planet_eoc","source-layer":"place","minzoom":9,"maxzoom":15,"filter":["all",["==","$type","Point"],["==","class","town"]],"layout":{"icon-image":{"base":1,"stops":[[0,"circle-11"],[8,""]]},"icon-size":0.4,"text-anchor":{"base":1,"stops":[[0,"left"],[8,"center"]]},"text-field":"{name:latin}\\n{name:nonlatin}","text-font":["Metropolis Regular","Noto Sans Regular"],"text-justify":"left","text-offset":[0.5,0.2],"text-size":10,"text-transform":"uppercase","visibility":"visible"},"paint":{"icon-opacity":0.7,"text-color":"rgb(117, 129, 145)","text-halo-blur":1,"text-halo-color":"rgb(242,243,240)","text-halo-width":1}},{"id":"place_city","type":"symbol","metadata":{"mapbox:group":"101da9f13b64a08fa4b6ac1168e89e5f"},"source":"planet_eoc","source-layer":"place","minzoom":7,"maxzoom":14,"filter":["all",["==","$type","Point"],["all",["!=","capital",2],["==","class","city"],[">","rank",3]]],"layout":{"icon-image":{"base":1,"stops":[[0,"circle-11"],[8,""]]},"icon-size":0.4,"text-anchor":{"base":1,"stops":[[0,"left"],[8,"center"]]},"text-field":"{name:latin}\\n{name:nonlatin}","text-font":["Metropolis Regular","Noto Sans Regular"],"text-justify":"left","text-offset":[0.5,0.2],"text-size":10,"text-transform":"uppercase","visibility":"visible"},"paint":{"icon-opacity":0.7,"text-color":"rgb(117, 129, 145)","text-halo-blur":1,"text-halo-color":"rgb(242,243,240)","text-halo-width":1}},{"id":"place_capital","type":"symbol","metadata":{"mapbox:group":"101da9f13b64a08fa4b6ac1168e89e5f"},"source":"planet_eoc","source-layer":"place","minzoom":3,"maxzoom":12,"filter":["all",["==","$type","Point"],["all",["==","capital",2],["==","class","city"]]],"layout":{"icon-image":{"base":1,"stops":[[0,"circle-11"],[8,""]]},"text-anchor":{"base":1,"stops":[[0,"left"],[8,"center"]]},"text-field":"{name:latin}\\n{name:nonlatin}","text-font":["Metropolis Regular","Noto Sans Regular"],"text-justify":"left","text-offset":[0.5,0.2],"text-transform":"uppercase","visibility":"visible","text-size":14,"icon-size":0},"paint":{"icon-opacity":0.7,"text-color":"rgb(117, 129, 145)","text-halo-blur":1,"text-halo-color":"rgb(242,243,240)","text-halo-width":1}},{"id":"place_city_large","type":"symbol","metadata":{"mapbox:group":"101da9f13b64a08fa4b6ac1168e89e5f"},"source":"planet_eoc","source-layer":"place","minzoom":4,"maxzoom":12,"filter":["all",["==","$type","Point"],["all",["!=","capital",2],["<=","rank",3],["==","class","city"]]],"layout":{"icon-image":{"base":1,"stops":[[0,"circle-11"],[8,""]]},"icon-size":0.4,"text-anchor":{"base":1,"stops":[[0,"left"],[8,"center"]]},"text-field":"{name:latin}\\n{name:nonlatin}","text-font":["Metropolis Regular","Noto Sans Regular"],"text-justify":"left","text-offset":[0.5,0.2],"text-size":14,"text-transform":"uppercase","visibility":"visible"},"paint":{"icon-opacity":0.7,"text-color":"rgb(117, 129, 145)","text-halo-blur":1,"text-halo-color":"rgb(242,243,240)","text-halo-width":1}},{"id":"place_state","type":"symbol","metadata":{"mapbox:group":"101da9f13b64a08fa4b6ac1168e89e5f"},"source":"planet_eoc","source-layer":"place","maxzoom":12,"filter":["all",["==","$type","Point"],["==","class","state"]],"layout":{"text-field":"{name:latin}\\n{name:nonlatin}","text-font":["Metropolis Regular","Noto Sans Regular"],"text-size":10,"text-transform":"uppercase","visibility":"visible"},"paint":{"text-color":"rgb(113, 129, 144)","text-halo-blur":1,"text-halo-color":"rgb(242,243,240)","text-halo-width":1}},{"id":"place_country_other","type":"symbol","metadata":{"mapbox:group":"101da9f13b64a08fa4b6ac1168e89e5f"},"source":"planet_eoc","source-layer":"place","maxzoom":8,"filter":["all",["==","$type","Point"],["==","class","country"],["!has","iso_a2"]],"layout":{"text-field":"{name:latin}","text-font":["Metropolis Light Italic","Noto Sans Italic"],"text-size":{"base":1,"stops":[[0,9],[6,11]]},"text-transform":"uppercase","visibility":"visible"},"paint":{"text-color":{"base":1,"stops":[[3,"rgb(157,169,177)"],[4,"rgb(153, 153, 153)"]]},"text-halo-color":"rgba(236,236,234,0.7)","text-halo-width":1.4}},{"id":"place_country_minor","type":"symbol","metadata":{"mapbox:group":"101da9f13b64a08fa4b6ac1168e89e5f"},"source":"planet_eoc","source-layer":"place","maxzoom":8,"filter":["all",["==","$type","Point"],["==","class","country"],[">=","rank",2],["has","iso_a2"]],"layout":{"text-field":"{name:latin}","text-font":["Metropolis Regular","Noto Sans Regular"],"text-size":{"base":1,"stops":[[0,10],[6,12]]},"text-transform":"uppercase","visibility":"visible"},"paint":{"text-color":{"base":1,"stops":[[3,"rgb(157,169,177)"],[4,"rgb(153, 153, 153)"]]},"text-halo-color":"rgba(236,236,234,0.7)","text-halo-width":1.4}},{"id":"place_country_major","type":"symbol","metadata":{"mapbox:group":"101da9f13b64a08fa4b6ac1168e89e5f"},"source":"planet_eoc","source-layer":"place","maxzoom":6,"filter":["all",["==","$type","Point"],["<=","rank",1],["==","class","country"],["has","iso_a2"]],"layout":{"text-anchor":"center","text-field":"{name:latin}","text-font":["Metropolis Regular","Noto Sans Regular"],"text-size":{"base":1.4,"stops":[[0,10],[3,12],[4,14]]},"text-transform":"uppercase","visibility":"visible"},"paint":{"text-color":{"base":1,"stops":[[3,"rgb(157,169,177)"],[4,"rgb(153, 153, 153)"]]},"text-halo-color":"rgba(236,236,234,0.7)","text-halo-width":1.4}}],"id":"positron"}');var g=s(6799);let k=(()=>{class o{constructor(){this.fillColor="rgba(196, 203, 205, 1)",this.fillChanged=!1}ngOnInit(){const t=this.layer;if(t){const a=t.options.style;let n=a.layers.findIndex(y=>"water"===y.id);this.fillChanged=a.layers[n].paint["fill-color"]!==this.fillColor}}switchWater(t){const a=this.layer,n=a.options.style;let y=n.layers.findIndex(b=>"water"===b.id);this.fillChanged?(n.layers[y].paint["fill-color"]=this.fillColor,this.fillChanged=!1):(n.layers[y].paint["fill-color"]="rgba(0, 0, 0, 1)",this.fillChanged=!0),this.layersSvc.updateLayer(a)}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-vtile-layer-action"]],inputs:{layer:"layer",layersSvc:"layersSvc"},decls:4,vars:2,consts:[["type","checkbox","name","switch_water","clrCheckbox","",3,"value","checked","change"]],template:function(t,a){1&t&&(e.TgZ(0,"clr-checkbox-wrapper")(1,"label"),e._uU(2," Change Water color "),e.qZA(),e.TgZ(3,"input",0),e.NdJ("change",function(y){return a.switchWater(y)}),e.qZA()()),2&t&&(e.xp6(3),e.Q6J("value",a.fillChanged)("checked",a.fillChanged))},dependencies:[g.MgK,g.KKC,g.PEh]}),o})();var G=s(3534),D=s(408),$=s(580),U=s(3307);function J(o,c){if(1&o&&e._UZ(0,"ukis-map-ol",12),2&o){const t=e.oxw();e.Q6J("layersSvc",t.layersSvc)("mapState",t.mapStateSvc)("controls",t.controls)}}let V=(()=>{class o{constructor(t,a,n,y){this.layersSvc=t,this.mapStateSvc=a,this.mapSvc=n,this.wmsSvc=y,this.class="content-container",this.showMap=!0,this.controls={attribution:!0,scaleLine:!0}}ngOnInit(){this.mapSvc.map.addControl(new T.S),this.addBaseLayers(),this.addLayers(),this.addOverlays(),this.setExtent()}setExtent(){this.mapStateSvc.setExtent([-14,33,40,57])}parseCapabilities(){this.wmsSvc.getCapabilities("https://geoservice.dlr.de/eoc/land/wms").subscribe(t=>{const a=this.wmsSvc.getLayerFromCapabilities("AGRODE_S2_EVI_P1M",t);console.log(a)})}addBaseLayers(){const t=new p.DJ({name:"Transparenter Hintergrund",id:"blank",type:"geojson"}),a=new m.aZ({tileSize:512}),n=new m.HF,y=new p.WQ({id:"eocLiteAndOverlay",name:"EOC Lite with Overlay",description:"merged/stacked Layers EOC Lite with Overlay",legendImg:a.legendImg,layers:[a,n],visible:!0}),b=new p.RC({type:"wmts",url:"https://tiles.geoservice.dlr.de/service/wmts",name:"Relief",id:"world_relief_bw",params:{layer:"eoc:world_relief_bw",style:"_empty",matrixSetOptions:{matrixSet:"EPSG:3857",tileMatrixPrefix:"EPSG:3857"}},visible:!1,description:{component:O,inputs:{description:"eoc:world_relief_bw as web map tile service"}},attribution:'Relief: DLR/EOC',legendImg:""});[y,new m.gY({id:"OSM_Base"}),t,b,new p.DJ({name:"Open Map Styles",id:"planet_eoc_vector_tiles",attribution:'\xa9 OpenMapTiles \xa9 OpenStreetMap contributors',description:'EOC-Geoservice TMS-Service, Vector Tiles with OpenMapTiles and customised positron Style.',type:"tms",url:"https://{s}.tiles.geoservice.dlr.de/service/tms/1.0.0/planet_eoc@EPSG%3A900913@pbf/{z}/{x}/{y}.pbf?flipy=true",subdomains:["a","b","c","d"],options:{style:B,styleSource:"planet_eoc"},visible:!1,action:{component:k,inputs:{layersSvc:this.layersSvc}}})].map(C=>this.layersSvc.addLayer(C,"Baselayers"))}addLayers(){const t=new p.YY({type:"wms",url:"https://geoservice.dlr.de/eoc/land/wms",name:"GUF Mosaic",id:"GUF28_DLR_v1_Mosaic",params:{LAYERS:"GUF28_DLR_v1_Mosaic",STYLES:"guf_8bit"},tileSize:512,visible:!1,description:"GUF28_DLR_v1_Mosaic",attribution:' | GUF\xae: DLR License',legendImg:"",popup:{asyncPopup:(r,E)=>{!function M(o,c,t){const a=o.layer.getSource(),n=o.mapEvent,y=c.map.getView().getResolution(),b=a.getFeatureInfoUrl(n.coordinate,y,c.EPSG,{INFO_FORMAT:"application/json"});fetch(b).then(f=>f.json()).catch(f=>{console.log(f)}).then(f=>{if(f.features.length){const v=c.createPopupHtml(f.features[0].properties);t(v)}else t("

No Data!

")})}(r,this.mapSvc,E)}}}),a=new p.RC({type:"wmts",url:"https://tiles.geoservice.dlr.de/service/wmts",name:"TDM90 DEM",id:"TDM90_DEM",params:{layer:"TDM90_DEM",style:"default",matrixSetOptions:{matrixSet:"EPSG:3857",tileMatrixPrefix:"EPSG:3857"},format:"image/png"},visible:!1,description:"TDM90_DEM maxZoom: 8",attribution:' | TDM90 Data \xa9: DLR licensed for scientific use',legendImg:"https://tiles.geoservice.dlr.de/service/wmts?layer=TDM90_DEM&style=default&tilematrixset=EPSG%3A3857&Service=WMTS&Request=GetTile&Version=1.0.0&Format=image%2Fpng&TileMatrix=EPSG%3A3857%3A4&TileCol=8&TileRow=5",cssClass:"custom-layer"}),n=new p.DJ({id:"geojson_test",name:"GeoJSON Vector Layer",attribution:"\xa9 DLR GeoJSON",type:"geojson",data:{type:"FeatureCollection",features:[{type:"Feature",properties:{title:"Polygon"},geometry:{type:"Polygon",coordinates:[[[11.53564453125,48.80686346108517],[11.42578125,48.61838518688487],[11.97509765625,48.516604348867475],[12.2607421875,48.69096039092549],[12.0849609375,48.99463598353405],[11.53564453125,48.80686346108517]]]}},{type:"Feature",properties:{title:"Rectangle"},geometry:{type:"Polygon",coordinates:[[[10.986328125,43.89789239125797],[11.755371093749998,43.89789239125797],[11.755371093749998,44.41808794374846],[10.986328125,44.41808794374846],[10.986328125,43.89789239125797]]]}},{type:"Feature",properties:{title:"Line"},geometry:{type:"LineString",coordinates:[[13.29345703125,48.268569112964336],[15.073242187499998,47.56170075451973],[14.1064453125,46.40756396630067],[15.886230468750002,44.94924926661153]]}},{type:"Feature",properties:{title:"Point"},geometry:{type:"Point",coordinates:[11.513671874999998,46.42271253466717]}}]},visible:!1,popup:{event:"move",dynamicPopup:{component:S.F,getAttributes:r=>({data:r.properties})}}}),y=new p.DJ({id:"geojson_test_3",name:"GeoJSON Point Layer",type:"geojson",data:{type:"FeatureCollection",features:[{type:"Feature",properties:{title:"Munich",type:"City",image:"https://en.wikipedia.org/wiki/Munich#/media/File:Stadtbild_M%C3%BCnchen.jpg",wiki:"https://en.wikipedia.org/wiki/Munich"},geometry:{type:"Point",coordinates:[11.557617187499998,48.151428143221224]}}]},visible:!1,popup:{properties:{title:"Title",type:"Type"}}}),b=new p.DJ({id:"geojson_test_2",name:"Vector Layer in Group",type:"geojson",data:{type:"FeatureCollection",features:[{type:"Feature",properties:{type:"Polygon",name:"Vector Layer in Group",data:"geojson"},geometry:{type:"Polygon",coordinates:[[[-4.9658203125,41.09591205639546],[-6.459960937499999,39.52099229357195],[-5.009765625,38.42777351132902],[-1.8896484375,38.77121637244273],[-.68115234375,40.84706035607122],[-2.900390625,41.65649719441145],[-4.9658203125,41.09591205639546]]]}}]},visible:!1,popup:["type","name"],actions:[{title:"download",icon:"download-cloud",action:r=>{console.log(r)}}]}),f=new p.DJ({id:"geojson_test_cluster",name:"Cluster - GeoJSON Vector Layer",type:"geojson",cluster:{distance:20},data:R,visible:!0,actions:[{title:"update Layer",icon:"sync",action:r=>{r.cluster.distance=25,r.options||(r.options={}),r.options.style=E=>{const j=E.get("features").length;return new d.ZP({image:new l.Z({radius:j<=1?6:10,stroke:new N.Z({color:"#fff"}),fill:new i.Z({color:j<=1?"green":"red"})})})},this.layersSvc.updateLayer(r)}}],popup:{popupFunction:r=>`
${JSON.stringify(r.properties)}
`},expanded:{tab:"settings",expanded:!1}}),v=new p.DJ({id:"WfsLayer",name:"WFS Pennsylvania",type:"wfs",visible:!1,url:"https://ahocevar.com/geoserver/wfs?service=WFS&request=GetFeature&outputFormat=application/json&version=1.1.0&srsname=EPSG:3857&typenames=usa:states&cql_filter=STATE_NAME='Pennsylvania'",bbox:[-83.1005859375,38.37611542403604,-72.50976562499999,43.03677585761058],popup:{dynamicPopup:{component:S.F,getAttributes:r=>({data:r})}}}),P=new m.RP;P.cssClass="hide";const C=new m.HF,A=new m.fc;A.legendImg="https://tiles.geoservice.dlr.de/service/wmts?layer=eoc%3Aliteoverlay&style=_empty&tilematrixset=EPSG%3A3857&Service=WMTS&Request=GetTile&Version=1.0.0&Format=image%2Fpng&TileMatrix=EPSG%3A3857%3A4&TileCol=8&TileRow=5";const Y=new p.ex({id:"group_1",name:"Test Group",layers:[P,C,A],description:"This is a group with a hidden eocBasemap (layer.cssClass = hide), eocBaseoverlay and a eocLiteoverlay",expanded:{tab:"description"},actions:[{title:"download",icon:"download-cloud",action:r=>{console.log(r)}}]}),F=new m.fc;F.id="eoc_Liteoverlay_2";const q=new p.ex({id:"group_2",name:"Test Group 2",description:{component:O,inputs:{description:"A LayerGroup with a hidden vectorLayer2."}},legendImg:{component:Z},cssClass:"custom-layer-group",layers:[a,b,F]}),K=new p.ex({id:"group_3",name:"Test Group Vector-Data",expanded:!1,layers:[n,y,v]});[t,new m.HX({popup:{popupFunction:r=>`\n \n \n \n \n \n \n \n \n \n \n \n
Name: ${r.properties.name}
type: ${r.properties.type}
\n \n `}}),K,q,Y,f].map(r=>{r instanceof p.mh?this.layersSvc.addLayer(r,"Layers"):r instanceof p.ex&&this.layersSvc.addLayerGroup(r)})}addOverlays(){const t=new m.um({crossOrigin:"anonymous"}),a=new m.zc({crossOrigin:"anonymous"});this.layersSvc.addLayer(t,"Overlays"),this.layersSvc.addLayer(a,"Overlays");const n=new m.um({id:"merge_BlueMarble"}),y=new m.fc({id:"merge_Liteoverlay"}),b=new p.WQ({id:"BlueMarbleTile_Overlay",name:"BlueMarble with Overlay",visible:!1,legendImg:n.legendImg,description:"merged/stacked Layers BlueMarble with Overlay",layers:[n,y]});this.layersSvc.addLayer(b,"Overlays")}updateLayerGroup(){const t=this.layersSvc.getLayerOrGroupById("group_1");t.expanded=!0,t.layers[1].cssClass=null,this.layersSvc.updateLayerGroup(t);const a=this.layersSvc.getLayerOrGroupById("group_2");a.layers[1].visible=!0,this.layersSvc.updateLayerGroup(a)}addLayerToGroup(){const t=this.layersSvc.getLayerOrGroupById("group_2"),a=new m.Bz;this.layersSvc.addLayerToGroup(a,t)}removeAllLayers(){this.layersSvc.removeLayers()}toggleMap(){this.showMap=!this.showMap}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(p.KD),e.Y36(w.I3),e.Y36(h.BR),e.Y36(G.zU))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-route-map"]],hostVars:2,hostBindings:function(t,a){2&t&&e.Tol(a.class)},features:[e._Bn([p.KD,w.I3,h.BR])],decls:34,vars:14,consts:[[1,"content-area"],["id","olMap",3,"layersSvc","mapState","controls",4,"ngIf"],[1,"right",3,"clrVerticalNavCollapsible","clr-nav-level"],[1,"layers",3,"clrVerticalNavGroupExpanded"],["shape","world","title","Overlays","clrVerticalNavIcon",""],[1,"padding","title-ellipsis"],[3,"layersSvc","mapStateSvc","layerfilter"],["shape","layers","clrVerticalNavIcon","","title","layers"],[3,"layersSvc","mapStateSvc"],["shape","world","title","Baselayers","clrVerticalNavIcon",""],["shape","cog","title","Actions","clrVerticalNavIcon",""],[1,"btn","btn-primary",3,"click"],["id","olMap",3,"layersSvc","mapState","controls"]],template:function(t,a){1&t&&(e.TgZ(0,"main",0),e.YNc(1,J,1,3,"ukis-map-ol",1),e.qZA(),e.TgZ(2,"clr-vertical-nav",2)(3,"clr-vertical-nav-group",3),e._UZ(4,"clr-icon",4),e._uU(5," Overlays "),e.TgZ(6,"clr-vertical-nav-group-children",5),e._UZ(7,"ukis-layer-control",6),e.qZA()(),e.TgZ(8,"clr-vertical-nav-group",3),e._UZ(9,"clr-icon",7),e._uU(10," Layers "),e.TgZ(11,"clr-vertical-nav-group-children",5),e._UZ(12,"ukis-layer-control",8),e.qZA()(),e.TgZ(13,"clr-vertical-nav-group",3),e._UZ(14,"clr-icon",9),e._uU(15," Baselayers "),e.TgZ(16,"clr-vertical-nav-group-children",5),e._UZ(17,"ukis-base-layer-control",8),e.qZA()(),e.TgZ(18,"clr-vertical-nav-group",3),e._UZ(19,"clr-icon",10),e._uU(20," Actions "),e.TgZ(21,"clr-vertical-nav-group-children",5)(22,"button",11),e.NdJ("click",function(){return a.updateLayerGroup()}),e._uU(23,"update LayerGroup"),e.qZA(),e.TgZ(24,"button",11),e.NdJ("click",function(){return a.addLayerToGroup()}),e._uU(25,"add Layer to LayerGroup"),e.qZA(),e.TgZ(26,"button",11),e.NdJ("click",function(){return a.removeAllLayers()}),e._uU(27,"remove All Layers"),e.qZA(),e.TgZ(28,"button",11),e.NdJ("click",function(){return a.setExtent()}),e._uU(29,"set Extent"),e.qZA(),e.TgZ(30,"button",11),e.NdJ("click",function(){return a.parseCapabilities()}),e._uU(31,"Parse WMS capabilities"),e.qZA(),e.TgZ(32,"button",11),e.NdJ("click",function(){return a.toggleMap()}),e._uU(33,"toggle Map"),e.qZA()()()()),2&t&&(e.xp6(1),e.Q6J("ngIf",a.showMap),e.xp6(1),e.Q6J("clrVerticalNavCollapsible",!0)("clr-nav-level",2),e.xp6(1),e.Q6J("clrVerticalNavGroupExpanded",!0),e.xp6(4),e.Q6J("layersSvc",a.layersSvc)("mapStateSvc",a.mapStateSvc)("layerfilter","Overlays"),e.xp6(1),e.Q6J("clrVerticalNavGroupExpanded",!0),e.xp6(4),e.Q6J("layersSvc",a.layersSvc)("mapStateSvc",a.mapStateSvc),e.xp6(1),e.Q6J("clrVerticalNavGroupExpanded",!0),e.xp6(4),e.Q6J("layersSvc",a.layersSvc)("mapStateSvc",a.mapStateSvc),e.xp6(1),e.Q6J("clrVerticalNavGroupExpanded",!0))},dependencies:[u.O5,g.qvL,g.saT,g.fzC,g.A0B,g.d6G,g.ogR,D.E,$.l,U.j],styles:["[_nghost-%COMP%] .custom-layer-group .head>.title{color:#660f00}[_nghost-%COMP%] .custom-layer .head>.title{color:#b87d00}[_nghost-%COMP%] .zoom-number{bottom:2.5em;left:8px}"]}),o})();var W=s(5508);const H=[{path:"",component:V}];let z=(()=>{class o{}return o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[_.Bz.forChild(H),_.Bz]}),o})(),Q=(()=>{class o{}return o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[u.ez,L.q,z,g.K6A,W.cE,h.oC,G.yU]}),o})()}}]); \ No newline at end of file diff --git a/839.deab7edf51ba9868.js b/839.deab7edf51ba9868.js deleted file mode 100644 index f0f46bcd3..000000000 --- a/839.deab7edf51ba9868.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkdemo_maps=self.webpackChunkdemo_maps||[]).push([[839],{2658:(Vt,gt)=>{gt.read=function(r,_,g,Q,H){var j,N,w=8*H-Q-1,S=(1<>1,h=-7,c=g?H-1:0,u=g?-1:1,s=r[_+c];for(c+=u,j=s&(1<<-h)-1,s>>=-h,h+=w;h>0;j=256*j+r[_+c],c+=u,h-=8);for(N=j&(1<<-h)-1,j>>=-h,h+=Q;h>0;N=256*N+r[_+c],c+=u,h-=8);if(0===j)j=1-v;else{if(j===S)return N?NaN:1/0*(s?-1:1);N+=Math.pow(2,Q),j-=v}return(s?-1:1)*N*Math.pow(2,j-Q)},gt.write=function(r,_,g,Q,H,j){var N,w,S,v=8*j-H-1,h=(1<>1,u=23===H?Math.pow(2,-24)-Math.pow(2,-77):0,s=Q?0:j-1,f=Q?1:-1,i=_<0||0===_&&1/_<0?1:0;for(_=Math.abs(_),isNaN(_)||_===1/0?(w=isNaN(_)?1:0,N=h):(N=Math.floor(Math.log(_)/Math.LN2),_*(S=Math.pow(2,-N))<1&&(N--,S*=2),(_+=N+c>=1?u/S:u*Math.pow(2,1-c))*S>=2&&(N++,S/=2),N+c>=h?(w=0,N=h):N+c>=1?(w=(_*S-1)*Math.pow(2,H),N+=c):(w=_*Math.pow(2,c-1)*Math.pow(2,H),N=0));H>=8;r[g+s]=255&w,s+=f,w/=256,H-=8);for(N=N<0;r[g+s]=255&N,s+=f,N/=256,v-=8);r[g+s-f]|=128*i}},6697:(Vt,gt,r)=>{"use strict";Vt.exports=g;var _=r(2658);function g(B){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(B)?B:new Uint8Array(B||0),this.pos=0,this.type=0,this.length=this.buf.length}g.Varint=0,g.Fixed64=1,g.Bytes=2,g.Fixed32=5;var Q=4294967296,H=1/Q,N=typeof TextDecoder>"u"?null:new TextDecoder("utf8");function S(B){return B.type===g.Bytes?B.readVarint()+B.pos:B.pos+1}function s(B,k,L){var p=k<=16383?1:k<=2097151?2:k<=268435455?3:Math.floor(Math.log(k)/(7*Math.LN2));L.realloc(p);for(var M=L.pos-1;M>=B;M--)L.buf[M+p]=L.buf[M]}function f(B,k){for(var L=0;L>>8,B[L+2]=k>>>16,B[L+3]=k>>>24}function O(B,k){return(B[k]|B[k+1]<<8|B[k+2]<<16)+(B[k+3]<<24)}g.prototype={destroy:function(){this.buf=null},readFields:function(B,k,L){for(L=L||this.length;this.pos>3,R=this.pos;this.type=7&p,B(M,k,this),this.pos===R&&this.skip(p)}return k},readMessage:function(B,k){return this.readFields(B,k,this.readVarint()+this.pos)},readFixed32:function(){var B=D(this.buf,this.pos);return this.pos+=4,B},readSFixed32:function(){var B=O(this.buf,this.pos);return this.pos+=4,B},readFixed64:function(){var B=D(this.buf,this.pos)+D(this.buf,this.pos+4)*Q;return this.pos+=8,B},readSFixed64:function(){var B=D(this.buf,this.pos)+O(this.buf,this.pos+4)*Q;return this.pos+=8,B},readFloat:function(){var B=_.read(this.buf,this.pos,!0,23,4);return this.pos+=4,B},readDouble:function(){var B=_.read(this.buf,this.pos,!0,52,8);return this.pos+=8,B},readVarint:function(B){var L,p,k=this.buf;return L=127&(p=k[this.pos++]),p<128||(L|=(127&(p=k[this.pos++]))<<7,p<128)||(L|=(127&(p=k[this.pos++]))<<14,p<128)||(L|=(127&(p=k[this.pos++]))<<21,p<128)?L:function w(B,k,L){var M,R,p=L.buf;if(M=(112&(R=p[L.pos++]))>>4,R<128||(M|=(127&(R=p[L.pos++]))<<3,R<128)||(M|=(127&(R=p[L.pos++]))<<10,R<128)||(M|=(127&(R=p[L.pos++]))<<17,R<128)||(M|=(127&(R=p[L.pos++]))<<24,R<128)||(M|=(1&(R=p[L.pos++]))<<31,R<128))return function v(B,k,L){return L?4294967296*k+(B>>>0):4294967296*(k>>>0)+(B>>>0)}(B,M,k);throw new Error("Expected varint not more than 10 bytes")}(L|=(15&(p=k[this.pos]))<<28,B,this)},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var B=this.readVarint();return B%2==1?(B+1)/-2:B/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var B=this.readVarint()+this.pos,k=this.pos;return this.pos=B,B-k>=12&&N?function $(B,k,L){return N.decode(B.subarray(k,L))}(this.buf,k,B):function X(B,k,L){for(var p="",M=k;M239?4:R>223?3:R>191?2:1;if(M+G>L)break;1===G?R<128&&(K=R):2===G?128==(192&(J=B[M+1]))&&(K=(31&R)<<6|63&J)<=127&&(K=null):3===G?(q=B[M+2],128==(192&(J=B[M+1]))&&128==(192&q)&&((K=(15&R)<<12|(63&J)<<6|63&q)<=2047||K>=55296&&K<=57343)&&(K=null)):4===G&&(q=B[M+2],ut=B[M+3],128==(192&(J=B[M+1]))&&128==(192&q)&&128==(192&ut)&&((K=(15&R)<<18|(63&J)<<12|(63&q)<<6|63&ut)<=65535||K>=1114112)&&(K=null)),null===K?(K=65533,G=1):K>65535&&(K-=65536,p+=String.fromCharCode(K>>>10&1023|55296),K=56320|1023&K),p+=String.fromCharCode(K),M+=G}return p}(this.buf,k,B)},readBytes:function(){var B=this.readVarint()+this.pos,k=this.buf.subarray(this.pos,B);return this.pos=B,k},readPackedVarint:function(B,k){if(this.type!==g.Bytes)return B.push(this.readVarint(k));var L=S(this);for(B=B||[];this.pos127;);else if(k===g.Bytes)this.pos=this.readVarint()+this.pos;else if(k===g.Fixed32)this.pos+=4;else{if(k!==g.Fixed64)throw new Error("Unimplemented type: "+k);this.pos+=8}},writeTag:function(B,k){this.writeVarint(B<<3|k)},realloc:function(B){for(var k=this.length||16;k268435455||B<0?function h(B,k){var L,p;if(B>=0?(L=B%4294967296|0,p=B/4294967296|0):(p=~(-B/4294967296),4294967295^(L=~(-B%4294967296))?L=L+1|0:(L=0,p=p+1|0)),B>=0x10000000000000000||B<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");k.realloc(10),function c(B,k,L){L.buf[L.pos++]=127&B|128,B>>>=7,L.buf[L.pos++]=127&B|128,B>>>=7,L.buf[L.pos++]=127&B|128,B>>>=7,L.buf[L.pos++]=127&B|128,L.buf[L.pos]=127&(B>>>=7)}(L,0,k),function u(B,k){var L=(7&B)<<4;k.buf[k.pos++]|=L|((B>>>=3)?128:0),B&&(k.buf[k.pos++]=127&B|((B>>>=7)?128:0),B&&(k.buf[k.pos++]=127&B|((B>>>=7)?128:0),B&&(k.buf[k.pos++]=127&B|((B>>>=7)?128:0),B&&(k.buf[k.pos++]=127&B|((B>>>=7)?128:0),B&&(k.buf[k.pos++]=127&B)))))}(p,k)}(B,this):(this.realloc(4),this.buf[this.pos++]=127&B|(B>127?128:0),!(B<=127)&&(this.buf[this.pos++]=127&(B>>>=7)|(B>127?128:0),!(B<=127)&&(this.buf[this.pos++]=127&(B>>>=7)|(B>127?128:0),!(B<=127)&&(this.buf[this.pos++]=B>>>7&127))))},writeSVarint:function(B){this.writeVarint(B<0?2*-B-1:2*B)},writeBoolean:function(B){this.writeVarint(Boolean(B))},writeString:function(B){B=String(B),this.realloc(4*B.length),this.pos++;var k=this.pos;this.pos=function dt(B,k,L){for(var M,R,p=0;p55295&&M<57344){if(!R){M>56319||p+1===k.length?(B[L++]=239,B[L++]=191,B[L++]=189):R=M;continue}if(M<56320){B[L++]=239,B[L++]=191,B[L++]=189,R=M;continue}M=R-55296<<10|M-56320|65536,R=null}else R&&(B[L++]=239,B[L++]=191,B[L++]=189,R=null);M<128?B[L++]=M:(M<2048?B[L++]=M>>6|192:(M<65536?B[L++]=M>>12|224:(B[L++]=M>>18|240,B[L++]=M>>12&63|128),B[L++]=M>>6&63|128),B[L++]=63&M|128)}return L}(this.buf,B,this.pos);var L=this.pos-k;L>=128&&s(k,L,this),this.pos=k-1,this.writeVarint(L),this.pos+=L},writeFloat:function(B){this.realloc(4),_.write(this.buf,B,this.pos,!0,23,4),this.pos+=4},writeDouble:function(B){this.realloc(8),_.write(this.buf,B,this.pos,!0,52,8),this.pos+=8},writeBytes:function(B){var k=B.length;this.writeVarint(k),this.realloc(k);for(var L=0;L=128&&s(L,p,this),this.pos=L-1,this.writeVarint(p),this.pos+=p},writeMessage:function(B,k,L){this.writeTag(B,g.Bytes),this.writeRawMessage(k,L)},writePackedVarint:function(B,k){k.length&&this.writeMessage(B,f,k)},writePackedSVarint:function(B,k){k.length&&this.writeMessage(B,i,k)},writePackedBoolean:function(B,k){k.length&&this.writeMessage(B,e,k)},writePackedFloat:function(B,k){k.length&&this.writeMessage(B,l,k)},writePackedDouble:function(B,k){k.length&&this.writeMessage(B,m,k)},writePackedFixed32:function(B,k){k.length&&this.writeMessage(B,P,k)},writePackedSFixed32:function(B,k){k.length&&this.writeMessage(B,x,k)},writePackedFixed64:function(B,k){k.length&&this.writeMessage(B,T,k)},writePackedSFixed64:function(B,k){k.length&&this.writeMessage(B,U,k)},writeBytesField:function(B,k){this.writeTag(B,g.Bytes),this.writeBytes(k)},writeFixed32Field:function(B,k){this.writeTag(B,g.Fixed32),this.writeFixed32(k)},writeSFixed32Field:function(B,k){this.writeTag(B,g.Fixed32),this.writeSFixed32(k)},writeFixed64Field:function(B,k){this.writeTag(B,g.Fixed64),this.writeFixed64(k)},writeSFixed64Field:function(B,k){this.writeTag(B,g.Fixed64),this.writeSFixed64(k)},writeVarintField:function(B,k){this.writeTag(B,g.Varint),this.writeVarint(k)},writeSVarintField:function(B,k){this.writeTag(B,g.Varint),this.writeSVarint(k)},writeStringField:function(B,k){this.writeTag(B,g.Bytes),this.writeString(k)},writeFloatField:function(B,k){this.writeTag(B,g.Fixed32),this.writeFloat(k)},writeDoubleField:function(B,k){this.writeTag(B,g.Fixed64),this.writeDouble(k)},writeBooleanField:function(B,k){this.writeVarintField(B,Boolean(k))}}},3431:(Vt,gt,r)=>{"use strict";r.d(gt,{Z:()=>Ke});var w=6378137,v=.0066943799901413165,h=484813681109536e-20,c=Math.PI/2,i=1e-10,l=.017453292519943295,m=57.29577951308232,e=Math.PI/4,P=2*Math.PI,x=3.14159265359,T={greenwich:0,lisbon:-9.131906111111,paris:2.337229166667,bogota:-74.080916666667,madrid:-3.687938888889,rome:12.452333333333,bern:7.439583333333,jakarta:106.807719444444,ferro:-17.666666666667,brussels:4.367975,stockholm:18.058277777778,athens:23.7163375,oslo:10.722916666667};const U={ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937}};var D=/[\s_\-\/\(\)]/g;function C(t,d){if(t[d])return t[d];for(var et,E=Object.keys(t),Y=d.toLowerCase().replace(D,""),V=-1;++V0?90:-90)):(t.lat0=Ht(t.lat1>0?90:-90),t.lat_ts=t.lat1)}(V),V}function Qt(t){var d=this;if(2===arguments.length){var E=arguments[1];Qt[t]="string"==typeof E?"+"===E.charAt(0)?O(arguments[1]):ae(arguments[1]):E}else if(1===arguments.length){if(Array.isArray(t))return t.map(function(Y){Array.isArray(Y)?Qt.apply(d,Y):Qt(Y)});if("string"==typeof t){if(t in Qt)return Qt[t]}else"EPSG"in t?Qt["EPSG:"+t.EPSG]=t:"ESRI"in t?Qt["ESRI:"+t.ESRI]=t:"IAU2000"in t?Qt["IAU2000:"+t.IAU2000]=t:console.log(t);return}}q.prototype.readCharicter=function(){var t=this.text[this.place++];if(4!==this.state)for(;M.test(t);){if(this.place>=this.text.length)return;t=this.text[this.place++]}switch(this.state){case 1:return this.neutral(t);case 2:return this.keyword(t);case 4:return this.quoted(t);case 5:return this.afterquote(t);case 3:return this.number(t);case-1:return}},q.prototype.afterquote=function(t){if('"'===t)return this.word+='"',void(this.state=4);if(G.test(t))return this.word=this.word.trim(),void this.afterItem(t);throw new Error("havn't handled \""+t+'" in afterquote yet, index '+this.place)},q.prototype.afterItem=function(t){return","===t?(null!==this.word&&this.currentObject.push(this.word),this.word=null,void(this.state=1)):"]"===t?(this.level--,null!==this.word&&(this.currentObject.push(this.word),this.word=null),this.state=1,this.currentObject=this.stack.pop(),void(this.currentObject||(this.state=-1))):void 0},q.prototype.number=function(t){if(!J.test(t)){if(G.test(t))return this.word=parseFloat(this.word),void this.afterItem(t);throw new Error("havn't handled \""+t+'" in number yet, index '+this.place)}this.word+=t},q.prototype.quoted=function(t){'"'!==t?this.word+=t:this.state=5},q.prototype.keyword=function(t){if(K.test(t))this.word+=t;else{if("["===t){var d=[];return d.push(this.word),this.level++,null===this.root?this.root=d:this.currentObject.push(d),this.stack.push(this.currentObject),this.currentObject=d,void(this.state=1)}if(!G.test(t))throw new Error("havn't handled \""+t+'" in keyword yet, index '+this.place);this.afterItem(t)}},q.prototype.neutral=function(t){if(R.test(t))return this.word=t,void(this.state=2);if('"'===t)return this.word="",void(this.state=4);if(J.test(t))return this.word=t,void(this.state=3);if(!G.test(t))throw new Error("havn't handled \""+t+'" in neutral yet, index '+this.place);this.afterItem(t)},q.prototype.output=function(){for(;this.place90&&E*m<-90&&d*m>180&&d*m<-180)return null;if(Math.abs(Math.abs(E)-c)<=i)return null;if(this.sphere)Y=this.x0+this.a*this.k0*Jt(d-this.long0),V=this.y0+this.a*this.k0*Math.log(Math.tan(e+.5*E));else{var et=Math.sin(E),lt=ye(this.e,E,et);Y=this.x0+this.a*this.k0*Jt(d-this.long0),V=this.y0-this.a*this.k0*Math.log(lt)}return t.x=Y,t.y=V,t},inverse:function Zt(t){var Y,V,d=t.x-this.x0,E=t.y-this.y0;if(this.sphere)V=c-2*Math.atan(Math.exp(-E/(this.a*this.k0)));else{var et=Math.exp(-E/(this.a*this.k0));if(-9999===(V=Pe(this.e,et)))return null}return Y=Jt(this.long0+d/(this.a*this.k0)),t.x=Y,t.y=V,t},names:["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"]},{init:function z(){},forward:st,inverse:st,names:["longlat","identity"]}],kt={},zt=[];function ee(t,d){var E=zt.length;return t.names?(zt[E]=t,t.names.forEach(function(Y){kt[Y.toLowerCase()]=E}),this):(console.log(d),!0)}const ge={start:function we(){Pt.forEach(ee)},add:ee,get:function re(t){if(!t)return!1;var d=t.toLowerCase();return typeof kt[d]<"u"&&zt[kt[d]]?zt[kt[d]]:void 0}};var oe={MERIT:{a:6378137,rf:298.257,ellipseName:"MERIT 1983"},SGS85:{a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"},GRS80:{a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"},IAU76:{a:6378140,rf:298.257,ellipseName:"IAU 1976"},airy:{a:6377563.396,b:6356256.91,ellipseName:"Airy 1830"},APL4:{a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"},NWL9D:{a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"},mod_airy:{a:6377340.189,b:6356034.446,ellipseName:"Modified Airy"},andrae:{a:6377104.43,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"},aust_SA:{a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"},GRS67:{a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"},bessel:{a:6377397.155,rf:299.1528128,ellipseName:"Bessel 1841"},bess_nam:{a:6377483.865,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"},clrk66:{a:6378206.4,b:6356583.8,ellipseName:"Clarke 1866"},clrk80:{a:6378249.145,rf:293.4663,ellipseName:"Clarke 1880 mod."},clrk80ign:{a:6378249.2,b:6356515,rf:293.4660213,ellipseName:"Clarke 1880 (IGN)"},clrk58:{a:6378293.645208759,rf:294.2606763692654,ellipseName:"Clarke 1858"},CPM:{a:6375738.7,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"},delmbr:{a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"},engelis:{a:6378136.05,rf:298.2566,ellipseName:"Engelis 1985"},evrst30:{a:6377276.345,rf:300.8017,ellipseName:"Everest 1830"},evrst48:{a:6377304.063,rf:300.8017,ellipseName:"Everest 1948"},evrst56:{a:6377301.243,rf:300.8017,ellipseName:"Everest 1956"},evrst69:{a:6377295.664,rf:300.8017,ellipseName:"Everest 1969"},evrstSS:{a:6377298.556,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"},fschr60:{a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"},fschr60m:{a:6378155,rf:298.3,ellipseName:"Fischer 1960"},fschr68:{a:6378150,rf:298.3,ellipseName:"Fischer 1968"},helmert:{a:6378200,rf:298.3,ellipseName:"Helmert 1906"},hough:{a:6378270,rf:297,ellipseName:"Hough"},intl:{a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"},kaula:{a:6378163,rf:298.24,ellipseName:"Kaula 1961"},lerch:{a:6378139,rf:298.257,ellipseName:"Lerch 1979"},mprts:{a:6397300,rf:191,ellipseName:"Maupertius 1738"},new_intl:{a:6378157.5,b:6356772.2,ellipseName:"New International 1967"},plessis:{a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"},krass:{a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"},SEasia:{a:6378155,b:6356773.3205,ellipseName:"Southeast Asia"},walbeck:{a:6376896,b:6355834.8467,ellipseName:"Walbeck"},WGS60:{a:6378165,rf:298.3,ellipseName:"WGS 60"},WGS66:{a:6378145,rf:298.25,ellipseName:"WGS 66"},WGS7:{a:6378135,rf:298.26,ellipseName:"WGS 72"}},Xe=oe.WGS84={a:6378137,rf:298.257223563,ellipseName:"WGS 84"};oe.sphere={a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"};var $e={wgs84:{towgs84:"0,0,0",ellipse:"WGS84",datumName:"WGS84"},ch1903:{towgs84:"674.374,15.056,405.346",ellipse:"bessel",datumName:"swiss"},ggrs87:{towgs84:"-199.87,74.79,246.62",ellipse:"GRS80",datumName:"Greek_Geodetic_Reference_System_1987"},nad83:{towgs84:"0,0,0",ellipse:"GRS80",datumName:"North_American_Datum_1983"},nad27:{nadgrids:"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",ellipse:"clrk66",datumName:"North_American_Datum_1927"},potsdam:{towgs84:"598.1,73.7,418.2,0.202,0.045,-2.455,6.7",ellipse:"bessel",datumName:"Potsdam Rauenberg 1950 DHDN"},carthage:{towgs84:"-263.0,6.0,431.0",ellipse:"clark80",datumName:"Carthage 1934 Tunisia"},hermannskogel:{towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Hermannskogel"},osni52:{towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"airy",datumName:"Irish National"},ire65:{towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"mod_airy",datumName:"Ireland 1965"},rassadiran:{towgs84:"-133.63,-157.5,-158.62",ellipse:"intl",datumName:"Rassadiran"},nzgd49:{towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",ellipse:"intl",datumName:"New Zealand Geodetic Datum 1949"},osgb36:{towgs84:"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",ellipse:"airy",datumName:"Airy 1830"},s_jtsk:{towgs84:"589,76,480",ellipse:"bessel",datumName:"S-JTSK (Ferro)"},beduaram:{towgs84:"-106,-87,188",ellipse:"clrk80",datumName:"Beduaram"},gunung_segara:{towgs84:"-403,684,41",ellipse:"bessel",datumName:"Gunung Segara Jakarta"},rnb72:{towgs84:"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",ellipse:"intl",datumName:"Reseau National Belge 1972"}};var _i={};function ot(t){if(0===t.length)return null;var d="@"===t[0];return d&&(t=t.slice(1)),"null"===t?{name:"null",mandatory:!d,grid:null,isNull:!0}:{name:t,mandatory:!d,grid:_i[t]||null,isNull:!1}}function rt(t){return t/3600*Math.PI/180}function Ft(t,d,E){return String.fromCharCode.apply(null,new Uint8Array(t.buffer.slice(d,E)))}function fe(t){return t.map(function(d){return[rt(d.longitudeShift),rt(d.latitudeShift)]})}function Se(t,d,E){return{name:Ft(t,d+8,d+16).trim(),parent:Ft(t,d+24,d+24+8).trim(),lowerLatitude:t.getFloat64(d+72,E),upperLatitude:t.getFloat64(d+88,E),lowerLongitude:t.getFloat64(d+104,E),upperLongitude:t.getFloat64(d+120,E),latitudeInterval:t.getFloat64(d+136,E),longitudeInterval:t.getFloat64(d+152,E),gridNodeCount:t.getInt32(d+168,E)}}function Le(t,d,E,Y){for(var V=d+176,lt=[],at=0;at-1})}(t)){var d=ae(t);if(function Bt(t){var d=C(t,"authority");if(d){var E=C(d,"epsg");return E&&Nt.indexOf(E)>-1}}(d))return _e["EPSG:3857"];var E=function ie(t){var d=C(t,"extension");if(d)return C(d,"proj4")}(d);return E?O(E):d}return function Te(t){return"+"===t[0]}(t)?O(t):void 0}(t);if("object"==typeof E){var Y=ke.projections.get(E.projName);if(Y){if(E.datumCode&&"none"!==E.datumCode){var V=C($e,E.datumCode);V&&(E.datum_params=E.datum_params||(V.towgs84?V.towgs84.split(","):null),E.ellps=V.ellipse,E.datumName=V.datumName?V.datumName:E.datumCode)}E.k0=E.k0||1,E.axis=E.axis||"enu",E.ellps=E.ellps||"wgs84",E.lat1=E.lat1||E.lat0;var et=function Qe(t,d,E,Y,V){if(!t){var et=C(oe,Y);et||(et=Xe),t=et.a,d=et.b,E=et.rf}return E&&!d&&(d=(1-1/E)*t),(0===E||Math.abs(t-d)3&&(0!==at.datum_params[3]||0!==at.datum_params[4]||0!==at.datum_params[5]||0!==at.datum_params[6])&&(at.datum_type=2,at.datum_params[3]*=h,at.datum_params[4]*=h,at.datum_params[5]*=h,at.datum_params[6]=at.datum_params[6]/1e6+1)),lt&&(at.datum_type=3,at.grids=lt),at.a=E,at.b=Y,at.es=V,at.ep2=et,at}(E.datumCode,E.datum_params,et.a,et.b,lt.es,lt.ep2,at);Dt(this,E),Dt(this,Y),this.a=et.a,this.b=et.b,this.rf=et.rf,this.sphere=et.sphere,this.es=lt.es,this.e=lt.e,this.ep2=lt.ep2,this.datum=yt,this.init(),d(null,this)}else d(t)}else d(t)}(ke.projections=ge).start();const Ve=ke;function si(t,d,E){var lt,at,It,Y=t.x,V=t.y,et=t.z?t.z:0;if(V<-c&&V>-1.001*c)V=-c;else if(V>c&&V<1.001*c)V=c;else{if(V<-c)return{x:-1/0,y:-1/0,z:t.z};if(V>c)return{x:1/0,y:1/0,z:t.z}}return Y>Math.PI&&(Y-=2*Math.PI),at=Math.sin(V),It=Math.cos(V),{x:((lt=E/Math.sqrt(1-d*(at*at)))+et)*It*Math.cos(Y),y:(lt+et)*It*Math.sin(Y),z:(lt*(1-d)+et)*at}}function pi(t,d,E,Y){var at,yt,It,Xt,At,ne,me,pe,ve,Ie,Ae,Ye,ti,Ne,ci,ii=t.x,be=t.y,ni=t.z?t.z:0;if(at=Math.sqrt(ii*ii+be*be),yt=Math.sqrt(ii*ii+be*be+ni*ni),at/E<1e-12){if(Ne=0,yt/E<1e-12)return ci=-Y,{x:t.x,y:t.y,z:t.z}}else Ne=Math.atan2(be,ii);It=ni/yt,pe=(Xt=at/yt)*(1-d)*(At=1/Math.sqrt(1-d*(2-d)*Xt*Xt)),ve=It*At,ti=0;do{ti++,ne=d*(me=E/Math.sqrt(1-d*ve*ve))/(me+(ci=at*pe+ni*ve-me*(1-d*ve*ve))),Ye=(Ae=It*(At=1/Math.sqrt(1-ne*(2-ne)*Xt*Xt)))*pe-(Ie=Xt*(1-ne)*At)*ve,pe=Ie,ve=Ae}while(Ye*Ye>1e-24&&ti<30);return{x:Ne,y:Math.atan(Ae/Math.abs(Ie)),z:ci}}function Li(t){return 1===t||2===t}function Wi(t,d,E){if(null===t.grids||0===t.grids.length)return console.log("Grid shift grids not found"),-1;for(var Y={x:-E.x,y:E.y},V={x:Number.NaN,y:Number.NaN},lt=[],at=0;atY.y||It.ll[0]-Xt>Y.x||It.ll[1]+(It.lim[1]-1)*It.del[1]+Xt1e-12&&Math.abs(yt.y)>1e-12);if(lt<0)return console.log("Inverse grid shift iterator failed to converge."),Y;Y.x=Jt(et.x+E.ll[0]),Y.y=et.y+E.ll[1]}else isNaN(et.x)||(Y.x=t.x+et.x,Y.y=t.y+et.y);return Y}function Mi(t,d){var lt,E={x:t.x/d.del[0],y:t.y/d.del[1]},Y_x=Math.floor(E.x),Y_y=Math.floor(E.y),V_x=E.x-1*Y_x,V_y=E.y-1*Y_y,et={x:Number.NaN,y:Number.NaN};if(Y_x<0||Y_x>=d.lim[0]||Y_y<0||Y_y>=d.lim[1])return et;var at_x=d.cvs[lt=Y_y*d.lim[0]+Y_x][0],at_y=d.cvs[lt][1];lt++;var yt_x=d.cvs[lt][0],yt_y=d.cvs[lt][1],It_x=d.cvs[lt+=d.lim[0]][0],It_y=d.cvs[lt][1];lt--;var Xt_y=d.cvs[lt][1],At=V_x*V_y,ne=V_x*(1-V_y),me=(1-V_x)*(1-V_y),pe=(1-V_x)*V_y;return et.x=me*at_x+ne*yt_x+pe*d.cvs[lt][0]+At*It_x,et.y=me*at_y+ne*yt_y+pe*Xt_y+At*It_y,et}function Ai(t,d,E){var lt,at,yt,Y=E.x,V=E.y,et=E.z||0,It={};for(yt=0;yt<3;yt++)if(!d||2!==yt||void 0!==E.z)switch(0===yt?(lt=Y,at=-1!=="ew".indexOf(t.axis[yt])?"x":"y"):1===yt?(lt=V,at=-1!=="ns".indexOf(t.axis[yt])?"y":"x"):(lt=et,at="z"),t.axis[yt]){case"e":case"n":It[at]=lt;break;case"w":case"s":It[at]=-lt;break;case"u":void 0!==E[at]&&(It.z=lt);break;case"d":void 0!==E[at]&&(It.z=-lt);break;default:return null}return It}function Ii(t){var d={x:t[0],y:t[1]};return t.length>2&&(d.z=t[2]),t.length>3&&(d.m=t[3]),d}function hn(t){if("function"==typeof Number.isFinite){if(Number.isFinite(t))return;throw new TypeError("coordinates must be finite numbers")}if("number"!=typeof t||t!=t||!isFinite(t))throw new TypeError("coordinates must be finite numbers")}function Ei(t,d,E,Y){var V,et=void 0!==(E=Array.isArray(E)?Ii(E):{x:E.x,y:E.y,z:E.z,m:E.m}).z;if(function yi(t){hn(t.x),hn(t.y)}(E),t.datum&&d.datum&&function Ui(t,d){return(1===t.datum.datum_type||2===t.datum.datum_type||3===t.datum.datum_type)&&"WGS84"!==d.datumCode||(1===d.datum.datum_type||2===d.datum.datum_type||3===d.datum.datum_type)&&"WGS84"!==t.datumCode}(t,d)&&(E=Ei(t,V=new Ve("WGS84"),E,Y),t=V),Y&&"enu"!==t.axis&&(E=Ai(t,!1,E)),"longlat"===t.projName)E={x:E.x*l,y:E.y*l,z:E.z||0};else if(t.to_meter&&(E={x:E.x*t.to_meter,y:E.y*t.to_meter,z:E.z||0}),!(E=t.inverse(E)))return;if(t.from_greenwich&&(E.x+=t.from_greenwich),E=function Yn(t,d,E){if(function qe(t,d){return!(t.datum_type!==d.datum_type||t.a!==d.a||Math.abs(t.es-d.es)>5e-11)&&(1===t.datum_type?t.datum_params[0]===d.datum_params[0]&&t.datum_params[1]===d.datum_params[1]&&t.datum_params[2]===d.datum_params[2]:2!==t.datum_type||t.datum_params[0]===d.datum_params[0]&&t.datum_params[1]===d.datum_params[1]&&t.datum_params[2]===d.datum_params[2]&&t.datum_params[3]===d.datum_params[3]&&t.datum_params[4]===d.datum_params[4]&&t.datum_params[5]===d.datum_params[5]&&t.datum_params[6]===d.datum_params[6])}(t,d)||5===t.datum_type||5===d.datum_type)return E;var Y=t.a,V=t.es;if(3===t.datum_type){if(0!==Wi(t,!1,E))return;Y=w,V=v}var lt=d.a,at=d.b,yt=d.es;return 3===d.datum_type&&(lt=w,at=6356752.314,yt=v),V!==yt||Y!==lt||Li(t.datum_type)||Li(d.datum_type)?(E=si(E,V,Y),Li(t.datum_type)&&(E=function Di(t,d,E){if(1===d)return{x:t.x+E[0],y:t.y+E[1],z:t.z+E[2]};if(2===d){var lt=E[3],at=E[4],yt=E[5],It=E[6];return{x:It*(t.x-yt*t.y+at*t.z)+E[0],y:It*(yt*t.x+t.y-lt*t.z)+E[1],z:It*(-at*t.x+lt*t.y+t.z)+E[2]}}}(E,t.datum_type,t.datum_params)),Li(d.datum_type)&&(E=function Ri(t,d,E){if(1===d)return{x:t.x-E[0],y:t.y-E[1],z:t.z-E[2]};if(2===d){var lt=E[3],at=E[4],yt=E[5],It=E[6],Xt=(t.x-E[0])/It,At=(t.y-E[1])/It,ne=(t.z-E[2])/It;return{x:Xt+yt*At-at*ne,y:-yt*Xt+At+lt*ne,z:at*Xt-lt*At+ne}}}(E,d.datum_type,d.datum_params)),E=pi(E,yt,lt,at),3!==d.datum_type||0===Wi(d,!0,E)?E:void 0):E}(t.datum,d.datum,E))return d.from_greenwich&&(E={x:E.x-d.from_greenwich,y:E.y,z:E.z||0}),"longlat"===d.projName?E={x:E.x*m,y:E.y*m,z:E.z||0}:(E=d.forward(E),d.to_meter&&(E={x:E.x/d.to_meter,y:E.y/d.to_meter,z:E.z||0})),Y&&"enu"!==d.axis?Ai(d,!0,E):(et||delete E.z,E)}var Fi=Ve("WGS84");function ji(t,d,E,Y){var V,et,lt;return Array.isArray(E)?(V=Ei(t,d,E,Y)||{x:NaN,y:NaN},E.length>2?typeof t.name<"u"&&"geocent"===t.name||typeof d.name<"u"&&"geocent"===d.name?"number"==typeof V.z?[V.x,V.y,V.z].concat(E.splice(3)):[V.x,V.y,E[2]].concat(E.splice(3)):[V.x,V.y].concat(E.splice(2)):[V.x,V.y]):(et=Ei(t,d,E,Y),2===(lt=Object.keys(E)).length||lt.forEach(function(at){if(typeof t.name<"u"&&"geocent"===t.name||typeof d.name<"u"&&"geocent"===d.name){if("x"===at||"y"===at||"z"===at)return}else if("x"===at||"y"===at)return;et[at]=E[at]}),et)}function fn(t){return t instanceof Ve?t:t.oProj?t.oProj:Ve(t)}const Gi=function Mr(t,d,E){t=fn(t);var V,Y=!1;return typeof d>"u"?(d=t,t=Fi,Y=!0):(typeof d.x<"u"||Array.isArray(d))&&(E=d,d=t,t=Fi,Y=!0),d=fn(d),E?ji(t,d,E):(V={forward:function(et,lt){return ji(t,d,et,lt)},inverse:function(et,lt){return ji(d,t,et,lt)}},Y&&(V.oProj=d),V)};const Tr={forward:Jn,inverse:function Ys(t){var d=vs(ts(t.toUpperCase()));return d.lat&&d.lon?[d.lon,d.lat,d.lon,d.lat]:[d.left,d.bottom,d.right,d.top]},toPoint:Qn};function Jn(t,d){return d=d||5,function sn(t,d){var E="00000"+t.easting,Y="00000"+t.northing;return t.zoneNumber+t.zoneLetter+function ys(t,d,E){var Y=Nn(E);return function qn(t,d,E){var Y=E-1,V="AJSAJS".charCodeAt(Y),et="AFAFAF".charCodeAt(Y),lt=V+t-1,at=et+d,yt=!1;return lt>90&&(lt=lt-90+65-1,yt=!0),(73===lt||V<73&<>73||(lt>73||V<73)&&yt)&<++,(79===lt||V<79&<>79||(lt>79||V<79)&&yt)&&73==++lt&<++,lt>90&&(lt=lt-90+65-1),at>86?(at=at-86+65-1,yt=!0):yt=!1,(73===at||et<73&&at>73||(at>73||et<73)&&yt)&&at++,(79===at||et<79&&at>79||(at>79||et<79)&&yt)&&73==++at&&at++,at>86&&(at=at-86+65-1),String.fromCharCode(lt)+String.fromCharCode(at)}(Math.floor(t/1e5),Math.floor(d/1e5)%20,Y)}(t.easting,t.northing,t.zoneNumber)+E.substr(E.length-5,d)+Y.substr(Y.length-5,d)}(function Hs(t){var at,yt,It,Xt,At,ve,Ie,d=t.lat,E=t.lon,Y=6378137,V=.00669438,me=$n(d),pe=$n(E);Ie=Math.floor((E+180)/6)+1,180===E&&(Ie=60),d>=56&&d<64&&E>=3&&E<12&&(Ie=32),d>=72&&d<84&&(E>=0&&E<9?Ie=31:E>=9&&E<21?Ie=33:E>=21&&E<33?Ie=35:E>=33&&E<42&&(Ie=37)),ve=$n(6*(Ie-1)-180+3),at=V/(1-V),yt=Y/Math.sqrt(1-V*Math.sin(me)*Math.sin(me)),It=Math.tan(me)*Math.tan(me),Xt=at*Math.cos(me)*Math.cos(me);var Ae=.9996*yt*((At=Math.cos(me)*(pe-ve))+(1-It+Xt)*At*At*At/6+(5-18*It+It*It+72*Xt-58*at)*At*At*At*At*At/120)+5e5,Ye=.9996*(Y*(.9983242984503243*me-.002514607064228144*Math.sin(2*me)+2639046602129982e-21*Math.sin(4*me)-35*V*V*V/3072*Math.sin(6*me))+yt*Math.tan(me)*(At*At/2+(5-It+9*Xt+4*Xt*Xt)*At*At*At*At/24+(61-58*It+It*It+600*Xt-330*at)*At*At*At*At*At*At/720));return d<0&&(Ye+=1e7),{northing:Math.round(Ye),easting:Math.round(Ae),zoneNumber:Ie,zoneLetter:Pr(d)}}({lat:t[1],lon:t[0]}),d)}function Qn(t){var d=vs(ts(t.toUpperCase()));return d.lat&&d.lon?[d.lon,d.lat]:[(d.left+d.right)/2,(d.top+d.bottom)/2]}function $n(t){return t*(Math.PI/180)}function ms(t){return t/Math.PI*180}function vs(t){var d=t.northing,E=t.easting,Y=t.zoneLetter,V=t.zoneNumber;if(V<0||V>60)return null;var yt,Xt,At,ne,me,pe,Ie,Ae,Ye,at=.00669438,It=(1-Math.sqrt(1-at))/(1+Math.sqrt(1-at)),ti=E-5e5,ii=d;Y<"N"&&(ii-=1e7),Ie=6*(V-1)-180+3,yt=at/(1-at),Ye=(Ae=ii/.9996/6367449.145945056)+(3*It/2-27*It*It*It/32)*Math.sin(2*Ae)+(21*It*It/16-55*It*It*It*It/32)*Math.sin(4*Ae)+151*It*It*It/96*Math.sin(6*Ae),Xt=6378137/Math.sqrt(1-at*Math.sin(Ye)*Math.sin(Ye)),At=Math.tan(Ye)*Math.tan(Ye),ne=yt*Math.cos(Ye)*Math.cos(Ye),me=6378137*(1-at)/Math.pow(1-at*Math.sin(Ye)*Math.sin(Ye),1.5),pe=ti/(.9996*Xt);var be=Ye-Xt*Math.tan(Ye)/me*(pe*pe/2-(5+3*At+10*ne-4*ne*ne-9*yt)*pe*pe*pe*pe/24+(61+90*At+298*ne+45*At*At-252*yt-3*ne*ne)*pe*pe*pe*pe*pe*pe/720);be=ms(be);var Ne,ni=(pe-(1+2*At+ne)*pe*pe*pe/6+(5-2*ne+28*At-3*ne*ne+8*yt+24*At*At)*pe*pe*pe*pe*pe/120)/Math.cos(Ye);if(ni=Ie+ms(ni),t.accuracy){var Fe=vs({northing:t.northing+t.accuracy,easting:t.easting+t.accuracy,zoneLetter:t.zoneLetter,zoneNumber:t.zoneNumber});Ne={top:Fe.lat,right:Fe.lon,bottom:be,left:ni}}else Ne={lat:be,lon:ni};return Ne}function Pr(t){var d="Z";return 84>=t&&t>=72?d="X":72>t&&t>=64?d="W":64>t&&t>=56?d="V":56>t&&t>=48?d="U":48>t&&t>=40?d="T":40>t&&t>=32?d="S":32>t&&t>=24?d="R":24>t&&t>=16?d="Q":16>t&&t>=8?d="P":8>t&&t>=0?d="N":0>t&&t>=-8?d="M":-8>t&&t>=-16?d="L":-16>t&&t>=-24?d="K":-24>t&&t>=-32?d="J":-32>t&&t>=-40?d="H":-40>t&&t>=-48?d="G":-48>t&&t>=-56?d="F":-56>t&&t>=-64?d="E":-64>t&&t>=-72?d="D":-72>t&&t>=-80&&(d="C"),d}function Nn(t){var d=t%6;return 0===d&&(d=6),d}function ts(t){if(t&&0===t.length)throw"MGRSPoint coverting from nothing";for(var V,d=t.length,E=null,Y="",et=0;!/[A-Z]/.test(V=t.charAt(et));){if(et>=2)throw"MGRSPoint bad conversion from: "+t;Y+=V,et++}var lt=parseInt(Y,10);if(0===et||et+3>d)throw"MGRSPoint bad conversion from: "+t;var at=t.charAt(et++);if(at<="A"||"B"===at||"Y"===at||at>="Z"||"I"===at||"O"===at)throw"MGRSPoint zone letter "+at+" not handled: "+t;E=t.substring(et,et+=2);for(var yt=Nn(lt),It=function gn(t,d){for(var E="AJSAJS".charCodeAt(d-1),Y=1e5,V=!1;E!==t.charCodeAt(0);){if(73==++E&&E++,79===E&&E++,E>90){if(V)throw"Bad character: "+t;E=65,V=!0}Y+=1e5}return Y}(E.charAt(0),yt),Xt=function Js(t,d){if(t>"V")throw"MGRSPoint given invalid Northing "+t;for(var E="AFAFAF".charCodeAt(d-1),Y=0,V=!1;E!==t.charCodeAt(0);){if(73==++E&&E++,79===E&&E++,E>86){if(V)throw"Bad character: "+t;E=65,V=!0}Y+=1e5}return Y}(E.charAt(1),yt);Xt<_n(at);)Xt+=2e6;var At=d-et;if(At%2!=0)throw"MGRSPoint has to have an even number \nof digits after the zone letter and two 100km letters - front \nhalf for easting meters, second half for \nnorthing meters"+t;var ve,Ie,Ae,ne=At/2,me=0,pe=0;return ne>0&&(ve=1e5/Math.pow(10,ne),Ie=t.substring(et,et+ne),me=parseFloat(Ie)*ve,Ae=t.substring(et+ne),pe=parseFloat(Ae)*ve),{easting:me+It,northing:pe+Xt,zoneLetter:at,zoneNumber:lt,accuracy:ve}}function _n(t){var d;switch(t){case"C":d=11e5;break;case"D":d=2e6;break;case"E":d=28e5;break;case"F":d=37e5;break;case"G":d=46e5;break;case"H":d=55e5;break;case"J":d=64e5;break;case"K":d=73e5;break;case"L":d=82e5;break;case"M":d=91e5;break;case"N":d=0;break;case"P":d=8e5;break;case"Q":d=17e5;break;case"R":d=26e5;break;case"S":d=35e5;break;case"T":d=44e5;break;case"U":d=53e5;break;case"V":d=62e5;break;case"W":d=7e6;break;case"X":d=79e5;break;default:d=-1}if(d>=0)return d;throw"Invalid zone letter: "+t}function cn(t,d,E){if(!(this instanceof cn))return new cn(t,d,E);if(Array.isArray(t))this.x=t[0],this.y=t[1],this.z=t[2]||0;else if("object"==typeof t)this.x=t.x,this.y=t.y,this.z=t.z||0;else if("string"==typeof t&&typeof d>"u"){var Y=t.split(",");this.x=parseFloat(Y[0],10),this.y=parseFloat(Y[1],10),this.z=parseFloat(Y[2],10)||0}else this.x=t,this.y=d,this.z=E||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}cn.fromMGRS=function(t){return new cn(Qn(t))},cn.prototype.toMGRS=function(t){return Jn([this.x,this.y],t)};const Es=cn;var $s=.01953125,un=.01068115234375;function Ts(t){var d=[];d[0]=1-t*(.25+t*(.046875+t*($s+t*un))),d[1]=t*(.75-t*(.046875+t*($s+t*un)));var E=t*t;return d[2]=E*(.46875-t*(.013020833333333334+.007120768229166667*t)),d[3]=(E*=t)*(.3645833333333333-.005696614583333333*t),d[4]=E*t*.3076171875,d}function ki(t,d,E,Y){return Y[0]*t-(E*=d)*(Y[1]+(d*=d)*(Y[2]+d*(Y[3]+d*Y[4])))}function Ps(t,d,E){for(var Y=1/(1-d),V=t,et=20;et;--et){var lt=Math.sin(V),at=1-d*lt*lt;if(V-=at=(ki(V,lt,Math.cos(V),E)-t)*(at*Math.sqrt(at))*Y,Math.abs(at)i?Math.tan(E):0,ve=Math.pow(pe,2),Ie=Math.pow(ve,2);V=1-this.es*Math.pow(at,2),Xt/=Math.sqrt(V);var Ae=ki(E,at,yt,this.en);et=this.a*(this.k0*Xt*(1+At/6*(1-ve+ne+At/20*(5-18*ve+Ie+14*ne-58*ve*ne+At/42*(61+179*Ie-Ie*ve-479*ve)))))+this.x0,lt=this.a*(this.k0*(Ae-this.ml0+at*Y*Xt/2*(1+At/12*(5-ve+9*ne+4*me+At/30*(61+Ie-58*ve+270*ne-330*ve*ne+At/56*(1385+543*Ie-Ie*ve-3111*ve))))))+this.y0}else{var It=yt*Math.sin(Y);if(Math.abs(Math.abs(It)-1)=1){if(It-1>i)return 93;lt=0}else lt=Math.acos(lt);E<0&&(lt=-lt),lt=this.a*this.k0*(lt-this.lat0)+this.y0}return t.x=et,t.y=lt,t},inverse:function es(t){var d,E,Y,V,et=1/this.a*(t.x-this.x0),lt=1/this.a*(t.y-this.y0);if(this.es)if(E=Ps(d=this.ml0+lt/this.k0,this.es,this.en),Math.abs(E)i?Math.tan(E):0,pe=this.ep2*Math.pow(ne,2),ve=Math.pow(pe,2),Ie=Math.pow(me,2),Ae=Math.pow(Ie,2);d=1-this.es*Math.pow(At,2);var Ye=et*Math.sqrt(d)/this.k0,ti=Math.pow(Ye,2);Y=E-(d*=me)*ti/(1-this.es)*.5*(1-ti/12*(5+3*Ie-9*pe*Ie+pe-4*ve-ti/30*(61+90*Ie-252*pe*Ie+45*Ae+46*pe-ti/56*(1385+3633*Ie+4095*Ae+1574*Ae*Ie)))),V=Jt(this.long0+Ye*(1-ti/6*(1+2*Ie+pe-ti/20*(5+28*Ie+24*Ae+8*pe*Ie+6*pe-ti/42*(61+662*Ie+1320*Ae+720*Ae*Ie))))/ne)}else Y=c*Yt(lt),V=0;else{var at=Math.exp(et/this.k0),yt=.5*(at-1/at),Xt=Math.cos(this.lat0+lt/this.k0);d=Math.sqrt((1-Math.pow(Xt,2))/(1+Math.pow(yt,2))),Y=Math.asin(d),lt<0&&(Y=-Y),V=0===yt&&0===Xt?0:Jt(Math.atan2(yt,Xt)+this.long0)}return t.x=V,t.y=Y,t},names:["Fast_Transverse_Mercator","Fast Transverse Mercator"]};function kn(t){var d=Math.exp(t);return(d-1/d)/2}function Vi(t,d){t=Math.abs(t),d=Math.abs(d);var E=Math.max(t,d),Y=Math.min(t,d)/(E||1);return E*Math.sqrt(1+Math.pow(Y,2))}function bs(t,d){for(var lt,E=2*Math.cos(2*d),Y=t.length-1,V=t[Y],et=0;--Y>=0;)lt=E*V-et+t[Y],et=V,V=lt;return d+lt*Math.sin(2*d)}function mt(t,d,E){for(var pe,ve,Y=Math.sin(d),V=Math.cos(d),et=kn(E),lt=function qt(t){var d=Math.exp(t);return(d+1/d)/2}(E),at=2*V*lt,yt=-2*Y*et,It=t.length-1,Xt=t[It],At=0,ne=0,me=0;--It>=0;)pe=ne,ve=At,Xt=at*(ne=Xt)-pe-yt*(At=me)+t[It],me=yt*ne-ve+at*At;return[(at=Y*lt)*Xt-(yt=V*et)*me,at*me+yt*Xt]}const de={init:function Ct(){if(!this.approx&&(isNaN(this.es)||this.es<=0))throw new Error('Incorrect elliptical usage. Try using the +approx option in the proj string, or PROJECTION["Fast_Transverse_Mercator"] in the WKT.');this.approx&&(Tn.init.apply(this),this.forward=Tn.forward,this.inverse=Tn.inverse),this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var t=this.es/(1+Math.sqrt(1-this.es)),d=t/(2-t),E=d;this.cgb[0]=d*(2+d*(-2/3+d*(d*(116/45+d*(26/45+d*(-2854/675)))-2))),this.cbg[0]=d*(d*(2/3+d*(4/3+d*(-82/45+d*(32/45+d*(4642/4725)))))-2),this.cgb[1]=(E*=d)*(7/3+d*(d*(-227/45+d*(2704/315+d*(2323/945)))-1.6)),this.cbg[1]=E*(5/3+d*(-16/15+d*(-13/9+d*(904/315+d*(-1522/945))))),this.cgb[2]=(E*=d)*(56/15+d*(-136/35+d*(-1262/105+d*(73814/2835)))),this.cbg[2]=E*(-26/15+d*(34/21+d*(1.6+d*(-12686/2835)))),this.cgb[3]=(E*=d)*(4279/630+d*(-332/35+d*(-399572/14175))),this.cbg[3]=E*(1237/630+d*(d*(-24832/14175)-2.4)),this.cgb[4]=(E*=d)*(4174/315+d*(-144838/6237)),this.cbg[4]=E*(-734/315+d*(109598/31185)),this.cgb[5]=(E*=d)*(601676/22275),this.cbg[5]=E*(444337/155925),E=Math.pow(d,2),this.Qn=this.k0/(1+d)*(1+E*(1/4+E*(1/64+E/256))),this.utg[0]=d*(d*(2/3+d*(-37/96+d*(1/360+d*(81/512+d*(-96199/604800)))))-.5),this.gtu[0]=d*(.5+d*(-2/3+d*(5/16+d*(41/180+d*(-127/288+d*(7891/37800)))))),this.utg[1]=E*(-1/48+d*(-1/15+d*(437/1440+d*(-46/105+d*(1118711/3870720))))),this.gtu[1]=E*(13/48+d*(d*(557/1440+d*(281/630+d*(-1983433/1935360)))-.6)),this.utg[2]=(E*=d)*(-17/480+d*(37/840+d*(209/4480+d*(-5569/90720)))),this.gtu[2]=E*(61/240+d*(-103/140+d*(15061/26880+d*(167603/181440)))),this.utg[3]=(E*=d)*(-4397/161280+d*(11/504+d*(830251/7257600))),this.gtu[3]=E*(49561/161280+d*(-179/168+d*(6601661/7257600))),this.utg[4]=(E*=d)*(-4583/161280+d*(108847/3991680)),this.gtu[4]=E*(34729/80640+d*(-3418889/1995840)),this.utg[5]=(E*=d)*(-20648693/638668800),this.gtu[5]=.6650675310896665*E;var Y=bs(this.cbg,this.lat0);this.Zb=-this.Qn*(Y+function Or(t,d){for(var lt,E=2*Math.cos(d),Y=t.length-1,V=t[Y],et=0;--Y>=0;)lt=E*V-et+t[Y],et=V,V=lt;return Math.sin(d)*lt}(this.gtu,2*Y))},forward:function Rt(t){var d=Jt(t.x-this.long0),E=t.y;E=bs(this.cbg,E);var Y=Math.sin(E),V=Math.cos(E),et=Math.sin(d),lt=Math.cos(d);E=Math.atan2(Y,lt*V),d=Math.atan2(et*V,Vi(Y,V*lt)),d=function Ir(t){var d=Math.abs(t);return d=function nr(t){var d=1+t,E=d-1;return 0===E?t:t*Math.log(d)/E}(d*(1+d/(Vi(1,d)+1))),t<0?-d:d}(Math.tan(d));var yt,It,at=mt(this.gtu,2*E,2*d);return E+=at[0],d+=at[1],Math.abs(d)<=2.623395162778?(yt=this.a*(this.Qn*d)+this.x0,It=this.a*(this.Qn*E+this.Zb)+this.y0):(yt=1/0,It=1/0),t.x=yt,t.y=It,t},inverse:function jt(t){var Y,V,d=1/this.a*(t.x-this.x0),E=1/this.a*(t.y-this.y0);if(E=(E-this.Zb)/this.Qn,d/=this.Qn,Math.abs(d)<=2.623395162778){var et=mt(this.utg,2*E,2*d);E+=et[0],d+=et[1],d=Math.atan(kn(d));var lt=Math.sin(E),at=Math.cos(E),yt=Math.sin(d),It=Math.cos(d);E=Math.atan2(lt*It,Vi(yt,It*at)),Y=Jt((d=Math.atan2(yt,It*at))+this.long0),V=bs(this.cgb,E)}else Y=1/0,V=1/0;return t.x=Y,t.y=V,t},names:["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc","Transverse_Mercator","Transverse Mercator","tmerc"]},li={init:function Be(){var t=function Re(t,d){if(void 0===t){if((t=Math.floor(30*(Jt(d)+Math.PI)/Math.PI)+1)<0)return 0;if(t>60)return 60}return t}(this.zone,this.long0);if(void 0===t)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(t)-183)*l,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,de.init.apply(this),this.forward=de.forward,this.inverse=de.inverse},names:["Universal Transverse Mercator System","utm"],dependsOn:"etmerc"};function fi(t,d){return Math.pow((1-t)/(1+t),d)}const Zi={init:function Ci(){var t=Math.sin(this.lat0),d=Math.cos(this.lat0);d*=d,this.rc=Math.sqrt(1-this.es)/(1-this.es*t*t),this.C=Math.sqrt(1+this.es*d*d/(1-this.es)),this.phic0=Math.asin(t/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+e)/(Math.pow(Math.tan(.5*this.lat0+e),this.C)*fi(this.e*t,this.ratexp))},forward:function wi(t){var d=t.x,E=t.y;return t.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*E+e),this.C)*fi(this.e*Math.sin(E),this.ratexp))-c,t.x=this.C*d,t},inverse:function Ti(t){for(var E=t.x/this.C,Y=t.y,V=Math.pow(Math.tan(.5*Y+e)/this.K,1/this.C),et=20;et>0&&(Y=2*Math.atan(V*fi(this.e*Math.sin(t.y),-.5*this.e))-c,!(Math.abs(Y-t.y)<1e-14));--et)t.y=Y;return et?(t.x=E,t.y=Y,t):null},names:["gauss"]},Yi={init:function bi(){Zi.init.apply(this),this.rc&&(this.sinc0=Math.sin(this.phic0),this.cosc0=Math.cos(this.phic0),this.R2=2*this.rc,this.title||(this.title="Oblique Stereographic Alternative"))},forward:function Bi(t){var d,E,Y,V;return t.x=Jt(t.x-this.long0),Zi.forward.apply(this,[t]),d=Math.sin(t.y),E=Math.cos(t.y),Y=Math.cos(t.x),t.x=(V=this.k0*this.R2/(1+this.sinc0*d+this.cosc0*E*Y))*E*Math.sin(t.x),t.y=V*(this.cosc0*d-this.sinc0*E*Y),t.x=this.a*t.x+this.x0,t.y=this.a*t.y+this.y0,t},inverse:function Xi(t){var d,E,Y,V,et;if(t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,t.x/=this.k0,t.y/=this.k0,et=Math.sqrt(t.x*t.x+t.y*t.y)){var lt=2*Math.atan2(et,this.R2);d=Math.sin(lt),E=Math.cos(lt),V=Math.asin(E*this.sinc0+t.y*d*this.cosc0/et),Y=Math.atan2(t.x*d,et*this.cosc0*E-t.y*this.sinc0*d)}else V=this.phic0,Y=0;return t.x=Y,t.y=V,Zi.inverse.apply(this,[t]),t.x=Jt(t.x+this.long0),t},names:["Stereographic_North_Pole","Oblique_Stereographic","Polar_Stereographic","sterea","Oblique Stereographic Alternative","Double_Stereographic"]},is={init:function Zn(){this.coslat0=Math.cos(this.lat0),this.sinlat0=Math.sin(this.lat0),this.sphere?1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=i&&(this.k0=.5*(1+Yt(this.lat0)*Math.sin(this.lat_ts))):(Math.abs(this.coslat0)<=i&&(this.con=this.lat0>0?1:-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=i&&(this.k0=.5*this.cons*Kt(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/ye(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=Kt(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-c,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))},forward:function Bn(t){var et,lt,at,yt,It,Xt,d=t.x,E=t.y,Y=Math.sin(E),V=Math.cos(E),At=Jt(d-this.long0);return Math.abs(Math.abs(d-this.long0)-Math.PI)<=i&&Math.abs(E+this.lat0)<=i?(t.x=NaN,t.y=NaN,t):this.sphere?(et=2*this.k0/(1+this.sinlat0*Y+this.coslat0*V*Math.cos(At)),t.x=this.a*et*V*Math.sin(At)+this.x0,t.y=this.a*et*(this.coslat0*Y-this.sinlat0*V*Math.cos(At))+this.y0,t):(lt=2*Math.atan(this.ssfn_(E,Y,this.e))-c,yt=Math.cos(lt),at=Math.sin(lt),Math.abs(this.coslat0)<=i?(It=ye(this.e,E*this.con,this.con*Y),t.x=this.x0+(Xt=2*this.a*this.k0*It/this.cons)*Math.sin(d-this.long0),t.y=this.y0-this.con*Xt*Math.cos(d-this.long0),t):(Math.abs(this.sinlat0)0?this.long0+Math.atan2(t.x,-1*t.y):this.long0+Math.atan2(t.x,t.y)):Jt(this.long0+Math.atan2(t.x*Math.sin(at),lt*this.coslat0*Math.cos(at)-t.y*this.sinlat0*Math.sin(at))),t.x=d,t.y=E,t)}if(Math.abs(this.coslat0)<=i){if(lt<=i)return E=this.lat0,t.x=d=this.long0,t.y=E,t;t.x*=this.con,t.y*=this.con,E=this.con*Pe(this.e,lt*this.cons/(2*this.a*this.k0)),d=this.con*Jt(this.con*this.long0+Math.atan2(t.x,-1*t.y))}else V=2*Math.atan(lt*this.cosX0/(2*this.a*this.k0*this.ms1)),d=this.long0,lt<=i?et=this.X0:(et=Math.asin(Math.cos(V)*this.sinX0+t.y*Math.sin(V)*this.cosX0/lt),d=Jt(this.long0+Math.atan2(t.x*Math.sin(V),lt*this.cosX0*Math.cos(V)-t.y*this.sinX0*Math.sin(V)))),E=-1*Pe(this.e,Math.tan(.5*(c+et)));return t.x=d,t.y=E,t},names:["stere","Stereographic_South_Pole","Polar Stereographic (variant B)"],ssfn_:function sr(t,d,E){return d*=E,Math.tan(.5*(c+t))*Math.pow((1-d)/(1+d),.5*E)}},zo={init:function or(){var t=this.lat0;this.lambda0=this.long0;var d=Math.sin(t),E=this.a,V=1/this.rf,et=2*V-Math.pow(V,2),lt=this.e=Math.sqrt(et);this.R=this.k0*E*Math.sqrt(1-et)/(1-et*Math.pow(d,2)),this.alpha=Math.sqrt(1+et/(1-et)*Math.pow(Math.cos(t),4)),this.b0=Math.asin(d/this.alpha);var at=Math.log(Math.tan(Math.PI/4+this.b0/2)),yt=Math.log(Math.tan(Math.PI/4+t/2)),It=Math.log((1+lt*d)/(1-lt*d));this.K=at-this.alpha*yt+this.alpha*lt/2*It},forward:function Uo(t){var d=Math.log(Math.tan(Math.PI/4-t.y/2)),E=this.e/2*Math.log((1+this.e*Math.sin(t.y))/(1-this.e*Math.sin(t.y))),V=2*(Math.atan(Math.exp(-this.alpha*(d+E)+this.K))-Math.PI/4),et=this.alpha*(t.x-this.lambda0),lt=Math.atan(Math.sin(et)/(Math.sin(this.b0)*Math.tan(V)+Math.cos(this.b0)*Math.cos(et))),at=Math.asin(Math.cos(this.b0)*Math.sin(V)-Math.sin(this.b0)*Math.cos(V)*Math.cos(et));return t.y=this.R/2*Math.log((1+Math.sin(at))/(1-Math.sin(at)))+this.y0,t.x=this.R*lt+this.x0,t},inverse:function jo(t){for(var Y=(t.x-this.x0)/this.R,V=2*(Math.atan(Math.exp((t.y-this.y0)/this.R))-Math.PI/4),et=Math.asin(Math.cos(this.b0)*Math.sin(V)+Math.sin(this.b0)*Math.cos(V)*Math.cos(Y)),lt=Math.atan(Math.sin(Y)/(Math.cos(this.b0)*Math.cos(Y)-Math.sin(this.b0)*Math.tan(V))),at=this.lambda0+lt/this.alpha,yt=0,It=et,Xt=-1e3,At=0;Math.abs(It-Xt)>1e-7;){if(++At>20)return;yt=1/this.alpha*(Math.log(Math.tan(Math.PI/4+et/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(It))/2)),Xt=It,It=2*Math.atan(Math.exp(yt))-Math.PI/2}return t.x=at,t.y=It,t},names:["somerc"]};var ns=1e-7;const so={init:function Wo(){var t,d,E,Y,V,et,lt,at,yt,It,At,Xt=0,ne=0,me=0,pe=0,ve=0,Ie=0,Ae=0;this.no_off=function ss(t){var E="object"==typeof t.PROJECTION?Object.keys(t.PROJECTION)[0]:t.PROJECTION;return"no_uoff"in t||"no_off"in t||-1!==["Hotine_Oblique_Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin"].indexOf(E)}(this),this.no_rot="no_rot"in this;var ti=!1;"alpha"in this&&(ti=!0);var ii=!1;if("rectified_grid_angle"in this&&(ii=!0),ti&&(Ae=this.alpha),ii&&(Xt=this.rectified_grid_angle*l),ti||ii)ne=this.longc;else if(me=this.long1,ve=this.lat1,pe=this.long2,Ie=this.lat2,Math.abs(ve-Ie)<=ns||(t=Math.abs(ve))<=ns||Math.abs(t-c)<=ns||Math.abs(Math.abs(this.lat0)-c)<=ns||Math.abs(Math.abs(Ie)-c)<=ns)throw new Error;var be=1-this.es;d=Math.sqrt(be),Math.abs(this.lat0)>i?(at=Math.sin(this.lat0),E=Math.cos(this.lat0),t=1-this.es*at*at,this.B=E*E,this.B=Math.sqrt(1+this.es*this.B*this.B/be),this.A=this.B*this.k0*d/t,(V=(Y=this.B*d/(E*Math.sqrt(t)))*Y-1)<=0?V=0:(V=Math.sqrt(V),this.lat0<0&&(V=-V)),this.E=V+=Y,this.E*=Math.pow(ye(this.e,this.lat0,at),this.B)):(this.B=1/d,this.A=this.k0,this.E=Y=V=1),ti||ii?(ti?(At=Math.asin(Math.sin(Ae)/Y),ii||(Xt=Ae)):(At=Xt,Ae=Math.asin(Y*Math.sin(At))),this.lam0=ne-Math.asin(.5*(V-1/V)*Math.tan(At))/this.B):(et=Math.pow(ye(this.e,ve,Math.sin(ve)),this.B),lt=Math.pow(ye(this.e,Ie,Math.sin(Ie)),this.B),V=this.E/et,yt=(lt-et)/(lt+et),It=((It=this.E*this.E)-lt*et)/(It+lt*et),(t=me-pe)<-Math.pi?pe-=P:t>Math.pi&&(pe+=P),this.lam0=Jt(.5*(me+pe)-Math.atan(It*Math.tan(.5*this.B*(me-pe))/yt)/this.B),At=Math.atan(2*Math.sin(this.B*Jt(me-this.lam0))/(V-1/V)),Xt=Ae=Math.asin(Y*Math.sin(At))),this.singam=Math.sin(At),this.cosgam=Math.cos(At),this.sinrot=Math.sin(Xt),this.cosrot=Math.cos(Xt),this.rB=1/this.B,this.ArB=this.A*this.rB,this.BrA=1/this.ArB,this.no_off?this.u_0=0:(this.u_0=Math.abs(this.ArB*Math.atan(Math.sqrt(Y*Y-1)/Math.cos(Ae))),this.lat0<0&&(this.u_0=-this.u_0)),V=.5*At,this.v_pole_n=this.ArB*Math.log(Math.tan(e-V)),this.v_pole_s=this.ArB*Math.log(Math.tan(e+V))},forward:function Ko(t){var E,Y,V,et,lt,at,yt,It,d={};if(t.x=t.x-this.lam0,Math.abs(Math.abs(t.y)-c)>i){if(E=.5*((lt=this.E/Math.pow(ye(this.e,t.y,Math.sin(t.y)),this.B))-(at=1/lt)),Y=.5*(lt+at),et=Math.sin(this.B*t.x),V=(E*this.singam-et*this.cosgam)/Y,Math.abs(Math.abs(V)-1)0?this.v_pole_n:this.v_pole_s,yt=this.ArB*t.y;return this.no_rot?(d.x=yt,d.y=It):(d.x=It*this.cosrot+(yt-=this.u_0)*this.sinrot,d.y=yt*this.cosrot-It*this.sinrot),d.x=this.a*d.x+this.x0,d.y=this.a*d.y+this.y0,d},inverse:function Vo(t){var d,E,Y,V,et,lt,at,yt={};if(t.x=1/this.a*(t.x-this.x0),t.y=1/this.a*(t.y-this.y0),this.no_rot?(E=t.y,d=t.x):(E=t.x*this.cosrot-t.y*this.sinrot,d=t.y*this.cosrot+t.x*this.sinrot+this.u_0),V=.5*((Y=Math.exp(-this.BrA*E))-1/Y),et=.5*(Y+1/Y),at=((lt=Math.sin(this.BrA*d))*this.cosgam+V*this.singam)/et,Math.abs(Math.abs(at)-1)i?Math.log(Y/at)/Math.log(V/yt):d,isNaN(this.ns)&&(this.ns=d),this.f0=Y/(this.ns*Math.pow(V,this.ns)),this.rh=this.a*this.f0*Math.pow(It,this.ns),this.title||(this.title="Lambert Conformal Conic")}},forward:function Pn(t){var d=t.x,E=t.y;Math.abs(2*Math.abs(E)-Math.PI)<=i&&(E=Yt(E)*(c-2*i));var V,et,Y=Math.abs(Math.abs(E)-c);if(Y>i)V=ye(this.e,E,Math.sin(E)),et=this.a*this.f0*Math.pow(V,this.ns);else{if((Y=E*this.ns)<=0)return null;et=0}var lt=this.ns*Jt(d-this.long0);return t.x=this.k0*(et*Math.sin(lt))+this.x0,t.y=this.k0*(this.rh-et*Math.cos(lt))+this.y0,t},inverse:function oo(t){var d,E,Y,V,et,lt=(t.x-this.x0)/this.k0,at=this.rh-(t.y-this.y0)/this.k0;this.ns>0?(d=Math.sqrt(lt*lt+at*at),E=1):(d=-Math.sqrt(lt*lt+at*at),E=-1);var yt=0;if(0!==d&&(yt=Math.atan2(E*lt,E*at)),0!==d||this.ns>0){if(E=1/this.ns,Y=Math.pow(d/(this.a*this.f0),E),-9999===(V=Pe(this.e,Y)))return null}else V=-c;return et=Jt(yt/this.ns+this.long0),t.x=et,t.y=V,t},names:["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_1SP","Lambert_Conformal_Conic_2SP","lcc","Lambert Conic Conformal (1SP)","Lambert Conic Conformal (2SP)"]},Yo={init:function ao(){this.a=6377397.155,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.4334234309119251),this.k0||(this.k0=.9999),this.s45=.785398163397448,this.s90=2*this.s45,this.fi0=this.lat0,this.e2=this.es,this.e=Math.sqrt(this.e2),this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2)),this.uq=1.04216856380474,this.u0=Math.asin(Math.sin(this.fi0)/this.alfa),this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2),this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g,this.k1=this.k0,this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2)),this.s0=1.37008346281555,this.n=Math.sin(this.s0),this.ro0=this.k1*this.n0/Math.tan(this.s0),this.ad=this.s90-this.uq},forward:function lo(t){var d,E,Y,V,et,lt,at,It=t.y,Xt=Jt(t.x-this.long0);return d=Math.pow((1+this.e*Math.sin(It))/(1-this.e*Math.sin(It)),this.alfa*this.e/2),E=2*(Math.atan(this.k*Math.pow(Math.tan(It/2+this.s45),this.alfa)/d)-this.s45),Y=-Xt*this.alfa,V=Math.asin(Math.cos(this.ad)*Math.sin(E)+Math.sin(this.ad)*Math.cos(E)*Math.cos(Y)),et=Math.asin(Math.cos(E)*Math.sin(Y)/Math.cos(V)),lt=this.n*et,at=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(V/2+this.s45),this.n),t.y=at*Math.cos(lt)/1,t.x=at*Math.sin(lt)/1,this.czech||(t.y*=-1,t.x*=-1),t},inverse:function ho(t){var d,E,Y,V,lt,at,yt,It=t.x;t.x=t.y,t.y=It,this.czech||(t.y*=-1,t.x*=-1),lt=Math.sqrt(t.x*t.x+t.y*t.y),V=Math.atan2(t.y,t.x)/Math.sin(this.s0),Y=2*(Math.atan(Math.pow(this.ro0/lt,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),d=Math.asin(Math.cos(this.ad)*Math.sin(Y)-Math.sin(this.ad)*Math.cos(Y)*Math.cos(V)),E=Math.asin(Math.cos(Y)*Math.sin(V)/Math.cos(d)),t.x=this.long0-E/this.alfa,at=d,yt=0;var Xt=0;do{t.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(d/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(at))/(1-this.e*Math.sin(at)),this.e/2))-this.s45),Math.abs(at-t.y)<1e-10&&(yt=1),at=t.y,Xt+=1}while(0===yt&&Xt<15);return Xt>=15?null:t},names:["Krovak","krovak"]};function Pi(t,d,E,Y,V){return t*V-d*Math.sin(2*V)+E*Math.sin(4*V)-Y*Math.sin(6*V)}function rs(t){return 1-.25*t*(1+t/16*(3+1.25*t))}function Un(t){return.375*t*(1+.25*t*(1+.46875*t))}function dn(t){return.05859375*t*t*(1+.75*t)}function Is(t){return t*t*t*(35/3072)}function os(t,d,E){var Y=d*E;return t/Math.sqrt(1-Y*Y)}function jn(t){return Math.abs(t)1e-7?(1-t*t)*(d/(1-(E=t*d)*E)-.5/t*Math.log((1-E)/(1+E))):2*d}const Fr={init:function Ar(){var d,t=Math.abs(this.lat0);if(this.mode=Math.abs(t-c)0)switch(this.qp=Sn(this.e,1),this.mmf=.5/(1-this.es),this.apa=function hs(t){var d,E=[];return E[0]=.3333333333333333*t,E[0]+=.17222222222222222*(d=t*t),E[1]=.06388888888888888*d,E[0]+=.10257936507936508*(d*=t),E[1]+=.0664021164021164*d,E[2]=.016415012942191543*d,E}(this.es),this.mode){case this.N_POLE:case this.S_POLE:this.dd=1;break;case this.EQUIT:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case this.OBLIQ:this.rq=Math.sqrt(.5*this.qp),d=Math.sin(this.lat0),this.sinb1=Sn(this.e,d)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*d*d)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd}else this.mode===this.OBLIQ&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))},forward:function co(t){var d,E,Y,V,et,lt,at,yt,It,Xt,At=t.x,ne=t.y;if(At=Jt(At-this.long0),this.sphere){if(et=Math.sin(ne),Xt=Math.cos(ne),Y=Math.cos(At),this.mode===this.OBLIQ||this.mode===this.EQUIT){if((E=this.mode===this.EQUIT?1+Xt*Y:1+this.sinph0*et+this.cosph0*Xt*Y)<=i)return null;d=(E=Math.sqrt(2/E))*Xt*Math.sin(At),E*=this.mode===this.EQUIT?et:this.cosph0*et-this.sinph0*Xt*Y}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(Y=-Y),Math.abs(ne+this.lat0)=0?(d=(It=Math.sqrt(lt))*V,E=Y*(this.mode===this.S_POLE?It:-It)):d=E=0}}return t.x=this.a*d+this.x0,t.y=this.a*E+this.y0,t},inverse:function uo(t){t.x-=this.x0,t.y-=this.y0;var Y,V,et,lt,at,yt,It,d=t.x/this.a,E=t.y/this.a;if(this.sphere){var At,Xt=0,ne=0;if((V=.5*(At=Math.sqrt(d*d+E*E)))>1)return null;switch(V=2*Math.asin(V),(this.mode===this.OBLIQ||this.mode===this.EQUIT)&&(ne=Math.sin(V),Xt=Math.cos(V)),this.mode){case this.EQUIT:V=Math.abs(At)<=i?0:Math.asin(E*ne/At),d*=ne,E=Xt*At;break;case this.OBLIQ:V=Math.abs(At)<=i?this.lat0:Math.asin(Xt*this.sinph0+E*ne*this.cosph0/At),d*=ne*this.cosph0,E=(Xt-Math.sin(V)*this.sinph0)*At;break;case this.N_POLE:E=-E,V=c-V;break;case this.S_POLE:V-=c}Y=0!==E||this.mode!==this.EQUIT&&this.mode!==this.OBLIQ?Math.atan2(d,E):0}else{if(It=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(d/=this.dd,E*=this.dd,(yt=Math.sqrt(d*d+E*E))1&&(t=t>1?1:-1),Math.asin(t)}const mo={init:function Gn(){Math.abs(this.lat1+this.lat2)i?(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)},forward:function lr(t){var d=t.x,E=t.y;this.sin_phi=Math.sin(E),this.cos_phi=Math.cos(E);var Y=Sn(this.e3,this.sin_phi),V=this.a*Math.sqrt(this.c-this.ns0*Y)/this.ns0,et=this.ns0*Jt(d-this.long0),lt=V*Math.sin(et)+this.x0,at=this.rh-V*Math.cos(et)+this.y0;return t.x=lt,t.y=at,t},inverse:function Nr(t){var d,Y,V,et,lt;return t.x-=this.x0,t.y=this.rh-t.y+this.y0,this.ns0>=0?(d=Math.sqrt(t.x*t.x+t.y*t.y),Y=1):(d=-Math.sqrt(t.x*t.x+t.y*t.y),Y=-1),V=0,0!==d&&(V=Math.atan2(Y*t.x,Y*t.y)),Y=d*this.ns0/this.a,lt=this.sphere?Math.asin((this.c-Y*Y)/(2*this.ns0)):this.phi1z(this.e3,(this.c-Y*Y)/this.ns0),et=Jt(V/this.ns0+this.long0),t.x=et,t.y=lt,t},names:["Albers_Conic_Equal_Area","Albers","aea"],phi1z:function hr(t,d){var E,V,et,lt,at=Ji(.5*d);if(t0||Math.abs(lt)<=i?(at=this.x0+1*this.a*E*Math.sin(Y)/lt,yt=this.y0+1*this.a*(this.cos_p14*d-this.sin_p14*E*V)/lt):(at=this.x0+this.infinity_dist*E*Math.sin(Y),yt=this.y0+this.infinity_dist*(this.cos_p14*d-this.sin_p14*E*V)),t.x=at,t.y=yt,t},inverse:function kr(t){var d,E,Y,V,et,lt;return t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,t.x/=this.k0,t.y/=this.k0,(d=Math.sqrt(t.x*t.x+t.y*t.y))?(V=Math.atan2(d,this.rc),E=Math.sin(V),lt=Ji((Y=Math.cos(V))*this.sin_p14+t.y*E*this.cos_p14/d),et=Math.atan2(t.x*E,d*this.cos_p14*Y-t.y*this.sin_p14*E),et=Jt(this.long0+et)):(lt=this.phic0,et=0),t.x=et,t.y=lt,t},names:["gnom"]},bn={init:function Zr(){this.sphere||(this.k0=Kt(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))},forward:function Ls(t){var Y,V,E=t.y,et=Jt(t.x-this.long0);if(this.sphere)Y=this.x0+this.a*et*Math.cos(this.lat_ts),V=this.y0+this.a*Math.sin(E)/Math.cos(this.lat_ts);else{var lt=Sn(this.e,Math.sin(E));Y=this.x0+this.a*this.k0*et,V=this.y0+this.a*lt*.5/this.k0}return t.x=Y,t.y=V,t},inverse:function vn(t){var d,E;return t.x-=this.x0,t.y-=this.y0,this.sphere?(d=Jt(this.long0+t.x/this.a/Math.cos(this.lat_ts)),E=Math.asin(t.y/this.a*Math.cos(this.lat_ts))):(E=function Eo(t,d){var E=1-(1-t*t)/(2*t)*Math.log((1-t)/(1+t));if(Math.abs(Math.abs(d)-E)<1e-6)return d<0?-1*c:c;for(var V,et,lt,at,Y=Math.asin(.5*d),yt=0;yt<30;yt++)if(et=Math.sin(Y),lt=Math.cos(Y),at=t*et,Y+=V=Math.pow(1-at*at,2)/(2*lt)*(d/(1-t*t)-et/(1-at*at)+.5/t*Math.log((1-at)/(1+at))),Math.abs(V)<=1e-10)return Y;return NaN}(this.e,2*t.y*this.k0/this.a),d=Jt(this.long0+t.x/(this.a*this.k0))),t.x=d,t.y=E,t},names:["cea"]},ds={init:function us(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Equidistant Cylindrical (Plate Carre)",this.rc=Math.cos(this.lat_ts)},forward:function Ur(t){var E=t.y,Y=Jt(t.x-this.long0),V=jn(E-this.lat0);return t.x=this.x0+this.a*Y*this.rc,t.y=this.y0+this.a*V,t},inverse:function ur(t){var E=t.y;return t.x=Jt(this.long0+(t.x-this.x0)/(this.a*this.rc)),t.y=jn(this.lat0+(E-this.y0)/this.a),t},names:["Equirectangular","Equidistant_Cylindrical","eqc"]},zn={init:function As(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=rs(this.es),this.e1=Un(this.es),this.e2=dn(this.es),this.e3=Is(this.es),this.ml0=this.a*Pi(this.e0,this.e1,this.e2,this.e3,this.lat0)},forward:function tn(t){var Y,V,et,E=t.y,lt=Jt(t.x-this.long0);if(et=lt*Math.sin(E),this.sphere)Math.abs(E)<=i?(Y=this.a*lt,V=-1*this.a*this.lat0):(Y=this.a*Math.sin(et)/Math.tan(E),V=this.a*(jn(E-this.lat0)+(1-Math.cos(et))/Math.tan(E)));else if(Math.abs(E)<=i)Y=this.a*lt,V=-1*this.ml0;else{var at=os(this.a,this.e,Math.sin(E))/Math.tan(E);Y=at*Math.sin(et),V=this.a*Pi(this.e0,this.e1,this.e2,this.e3,E)-this.ml0+at*(1-Math.cos(et))}return t.x=Y+this.x0,t.y=V+this.y0,t},inverse:function fr(t){var d,E,Y,V,et,lt,at,yt,It;if(Y=t.x-this.x0,V=t.y-this.y0,this.sphere)if(Math.abs(V+this.a*this.lat0)<=i)d=Jt(Y/this.a+this.long0),E=0;else{var Xt;for(at=Y*Y/this.a/this.a+(lt=this.lat0+V/this.a)*lt,yt=lt,et=20;et;--et)if(yt+=It=-1*(lt*(yt*(Xt=Math.tan(yt))+1)-yt-.5*(yt*yt+at)*Xt)/((yt-lt)/Xt-1),Math.abs(It)<=i){E=yt;break}d=Jt(this.long0+Math.asin(Y*Math.tan(yt)/this.a)/Math.sin(E))}else if(Math.abs(V+this.ml0)<=i)E=0,d=Jt(this.long0+Y/this.a);else{var At,ne,me,pe,ve;for(at=Y*Y/this.a/this.a+(lt=(this.ml0+V)/this.a)*lt,yt=lt,et=20;et;--et)if(ve=this.e*Math.sin(yt),At=Math.sqrt(1-ve*ve)*Math.tan(yt),ne=this.a*Pi(this.e0,this.e1,this.e2,this.e3,yt),me=this.e0-2*this.e1*Math.cos(2*yt)+4*this.e2*Math.cos(4*yt)-6*this.e3*Math.cos(6*yt),yt-=It=(lt*(At*(pe=ne/this.a)+1)-pe-.5*At*(pe*pe+at))/(this.es*Math.sin(2*yt)*(pe*pe+at-2*lt*pe)/(4*At)+(lt-pe)*(At*me-2/Math.sin(2*yt))-me),Math.abs(It)<=i){E=yt;break}At=Math.sqrt(1-this.es*Math.pow(Math.sin(E),2))*Math.tan(E),d=Jt(this.long0+Math.asin(Y*At/this.a)/Math.sin(E))}return t.x=d,t.y=E,t},names:["Polyconic","poly"]},_r={init:function ks(){this.A=[],this.A[1]=.6399175073,this.A[2]=-.1358797613,this.A[3]=.063294409,this.A[4]=-.02526853,this.A[5]=.0117879,this.A[6]=-.0055161,this.A[7]=.0026906,this.A[8]=-.001333,this.A[9]=67e-5,this.A[10]=-34e-5,this.B_re=[],this.B_im=[],this.B_re[1]=.7557853228,this.B_im[1]=0,this.B_re[2]=.249204646,this.B_im[2]=.003371507,this.B_re[3]=-.001541739,this.B_im[3]=.04105856,this.B_re[4]=-.10162907,this.B_im[4]=.01727609,this.B_re[5]=-.26623489,this.B_im[5]=-.36249218,this.B_re[6]=-.6870983,this.B_im[6]=-1.1651967,this.C_re=[],this.C_im=[],this.C_re[1]=1.3231270439,this.C_im[1]=0,this.C_re[2]=-.577245789,this.C_im[2]=-.007809598,this.C_re[3]=.508307513,this.C_im[3]=-.112208952,this.C_re[4]=-.15094762,this.C_im[4]=.18200602,this.C_re[5]=1.01418179,this.C_im[5]=1.64497696,this.C_re[6]=1.9660549,this.C_im[6]=2.5127645,this.D=[],this.D[1]=1.5627014243,this.D[2]=.5185406398,this.D[3]=-.03333098,this.D[4]=-.1052906,this.D[5]=-.0368594,this.D[6]=.007317,this.D[7]=.0122,this.D[8]=.00394,this.D[9]=-.0013},forward:function gr(t){var d,lt=(t.y-this.lat0)/h*1e-5,at=t.x-this.long0,yt=1,It=0;for(d=1;d<=10;d++)It+=this.A[d]*(yt*=lt);var ve,Xt=It,At=at,ne=1,me=0,Ie=0,Ae=0;for(d=1;d<=6;d++)ve=me*Xt+ne*At,Ie=Ie+this.B_re[d]*(ne=ne*Xt-me*At)-this.B_im[d]*(me=ve),Ae=Ae+this.B_im[d]*ne+this.B_re[d]*me;return t.x=Ae*this.a+this.x0,t.y=Ie*this.a+this.y0,t},inverse:function fs(t){var d,At,lt=(t.y-this.y0)/this.a,at=(t.x-this.x0)/this.a,yt=1,It=0,ne=0,me=0;for(d=1;d<=6;d++)At=It*lt+yt*at,ne=ne+this.C_re[d]*(yt=yt*lt-It*at)-this.C_im[d]*(It=At),me=me+this.C_im[d]*yt+this.C_re[d]*It;for(var pe=0;pe.999999999999&&(E=.999999999999),d=Math.asin(E);var Y=Jt(this.long0+t.x/(.900316316158*this.a*Math.cos(d)));Y<-Math.PI&&(Y=-Math.PI),Y>Math.PI&&(Y=Math.PI),E=(2*d+Math.sin(2*d))/Math.PI,Math.abs(E)>1&&(E=1);var V=Math.asin(E);return t.x=Y,t.y=V,t},names:["Mollweide","moll"]},Ge={init:function mr(){Math.abs(this.lat1+this.lat2)=0?(E=Math.sqrt(t.x*t.x+t.y*t.y),d=1):(E=-Math.sqrt(t.x*t.x+t.y*t.y),d=-1);var et=0;return 0!==E&&(et=Math.atan2(d*t.x,d*t.y)),this.sphere?(V=Jt(this.long0+et/this.ns),Y=jn(this.g-E/this.a),t.x=V,t.y=Y,t):(Y=as(this.g-E/this.a,this.e0,this.e1,this.e2,this.e3),V=Jt(this.long0+et/this.ns),t.x=V,t.y=Y,t)},names:["Equidistant_Conic","eqdc"]},On={init:function yr(){this.R=this.a},forward:function Kr(t){var V,et,E=t.y,Y=Jt(t.x-this.long0);Math.abs(E)<=i&&(V=this.x0+this.R*Y,et=this.y0);var lt=Ji(2*Math.abs(E/Math.PI));(Math.abs(Y)<=i||Math.abs(Math.abs(E)-c)<=i)&&(V=this.x0,et=E>=0?this.y0+Math.PI*this.R*Math.tan(.5*lt):this.y0+Math.PI*this.R*-Math.tan(.5*lt));var at=.5*Math.abs(Math.PI/Y-Y/Math.PI),yt=at*at,It=Math.sin(lt),Xt=Math.cos(lt),At=Xt/(It+Xt-1),me=At*(2/It-1),pe=me*me,ve=Math.PI*this.R*(at*(At-pe)+Math.sqrt(yt*(At-pe)*(At-pe)-(pe+yt)*(At*At-pe)))/(pe+yt);Y<0&&(ve=-ve),V=this.x0+ve;var Ie=yt+At;return ve=Math.PI*this.R*(me*Ie-at*Math.sqrt((pe+yt)*(yt+1)-Ie*Ie))/(pe+yt),et=E>=0?this.y0+ve:this.y0-ve,t.x=V,t.y=et,t},inverse:function To(t){var d,E,Y,V,et,lt,at,yt,It,Xt,At,ne;return t.x-=this.x0,t.y-=this.y0,At=Math.PI*this.R,et=(Y=t.x/At)*Y+(V=t.y/At)*V,At=3*(V*V/(yt=-2*(lt=-Math.abs(V)*(1+et))+1+2*V*V+et*et)+(2*(at=lt-2*V*V+Y*Y)*at*at/yt/yt/yt-9*lt*at/yt/yt)/27)/(It=(lt-at*at/3/yt)/yt)/(Xt=2*Math.sqrt(-It/3)),Math.abs(At)>1&&(At=At>=0?1:-1),ne=Math.acos(At)/3,E=t.y>=0?(-Xt*Math.cos(ne+Math.PI/3)-at/3/yt)*Math.PI:-(-Xt*Math.cos(ne+Math.PI/3)-at/3/yt)*Math.PI,d=Math.abs(Y)2*c*this.a?void 0:(E=d/this.a,Y=Math.sin(E),V=Math.cos(E),et=this.long0,Math.abs(d)<=i?lt=this.lat0:(lt=Ji(V*this.sin_p12+t.y*Y*this.cos_p12/d),at=Math.abs(this.lat0)-c,et=Math.abs(at)<=i?Jt(this.lat0>=0?this.long0+Math.atan2(t.x,-t.y):this.long0-Math.atan2(-t.x,t.y)):Jt(this.long0+Math.atan2(t.x*Y,d*this.cos_p12*V-t.y*this.sin_p12*Y))),t.x=et,t.y=lt,t):(yt=rs(this.es),It=Un(this.es),Xt=dn(this.es),At=Is(this.es),Math.abs(this.sin_p12-1)<=i?(lt=as(((ne=this.a*Pi(yt,It,Xt,At,c))-(d=Math.sqrt(t.x*t.x+t.y*t.y)))/this.a,yt,It,Xt,At),et=Jt(this.long0+Math.atan2(t.x,-1*t.y)),t.x=et,t.y=lt,t):Math.abs(this.sin_p12+1)<=i?(ne=this.a*Pi(yt,It,Xt,At,c),lt=as(((d=Math.sqrt(t.x*t.x+t.y*t.y))-ne)/this.a,yt,It,Xt,At),et=Jt(this.long0+Math.atan2(t.x,t.y)),t.x=et,t.y=lt,t):(d=Math.sqrt(t.x*t.x+t.y*t.y),Ie=Math.atan2(t.x,t.y),pe=os(this.a,this.e,this.sin_p12),Ae=Math.cos(Ie),ii=3*this.es*(1-(ti=-(Ye=this.e*this.cos_p12*Ae)*Ye/(1-this.es)))*this.sin_p12*this.cos_p12*Ae/(1-this.es),Ne=1-ti*(ni=(be=d/pe)-ti*(1+ti)*Math.pow(be,3)/6-ii*(1+3*ti)*Math.pow(be,4)/24)*ni/2-be*ni*ni*ni/6,ve=Math.asin(this.sin_p12*Math.cos(ni)+this.cos_p12*Math.sin(ni)*Ae),et=Jt(this.long0+Math.asin(Math.sin(Ie)*Math.sin(ni)/Math.cos(ve))),Fe=Math.sin(ve),lt=Math.atan2((Fe-this.es*Ne*this.sin_p12)*Math.tan(ve),Fe*(1-this.es)),t.x=et,t.y=lt,t))},names:["Azimuthal_Equidistant","aeqd"]},xn={init:function Ro(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0)},forward:function sa(t){var d,E,Y,V,lt,at,yt,Xt=t.y;return Y=Jt(t.x-this.long0),d=Math.sin(Xt),E=Math.cos(Xt),V=Math.cos(Y),((lt=this.sin_p14*d+this.cos_p14*E*V)>0||Math.abs(lt)<=i)&&(at=1*this.a*E*Math.sin(Y),yt=this.y0+1*this.a*(this.cos_p14*d-this.sin_p14*E*V)),t.x=at,t.y=yt,t},inverse:function Yr(t){var d,E,Y,V,et,lt,at;return t.x-=this.x0,t.y-=this.y0,E=Ji((d=Math.sqrt(t.x*t.x+t.y*t.y))/this.a),Y=Math.sin(E),V=Math.cos(E),lt=this.long0,Math.abs(d)<=i?(at=this.lat0,t.x=lt,t.y=at,t):(at=Ji(V*this.sin_p14+t.y*Y*this.cos_p14/d),et=Math.abs(this.lat0)-c,Math.abs(et)<=i?(lt=Jt(this.lat0>=0?this.long0+Math.atan2(t.x,-t.y):this.long0-Math.atan2(-t.x,t.y)),t.x=lt,t.y=at,t):(lt=Jt(this.long0+Math.atan2(t.x*Y,d*this.cos_p14*V-t.y*this.sin_p14*Y)),t.x=lt,t.y=at,t))},names:["ortho"]};function tt(t,d,E,Y){var V;return te&&V<=c+e?(Y.value=2,V-=c):V>c+e||V<=-(c+e)?(Y.value=3,V=V>=0?V-x:V+x):(Y.value=4,V+=c)),V}function ft(t,d){var E=t+d;return E<-x?E+=P:E>+x&&(E-=P),E}const te={init:function ct(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Quadrilateralized Spherical Cube",this.face=this.lat0>=c-e/2?5:this.lat0<=-(c-e/2)?6:Math.abs(this.long0)<=e?1:Math.abs(this.long0)<=c+e?this.long0>0?2:4:3,0!==this.es&&(this.one_minus_f=1-(this.a-this.b)/this.a,this.one_minus_f_squared=this.one_minus_f*this.one_minus_f)},forward:function F(t){var E,Y,V,et,lt,at,d={x:0,y:0},yt={value:0};if(t.x-=this.long0,E=0!==this.es?Math.atan(this.one_minus_f_squared*Math.tan(t.y)):t.y,Y=t.x,5===this.face)et=c-E,Y>=e&&Y<=c+e?(yt.value=1,V=Y-c):Y>c+e||Y<=-(c+e)?(yt.value=2,V=Y>0?Y-x:Y+x):Y>-(c+e)&&Y<=-e?(yt.value=3,V=Y+c):(yt.value=4,V=Y);else if(6===this.face)et=c+E,Y>=e&&Y<=c+e?(yt.value=1,V=-Y+c):Y=-e?(yt.value=2,V=-Y):Y<-e&&Y>=-(c+e)?(yt.value=3,V=-Y-c):(yt.value=4,V=Y>0?-Y+x:-Y-x);else{var It,Xt,At,ne,me,pe;2===this.face?Y=ft(Y,+c):3===this.face?Y=ft(Y,+x):4===this.face&&(Y=ft(Y,-c)),ne=Math.sin(E),me=Math.cos(E),pe=Math.sin(Y),It=me*Math.cos(Y),Xt=me*pe,At=ne,1===this.face?V=tt(et=Math.acos(It),At,Xt,yt):2===this.face?V=tt(et=Math.acos(Xt),At,-It,yt):3===this.face?V=tt(et=Math.acos(-It),At,-Xt,yt):4===this.face?V=tt(et=Math.acos(-Xt),At,It,yt):(et=V=0,yt.value=1)}return at=Math.atan(12/x*(V+Math.acos(Math.sin(V)*Math.cos(e))-c)),lt=Math.sqrt((1-Math.cos(et))/(Math.cos(at)*Math.cos(at))/(1-Math.cos(Math.atan(1/Math.cos(V))))),2===yt.value?at+=c:3===yt.value?at+=x:4===yt.value&&(at+=1.5*x),d.x=lt*Math.cos(at),d.y=lt*Math.sin(at),d.x=d.x*this.a+this.x0,d.y=d.y*this.a+this.y0,t.x=d.x,t.y=d.y,t},inverse:function I(t){var E,Y,V,et,lt,at,yt,It,Xt,ve,Ie,Ae,d={lam:0,phi:0},At={value:0};if(t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,Y=Math.atan(Math.sqrt(t.x*t.x+t.y*t.y)),E=Math.atan2(t.y,t.x),t.x>=0&&t.x>=Math.abs(t.y)?At.value=1:t.y>=0&&t.y>=Math.abs(t.x)?(At.value=2,E-=c):t.x<0&&-t.x>=Math.abs(t.y)?(At.value=3,E=E<0?E+x:E-x):(At.value=4,E+=c),Xt=x/12*Math.tan(E),lt=Math.sin(Xt)/(Math.cos(Xt)-1/Math.sqrt(2)),at=Math.atan(lt),(yt=1-(V=Math.cos(E))*V*(et=Math.tan(Y))*et*(1-Math.cos(Math.atan(1/Math.cos(at)))))<-1?yt=-1:yt>1&&(yt=1),5===this.face)It=Math.acos(yt),d.phi=c-It,d.lam=1===At.value?at+c:2===At.value?at<0?at+x:at-x:3===At.value?at-c:at;else if(6===this.face)It=Math.acos(yt),d.phi=It-c,d.lam=1===At.value?-at+c:2===At.value?-at:3===At.value?-at-c:at<0?-at-x:-at+x;else{var ne,me,pe;Xt=(ne=yt)*ne,me=(Xt+=(pe=Xt>=1?0:Math.sqrt(1-Xt)*Math.sin(at))*pe)>=1?0:Math.sqrt(1-Xt),2===At.value?(Xt=me,me=-pe,pe=Xt):3===At.value?(me=-me,pe=-pe):4===At.value&&(Xt=me,me=pe,pe=-Xt),2===this.face?(Xt=ne,ne=-me,me=Xt):3===this.face?(ne=-ne,me=-me):4===this.face&&(Xt=ne,ne=me,me=-Xt),d.phi=Math.acos(-pe)-c,d.lam=Math.atan2(me,ne),2===this.face?d.lam=ft(d.lam,-c):3===this.face?d.lam=ft(d.lam,-x):4===this.face&&(d.lam=ft(d.lam,+c))}return 0!==this.es&&(ve=d.phi<0?1:0,Ie=Math.tan(d.phi),Ae=this.b/Math.sqrt(Ie*Ie+this.one_minus_f_squared),d.phi=Math.atan(Math.sqrt(this.a*this.a-Ae*Ae)/(this.one_minus_f*Ae)),ve&&(d.phi=-d.phi)),d.lam+=this.long0,t.x=d.lam,t.y=d.phi,t},names:["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"]};var ue=[[1,22199e-21,-715515e-10,31103e-10],[.9986,-482243e-9,-24897e-9,-13309e-10],[.9954,-83103e-8,-448605e-10,-9.86701e-7],[.99,-.00135364,-59661e-9,36777e-10],[.9822,-.00167442,-449547e-11,-572411e-11],[.973,-.00214868,-903571e-10,1.8736e-8],[.96,-.00305085,-900761e-10,164917e-11],[.9427,-.00382792,-653386e-10,-26154e-10],[.9216,-.00467746,-10457e-8,481243e-11],[.8962,-.00536223,-323831e-10,-543432e-11],[.8679,-.00609363,-113898e-9,332484e-11],[.835,-.00698325,-640253e-10,9.34959e-7],[.7986,-.00755338,-500009e-10,9.35324e-7],[.7597,-.00798324,-35971e-9,-227626e-11],[.7186,-.00851367,-701149e-10,-86303e-10],[.6732,-.00986209,-199569e-9,191974e-10],[.6213,-.010418,883923e-10,624051e-11],[.5722,-.00906601,182e-6,624051e-11],[.5322,-.00677797,275608e-9,624051e-11]],Oe=[[-520417e-23,.0124,121431e-23,-845284e-16],[.062,.0124,-1.26793e-9,4.22642e-10],[.124,.0124,5.07171e-9,-1.60604e-9],[.186,.0123999,-1.90189e-8,6.00152e-9],[.248,.0124002,7.10039e-8,-2.24e-8],[.31,.0123992,-2.64997e-7,8.35986e-8],[.372,.0124029,9.88983e-7,-3.11994e-7],[.434,.0123893,-369093e-11,-4.35621e-7],[.4958,.0123198,-102252e-10,-3.45523e-7],[.5571,.0121916,-154081e-10,-5.82288e-7],[.6176,.0119938,-241424e-10,-5.25327e-7],[.6769,.011713,-320223e-10,-5.16405e-7],[.7346,.0113541,-397684e-10,-6.09052e-7],[.7903,.0109107,-489042e-10,-104739e-11],[.8435,.0103431,-64615e-9,-1.40374e-9],[.8936,.00969686,-64636e-9,-8547e-9],[.9394,.00840947,-192841e-9,-42106e-10],[.9761,.00616527,-256e-6,-42106e-10],[1,.00328947,-319159e-9,-42106e-10]],on=function(t,d){return t[0]+d*(t[1]+d*(t[2]+d*t[3]))};const Ga={init:function Hr(){this.x0=this.x0||0,this.y0=this.y0||0,this.long0=this.long0||0,this.es=0,this.title=this.title||"Robinson"},forward:function Jr(t){var d=Jt(t.x-this.long0),E=Math.abs(t.y),Y=Math.floor(11.459155902616464*E);Y<0?Y=0:Y>=18&&(Y=17);var V={x:on(ue[Y],E=m*(E-.08726646259971647*Y))*d,y:on(Oe[Y],E)};return t.y<0&&(V.y=-V.y),V.x=V.x*this.a*.8487+this.x0,V.y=V.y*this.a*1.3523+this.y0,V},inverse:function zs(t){var d={x:(t.x-this.x0)/(.8487*this.a),y:Math.abs(t.y-this.y0)/(1.3523*this.a)};if(d.y>=1)d.x/=ue[18][0],d.y=t.y<0?-c:c;else{var E=Math.floor(18*d.y);for(E<0?E=0:E>=18&&(E=17);;)if(Oe[E][0]>d.y)--E;else{if(!(Oe[E+1][0]<=d.y))break;++E}var Y=Oe[E],V=5*(d.y-Y[0])/(Oe[E+1][0]-Y[0]);V=function en(t,d,E,Y){for(var V=d;Y;--Y){var et=t(V);if(V-=et,Math.abs(et)"u")this[E]=a[E].def;else{if(a[E].num&&isNaN(this[E]))throw new Error("Invalid parameter value, must be numeric "+E+" = "+this[E]);a[E].num&&(this[E]=parseFloat(this[E]))}a[E].degrees&&(this[E]=this[E]*l)}.bind(this)),Math.abs(Math.abs(this.lat0)-c)1e10)throw new Error("Invalid height");this.p=1+this.pn1,this.rp=1/this.p,this.h1=1/this.pn1,this.pfact=(this.p+1)*this.h1,this.es=0;var t=this.tilt,d=this.azi;this.cg=Math.cos(d),this.sg=Math.sin(d),this.cw=Math.cos(t),this.sw=Math.sin(t)},forward:function W(t){t.x-=this.long0;var V,et,lt,at,d=Math.sin(t.y),E=Math.cos(t.y),Y=Math.cos(t.x);switch(this.mode){case 3:et=this.sinph0*d+this.cosph0*E*Y;break;case 2:et=E*Y;break;case 1:et=-d;break;case 0:et=d}switch(V=(et=this.pn1/(this.p-et))*E*Math.sin(t.x),this.mode){case 3:et*=this.cosph0*d-this.sinph0*E*Y;break;case 2:et*=d;break;case 0:et*=-E*Y;break;case 1:et*=E*Y}return V=(V*this.cg-et*this.sg)*this.cw*(at=1/((lt=et*this.cg+V*this.sg)*this.sw*this.h1+this.cw)),et=lt*at,t.x=V*this.a,t.y=et*this.a,t},inverse:function nt(t){t.x/=this.a,t.y/=this.a;var E,Y,V,d={x:t.x,y:t.y};t.x=(E=this.pn1*t.x*(V=1/(this.pn1-t.y*this.sw)))*this.cg+(Y=this.pn1*t.y*this.cw*V)*this.sg,t.y=Y*this.cg-E*this.sg;var et=Vi(t.x,t.y);if(Math.abs(et)1e10)throw new Error;if(this.radius_g=1+this.radius_g_1,this.C=this.radius_g*this.radius_g-1,0!==this.es){var t=1-this.es,d=1/t;this.radius_p=Math.sqrt(t),this.radius_p2=t,this.radius_p_inv2=d,this.shape="ellipse"}else this.radius_p=1,this.radius_p2=1,this.radius_p_inv2=1,this.shape="sphere";this.title||(this.title="Geostationary Satellite View")},forward:function Gt(t){var Y,V,et,lt,d=t.x,E=t.y;if(d-=this.long0,"ellipse"===this.shape){E=Math.atan(this.radius_p2*Math.tan(E));var at=this.radius_p/Vi(this.radius_p*Math.cos(E),Math.sin(E));if(V=at*Math.cos(d)*Math.cos(E),et=at*Math.sin(d)*Math.cos(E),lt=at*Math.sin(E),(this.radius_g-V)*V-et*et-lt*lt*this.radius_p_inv2<0)return t.x=Number.NaN,t.y=Number.NaN,t;Y=this.radius_g-V,this.flip_axis?(t.x=this.radius_g_1*Math.atan(et/Vi(lt,Y)),t.y=this.radius_g_1*Math.atan(lt/Y)):(t.x=this.radius_g_1*Math.atan(et/Y),t.y=this.radius_g_1*Math.atan(lt/Vi(et,Y)))}else"sphere"===this.shape&&(Y=Math.cos(E),V=Math.cos(d)*Y,et=Math.sin(d)*Y,lt=Math.sin(E),Y=this.radius_g-V,this.flip_axis?(t.x=this.radius_g_1*Math.atan(et/Vi(lt,Y)),t.y=this.radius_g_1*Math.atan(lt/Y)):(t.x=this.radius_g_1*Math.atan(et/Y),t.y=this.radius_g_1*Math.atan(lt/Vi(et,Y))));return t.x=t.x*this.a,t.y=t.y*this.a,t},inverse:function Wt(t){var V,et,lt,at,d=-1,E=0,Y=0;if(t.x=t.x/this.a,t.y=t.y/this.a,"ellipse"===this.shape){this.flip_axis?(Y=Math.tan(t.y/this.radius_g_1),E=Math.tan(t.x/this.radius_g_1)*Vi(1,Y)):(E=Math.tan(t.x/this.radius_g_1),Y=Math.tan(t.y/this.radius_g_1)*Vi(1,E));var yt=Y/this.radius_p;if((lt=(et=2*this.radius_g*d)*et-4*(V=E*E+yt*yt+d*d)*this.C)<0)return t.x=Number.NaN,t.y=Number.NaN,t;at=(-et-Math.sqrt(lt))/(2*V),d=this.radius_g+at*d,E*=at,Y*=at,t.x=Math.atan2(E,d),t.y=Math.atan(Y*Math.cos(t.x)/d),t.y=Math.atan(this.radius_p_inv2*Math.tan(t.y))}else if("sphere"===this.shape){if(this.flip_axis?(Y=Math.tan(t.y/this.radius_g_1),E=Math.tan(t.x/this.radius_g_1)*Math.sqrt(1+Y*Y)):(E=Math.tan(t.x/this.radius_g_1),Y=Math.tan(t.y/this.radius_g_1)*Math.sqrt(1+E*E)),(lt=(et=2*this.radius_g*d)*et-4*(V=E*E+Y*Y+d*d)*this.C)<0)return t.x=Number.NaN,t.y=Number.NaN,t;at=(-et-Math.sqrt(lt))/(2*V),d=this.radius_g+at*d,E*=at,Y*=at,t.x=Math.atan2(E,d),t.y=Math.atan(Y*Math.cos(t.x)/d)}return t.x=t.x+this.long0,t},names:["Geostationary Satellite View","Geostationary_Satellite","geos"]};Gi.defaultDatum="WGS84",Gi.Proj=Ve,Gi.WGS84=new Gi.Proj("WGS84"),Gi.Point=Es,Gi.toPoint=Ii,Gi.defs=_e,Gi.nadgrid=function ui(t,d){var E=new DataView(d),Y=function St(t){var d=t.getInt32(8,!1);return 11!==d&&(11!==(d=t.getInt32(8,!0))&&console.warn("Failed to detect nadgrid endian-ness, defaulting to little-endian"),!0)}(E),V=function bt(t,d){return{nFields:t.getInt32(8,d),nSubgridFields:t.getInt32(24,d),nSubgrids:t.getInt32(40,d),shiftType:Ft(t,56,64).trim(),fromSemiMajorAxis:t.getFloat64(120,d),fromSemiMinorAxis:t.getFloat64(136,d),toSemiMajorAxis:t.getFloat64(152,d),toSemiMinorAxis:t.getFloat64(168,d)}}(E,Y);V.nSubgrids>1&&console.log("Only single NTv2 subgrids are currently supported, subsequent sub grids are ignored");var et=function se(t,d,E){for(var V=[],et=0;etD;){if(C-D>600){var X=C-D+1,$=U-D+1,dt=Math.log(X),B=.5*Math.exp(2*dt/3),k=.5*Math.sqrt(dt*B*(X-B)/X)*($-X/2<0?-1:1);x(T,U,Math.max(D,Math.floor(U-$*B/X+k)),Math.min(C,Math.floor(U+(X-$)*B/X+k)),O)}var M=T[U],R=D,K=C;for(r(T,D,U),O(T[C],M)>0&&r(T,D,C);R0;)K--}0===O(T[D],M)?r(T,D,K):r(T,++K,C),K<=U&&(D=K+1),U<=K&&(C=K-1)}}(i,l,m||0,e||i.length-1,P||_)}function r(i,l,m){var e=i[l];i[l]=i[m],i[m]=e}function _(i,l){return il?1:0}var g=function(i){void 0===i&&(i=9),this._maxEntries=Math.max(4,i),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function Q(i,l,m){if(!m)return l.indexOf(i);for(var e=0;e=i.minX&&l.maxY>=i.minY}function s(i){return{children:i,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function f(i,l,m,e,P){for(var x=[l,m];x.length;)if(!((m=x.pop())-(l=x.pop())<=e)){var T=l+Math.ceil((m-l)/e/2)*e;gt(i,T,l,m,P),x.push(l,T,T,m)}}return g.prototype.all=function(){return this._all(this.data,[])},g.prototype.search=function(i){var l=this.data,m=[];if(!u(i,l))return m;for(var e=this.toBBox,P=[];l;){for(var x=0;x=0&&P[l].children.length>this._maxEntries;)this._split(P,l),l--;this._adjustParentBBoxes(e,P,l)},g.prototype._split=function(i,l){var m=i[l],e=m.children.length,P=this._minEntries;this._chooseSplitAxis(m,P,e);var x=this._chooseSplitIndex(m,P,e),T=s(m.children.splice(x,m.children.length-x));T.height=m.height,T.leaf=m.leaf,H(m,this.toBBox),H(T,this.toBBox),l?i[l-1].children.push(T):this._splitRoot(m,T)},g.prototype._splitRoot=function(i,l){this.data=s([i,l]),this.data.height=i.height+1,this.data.leaf=!1,H(this.data,this.toBBox)},g.prototype._chooseSplitIndex=function(i,l,m){for(var e,P,x,T,U,D,C,O=1/0,X=1/0,$=l;$<=m-l;$++){var dt=j(i,0,$,this.toBBox),B=j(i,$,m,this.toBBox),k=(P=dt,x=B,void 0,void 0,void 0,void 0,T=Math.max(P.minX,x.minX),U=Math.max(P.minY,x.minY),D=Math.min(P.maxX,x.maxX),C=Math.min(P.maxY,x.maxY),Math.max(0,D-T)*Math.max(0,C-U)),L=v(dt)+v(B);k=l;O--){var X=i.children[O];N(T,i.leaf?P(X):X),U+=h(T)}return U},g.prototype._adjustParentBBoxes=function(i,l,m){for(var e=m;e>=0;e--)N(l[e],i)},g.prototype._condense=function(i){for(var l=i.length-1,m=void 0;l>=0;l--)0===i[l].children.length?l>0?(m=i[l-1].children).splice(m.indexOf(i[l]),1):this.clear():H(i[l],this.toBBox)},g}()},6797:(Vt,gt,r)=>{"use strict";r.d(gt,{H:()=>j});var _=r(882),g=r(3637),Q=r(6561),H=r(4869);function j(w=0,S,v){let h=-1;return(0,Q.k)(S)?h=Number(S)<1?1:Number(S):(0,H.K)(S)&&(v=S),(0,H.K)(v)||(v=g.P),new _.y(c=>{const u=(0,Q.k)(w)?w:+w-v.now();return v.schedule(N,u,{index:0,period:h,subscriber:c})})}function N(w){const{index:S,period:v,subscriber:h}=w;if(h.next(S),!h.closed){if(-1===v)return h.complete();w.index=S+1,this.schedule(w,v)}}},6561:(Vt,gt,r)=>{"use strict";r.d(gt,{k:()=>g});var _=r(9796);function g(Q){return!(0,_.k)(Q)&&Q-parseFloat(Q)+1>=0}},9880:(Vt,gt,r)=>{"use strict";r.d(gt,{_:()=>H});var _=r(4537);function g(j,N){}let Q=(()=>{class j{constructor(w){this.viewContainerRef=w}}return j.\u0275fac=function(w){return new(w||j)(_.Y36(_.s_b))},j.\u0275dir=_.lG2({type:j,selectors:[["","ukisAddHost",""]]}),j})(),H=(()=>{class j{constructor(){this.dynamicComponentChange=new _.vpe,this.subs=[]}loadComponent(){this.dynamicComponent&&(this.viewContainerRef=this.ukisAddHost.viewContainerRef,this.viewContainerRef.clear(),this.componentRef=this.viewContainerRef.createComponent(this.dynamicComponent.component),this.setInputOutputs())}setInputOutputs(){this.componentRef&&this.dynamicComponent.inputs&&Object.keys(this.dynamicComponent.inputs).map(S=>{const v=S;if(this.dynamicComponent.inputs){this.componentRef.instance[v]=this.dynamicComponent.inputs[v];const h=`${v}Change`;if(this.componentRef.instance[h]&&this.componentRef.instance[h]instanceof _.vpe){const c=this.componentRef.instance[h].subscribe(u=>{this.dynamicComponent.inputs&&(this.dynamicComponent.inputs[v]=u),this.dynamicComponent.outputs&&this.dynamicComponent.outputs[h]&&this.dynamicComponent.outputs[h](u),this.dynamicComponentChange.emit(this.dynamicComponent)});this.subs.push(c)}}})}ngOnChanges(w){w.dynamicComponent&&(Array.isArray(this.subs)&&this.subs.map(S=>S.unsubscribe()),this.subs.map(S=>S.unsubscribe()),this.subs=[],this.setInputOutputs())}ngOnInit(){this.loadComponent()}ngOnDestroy(){this.componentRef&&(this.subs.map(w=>w.unsubscribe()),this.componentRef.destroy(),this.componentRef=null),this.viewContainerRef&&(this.viewContainerRef.clear(),this.viewContainerRef=null)}}return j.\u0275fac=function(w){return new(w||j)},j.\u0275cmp=_.Xpm({type:j,selectors:[["ukis-dynamic-component"]],viewQuery:function(w,S){if(1&w&&_.Gf(Q,7),2&w){let v;_.iGM(v=_.CRH())&&(S.ukisAddHost=v.first)}},inputs:{dynamicComponent:"dynamicComponent"},outputs:{dynamicComponentChange:"dynamicComponentChange"},features:[_.TTD],decls:1,vars:0,consts:[["ukisAddHost",""]],template:function(w,S){1&w&&_.YNc(0,g,0,0,"ng-template",0)},dependencies:[Q],encapsulation:2}),j})()},580:(Vt,gt,r)=>{"use strict";r.d(gt,{l:()=>h});var _=r(5548),g=r(4537),Q=r(8692),H=r(7927),j=r(8106),N=r(8518);function w(c,u){if(1&c&&g._UZ(0,"ukis-layerentry-group",4),2&c){const s=g.oxw().$implicit,f=g.oxw();g.Q6J("layersSvc",f.layersSvc)("mapState",f.mapStateSvc)("group",s)("layerGroups",f.layergroups)}}function S(c,u){if(1&c&&g._UZ(0,"ukis-layerentry",5),2&c){const s=g.oxw().$implicit,f=g.oxw();g.Q6J("layerGroups",f.layergroups)("expanded",!1)("layersSvc",f.layersSvc)("mapState",f.mapStateSvc)("layer",s)("group",null)}}function v(c,u){if(1&c&&(g.TgZ(0,"div",1),g.YNc(1,w,1,4,"ukis-layerentry-group",2),g.YNc(2,S,1,6,"ukis-layerentry",3),g.qZA()),2&c){const s=u.$implicit,f=g.oxw();g.xp6(1),g.Q6J("ngIf",f.isLayerGroup(s)),g.xp6(1),g.Q6J("ngIf",!f.isLayerGroup(s))}}let h=(()=>{class c{constructor(){this.layergroups=[]}ngOnInit(){this.layerGroupsSubscription=this.layersSvc.getLayerGroups().subscribe(s=>{this.layergroups=s.filter(f=>"Baselayers"===f.filtertype)})}isLayerGroup(s){return s instanceof _.ex}ngOnDestroy(){this.layerGroupsSubscription.unsubscribe()}}return c.\u0275fac=function(s){return new(s||c)},c.\u0275cmp=g.Xpm({type:c,selectors:[["ukis-base-layer-control"]],inputs:{layersSvc:"layersSvc",mapStateSvc:"mapStateSvc"},decls:2,vars:3,consts:[["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[3,"layersSvc","mapState","group","layerGroups",4,"ngIf"],[3,"layerGroups","expanded","layersSvc","mapState","layer","group",4,"ngIf"],[3,"layersSvc","mapState","group","layerGroups"],[3,"layerGroups","expanded","layersSvc","mapState","layer","group"]],template:function(s,f){1&s&&(g.YNc(0,v,3,2,"div",0),g.ALo(1,"reverse")),2&s&&g.Q6J("ngForOf",g.lcZ(1,1,f.layergroups))},dependencies:[Q.sg,Q.O5,H.S,j.m,N.B]}),c})()},408:(Vt,gt,r)=>{"use strict";r.d(gt,{E:()=>s});var _=r(5548),g=r(4537),Q=r(8692),H=r(3066),j=r(7927),N=r(8106),w=r(8092),S=r(8518);function v(f,i){if(1&f&&(g.TgZ(0,"ukis-layerentry-group",5)(1,"span",6),g._uU(2),g.qZA()()),2&f){const l=g.oxw().$implicit,m=g.oxw();g.Q6J("layersSvc",m.layersSvc)("mapState",m.mapStateSvc)("group",l)("layerGroups",m.layergroups)("groupSort",m.layersSort)("groupLayersSort",m.groupLayersSort),g.xp6(2),g.hij(" ",l.displayName||l.name," ")}}function h(f,i){if(1&f&&(g.TgZ(0,"ukis-layerentry",7)(1,"span",6),g._uU(2),g.qZA()()),2&f){const l=g.oxw().$implicit,m=g.oxw();g.Q6J("layerGroups",m.layergroups)("expanded",!1)("layersSvc",m.layersSvc)("mapState",m.mapStateSvc)("layer",l)("group",null)("sorting",m.layersSort),g.xp6(2),g.hij(" ",l.displayName||l.name," ")}}const c=function(f){return{id:f}};function u(f,i){if(1&f&&(g.ynx(0),g.TgZ(1,"div",2),g.YNc(2,v,3,7,"ukis-layerentry-group",3),g.YNc(3,h,3,8,"ukis-layerentry",4),g.qZA(),g.BQk()),2&f){const l=i.$implicit,m=g.oxw();g.xp6(1),g.Q6J("cdkDragData",g.VKq(3,c,l.id)),g.xp6(1),g.Q6J("ngIf",m.isLayerGroup(l)&&l.filtertype===m.layerfilter),g.xp6(1),g.Q6J("ngIf",!m.isLayerGroup(l)&&l.filtertype===m.layerfilter)}}let s=(()=>{class f{constructor(){this.layerfilter="Layers",this.layersSort=!0,this.groupLayersSort=!0,this.layergroups=[]}ngOnInit(){this.layerGroupsSubscription=this.layersSvc.getLayerGroups().subscribe(l=>{this.layergroups=l})}isLayerGroup(l){return l instanceof _.ex}ngOnDestroy(){this.layerGroupsSubscription.unsubscribe()}drop(l){const m=this.layergroups,e=m.length,P=l.container.data;let T,U;if(e===P.length)T=e-l.previousIndex-1,U=e-l.currentIndex-1;else{const D=P[l.currentIndex],C=m.findIndex(X=>X.id===l.item.data.id);let O=m.findIndex(X=>X.id===D.id);l.previousIndex===l.currentIndex&&(O=C),T=C,U=O}this.layersSvc.arrayMove(this.layergroups,T,U),this.layersSvc.setLayerGroups(this.layergroups)}checkBaselayer(l,m){return!!("Baselayers"===l.filtertype||m&&"Baselayers"===m.filtertype)}checkClassHide(l){return!l?.cssClass?.includes("hide")}}return f.\u0275fac=function(l){return new(l||f)},f.\u0275cmp=g.Xpm({type:f,selectors:[["ukis-layer-control"]],inputs:{layersSvc:"layersSvc",mapStateSvc:"mapStateSvc",layerfilter:"layerfilter",layersSort:"layersSort",groupLayersSort:"groupLayersSort"},decls:6,vars:13,consts:[["cdkDropList","",3,"cdkDropListDisabled","cdkDropListData","cdkDropListDropped"],[4,"ngFor","ngForOf"],["cdkDragLockAxis","y","cdkDrag","",1,"list-item",3,"cdkDragData"],[3,"layersSvc","mapState","group","layerGroups","groupSort","groupLayersSort",4,"ngIf"],[3,"layerGroups","expanded","layersSvc","mapState","layer","group","sorting",4,"ngIf"],[3,"layersSvc","mapState","group","layerGroups","groupSort","groupLayersSort"],["cdkDragHandle","",1,"move-item"],[3,"layerGroups","expanded","layersSvc","mapState","layer","group","sorting"]],template:function(l,m){1&l&&(g.TgZ(0,"div",0),g.NdJ("cdkDropListDropped",function(P){return m.drop(P)}),g.ALo(1,"reverse"),g.ALo(2,"itemsfilter"),g.YNc(3,u,4,5,"ng-container",1),g.ALo(4,"reverse"),g.ALo(5,"itemsfilter"),g.qZA()),2&l&&(g.Q6J("cdkDropListDisabled",!m.layersSort)("cdkDropListData",g.lcZ(1,3,g.xi3(2,5,m.layergroups,m.checkClassHide))),g.xp6(3),g.Q6J("ngForOf",g.lcZ(4,8,g.xi3(5,10,m.layergroups,m.checkClassHide))))},dependencies:[Q.sg,Q.O5,H.Wj,H.Zt,H.Bh,j.S,N.m,w.J,S.B],styles:[".list-item[_ngcontent-%COMP%]{cursor:pointer}.move-item[_ngcontent-%COMP%]{cursor:move}.cdk-drop-list-disabled[_ngcontent-%COMP%] .move-item[_ngcontent-%COMP%]{cursor:pointer}.cdk-drag-preview[_ngcontent-%COMP%]{display:flex;align-items:center;padding:15px 10px;box-sizing:border-box;border-radius:2px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f;overflow:hidden}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:.2}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.example-box[_ngcontent-%COMP%]:last-child{border:none}.cdk-drop-list-dragging[_ngcontent-%COMP%] .list-item[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}"]}),f})()},8106:(Vt,gt,r)=>{"use strict";r.d(gt,{m:()=>M});var _=r(3066),g=r(4537),Q=r(8692),H=r(6799),j=r(9880),N=r(7927),w=r(8092),S=r(8518);function v(R,K){if(1&R){const G=g.EpF();g.TgZ(0,"span",8),g.NdJ("click",function(){g.CHM(G);const q=g.oxw();return g.KtG(q.showProperties())}),g._uU(1),g.qZA()}if(2&R){const G=g.oxw();g.Q6J("title",G.getLayerName(G.group)),g.xp6(1),g.hij(" ",G.getLayerName(G.group)," ")}}const h=function(R){return{disabled:R}};function c(R,K){if(1&R){const G=g.EpF();g.TgZ(0,"span")(1,"clr-icon",9),g.NdJ("click",function(){g.CHM(G);const q=g.oxw();return g.KtG(q.setLayerGroupIndex(q.group,"down"))}),g.qZA(),g.TgZ(2,"clr-icon",10),g.NdJ("click",function(){g.CHM(G);const q=g.oxw();return g.KtG(q.setLayerGroupIndex(q.group,"up"))}),g.qZA()()}if(2&R){const G=g.oxw();g.xp6(1),g.Q6J("ngClass",g.VKq(2,h,G.isLast(G.group))),g.xp6(1),g.Q6J("ngClass",g.VKq(4,h,G.isFirst(G.group)))}}const u=function(R){return{"is-solid":R}};function s(R,K){if(1&R){const G=g.EpF();g.TgZ(0,"span")(1,"label"),g._UZ(2,"clr-icon",11),g.TgZ(3,"input",12),g.NdJ("change",function(){g.CHM(G);const q=g.oxw();return g.KtG(q.setGroupLayersVisibility())}),g.qZA()()()}if(2&R){const G=g.oxw();g.xp6(2),g.s9C("title",G.group.visible?"Hide Group":"Show Group"),g.Q6J("ngClass",g.VKq(6,u,G.group.visible)),g.uIk("shape",G.group.visible?"eye":"eye-hide"),g.xp6(1),g.Q6J("type","checkbox")("checked",G.group.visible)("name","group")}}function f(R,K){if(1&R){const G=g.EpF();g.TgZ(0,"clr-icon",27),g.NdJ("click",function(){g.CHM(G);const q=g.oxw(2);return g.KtG(q.switchTab("settings"))}),g.qZA()}if(2&R){const G=g.oxw(2);g.s9C("title",G.activeTabs.settings?"Hide settings":"Show settings"),g.Q6J("ngClass",g.VKq(2,u,G.activeTabs.settings))}}function i(R,K){if(1&R){const G=g.EpF();g.TgZ(0,"clr-icon",28),g.NdJ("click",function(){g.CHM(G);const q=g.oxw(2);return g.KtG(q.switchTab("legend"))}),g.qZA()}if(2&R){const G=g.oxw(2);g.s9C("title",G.activeTabs.legend?"Hide Legend":"Show Legend"),g.Q6J("ngClass",g.VKq(2,u,G.activeTabs.legend))}}function l(R,K){if(1&R){const G=g.EpF();g.TgZ(0,"clr-icon",29),g.NdJ("click",function(){g.CHM(G);const q=g.oxw(2);return g.KtG(q.switchTab("description"))}),g.qZA()}if(2&R){const G=g.oxw(2);g.s9C("title",G.activeTabs.description?"Hide Info":"Show Info"),g.Q6J("ngClass",g.VKq(2,u,G.activeTabs.description))}}function m(R,K){if(1&R){const G=g.EpF();g.TgZ(0,"clr-icon",2),g.NdJ("click",function(){const ut=g.CHM(G).$implicit,ht=g.oxw(2);return g.KtG(ut.action(ht.group))}),g.qZA()}if(2&R){const G=K.$implicit;g.Q6J("title",G.title),g.uIk("shape",G.icon)}}function e(R,K){if(1&R){const G=g.EpF();g.TgZ(0,"clr-icon",30),g.NdJ("click",function(){g.CHM(G);const q=g.oxw(2);return g.KtG(q.zoomTo(q.group))}),g.qZA()}}function P(R,K){if(1&R){const G=g.EpF();g.TgZ(0,"clr-icon",31),g.NdJ("click",function(){g.CHM(G);const q=g.oxw(2);return g.KtG(q.removeLayerGroup(q.group))}),g.qZA()}}function x(R,K){if(1&R){const G=g.EpF();g.ynx(0),g.TgZ(1,"ukis-dynamic-component",35),g.NdJ("dynamicComponentChange",function(q){g.CHM(G);const ut=g.oxw(3);return g.KtG(ut.dynamicComponents.description=q)}),g.qZA(),g.BQk()}if(2&R){const G=g.oxw(3);g.xp6(1),g.Q6J("dynamicComponent",G.dynamicComponents.description)}}function T(R,K){if(1&R&&g._UZ(0,"span",36),2&R){const G=g.oxw(3);g.Q6J("innerHTML",G.group.description,g.oJD)}}function U(R,K){if(1&R&&(g.TgZ(0,"div",32),g.YNc(1,x,2,1,"ng-container",33),g.YNc(2,T,1,1,"ng-template",null,34,g.W1O),g.qZA()),2&R){const G=g.MAs(3),J=g.oxw(2);g.xp6(1),g.Q6J("ngIf",J.checkIsComponentItem(J.group,"description"))("ngIfElse",G)}}function D(R,K){if(1&R){const G=g.EpF();g.ynx(0),g.TgZ(1,"ukis-dynamic-component",35),g.NdJ("dynamicComponentChange",function(q){g.CHM(G);const ut=g.oxw(3);return g.KtG(ut.group.action=q)}),g.qZA(),g.BQk()}if(2&R){const G=g.oxw(3);g.xp6(1),g.Q6J("dynamicComponent",G.group.action)}}function C(R,K){if(1&R&&(g.TgZ(0,"div",37),g.YNc(1,D,2,1,"ng-container",6),g.qZA()),2&R){const G=g.oxw(2);g.xp6(1),g.Q6J("ngIf",G.checkIsComponentItem(G.group,"action"))}}function O(R,K){if(1&R){const G=g.EpF();g.ynx(0),g.TgZ(1,"ukis-dynamic-component",35),g.NdJ("dynamicComponentChange",function(q){g.CHM(G);const ut=g.oxw(3);return g.KtG(ut.dynamicComponents.legendImg=q)}),g.qZA(),g.BQk()}if(2&R){const G=g.oxw(3);g.xp6(1),g.Q6J("dynamicComponent",G.dynamicComponents.legendImg)}}function X(R,K){if(1&R&&(g.TgZ(0,"a",40),g._UZ(1,"img",41),g.qZA()),2&R){const G=g.oxw(3);g.Q6J("href",G.group.legendImg,g.LSH),g.xp6(1),g.Q6J("src",G.group.legendImg,g.LSH)}}function $(R,K){if(1&R&&(g.TgZ(0,"div",38),g.YNc(1,O,2,1,"ng-container",33),g.YNc(2,X,2,2,"ng-template",null,39,g.W1O),g.qZA()),2&R){const G=g.MAs(3),J=g.oxw(2);g.xp6(1),g.Q6J("ngIf",J.checkIsComponentItem(J.group,"legendImg"))("ngIfElse",G)}}const dt=function(R){return{id:R}};function B(R,K){if(1&R){const G=g.EpF();g.ynx(0),g.TgZ(1,"div",42)(2,"ukis-layerentry",43),g.NdJ("update",function(q){g.CHM(G);const ut=g.oxw(2);return g.KtG(ut.layerUpdate(q,ut.group))}),g.TgZ(3,"span",44),g._uU(4),g.qZA()()(),g.BQk()}if(2&R){const G=K.$implicit,J=g.oxw(2);g.xp6(1),g.Q6J("cdkDragData",g.VKq(8,dt,G.id)),g.xp6(1),g.Q6J("expanded",J.openAllLayersProperties)("layersSvc",J.layersSvc)("mapState",J.mapState)("layer",G)("group",J.group)("sorting",J.groupLayersSort),g.xp6(2),g.hij(" ",G.displayName||G.name," ")}}function k(R,K){if(1&R){const G=g.EpF();g.TgZ(0,"div",13)(1,"div",14),g.YNc(2,f,1,4,"clr-icon",15),g.YNc(3,i,1,4,"clr-icon",16),g.YNc(4,l,1,4,"clr-icon",17),g.TgZ(5,"clr-icon",18),g.NdJ("click",function(){g.CHM(G);const q=g.oxw();return g.KtG(q.showHideAllDetails())}),g.qZA(),g.YNc(6,m,1,2,"clr-icon",19),g._UZ(7,"span"),g.YNc(8,e,1,0,"clr-icon",20),g.YNc(9,P,1,0,"clr-icon",21),g.qZA(),g.YNc(10,U,4,2,"div",22),g.YNc(11,C,2,1,"div",23),g.YNc(12,$,4,2,"div",24),g.TgZ(13,"div",25),g.NdJ("cdkDropListDropped",function(q){g.CHM(G);const ut=g.oxw();return g.KtG(ut.drop(q))}),g.ALo(14,"reverse"),g.ALo(15,"itemsfilter"),g.YNc(16,B,5,10,"ng-container",26),g.ALo(17,"reverse"),g.ALo(18,"itemsfilter"),g.qZA()()}if(2&R){const G=g.oxw();g.xp6(2),g.Q6J("ngIf",G.group.action),g.xp6(1),g.Q6J("ngIf",G.group.legendImg),g.xp6(1),g.Q6J("ngIf",G.group.description),g.xp6(1),g.s9C("title",G.openAllLayersProperties?"Hide all layers details":"Show all layers details"),g.Q6J("ngClass",g.VKq(24,u,G.openAllLayersProperties)),g.xp6(1),g.Q6J("ngForOf",G.group.actions),g.xp6(2),g.Q6J("ngIf",G.canZoomToGroup),g.xp6(1),g.Q6J("ngIf",G.group.removable),g.xp6(1),g.Q6J("ngIf",G.group.description&&G.activeTabs.description),g.xp6(1),g.Q6J("ngIf",G.group.action&&G.activeTabs.settings),g.xp6(1),g.Q6J("ngIf",G.group.legendImg&&G.activeTabs.legend),g.xp6(1),g.Q6J("cdkDropListDisabled",!G.groupLayersSort)("cdkDropListData",g.lcZ(14,14,g.xi3(15,16,G.group.layers,G.checkClassHide))),g.xp6(3),g.Q6J("ngForOf",g.lcZ(17,19,g.xi3(18,21,G.group.layers,G.checkClassHide)))}}const L=["*"];var p=(()=>{return(R=p||(p={})).settings="settings",R.legend="legend",R.description="description",p;var R})();let M=(()=>{class R{constructor(){this.groupSort=!0,this.groupLayersSort=!0,this.canZoomToGroup=!1,this.activeTabs={settings:!1,legend:!0,description:!1},this.dynamicComponents={legendImg:null,action:null,description:null}}get visible(){return this.group.visible}get cssClass(){return this.group.cssClass}set openAllLayersProperties(G){this.group&&this.group.layers.length&&this.group.layers.forEach(J=>J.expanded=G)}get openAllLayersProperties(){return!(!this.group||!this.group.layers.length)&&this.group.layers.filter(G=>!0===G.expanded).length===this.group.layers.length}ngOnInit(){this.group.bbox&&this.group.bbox.length>=4&&(this.canZoomToGroup=!0),"object"==typeof this.group?.expanded&&Object.keys(p).includes(this.group.expanded.tab)?(this.switchTab(this.group.expanded.tab),!1===this.group.expanded.expanded&&(this.activeTabs[this.group.expanded.tab]=!1)):this.setDefaultActiveTabs()}setDefaultActiveTabs(){this.group?.action||(this.activeTabs.settings=!1)}checkIsComponentItem(G,J){const q=G[J];let ut=!1;if(q&&"object"==typeof q&&"component"in q){const ht=q.component;q.inputs?q.inputs&&!q.inputs.group?this.dynamicComponents[J]={component:q.component,inputs:Object.assign({},q.inputs,{group:G})}:q.inputs&&q.inputs.group&&(this.dynamicComponents[J]={component:q.component,inputs:Object.assign({},q.inputs)}):this.dynamicComponents[J]={component:ht,inputs:{group:G}},q.outputs&&(this.dynamicComponents[J].outputs=Object.assign({},q.outputs)),ut=!0}return ut}checkBaselayer(G){return!(!G||"Baselayers"!==G.filtertype)}checkClassHide(G){return!G?.cssClass?.includes("hide")}getLayerName(G){return G.displayName?G.displayName:G.name}setLayerGroupIndex(G,J){this.layersSvc.setGroupLayerIndex(G,J)}setGroupLayersVisibility(){this.group.visible=!this.group.visible,this.layersSvc.updateLayerGroup(this.group)}removeLayerGroup(G){this.layersSvc.removeLayerGroup(G)}zoomTo(G){this.mapState&&G.bbox&&G.bbox.length>=4&&this.mapState.setExtent(G.bbox)}layerUpdate(G,J){this.layersSvc.updateLayerGroup(J)}showProperties(){this.group.expanded=!this.group.expanded}switchTab(G,J=!0){for(const q of Object.keys(this.activeTabs)){const ut=G===q;this.activeTabs[q]=(!this.activeTabs[q]||!J)&&ut}}showHideAllDetails(){if(this.openAllLayersProperties){this.openAllLayersProperties=!1;for(const G of Object.keys(this.activeTabs))this.activeTabs[G]=!1}else this.openAllLayersProperties=!0,this.group.legendImg?this.switchTab("legend",!1):this.group.description?this.switchTab("description",!1):this.group.action&&this.switchTab("settings",!1)}isFirst(G){return this.layersSvc.isGroupFirst(G,this.layerGroups,G.filtertype)}isLast(G){return this.layersSvc.isGroupLast(G,this.layerGroups,G.filtertype)}drop(G){const J=this.group.layers,q=J.length,ut=G.container.data;let _t,Tt;if(q===ut.length)_t=q-G.previousIndex-1,Tt=q-G.currentIndex-1;else{const Lt=ut[G.currentIndex],Ht=J.findIndex(ae=>ae.id===G.item.data.id);let $t=J.findIndex(ae=>ae.id===Lt.id);G.previousIndex===G.currentIndex&&($t=Ht),_t=Ht,Tt=$t}(0,_.bA)(this.group.layers,_t,Tt),this.layersSvc.updateLayerGroup(this.group)}}return R.\u0275fac=function(G){return new(G||R)},R.\u0275cmp=g.Xpm({type:R,selectors:[["ukis-layerentry-group"]],hostVars:4,hostBindings:function(G,J){2&G&&(g.Tol(J.cssClass),g.ekj("group-visible",J.visible))},inputs:{layersSvc:"layersSvc",mapState:"mapState",group:"group",layerGroups:"layerGroups",groupSort:"groupSort",groupLayersSort:"groupLayersSort"},ngContentSelectors:L,decls:10,vars:7,consts:[[1,"layergroup"],[1,"head"],[1,"iconButton",3,"title","click"],[1,"item-title-replacement","title",3,"title","click"],["ref",""],["class","title",3,"title","click",4,"ngIf"],[4,"ngIf"],["class","body",4,"ngIf"],[1,"title",3,"title","click"],["shape","arrow","title","up",1,"iconButton","move-item",3,"ngClass","click"],["shape","arrow","title","down","dir","down",1,"iconButton","move-item",3,"ngClass","click"],[1,"iconButton",3,"ngClass","title"],[1,"hide",3,"type","checked","name","change"],[1,"body"],[1,"tools"],["shape","cog","class","iconButton",3,"ngClass","title","click",4,"ngIf"],["shape","image","class","iconButton",3,"title","ngClass","click",4,"ngIf"],["shape","info-standard","class","iconButton",3,"ngClass","title","click",4,"ngIf"],["shape","details",1,"iconButton",3,"ngClass","title","click"],["class","iconButton",3,"title","click",4,"ngFor","ngForOf"],["shape","zoom-in","class","iconButton","title","Zoom to group",3,"click",4,"ngIf"],["shape","trash","class","iconButton","title","Remove group",3,"click",4,"ngIf"],["class","tabsbody description",4,"ngIf"],["class","tabsbody layersettings",4,"ngIf"],["class","tabsbody legend",4,"ngIf"],["cdkDropList","",3,"cdkDropListDisabled","cdkDropListData","cdkDropListDropped"],[4,"ngFor","ngForOf"],["shape","cog",1,"iconButton",3,"ngClass","title","click"],["shape","image",1,"iconButton",3,"title","ngClass","click"],["shape","info-standard",1,"iconButton",3,"ngClass","title","click"],["shape","zoom-in","title","Zoom to group",1,"iconButton",3,"click"],["shape","trash","title","Remove group",1,"iconButton",3,"click"],[1,"tabsbody","description"],[4,"ngIf","ngIfElse"],["descriptionText",""],[3,"dynamicComponent","dynamicComponentChange"],[3,"innerHTML"],[1,"tabsbody","layersettings"],[1,"tabsbody","legend"],["imageUrl",""],["target","_blank","title","Show full Image",3,"href"],[3,"src"],["cdkDragLockAxis","y","cdkDrag","",1,"sublayers",3,"cdkDragData"],[3,"expanded","layersSvc","mapState","layer","group","sorting","update"],["cdkDragHandle","",1,"move-item"]],template:function(G,J){if(1&G&&(g.F$t(),g.TgZ(0,"div",0)(1,"div",1)(2,"clr-icon",2),g.NdJ("click",function(){return J.showProperties()}),g.qZA(),g.TgZ(3,"div",3,4),g.NdJ("click",function(){return J.showProperties()}),g.Hsn(5),g.qZA(),g.YNc(6,v,2,2,"span",5),g.YNc(7,c,3,6,"span",6),g.YNc(8,s,4,8,"span",6),g.qZA(),g.YNc(9,k,19,26,"div",7),g.qZA()),2&G){const q=g.MAs(4);g.xp6(2),g.s9C("title",J.group.expanded?"Close":"Open"),g.uIk("shape",J.group.expanded?"folder-open":"folder"),g.xp6(1),g.Q6J("title",J.getLayerName(J.group)),g.xp6(3),g.Q6J("ngIf",0==q.children.length),g.xp6(1),g.Q6J("ngIf",J.layerGroups.length>1&&J.groupSort),g.xp6(1),g.Q6J("ngIf",!J.checkBaselayer(J.group)),g.xp6(1),g.Q6J("ngIf",J.group.expanded)}},dependencies:[Q.mk,Q.sg,Q.O5,H.qvL,H.MgK,_.Wj,_.Zt,_.Bh,j._,N.S,w.J,S.B],styles:[".title[_ngcontent-%COMP%]{cursor:pointer}.item-title-replacement[_ngcontent-%COMP%]:empty{display:none}.move-item[_ngcontent-%COMP%]{cursor:move}.cdk-drop-list-disabled[_ngcontent-%COMP%] .move-item[_ngcontent-%COMP%]{cursor:pointer}.cdk-drag-preview[_ngcontent-%COMP%]{display:flex;align-items:center;padding:0 10px;box-sizing:border-box;border-radius:2px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f;overflow:hidden}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:.2}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.example-box[_ngcontent-%COMP%]:last-child{border:none}.cdk-drop-list-dragging[_ngcontent-%COMP%] .sublayers[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.info[_ngcontent-%COMP%]{padding-left:.2rem}.tabsbody[_ngcontent-%COMP%]{overflow:hidden}.tabsbody[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:auto;max-width:100%}"]}),R})()},7927:(Vt,gt,r)=>{"use strict";r.d(gt,{S:()=>J});var _=r(4537),g=r(5548),Q=r(8692),H=r(6799),j=r(92),N=r(9880);const w=function(q){return{disabled:q}};function S(q,ut){if(1&q){const ht=_.EpF();_.TgZ(0,"clr-icon",11),_.NdJ("click",function(){_.CHM(ht);const Tt=_.oxw();return _.KtG(Tt.showProperties())}),_.qZA()}if(2&q){const ht=_.oxw();_.Q6J("ngStyle",ht.getExpandShape())("ngClass",_.VKq(2,w,ht.is_expandable()))}}function v(q,ut){if(1&q){const ht=_.EpF();_.TgZ(0,"span",12),_.NdJ("click",function(){_.CHM(ht);const Tt=_.oxw();return _.KtG(Tt.showProperties())}),_._uU(1),_.qZA()}if(2&q){const ht=_.oxw();_.Q6J("title",ht.getLayerName(ht.layer)),_.xp6(1),_.hij(" ",ht.getLayerName(ht.layer)," ")}}function h(q,ut){if(1&q){const ht=_.EpF();_.TgZ(0,"span")(1,"clr-icon",13),_.NdJ("click",function(){_.CHM(ht);const Tt=_.oxw();return _.KtG(Tt.setLayerIndex(Tt.layer,"down",Tt.group))}),_.qZA(),_.TgZ(2,"clr-icon",14),_.NdJ("click",function(){_.CHM(ht);const Tt=_.oxw();return _.KtG(Tt.setLayerIndex(Tt.layer,"up",Tt.group))}),_.qZA()()}if(2&q){const ht=_.oxw();_.xp6(1),_.Q6J("hidden",ht.layerGroups&&1==ht.layerGroups.length)("ngClass",_.VKq(4,w,ht.isLast(ht.layer))),_.xp6(1),_.Q6J("hidden",ht.layerGroups&&1==ht.layerGroups.length)("ngClass",_.VKq(6,w,ht.isFirst(ht.layer)))}}const c=function(q){return{"is-solid":q}};function u(q,ut){if(1&q&&_._UZ(0,"clr-icon",15),2&q){const ht=_.oxw();_.s9C("title",ht.layer.visible?"Choose another layer":"Show layer"),_.Q6J("ngClass",_.VKq(3,c,ht.layer.visible)),_.uIk("shape",ht.layer.visible?"dot-circle":"circle")}}function s(q,ut){if(1&q&&_._UZ(0,"clr-icon",15),2&q){const ht=_.oxw();_.s9C("title",ht.layer.visible?"Hide layer":"Show layer"),_.Q6J("ngClass",_.VKq(3,c,ht.layer.visible)),_.uIk("shape",ht.layer.visible?"eye":"eye-hide")}}const f=function(q){return{active:q}};function i(q,ut){if(1&q){const ht=_.EpF();_.TgZ(0,"clr-icon",25),_.NdJ("click",function(){_.CHM(ht);const Tt=_.oxw(2);return _.KtG(Tt.switchTab("settings"))}),_.qZA()}if(2&q){const ht=_.oxw(2);_.Q6J("ngClass",_.VKq(1,f,ht.activeTabs.settings))}}function l(q,ut){if(1&q){const ht=_.EpF();_.TgZ(0,"clr-icon",26),_.NdJ("click",function(){_.CHM(ht);const Tt=_.oxw(2);return _.KtG(Tt.switchTab("legend"))}),_.qZA()}if(2&q){const ht=_.oxw(2);_.Q6J("ngClass",_.VKq(1,f,ht.activeTabs.legend))}}function m(q,ut){if(1&q){const ht=_.EpF();_.TgZ(0,"clr-icon",27),_.NdJ("click",function(){_.CHM(ht);const Tt=_.oxw(2);return _.KtG(Tt.switchTab("description"))}),_.qZA()}if(2&q){const ht=_.oxw(2);_.Q6J("ngClass",_.VKq(1,f,ht.activeTabs.description))}}function e(q,ut){if(1&q){const ht=_.EpF();_.TgZ(0,"clr-icon",28),_.NdJ("click",function(){const Lt=_.CHM(ht).$implicit,Ht=_.oxw(2);return _.KtG(Lt.action(Ht.layer))}),_.qZA()}if(2&q){const ht=ut.$implicit;_.Q6J("title",ht.title),_.uIk("shape",ht.icon)}}function P(q,ut){if(1&q){const ht=_.EpF();_.TgZ(0,"clr-icon",29),_.NdJ("click",function(){_.CHM(ht);const Tt=_.oxw(2);return _.KtG(Tt.zoomTo(Tt.layer))}),_.qZA()}}function x(q,ut){if(1&q){const ht=_.EpF();_.TgZ(0,"clr-icon",30),_.NdJ("click",function(){_.CHM(ht);const Tt=_.oxw(2);return _.KtG(Tt.removeLayer(Tt.group,Tt.layer))}),_.qZA()}}function T(q,ut){if(1&q){const ht=_.EpF();_.TgZ(0,"div",37)(1,"label"),_._uU(2,"Opacity: "),_.TgZ(3,"input",38),_.NdJ("change",function(){_.CHM(ht);const Tt=_.oxw(4);return _.KtG(Tt.setLayerOpacity(Tt.layer))})("ngModelChange",function(Tt){_.CHM(ht);const Lt=_.oxw(4);return _.KtG(Lt.layer.opacity=Tt)}),_.qZA()(),_.TgZ(4,"span"),_._uU(5),_.qZA()()}if(2&q){const ht=_.oxw(4);_.xp6(3),_.Q6J("value",ht.layer.opacity)("min",0)("max",1)("step",.1)("ngModel",ht.layer.opacity),_.xp6(2),_.Oqu(" "+ht.layer.opacity)}}function U(q,ut){if(1&q&&(_.TgZ(0,"option",41),_._uU(1),_.qZA()),2&q){const ht=ut.$implicit,_t=_.oxw(5);_.Q6J("value",ht.name),_.uIk("selected",!!_t.isSelectedStyle(ht.name)||null),_.xp6(1),_.Oqu(ht.title)}}function D(q,ut){if(1&q){const ht=_.EpF();_.ynx(0),_.TgZ(1,"select",39),_.NdJ("change",function(Tt){_.CHM(ht);const Lt=_.oxw(4);return _.KtG(Lt.executeChangeStyle(Tt))}),_.YNc(2,U,2,3,"option",40),_.qZA(),_.BQk()}if(2&q){const ht=_.oxw(4);_.xp6(2),_.Q6J("ngForOf",ht.layer.styles)}}function C(q,ut){if(1&q){const ht=_.EpF();_.ynx(0),_.TgZ(1,"ukis-dynamic-component",42),_.NdJ("dynamicComponentChange",function(Tt){_.CHM(ht);const Lt=_.oxw(4);return _.KtG(Lt.dynamicComponents.action=Tt)}),_.qZA(),_.BQk()}if(2&q){const ht=_.oxw(4);_.xp6(1),_.Q6J("dynamicComponent",ht.dynamicComponents.action)}}function O(q,ut){if(1&q&&(_.TgZ(0,"div",35),_.YNc(1,T,6,6,"div",36),_.YNc(2,D,3,1,"ng-container",6),_.YNc(3,C,2,1,"ng-container",6),_.qZA()),2&q){const ht=_.oxw(3);_.xp6(1),_.Q6J("ngIf",!ht.checkBaselayer(ht.layer,ht.group)),_.xp6(1),_.Q6J("ngIf",ht.layer.styles&&(null==ht.layer.styles?null:ht.layer.styles.length)>1),_.xp6(1),_.Q6J("ngIf",ht.checkIsComponentItem(ht.layer,"action"))}}function X(q,ut){if(1&q){const ht=_.EpF();_.ynx(0),_.TgZ(1,"ukis-dynamic-component",42),_.NdJ("dynamicComponentChange",function(Tt){_.CHM(ht);const Lt=_.oxw(4);return _.KtG(Lt.dynamicComponents.legendImg=Tt)}),_.qZA(),_.BQk()}if(2&q){const ht=_.oxw(4);_.xp6(1),_.Q6J("dynamicComponent",ht.dynamicComponents.legendImg)}}function $(q,ut){if(1&q&&(_.TgZ(0,"a",46),_._UZ(1,"img",47),_.qZA()),2&q){const ht=_.oxw(4);_.Q6J("href",ht.layer.legendImg,_.LSH),_.xp6(1),_.Q6J("src",ht.layer.legendImg,_.LSH)}}function dt(q,ut){if(1&q&&(_.TgZ(0,"div",43),_.YNc(1,X,2,1,"ng-container",44),_.YNc(2,$,2,2,"ng-template",null,45,_.W1O),_.qZA()),2&q){const ht=_.MAs(3),_t=_.oxw(3);_.xp6(1),_.Q6J("ngIf",_t.checkIsComponentItem(_t.layer,"legendImg"))("ngIfElse",ht)}}function B(q,ut){if(1&q){const ht=_.EpF();_.ynx(0),_.TgZ(1,"ukis-dynamic-component",42),_.NdJ("dynamicComponentChange",function(Tt){_.CHM(ht);const Lt=_.oxw(4);return _.KtG(Lt.dynamicComponents.description=Tt)}),_.qZA(),_.BQk()}if(2&q){const ht=_.oxw(4);_.xp6(1),_.Q6J("dynamicComponent",ht.dynamicComponents.description)}}function k(q,ut){if(1&q&&_._UZ(0,"span",50),2&q){const ht=_.oxw(4);_.Q6J("innerHTML",ht.layer.description,_.oJD)}}function L(q,ut){if(1&q&&(_.TgZ(0,"div",48),_.YNc(1,B,2,1,"ng-container",44),_.YNc(2,k,1,1,"ng-template",null,49,_.W1O),_.qZA()),2&q){const ht=_.MAs(3),_t=_.oxw(3);_.xp6(1),_.Q6J("ngIf",_t.checkIsComponentItem(_t.layer,"description"))("ngIfElse",ht)}}function p(q,ut){if(1&q&&(_.TgZ(0,"div",31),_.YNc(1,O,4,3,"div",32),_.YNc(2,dt,4,2,"div",33),_.YNc(3,L,4,2,"div",34),_.qZA()),2&q){const ht=_.oxw(2);_.xp6(1),_.Q6J("ngIf",ht.activeTabs.settings),_.xp6(1),_.Q6J("ngIf",ht.activeTabs.legend&&ht.layer.legendImg),_.xp6(1),_.Q6J("ngIf",ht.activeTabs.description&&ht.layer.description)}}function M(q,ut){if(1&q&&(_.TgZ(0,"div",16)(1,"div",17),_.YNc(2,i,1,3,"clr-icon",18),_.YNc(3,l,1,3,"clr-icon",19),_.YNc(4,m,1,3,"clr-icon",20),_.YNc(5,e,1,2,"clr-icon",21),_._UZ(6,"span"),_.YNc(7,P,1,0,"clr-icon",22),_.YNc(8,x,1,0,"clr-icon",23),_.qZA(),_.YNc(9,p,4,3,"div",24),_.qZA()),2&q){const ht=_.oxw();_.xp6(2),_.Q6J("ngIf",!ht.checkBaselayer(ht.layer,ht.group)||ht.layer.action),_.xp6(1),_.Q6J("ngIf",ht.layer.legendImg),_.xp6(1),_.Q6J("ngIf",ht.layer.description),_.xp6(1),_.Q6J("ngForOf",ht.layer.actions),_.xp6(2),_.Q6J("ngIf",ht.canZoomToLayer),_.xp6(1),_.Q6J("ngIf",ht.layer.removable),_.xp6(1),_.Q6J("ngIf",ht.hasTabsbody&&ht.hasActiveTabs())}}const R=function(q){return{expanded:q}},K=["*"];var G=(()=>{return(q=G||(G={})).settings="settings",q.legend="legend",q.description="description",G;var q})();let J=(()=>{class q{constructor(){this.expandable=!0,this.sorting=!0,this.update=new _.vpe,this.canZoomToLayer=!1,this.activeTabs={settings:!1,legend:!0,description:!1},this.hasTabsbody=!0,this.dynamicComponents={legendImg:null,action:null,description:null}}get visible(){return this.layer.visible}get cssClass(){return this.layer.cssClass}set expanded(ht){this.layer&&(this.layer.expanded=ht)}get expanded(){return!!this.layer&&!!this.layer.expanded}checkIsComponentItem(ht,_t){const Tt=ht[_t];let Lt=!1;if(Tt&&"object"==typeof Tt&&"component"in Tt){const Ht=Tt.component;Tt.inputs?Tt.inputs&&!Tt.inputs.layer?this.dynamicComponents[_t]={component:Tt.component,inputs:Object.assign({},Tt.inputs,{layer:ht})}:Tt.inputs&&Tt.inputs.layer&&(this.dynamicComponents[_t]={component:Tt.component,inputs:Object.assign({},Tt.inputs)}):this.dynamicComponents[_t]={component:Ht,inputs:{layer:ht}},Tt.outputs&&(this.dynamicComponents[_t].outputs=Object.assign({},Tt.outputs)),Lt=!0}return Lt}getLayerName(ht){return ht.displayName?ht.displayName:ht.name}ngOnInit(){this.layersSvc||console.error("you need to provide a layersService!"),"object"==typeof this.layer?.expanded&&Object.keys(G).includes(this.layer.expanded.tab)?(this.switchTab(this.layer.expanded.tab),!1===this.layer.expanded.expanded&&(this.activeTabs[this.layer.expanded.tab]=!1)):this.setDefaultActiveTabs(),this.layer.bbox&&this.layer.bbox.length>=4&&(this.canZoomToLayer=!0),"Baselayers"!==this.layer.filtertype||this.layer.legendImg||this.layer.description||this.layer.action||this.layer.actions||this.layer.styles||this.layer.styles?.length>1||(this.hasTabsbody=!1)}setDefaultActiveTabs(){this.layer.legendImg||this.switchTab("description"),!this.layer.legendImg&&!this.layer.description&&this.switchTab("settings")}setLayerVisibility(ht,_t){if(_t){if(_t.layers.length>0)if("Baselayers"===_t.filtertype){for(const Tt of _t.layers)Tt.visible=Tt===ht;this.update.emit({layer:this.layer})}else{const Tt=_t.visible;ht.visible=!ht.visible,Tt!==_t.visible?this.update.emit({layer:this.layer}):this.layersSvc.updateLayer(ht,ht.filtertype||"Layers")}}else if("Baselayers"===ht.filtertype){ht.visible=!ht.visible;const Tt=this.layerGroups.filter(Lt=>"Baselayers"===Lt.filtertype);for(const Lt of Tt)Lt instanceof g.mh&&Lt.id!==ht.id&&(Lt.visible=!ht.visible,this.layersSvc.updateLayer(Lt,Lt.filtertype||"Baselayers"))}else ht.visible=!ht.visible,this.layersSvc.updateLayer(ht,ht.filtertype||"Layers")}setLayerIndex(ht,_t,Tt){Tt?this.layersSvc.setLayerIndexInGroup(ht,_t,Tt):this.layersSvc.setGroupLayerIndex(ht,_t)}removeLayer(ht,_t){ht?this.layersSvc.removeLayerFromGroup(_t,ht):this.layersSvc.removeLayer(_t,_t.filtertype)}zoomTo(ht){this.mapState&&ht.bbox&&ht.bbox.length>=4&&this.mapState.setExtent(ht.bbox)}setLayerOpacity(ht){this.group?this.update.emit({layer:ht}):this.layersSvc.updateLayer(ht,ht.filtertype||"Layers")}checkBaselayer(ht,_t){return!!("Baselayers"===ht.filtertype||_t&&"Baselayers"===_t.filtertype)}is_expandable(){return this.group?!this.layer.legendImg&&"Baselayers"===this.group.filtertype:!this.hasTabsbody}showProperties(){this.is_expandable()||(this.expanded=!this.expanded)}switchTab(ht,_t=!0){for(const Tt of Object.keys(this.activeTabs)){const Lt=ht===Tt;this.activeTabs[Tt]=(!this.activeTabs[Tt]||!_t)&&Lt}}hasActiveTabs(){return Object.values(this.activeTabs).filter(ht=>ht).length>0}isSelectedStyle(ht){return this.layer instanceof g.TI?this.layer.params.STYLES===ht:this.layer instanceof g.RC&&this.layer.params.style===ht}executeChangeStyle(ht){const _t=ht.target.value;if(this.layer.styles){const Tt=this.layer.styles.find(Lt=>Lt.name===_t);Tt&&(this.layer.legendImg=Tt.legendURL,this.layer instanceof g.TI?this.layer.params.STYLES=Tt.name:this.layer instanceof g.RC&&(this.layer.params.style=Tt.name),this.layersSvc.updateLayer(this.layer,this.layer.filtertype))}}isFirst(ht){return this.group?this.layersSvc.isGroupFirst(ht,this.group.layers):this.layersSvc.isGroupFirst(ht,null,ht.filtertype)}isLast(ht){return this.group?this.layersSvc.isGroupLast(ht,this.group.layers):this.layersSvc.isGroupLast(ht,null,ht.filtertype)}getExpandShape(){return this.expanded?{transform:"rotate(180deg)"}:{transform:"rotate(90deg)"}}}return q.\u0275fac=function(ht){return new(ht||q)},q.\u0275cmp=_.Xpm({type:q,selectors:[["ukis-layerentry"]],hostVars:4,hostBindings:function(ht,_t){2&ht&&(_.Tol(_t.cssClass),_.ekj("layer-visible",_t.visible))},inputs:{layersSvc:"layersSvc",mapState:"mapState",layer:"layer",group:"group",layerGroups:"layerGroups",expanded:"expanded",expandable:"expandable",sorting:"sorting"},outputs:{update:"update"},ngContentSelectors:K,decls:14,vars:13,consts:[[1,"layer",3,"ngClass"],[1,"head"],["shape","angle","class","iconButton","title","Details",3,"ngStyle","ngClass","click",4,"ngIf"],[1,"item-title-replacement","title",3,"title","click"],["ref",""],["class","title",3,"title","click",4,"ngIf"],[4,"ngIf"],["class","iconButton",3,"ngClass","title",4,"ngIf","ngIfElse"],["notBaselayer",""],[1,"hide",3,"type","name","checked","change"],["class","body",4,"ngIf"],["shape","angle","title","Details",1,"iconButton",3,"ngStyle","ngClass","click"],[1,"title",3,"title","click"],["shape","arrow","title","up",1,"iconButton",3,"hidden","ngClass","click"],["shape","arrow","title","down","dir","down",1,"iconButton",3,"hidden","ngClass","click"],[1,"iconButton",3,"ngClass","title"],[1,"body"],[1,"tools"],["title","Layer settings","shape","cog","class","iconButton",3,"ngClass","click",4,"ngIf"],["title","Layer Legend","shape","image","class","iconButton",3,"ngClass","click",4,"ngIf"],["title","Layer info","shape","info-standard","class","iconButton",3,"ngClass","click",4,"ngIf"],["class","iconButton",3,"title","click",4,"ngFor","ngForOf"],["shape","zoom-in","class","iconButton","title","Zoom to layer",3,"click",4,"ngIf"],["shape","trash","class","iconButton","title","Remove layer",3,"click",4,"ngIf"],["class","tabsbody",4,"ngIf"],["title","Layer settings","shape","cog",1,"iconButton",3,"ngClass","click"],["title","Layer Legend","shape","image",1,"iconButton",3,"ngClass","click"],["title","Layer info","shape","info-standard",1,"iconButton",3,"ngClass","click"],[1,"iconButton",3,"title","click"],["shape","zoom-in","title","Zoom to layer",1,"iconButton",3,"click"],["shape","trash","title","Remove layer",1,"iconButton",3,"click"],[1,"tabsbody"],["class","layersettings",4,"ngIf"],["class","legend",4,"ngIf"],["class","description",4,"ngIf"],[1,"layersettings"],["class","form-group",4,"ngIf"],[1,"form-group"],["type","range","name","points",1,"ukis-range-input","opacity-input",3,"value","min","max","step","ngModel","change","ngModelChange"],["clrSelect","",3,"change"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[3,"dynamicComponent","dynamicComponentChange"],[1,"legend"],[4,"ngIf","ngIfElse"],["imageUrl",""],["target","_blank","title","Show full Image",3,"href"],[3,"src"],[1,"description"],["descriptionText",""],[3,"innerHTML"]],template:function(ht,_t){if(1&ht&&(_.F$t(),_.TgZ(0,"div",0)(1,"div",1),_.YNc(2,S,1,4,"clr-icon",2),_.TgZ(3,"div",3,4),_.NdJ("click",function(){return _t.showProperties()}),_.Hsn(5),_.qZA(),_.YNc(6,v,2,2,"span",5),_.YNc(7,h,3,8,"span",6),_.TgZ(8,"label"),_.YNc(9,u,1,5,"clr-icon",7),_.YNc(10,s,1,5,"ng-template",null,8,_.W1O),_.TgZ(12,"input",9),_.NdJ("change",function(){return _t.setLayerVisibility(_t.layer,_t.group)}),_.qZA()()(),_.YNc(13,M,10,7,"div",10),_.qZA()),2&ht){const Tt=_.MAs(4),Lt=_.MAs(11);_.Q6J("ngClass",_.VKq(11,R,_t.expanded)),_.xp6(2),_.Q6J("ngIf",_t.hasTabsbody),_.xp6(1),_.Q6J("title",_t.getLayerName(_t.layer)),_.xp6(3),_.Q6J("ngIf",0==Tt.children.length),_.xp6(1),_.Q6J("ngIf",!_t.checkBaselayer(_t.layer,_t.group)&&_t.sorting),_.xp6(2),_.Q6J("ngIf",_t.checkBaselayer(_t.layer,_t.group))("ngIfElse",Lt),_.xp6(3),_.Q6J("type",_t.checkBaselayer(_t.layer,_t.group)?"radio":"checkbox")("name","layer")("checked",_t.layer.visible),_.xp6(1),_.Q6J("ngIf",_t.expandable&&_t.expanded)}},dependencies:[Q.mk,Q.sg,Q.O5,Q.PC,H.qvL,H.MgK,H.otW,j.YN,j.Kr,j.Fj,j.eT,j.JJ,j.On,N._],styles:[".title[_ngcontent-%COMP%]{cursor:pointer}.item-title-replacement[_ngcontent-%COMP%]:empty{display:none}.body[_ngcontent-%COMP%]{cursor:default}.tabsbody[_ngcontent-%COMP%]{overflow:hidden}.tabsbody[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:auto;max-width:100%}"]}),q})()},8518:(Vt,gt,r)=>{"use strict";r.d(gt,{B:()=>g});var _=r(4537);let g=(()=>{class Q{transform(j){return"string"==typeof j?j.split("").reverse().join(""):Array.isArray(j)?j.slice().reverse():j}}return Q.\u0275fac=function(j){return new(j||Q)},Q.\u0275pipe=_.Yjl({name:"reverse",type:Q,pure:!1}),Q})()},8092:(Vt,gt,r)=>{"use strict";r.d(gt,{J:()=>Q});var _=r(4537);let Q=(()=>{class H{transform(N,w){return N.filter(w)}}return H.\u0275fac=function(N){return new(N||H)},H.\u0275pipe=_.Yjl({name:"itemsfilter",type:H,pure:!1}),H})()},5508:(Vt,gt,r)=>{"use strict";r.d(gt,{cE:()=>u}),r(408),r(580);var Q=r(8692),H=r(6799),j=r(92),N=r(3066),w=r(9765),S=r(4537);let v=(()=>{class i{constructor(){this.alertSource=new w.xQ,this.alert$=this.alertSource.asObservable()}alert(m){this.alertSource.next(m)}}return i.\u0275fac=function(m){return new(m||i)},i.\u0275prov=S.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),h=(()=>{class i{constructor(){this.progressSource=new w.xQ,this.progress$=this.progressSource.asObservable()}progress(m){this.progressSource.next(m)}}return i.\u0275fac=function(m){return new(m||i)},i.\u0275prov=S.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),c=(()=>{class i{}return i.\u0275fac=function(m){return new(m||i)},i.\u0275mod=S.oAB({type:i}),i.\u0275inj=S.cJS({providers:[v,h],imports:[Q.ez,H.K6A]}),i})(),u=(()=>{class i{}return i.\u0275fac=function(m){return new(m||i)},i.\u0275mod=S.oAB({type:i}),i.\u0275inj=S.cJS({imports:[Q.ez,H.K6A,j.u5,N._t,c]}),i})();r(7927),r(8106)},3307:(Vt,gt,r)=>{"use strict";r.d(gt,{j:()=>Zt});var _=r(790),g=r(7393);class H{constructor(y){this.total=y}call(y,z){return z.subscribe(new j(y,this.total))}}class j extends g.L{constructor(y,z){super(y),this.total=z,this.count=0}_next(y){++this.count>this.total&&this.destination.next(y)}}var N=r(5548),w=r(513),S=r(7521),v=r(1591),h=r(9633),c=r(6581),u=r(1119),s=r(9015),f=r(992);const i="units",l=[1,2,5],m=25.4/.28,P=class e extends c.Z{constructor(y){y=y||{};const z=document.createElement("div");z.style.pointerEvents="none",super({element:z,render:y.render,target:y.target});const st=void 0!==y.className?y.className:y.bar?"ol-scale-bar":"ol-scale-line";this.innerElement_=document.createElement("div"),this.innerElement_.className=st+"-inner",this.element.className=st+" "+u.XV,this.element.appendChild(this.innerElement_),this.viewState_=null,this.minWidth_=void 0!==y.minWidth?y.minWidth:64,this.maxWidth_=y.maxWidth,this.renderedVisible_=!1,this.renderedWidth_=void 0,this.renderedHTML_="",this.addChangeListener(i,this.handleUnitsChanged_),this.setUnits(y.units||"metric"),this.scaleBar_=y.bar||!1,this.scaleBarSteps_=y.steps||4,this.scaleBarText_=y.text||!1,this.dpi_=y.dpi||void 0}getUnits(){return this.get(i)}handleUnitsChanged_(){this.updateElement_()}setUnits(y){this.set(i,y)}setDpi(y){this.dpi_=y}updateElement_(){const y=this.viewState_;if(!y)return void(this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1));const z=y.center,st=y.projection,it=this.getUnits();let Pt=(0,s._Q)(st,y.resolution,z,"degrees"==it?"degrees":"m");const kt=this.minWidth_*(this.dpi_||m)/m,zt=void 0!==this.maxWidth_?this.maxWidth_*(this.dpi_||m)/m:void 0;let ee=kt*Pt,re="";if("degrees"==it){const ri=s.Wm.degrees;ee*=ri,ee=zt){ge=oi,oe=Qe,Xe=$e;break}if(oe>=kt)break;oi=ge,Qe=oe,$e=Xe,++we}const Je=this.scaleBar_?this.createScaleBar(oe,ge,re):ge.toFixed(Xe<0?-Xe:0)+" "+re;this.renderedHTML_!=Je&&(this.innerElement_.innerHTML=Je,this.renderedHTML_=Je),this.renderedWidth_!=oe&&(this.innerElement_.style.width=oe+"px",this.renderedWidth_=oe),this.renderedVisible_||(this.element.style.display="",this.renderedVisible_=!0)}createScaleBar(y,z,st){const it=this.getScaleForResolution(),vt=it<1?Math.round(1/it).toLocaleString()+" : 1":"1 : "+Math.round(it).toLocaleString(),Pt=this.scaleBarSteps_,kt=y/Pt,zt=[this.createMarker("absolute")];for(let re=0;re
`+this.createMarker("relative")+(re%2==0||2===Pt?this.createStepText(re,y,!1,z,st):"")+"");return zt.push(this.createStepText(Pt,y,!0,z,st)),(this.scaleBarText_?`
`+vt+"
":"")+zt.join("")}createMarker(y){return`
`}createStepText(y,z,st,it,vt){const kt=(0===y?0:Math.round(it/this.scaleBarSteps_*y*100)/100)+(0===y?"":" "+vt);return`
`+kt+"
"}getScaleForResolution(){return(0,s._Q)(this.viewState_.projection,this.viewState_.resolution,this.viewState_.center,"m")*(1e3/25.4)*(this.dpi_||m)}render(y){const z=y.frameState;this.viewState_=z?z.viewState:null,this.updateElement_()}};var x=r(1014),T=r(5622),U=r(2716),D=r(5415);const C="projection",O="coordinateFormat",$=class X extends c.Z{constructor(y){y=y||{};const z=document.createElement("div");z.className=void 0!==y.className?y.className:"ol-mouse-position",super({element:z,render:y.render,target:y.target}),this.addChangeListener(C,this.handleProjectionChanged_),y.coordinateFormat&&this.setCoordinateFormat(y.coordinateFormat),y.projection&&this.setProjection(y.projection),this.renderOnMouseOut_=void 0!==y.placeholder,this.placeholder_=this.renderOnMouseOut_?y.placeholder:" ",this.renderedHTML_=z.innerHTML,this.mapProjection_=null,this.transform_=null,this.wrapX_=!1!==y.wrapX}handleProjectionChanged_(){this.transform_=null}getCoordinateFormat(){return this.get(O)}getProjection(){return this.get(C)}handleMouseMove(y){const z=this.getMap();this.updateHTML_(z.getEventPixel(y))}handleMouseOut(y){this.updateHTML_(null)}setMap(y){if(super.setMap(y),y){const z=y.getViewport();this.listenerKeys.push((0,U.oL)(z,T.Z.POINTERMOVE,this.handleMouseMove,this)),this.renderOnMouseOut_&&this.listenerKeys.push((0,U.oL)(z,T.Z.POINTEROUT,this.handleMouseOut,this)),this.updateHTML_(null)}}setCoordinateFormat(y){this.set(O,y)}setProjection(y){this.set(C,(0,s.U2)(y))}updateHTML_(y){let z=this.placeholder_;if(y&&this.mapProjection_){if(!this.transform_){const vt=this.getProjection();this.transform_=vt?(0,s.WO)(this.mapProjection_,vt):s.gD}const it=this.getMap().getCoordinateFromPixelInternal(y);if(it){const vt=(0,s.Cs)();if(vt&&(this.transform_=(0,s.WO)(this.mapProjection_,vt)),this.transform_(it,it),this.wrapX_){const kt=vt||this.getProjection()||this.mapProjection_;(0,D.Cf)(it,kt)}const Pt=this.getCoordinateFormat();z=Pt?Pt(it):it.toString()}}(!this.renderedHTML_||z!==this.renderedHTML_)&&(this.element.innerHTML=z,this.renderedHTML_=z)}render(y){const z=y.frameState;z?this.mapProjection_!=z.viewState.projection&&(this.mapProjection_=z.viewState.projection,this.transform_=null):this.mapProjection_=null}};var dt=r(3044),B=r(3161),k=r(3842);const L=["fullscreenchange","webkitfullscreenchange","MSFullscreenChange"];function R(Et){const y=Et.body;return!!(y.webkitRequestFullscreen||y.requestFullscreen&&Et.fullscreenEnabled)}function K(Et){return!(!Et.webkitIsFullScreen&&!Et.fullscreenElement)}function G(Et){Et.requestFullscreen?Et.requestFullscreen():Et.webkitRequestFullscreen&&Et.webkitRequestFullscreen()}const ut=class M extends c.Z{constructor(y){y=y||{},super({element:document.createElement("div"),target:y.target}),this.keys_=void 0!==y.keys&&y.keys,this.source_=y.source,this.isInFullscreen_=!1,this.boundHandleMapTargetChange_=this.handleMapTargetChange_.bind(this),this.cssClassName_=void 0!==y.className?y.className:"ol-full-screen",this.documentListeners_=[],this.activeClassName_=void 0!==y.activeClassName?y.activeClassName.split(" "):[this.cssClassName_+"-true"],this.inactiveClassName_=void 0!==y.inactiveClassName?y.inactiveClassName.split(" "):[this.cssClassName_+"-false"];const z=void 0!==y.label?y.label:"\u2922";this.labelNode_="string"==typeof z?document.createTextNode(z):z;const st=void 0!==y.labelActive?y.labelActive:"\xd7";this.labelActiveNode_="string"==typeof st?document.createTextNode(st):st;const it=y.tipLabel?y.tipLabel:"Toggle full-screen";this.button_=document.createElement("button"),this.button_.title=it,this.button_.setAttribute("type","button"),this.button_.appendChild(this.labelNode_),this.button_.addEventListener(dt.Z.CLICK,this.handleClick_.bind(this),!1),this.setClassName_(this.button_,this.isInFullscreen_),this.element.className=`${this.cssClassName_} ${u.XV} ${u.hg}`,this.element.appendChild(this.button_)}handleClick_(y){y.preventDefault(),this.handleFullScreen_()}handleFullScreen_(){const y=this.getMap();if(!y)return;const z=y.getOwnerDocument();if(R(z))if(K(z))!function q(Et){Et.exitFullscreen?Et.exitFullscreen():Et.webkitExitFullscreen&&Et.webkitExitFullscreen()}(z);else{let st;st=this.source_?"string"==typeof this.source_?z.getElementById(this.source_):this.source_:y.getTargetElement(),this.keys_?function J(Et){Et.webkitRequestFullscreen?Et.webkitRequestFullscreen():G(Et)}(st):G(st)}}handleFullScreenChange_(){const y=this.getMap();if(!y)return;const z=this.isInFullscreen_;this.isInFullscreen_=K(y.getOwnerDocument()),z!==this.isInFullscreen_&&(this.setClassName_(this.button_,this.isInFullscreen_),this.isInFullscreen_?((0,k.$H)(this.labelActiveNode_,this.labelNode_),this.dispatchEvent("enterfullscreen")):((0,k.$H)(this.labelNode_,this.labelActiveNode_),this.dispatchEvent("leavefullscreen")),y.updateSize())}setClassName_(y,z){z?(y.classList.remove(...this.inactiveClassName_),y.classList.add(...this.activeClassName_)):(y.classList.remove(...this.activeClassName_),y.classList.add(...this.inactiveClassName_))}setMap(y){const z=this.getMap();z&&z.removeChangeListener(B.Z.TARGET,this.boundHandleMapTargetChange_),super.setMap(y),this.handleMapTargetChange_(),y&&y.addChangeListener(B.Z.TARGET,this.boundHandleMapTargetChange_)}handleMapTargetChange_(){const y=this.documentListeners_;for(let st=0,it=y.length;st.75*oe||ge>.75*Xe?this.resetExtent_():(0,Qt.r4)(zt,vt)||this.recenter_()}resetExtent_(){const y=this.getMap(),z=this.ovmap_,st=y.getSize(),vt=y.getView().calculateExtentInternal(st),Pt=z.getView(),kt=Math.log(7.5)/Math.LN2,zt=1/(.1*Math.pow(2,kt/2));(0,Qt.H9)(vt,zt),Pt.fitInternal((0,_e.oJ)(vt))}recenter_(){const y=this.getMap(),z=this.ovmap_,st=y.getView();z.getView().setCenterInternal(st.getCenterInternal())}updateBox_(){const y=this.getMap(),z=this.ovmap_;if(!y.isRendered()||!z.isRendered())return;const st=y.getSize(),it=y.getView(),vt=z.getView(),Pt=this.rotateWithView_?0:-it.getRotation(),kt=this.boxOverlay_,zt=this.boxOverlay_.getElement(),ee=it.getCenterInternal(),re=it.getResolution(),we=vt.getResolution(),ge=st[0]*re/we,oe=st[1]*re/we;kt.setPosition(ee),zt&&(zt.style.width=ge+"px",zt.style.height=oe+"px",zt.style.transform="rotate("+Pt+"rad)")}updateBoxAfterOvmapIsRendered_(){this.ovmapPostrenderKey_||(this.ovmapPostrenderKey_=(0,U.Vx)(this.ovmap_,Tt.Z.POSTRENDER,function(y){delete this.ovmapPostrenderKey_,this.updateBox_()},this))}handleClick_(y){y.preventDefault(),this.handleToggle_()}handleToggle_(){this.element.classList.toggle(u.hN),this.collapsed_?(0,k.$H)(this.collapseLabel_,this.label_):(0,k.$H)(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_;const y=this.ovmap_;if(!this.collapsed_){if(y.isRendered())return this.viewExtent_=void 0,void y.render();y.updateSize(),this.resetExtent_(),this.updateBoxAfterOvmapIsRendered_()}}getCollapsible(){return this.collapsible_}setCollapsible(y){this.collapsible_!==y&&(this.collapsible_=y,this.element.classList.toggle("ol-uncollapsible"),!y&&this.collapsed_&&this.handleToggle_())}setCollapsed(y){!this.collapsible_||this.collapsed_===y||this.handleToggle_()}getCollapsed(){return this.collapsed_}getRotateWithView(){return this.rotateWithView_}setRotateWithView(y){this.rotateWithView_!==y&&(this.rotateWithView_=y,0!==this.getMap().getView().getRotation()&&(this.rotateWithView_?this.handleRotationChanged_():this.ovmap_.getView().setRotation(0),this.viewExtent_=void 0,this.validateExtent_(),this.updateBox_()))}getOverviewMap(){return this.ovmap_}render(y){this.validateExtent_(),this.updateBox_()}};var Nt=r(993),Bt=r(7274),ie=r(5267),Te=r(524),he=r(2663),Mt=r(5338),Dt=r(4879),Kt=r(1179),Yt=r(4537),Jt=r(7560),ye=r(8692);const Pe=["mapDiv"];function ze(Et,y){1&Et&&(Yt.TgZ(0,"div",3),Yt._uU(1,"+"),Yt.qZA())}let Zt=(()=>{class Et{constructor(z,st){this.mapSvc=z,this.ngZone=st,this.subs=[],this.mapSize=[0,0],this.initialMapStateSet=!1,this.removePopupsOnMouseLeave=it=>{this.mapSvc.removeAllPopups(vt=>"pointermove"===vt.get("addEvent"))}}ngOnInit(){this.subscribeToMapState(),this.initMap(),this.subscribeToLayers()}ngAfterViewInit(){this.map.setTarget(this.mapDivView.nativeElement),this.subscribeToMapEvents(),this.map.getTargetElement().addEventListener("mouseleave",this.removePopupsOnMouseLeave)}ngAfterViewChecked(){this.updateMapSize()}ngOnDestroy(){this.subs.forEach(st=>st.unsubscribe());const z=this.mapStateSvc.getMapState().value;z.options.notifier="user",this.mapStateSvc.setMapState(z),this.map&&(this.map.un("moveend",this.mapOnMoveend),this.map.un("click",this.mapOnClickMove),this.map.un("dblclick",this.mapOnDclick),this.map.getTargetElement().removeEventListener("mouseleave",this.removePopupsOnMouseLeave),this.map.getInteractions().forEach(st=>{this.map.removeInteraction(st)}))}getMapDiv(){return this.mapDivView&&this.mapDivView.nativeElement?{width:this.mapDivView.nativeElement.offsetWidth,height:this.mapDivView.nativeElement.offsetHeight}:null}updateMapSize(){const z=this.getMapDiv();if(z)if(z.width===this.mapSize[0]&&z.height===this.mapSize[1]){if(!this.initialMapStateSet){const st=this.mapStateSvc.getMapState().getValue();this.setMapState(st),this.initialMapStateSet=!0}}else this.ngZone.runOutsideAngular(()=>{this.map.updateSize(),this.mapSize=this.map.getSize()})}addUpdateLayers(z,st,it){const vt=this.mapSvc.getLayerGroups(st)[0].getLayers(),Pt=it.reduce((kt,zt)=>kt+this.mapSvc.getLayers(zt).length,0);z.length!==this.mapSvc.getLayers(st).length?this.mapSvc.setUkisLayers(z,st,Pt):this.updateLayers(z,st,Pt,vt)}updateLayers(z,st,it,vt){for(const Pt of z){const kt=this.mapSvc.getLayerByKey({key:"id",value:Pt.id},st);if(kt){kt.getVisible()!==Pt.visible&&((0,Dt.f$)(kt,Pt.visible,Pt instanceof N.AO),this.mapSvc.hideAllPopups(!Pt.visible,re=>{const ge=re.getId().toString().split(":")[0];return!ge||(ge===Pt.id?ge===Pt.id:void 0)})),kt.getOpacity()!==Pt.opacity&&(0,Dt.yv)(kt,Pt.opacity,Pt instanceof N.AO),this.updateLayerSource(Pt,kt);const zt=z.indexOf(Pt),ee=it>0?zt+it:zt;kt.getZIndex()!==ee&&((0,Dt.n8)(kt,zt,vt),(0,Dt.AH)(kt,zt,it)),this.updateLayerParamsWith(kt,Pt)}}}updateLayerSource(z,st){if(z instanceof N.AO&&st instanceof S.Z){const it=z.custom_layer.getSource(),vt=st.getSource();it&&(0,w.sq)(vt)!==(0,w.sq)(it)&&(st.setSource(it),vt instanceof Te.ZP&&vt.dispose())}else if(z instanceof N.AO&&z.custom_layer instanceof v.Z&&st instanceof v.Z){const it=z.custom_layer.getLayers().getArray();st.getLayers().getArray().forEach((Pt,kt)=>{const zt=it[kt];if(Pt instanceof S.Z&&zt instanceof S.Z){const ee=Pt.getSource(),re=zt.getSource();re&&(0,w.sq)(ee)!==(0,w.sq)(re)&&Pt.setSource(re)}})}}updateLayerParamsWith(z,st){switch(st.type){case N.MR:this.updateWmsLayerParamsWith(z,st);break;case N.$6:this.updateWmtsLayerParamsWith(z,st);break;case N.Sw:this.updateGeojsonLayerParamsWith(z,st);break;case N.KF:this.updateWfsLayerParamsWith(z,st);break;case N.CY:this.updateTmsLayerParamsWith(z,st)}}updateTmsLayerParamsWith(z,st){st instanceof N.DJ&&(0,Mt.bg)(z,st.options.style,st.options.styleSource)}updateWfsLayerParamsWith(z,st){st.options&&st.options.style!==z.getStyle()&&z.setStyle(st.options.style),z.getSource().getUrl()!==st.url&&z.getSource().setUrl(st.url)}updateGeojsonLayerParamsWith(z,st){const it=z.getSource();if(it){if(st.data){const vt=this.mapSvc.geoJsonToFeatures(st.data);if(it instanceof he.Z){const Pt=it.getSource();Pt.clear(),Pt.addFeatures(vt)}else it.clear(),it.addFeatures(vt)}else st.url&&(it instanceof he.Z?it.getSource().setUrl(st.url):it.setUrl(st.url));"object"==typeof st?.cluster&&"distance"in st.cluster&&it instanceof he.Z&&it.setDistance(st.cluster.distance)}st?.options?.style&&z.setStyle(st.options.style)}updateWmsLayerParamsWith(z,st){if(z instanceof S.Z){const vt=z.getSource().getParams(),Pt=st.params;this.shallowEqual(vt,Pt)||z.getSource().updateParams(Pt)}}updateWmtsLayerParamsWith(z,st){if(z instanceof S.Z){const it=z.getSource(),vt=it.getStyle(),Pt=it.getFormat(),kt=it.getVersion(),zt=it.getMatrixSet(),ee=st.params.style,re=st.params.format,we=st.params.version,ge=st.params.matrixSetOptions.matrixSet;if(void 0!==ee&&vt!==ee||void 0!==re&&Pt!==re||void 0!==we&&kt!==we||void 0!==ge&&zt!==ge){const oe=st.filtertype.toLowerCase();this.mapSvc.updateUkisLayer(st,oe)}}}shallowEqual(z,st){const it=Object.getOwnPropertyNames(z),vt=Object.getOwnPropertyNames(st);if(it.length!==vt.length)return!1;for(const Pt of it)if(z[Pt]!==st[Pt])return!1;return!0}addUpdateBaseLayers(z){const st=this.mapSvc.getLayerGroups("baselayers")[0].getLayers();if(z.length!==this.mapSvc.getLayers("baselayers").length){const it=z.filter(vt=>!0===vt.visible);0===it.length?z[0].visible=!0:it.length>1&&(z.forEach(vt=>vt.visible=!1),z[0].visible=!0),this.mapSvc.setUkisLayers(z,"baselayers")}else for(const it of z){const vt=this.mapSvc.getLayerByKey({key:"id",value:it.id},"baselayers");if(vt){const Pt=z.indexOf(it);vt.getVisible()!==it.visible&&(0,Dt.f$)(vt,it.visible,it instanceof N.AO),vt.getZIndex()!==Pt&&(st.remove(vt),st.insertAt(Pt,vt),(0,Dt.AH)(vt,Pt)),vt.getOpacity()!==it.opacity&&(0,Dt.yv)(vt,it.opacity,it instanceof N.AO),this.updateLayerSource(it,vt),this.updateLayerParamsWith(vt,it)}}}subscribeToLayers(){if(this.layersSvc){const z=this.layersSvc.getBaseLayers().subscribe(vt=>this.addUpdateBaseLayers(vt));this.subs.push(z);const st=this.layersSvc.getLayers().subscribe(vt=>this.addUpdateLayers(vt,"layers",["baselayers"]));this.subs.push(st);const it=this.layersSvc.getOverlays().subscribe(vt=>this.addUpdateLayers(vt,"overlays",["baselayers","layers"]));this.subs.push(it)}}setMapState(z){const st=this.mapStateSvc.getLastAction().getValue();"user"===z.options.notifier&&("setExtent"===st?this.mapSvc.setExtent(z.extent,!0):"setState"===st&&(this.mapSvc.setZoom(z.zoom),this.mapSvc.setCenter([z.center.lon,z.center.lat],!0)))}subscribeToMapState(){if(this.mapStateSvc){const z=this.mapStateSvc.getMapState().pipe(function Q(Et){return y=>y.lift(new H(Et))}(1)).subscribe(st=>this.setMapState(st));this.subs.push(z)}}subscribeToMapEvents(){this.mapOnMoveend=z=>{const st=this.mapStateSvc.getMapState().getValue(),it=this.mapSvc.getZoom(),vt=this.mapSvc.getCenter(!0),Pt=this.mapSvc.getCurrentExtent(!0),kt={lat:parseFloat(vt[1]),lon:parseFloat(vt[0])},zt=new _.U5(it,kt,{notifier:"map"},Pt,st.time);this.mapStateSvc.setMapState(zt)},this.map.on("moveend",this.mapOnMoveend),this.mapOnClickMove=z=>{this.mapSvc.layersOnMapEvent(z)},this.map.on(["click","pointermove"],this.mapOnClickMove),this.mapOnDclick=z=>{this.mapSvc.removeAllPopups()},this.map.on("dblclick",this.mapOnDclick)}initMap(){const z=this.mapSvc.createMap();this.map=z.map;const st=this.map.getInteractions();(0,Kt.c)().forEach(vt=>{st.getArray().find(kt=>kt.constructor.name===vt.constructor.name)||this.map.addInteraction(vt)}),this.setControls(),this.layersSvc||console.log("there is no layersSvc as defined!"),this.mapStateSvc||console.log("there is no mapStateSvc as defined!")}setControls(){const z=[],st=[];if(this.map&&(this.map.getControls().getArray().forEach(vt=>st.push(vt)),this.map.getControls().clear()),this.controls&&this.map){if(!1!==this.controls.attribution){let it={collapsible:!0,collapsed:!1};"object"==typeof this.controls.attribution&&(it=Object.assign(it,this.controls.attribution));const vt=new h.Z(it);z.push(vt)}if(this.controls.scaleLine){let it={};"object"==typeof this.controls.scaleLine&&(it=Object.assign(it,this.controls.scaleLine));const vt=new P(it);z.push(vt)}if(!1!==this.controls.zoom){let it={};"object"==typeof this.controls.zoom&&(it=Object.assign(it,this.controls.zoom));const vt=new x.Z(it);z.push(vt)}if(this.controls.mousePosition){let it={coordinateFormat:Pt=>(0,D.yZ)(Pt,2),projection:"EPSG:4326"};"object"==typeof this.controls.mousePosition&&(it=Object.assign(it,this.controls.mousePosition));const vt=new $(it);z.push(vt)}if(this.controls.fullScreen){let it={};"object"==typeof this.controls.fullScreen&&(it=Object.assign(it,this.controls.fullScreen));const vt=new ut(it);z.push(vt)}if(this.controls.overviewMap){const it=document.createElement("spawn");it.innerHTML='';let vt={layers:[new Nt.Z({source:new Bt.Z})],label:it};"object"==typeof this.controls.overviewMap&&(vt=Object.assign(vt,this.controls.overviewMap));const Pt=new xt(vt);z.push(Pt)}if(this.controls.rotate){let it={};"object"==typeof this.controls.rotate&&(it=Object.assign(it,this.controls.rotate));const vt=new ie.Z(it);z.push(vt)}z.length&&(st.filter(vt=>!z.includes(vt)).forEach(vt=>z.push(vt)),this.map.getControls().extend(z))}}}return Et.\u0275fac=function(z){return new(z||Et)(Yt.Y36(Jt.B),Yt.Y36(Yt.R0b))},Et.\u0275cmp=Yt.Xpm({type:Et,selectors:[["ukis-map-ol"]],viewQuery:function(z,st){if(1&z&&Yt.Gf(Pe,5),2&z){let it;Yt.iGM(it=Yt.CRH())&&(st.mapDivView=it.first)}},inputs:{layersSvc:"layersSvc",mapStateSvc:["mapState","mapStateSvc"],controls:"controls"},decls:3,vars:1,consts:[["ref","map",1,"map"],["mapDiv",""],["class","crosshair",4,"ngIf"],[1,"crosshair"]],template:function(z,st){1&z&&(Yt.TgZ(0,"div",0,1),Yt.YNc(2,ze,2,0,"div",2),Yt.qZA()),2&z&&(Yt.xp6(2),Yt.Q6J("ngIf",st.controls&&st.controls.crosshair))},dependencies:[ye.O5],styles:['@charset "UTF-8";:root{--ukis-crosshair-color: #ff0004;--ukis-popup-bg-color: rgb(238, 238, 238);--ukis-drop-shadow: drop-shadow(0 1px 4px rgba(0, 0, 0, .2));--ukis-ol-bbox-bg-color: rgba(255, 255, 255, .4);--ukis-ol-bbox-border-color: rgba(87, 87, 87, .4);--ukis-ol-overviewmap-left: .5em;--ukis-ol-overviewmap-bottom: 3em;--ukis-ol-control-bg-color: rgba(87, 87, 87, .6);--ukis-ol-control-border-color: rgba(87, 87, 87, .4)}.map{width:100%;height:100%;position:relative}.ol-popup{position:absolute;background-color:var(--ukis-popup-bg-color);filter:var(--ukis-drop-shadow);padding:15px;border-radius:2px;bottom:12px;left:-50px;min-width:280px;display:none;z-index:1000000}.ol-popup .ol-popup-closer{text-decoration:none;position:absolute;top:0;right:8px;cursor:pointer}.ol-popup .ol-popup-closer:after{content:"\\2716"}.ol-popup:after,.ol-popup:before{top:100%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none}.ol-popup:after{border-top-color:var(--ukis-popup-bg-color);border-width:10px;left:48px;margin-left:-10px}.ol-popup:before{border-width:11px;left:48px;margin-left:-11px}.ol-popup.hidden{visibility:hidden}.crosshair{top:50%;left:50%;font-size:large;color:var(--ukis-crosshair-color);z-index:1;position:absolute;cursor:default}.ol-control{padding:1px;--ol-subtle-background-color: #fff6}.ol-control button{--ol-subtle-foreground-color: #fff;--ol-foreground-color: #fff;cursor:pointer;background-color:var(--ukis-ol-control-bg-color)}.ol-control button:focus{background-color:var(--ukis-ol-control-bg-color)}.ol-control button:hover{background-color:var(--ukis-ol-control-border-color)}.ol-scale-line{background:rgba(255,255,255,.4);line-height:1.375em;padding:1px}.ol-scale-line .ol-scale-line-inner{background:var(--ukis-ol-control-bg-color);border-color:var(--ukis-ol-control-bg-color);--ol-foreground-color: #fff}.ol-attribution:not(.ol-collapsed){padding:0 2px}.ol-attribution ul{font-size:.5rem}.ol-box{background-color:var(--ukis-ol-bbox-bg-color);border-color:var(--ukis-ol-bbox-border-color)!important}.ol-box.ol-drag-select{border-color:var(--clr-color-action-600, var(--fallback-color-no-clr))!important}.ol-overviewmap{left:var(--ukis-ol-overviewmap-left)!important;bottom:var(--ukis-ol-overviewmap-bottom)!important}\n'],encapsulation:2}),Et})()},7560:(Vt,gt,r)=>{"use strict";r.d(gt,{B:()=>He});var _=r(4537),g=r(5548),Q=r(6942),H=r(5109),j=r(2462),N=r(7521),w=r(1591),S=r(2417),v=r(7319),h=r(4420),c=r(3998),u=r(6906),s=r(993),f=r(7356),i=r(585),l=r(978),m=r(5338),e=r(2705),P=r(6114),x=r(6290),T=r(6027),U=r(3298),D=r(6819),C=r(3242),O=r(9375),X=r(6941),$=r(5809),dt=r(9015);const k=class B extends C.Z{constructor(Et){const y=void 0!==Et.requestEncoding?Et.requestEncoding:"KVP",z=Et.tileGrid;let st=Et.urls;void 0===st&&void 0!==Et.url&&(st=(0,$.Gk)(Et.url)),super({attributions:Et.attributions,attributionsCollapsible:Et.attributionsCollapsible,cacheSize:Et.cacheSize,crossOrigin:Et.crossOrigin,interpolate:Et.interpolate,projection:Et.projection,reprojectionErrorThreshold:Et.reprojectionErrorThreshold,tileClass:Et.tileClass,tileGrid:z,tileLoadFunction:Et.tileLoadFunction,tilePixelRatio:Et.tilePixelRatio,urls:st,wrapX:void 0!==Et.wrapX&&Et.wrapX,transition:Et.transition,zDirection:Et.zDirection}),this.version_=void 0!==Et.version?Et.version:"1.0.0",this.format_=void 0!==Et.format?Et.format:"image/jpeg",this.dimensions_=void 0!==Et.dimensions?Et.dimensions:{},this.layer_=Et.layer,this.matrixSet_=Et.matrixSet,this.style_=Et.style,this.requestEncoding_=y,this.setKey(this.getKeyForDimensions_()),st&&st.length>0&&(this.tileUrlFunction=(0,$.Un)(st.map(this.createFromWMTSTemplate.bind(this))))}setUrls(Et){this.urls=Et;const y=Et.join("\n");this.setTileUrlFunction((0,$.Un)(Et.map(this.createFromWMTSTemplate.bind(this))),y)}getDimensions(){return this.dimensions_}getFormat(){return this.format_}getLayer(){return this.layer_}getMatrixSet(){return this.matrixSet_}getRequestEncoding(){return this.requestEncoding_}getStyle(){return this.style_}getVersion(){return this.version_}getKeyForDimensions_(){const Et=this.urls?this.urls.slice(0):[];for(const y in this.dimensions_)Et.push(y+"-"+this.dimensions_[y]);return Et.join("/")}updateDimensions(Et){Object.assign(this.dimensions_,Et),this.setKey(this.getKeyForDimensions_())}createFromWMTSTemplate(Et){const y=this.requestEncoding_,z={layer:this.layer_,style:this.style_,tilematrixset:this.matrixSet_};"KVP"==y&&Object.assign(z,{Service:"WMTS",Request:"GetTile",Version:this.version_,Format:this.format_}),Et="KVP"==y?(0,X.B)(Et,z):Et.replace(/\{(\w+?)\}/g,function(vt,Pt){return Pt.toLowerCase()in z?z[Pt.toLowerCase()]:vt});const st=this.tileGrid,it=this.dimensions_;return function(vt,Pt,kt){if(!vt)return;const zt={TileMatrix:st.getMatrixId(vt[0]),TileCol:vt[1],TileRow:vt[2]};Object.assign(zt,it);let ee=Et;return ee="KVP"==y?(0,X.B)(ee,zt):ee.replace(/\{(\w+?)\}/g,function(re,we){return zt[we]}),ee}}};var p=r(1053);const R=class M extends p.Z{constructor(Et){super({extent:Et.extent,origin:Et.origin,origins:Et.origins,resolutions:Et.resolutions,tileSize:Et.tileSize,tileSizes:Et.tileSizes,sizes:Et.sizes}),this.matrixIds_=Et.matrixIds}getMatrixId(Et){return this.matrixIds_[Et]}getMatrixIds(){return this.matrixIds_}};var G=r(3149),J=r(524),q=r(2663),ut=r(9573),ht=r(8898),_t=r(4007),Tt=r(2632),Lt=r(3669),Ht=r(3431),$t=r(9543),ae=r(2258),Qt=r(4720),_e=r(1786),Ce=r(8185),xe=r(694),Ze=r(795),xt=r(5253),Nt=r(2659),Bt=r(513),ie=r(9765),Te=r(4879);const he="type",Mt="filtertype",Dt="id",Kt="groupID",Yt="groupName",Jt="title",Pe="EPSG:4326",ze="popup";let He=(()=>{class Zt{constructor(y,z){this.app=y,this.envInjector=z,this.hitTolerance=0,this.hitLayerCurr=null,this.hitLayerPrev=null,this.projectionChange=new ie.xQ,this.dynamicPopupComponents=new Map,this.popupEvents=new ie.xQ,this.filterLayerNoPopup=st=>{const it=st.get(ze);let vt=!0;return it||(vt=!1),it&&this.isPopupObj(it)&&!0===it.filterLayer&&(vt=!1),vt},this.map=new Q.Z({controls:[]}),this.view=new H.ZP,this.EPSG="EPSG:3857"}createMap(y){const it=new w.Z({layers:[]});it.set(Mt,"baselayers"),it.set(Jt,"Base maps"),it.set(Dt,"ID_filtertype_baselayers");const vt=new w.Z({layers:[]});vt.set(Mt,"layers"),vt.set(Jt,"Layers"),vt.set(Dt,"ID_filtertype_layers");const Pt=new w.Z({layers:[]});Pt.set(Mt,"overlays"),Pt.set(Jt,"Overlays"),Pt.set(Dt,"ID_filtertype_overlays"),this.viewOptions={center:(0,dt.vs)([0,0],Pe,this.EPSG),zoom:0,projection:(0,dt.U2)(this.EPSG)},this.view.constrainRotation&&(this.viewOptions.constrainRotation=this.view.constrainRotation),this.view.enableRotation&&(this.viewOptions.enableRotation=this.view.enableRotation),this.view.extent&&(this.viewOptions.extent=this.view.extent),this.view.constrainOnlyCenter&&(this.viewOptions.constrainOnlyCenter=this.view.constrainOnlyCenter),this.view.smoothExtentConstraint&&(this.viewOptions.smoothExtentConstraint=this.view.smoothExtentConstraint),this.view.getMaxResolution()&&(this.viewOptions.maxResolution=this.view.getMaxResolution()),this.view.getMinResolution()&&(this.viewOptions.minResolution=this.view.getMinResolution()),this.view.getMaxZoom()&&(this.viewOptions.maxZoom=this.view.getMaxZoom()),this.view.getMinZoom()&&(this.viewOptions.minZoom=this.view.getMinZoom()),this.view.multiWorld&&(this.viewOptions.multiWorld=this.view.multiWorld),this.view.constrainResolution&&(this.viewOptions.constrainResolution=this.view.constrainResolution),this.view.smoothResolutionConstraint&&(this.viewOptions.smoothResolutionConstraint=this.view.smoothResolutionConstraint),this.view.getResolution()&&(this.viewOptions.resolution=this.view.getResolution()),this.view.getResolutions()&&(this.viewOptions.resolutions=this.view.getResolutions()),this.view.rotation&&(this.viewOptions.rotation=this.view.rotation),this.view.zoomFactor&&(this.viewOptions.zoomFactor=this.view.zoomFactor);const kt=new H.ZP(this.viewOptions);return this.map.getLayerGroup().getLayers().clear(),[it,vt,Pt].map(zt=>this.map.addLayer(zt)),this.map.setView(kt),this.view=this.map.getView(),this.setProjection(this.EPSG),y&&this.map.setTarget(y),{map:this.map,view:this.view}}setHitTolerance(y){this.hitTolerance=y}getHitTolerance(){return this.hitTolerance}addBboxSelection(y,z,st,it){Object.assign({className:"ol-drag-select",condition:y},it);const Pt=new Nt.Z(it);return z&&Pt.on("boxstart",kt=>{z(kt)}),st&&Pt.on("boxend",kt=>{const zt=Pt.getGeometry().getExtent();st(zt,kt)}),this.map.addInteraction(Pt),Pt}getLayers(y){const z=y.toLowerCase();let st;return this.map.getLayers().getArray().forEach(it=>{it.get(Mt)===z&&(st=it.getLayers().getArray())}),st}getLayersFromGroup(y,z,st=!1){const it=y.getLayers().getArray();let vt=it;if(st){let Pt=[].concat(it);it.forEach(kt=>{kt instanceof w.Z&&(Pt=Pt.concat(this.getLayersFromGroup(kt,z,!0)))}),vt=Pt}return z?vt.filter(Pt=>Pt.get(Mt)&&Pt.get(Mt).toLowerCase()===z.toLowerCase()):vt}getLayerByKey(y,z){const st=this.getLayersFromGroup(this.map.getLayerGroup(),z),it=(0,Te.fA)(st),vt=[];if(it.forEach(Pt=>{Pt.get(y.key)&&Pt.get(y.key)===y.value&&-1===vt.indexOf(Pt)&&vt.push(Pt)}),!vt.length){const Pt=this.getLayersFromGroup(this.map.getLayerGroup(),z,!0);Pt.length&&Pt.forEach(kt=>{kt.get(y.key)&&kt.get(y.key)===y.value&&-1===vt.indexOf(kt)&&vt.push(kt)})}return 1===vt.length?vt[0]:null}setRecursiveKey(y,z,st=Mt){y.set(st,z),y instanceof w.Z&&y.getLayers().forEach(it=>{this.setRecursiveKey(it,z,st)})}addLayer(y,z){const st=z.toLowerCase();let it;return this.map.getLayers().getArray().forEach(vt=>{vt.get(Mt)===st&&(this.isLayerInGroup(y,vt)||(it=vt.getLayers().getArray(),this.setRecursiveKey(y,st,Mt),it.push(y),vt.setLayers(new ut.Z(it))))}),it}isLayerInGroup(y,z){return!!z.getLayers().getArray().filter(vt=>vt.get(Dt)===y.get(Dt)).length}getLayerGroups(y){const z=[];return this.map.getLayers().forEach(st=>{st instanceof w.Z&&(y?st.get(Mt)&&st.get(Mt).toLowerCase()===y.toLowerCase()&&z.push(st):z.push(st))}),z}addLayers(y,z){const st=z.toLocaleLowerCase();let it;return this.getLayerGroups(st).forEach(Pt=>{Pt.getLayers().getLength()>0?(it=Pt.getLayers().getArray(),y.map(zt=>{this.isLayerInGroup(zt,Pt)||it.push(zt)})):it=y,it.forEach(zt=>{zt instanceof w.Z&&this.setRecursiveKey(zt,st,Mt)}),Pt.setLayers(new ut.Z(it))}),it}setLayers(y,z){const st=z.toLocaleLowerCase(),it=this.getLayerGroups(st);return y.forEach(vt=>{vt instanceof w.Z&&this.setRecursiveKey(vt,z.toLocaleLowerCase(),Mt)}),it.forEach(vt=>{this.cleanUpEventListeners(vt,y),vt.setLayers(new ut.Z(y))}),y}cleanUpEventListeners(y,z){const st=y.getLayers().getArray().filter(it=>!z.map(vt=>vt.get(Dt)).includes(it.get(Dt)));this.removeListenersFromOldLayers(st),st.forEach(it=>y.getLayers().remove(it))}addEventsToLayer(y,z,st){y.events&&(y.events.layer&&y.events.layer.forEach(it=>{z.getListeners(it.event)||z.on(it.event,it.listener)}),y.events.source&&y.events.source.forEach(it=>{st.getListeners(it.event)||st.on(it.event,it.listener)}))}removeListenersFromOldLayers(y){const z=st=>{if("function"==typeof st.getSource){const it=st.getSource();it&&(it instanceof J.ZP&&it.dispose(),it.hasListener()&&it.disposeInternal())}st.hasListener()&&st.disposeInternal()};y.forEach(st=>{st instanceof w.Z?st.getLayers().forEach(it=>{z(it)}):st instanceof j.Z&&z(st)})}getLayerGroupForLayer(y){const z=this.getLayersFromGroup(this.map.getLayerGroup(),null,!0);z.push(this.map.getLayerGroup());let st=null;return z.forEach(it=>{if(it instanceof w.Z){const Pt=this.getLayersFromGroup(it).find(kt=>kt===y);Pt&&(st={group:it,layer:Pt})}}),st}removeLayerByKey(y,z){const st=z.toLocaleLowerCase(),it=this.getLayerByKey(y,st);if(it){const vt=this.getLayerGroupForLayer(it);if(vt.group){const Pt=this.getLayersFromGroup(vt.group).filter(kt=>kt!==it);vt.group.setLayers(new ut.Z(Pt))}}}updateLayerByKey(y,z,st){const it=st.toLocaleLowerCase();this.map.getLayers().forEach(vt=>{if(vt.get(Mt)===it){const Pt=vt.getLayers();Pt.forEach((kt,zt)=>{if(kt.get(y.key)&&kt.get(y.key)===y.value){const ee=z.getProperties(),re=z.getExtent(),we=z.getMaxZoom(),ge=z.getMinZoom(),oe=z.getOpacity(),Xe=z.getVisible(),oi=z.getZIndex();if(kt instanceof N.Z&&z instanceof N.Z){const Qe=z.getSource();kt.setSource(Qe)}ee&&kt.setProperties(ee),re&&kt.setExtent(re),we&&kt.setMaxZoom(we),ge&&kt.setMinZoom(ge),oe&&kt.setOpacity(oe),Xe&&kt.setVisible(Xe),oi&&(0,Te.AH)(kt,oi),kt.changed(),Pt.setAt(zt,kt)}}),vt.setLayers(Pt)}})}removeAllLayers(y){const z=y.toLowerCase();let st;this.map.getLayers().getArray().forEach(it=>{it.get(Mt)===z&&(st=it.getLayers(),st.clear())})}setUkisLayers(y,z,st){const it=z.toLowerCase(),vt=[];if(y.length<1&&"baselayers"!==it?this.removeAllLayers(it):y.forEach((Pt,kt)=>{const zt=this.create_layers(Pt);zt&&((0,Te.AH)(zt,kt,st),vt.push(zt))}),vt.length>0)return this.setLayers(vt,it),{type:it,layers:vt}}setUkisLayer(y,z){z||(z=y.filtertype);const st=z.toLowerCase(),vt=this.getLayers(st).find(kt=>kt.get(Dt)===y.id),Pt=this.create_layers(y);vt?(this.removeLayerByKey({key:Dt,value:vt.get(Dt)},z),this.addLayer(Pt,z)):this.addLayer(Pt,z)}updateUkisLayer(y,z){z||(z=y.filtertype);const st=z.toLowerCase(),vt=this.getLayers(st).find(kt=>kt.get(Dt)===y.id),Pt=this.create_layers(y);Pt&&this.updateLayerByKey({key:Dt,value:vt.get(Dt)},Pt,z)}create_layers(y){let z;switch(y.type){case g.Aq:z=this.create_xyz_layer(y);break;case g.MR:z=this.create_wms_layer(y);break;case g.$6:z=this.create_wmts_layer(y);break;case g.CY:z=this.create_tms_layer(y);break;case g.Sw:z=this.create_geojson_layer(y);break;case g.R6:z=this.create_kml_layer(y);break;case g.KF:z=this.create_wfs_layer(y);break;case g.ED:z=this.create_custom_layer(y);break;case g.jn:z=this.create_stacked_layer(y)}return z}createOlLayerOptions(y,z,st){st&&(y.attribution&&st.setAttributions([y.attribution]),y.continuousWorld&&(st.wrapX_=y.continuousWorld),y.popup&&!y.crossOrigin&&null!==y.crossOrigin&&this.sourceSetCross(st),(y.crossOrigin||null===y.crossOrigin)&&this.sourceSetCross(st));const it={opacity:y.opacity||1,visible:y.visible,zIndex:1,id:y.id,name:y.name,filtertype:y.filtertype,type:z,legendImg:y.legendImg};return st&&(it.source=st),y.popup&&(it.popup=y.popup,it.className=y.id),y.maxResolution&&(it.maxResolution=y.maxResolution),y.minResolution&&(it.minResolution=y.minResolution),y.maxZoom&&(it.maxZoom=y.maxZoom),y.minZoom&&(it.minZoom=y.minZoom),y.bbox&&(it.extent=(0,dt.$A)(y.bbox.slice(0,4),Pe,this.getProjection().getCode())),it}create_xyz_layer(y){const z={wrapX:!1};y.crossOrigin&&(z.crossOrigin=y.crossOrigin);const st=new x.Z(z),it=this.createOlLayerOptions(y,"xyz",st),Pt=new s.Z(Object.assign(it,{preload:0,useInterimTilesOnError:!0}));return this.setSubdomains(y,Pt),this.setCrossOrigin(y,Pt),this.addEventsToLayer(y,Pt,st),Pt}create_tms_layer(y){let z=null;if(y instanceof g.YY)return z=this.create_xyz_layer(y),z.set("type","tms"),z;if(y instanceof g.DJ){const st=new l.Z({format:new P.Z,tileGrid:(0,e.dl)({minZoom:y.minZoom||void 0,maxZoom:y.maxZoom||void 0}),url:y.url,wrapX:!1}),it=this.createOlLayerOptions(y,"tms",st);z=new i.Z(Object.assign(it,{declutter:!0,renderMode:"hybrid"})),this.setCrossOrigin(y,z),this.addEventsToLayer(y,z,st);const Pt=y?.options?.style,kt=y?.options?.styleSource;return Pt&&kt&&((0,m.h0)(z,Pt),(0,m.bg)(z,Pt,kt).then(zt=>{this.setSubdomains(y,z)})),z}}create_wms_layer(y){let z;return"true"===y.params?.TILED||null==y.params?.TILED?z=this.create_tiled_wms_layer(y):"false"===y.params?.TILED&&(z=this.create_image_wms_layer(y)),z}create_tiled_wms_layer(y){const z={params:Object.assign({},this.keysToUppercase(y.params)),wrapX:!1};y.tileSize&&(z.tileGrid=this.getTileGrid("default",null,y.tileSize),delete z.params.tileSize),y.crossOrigin&&(z.crossOrigin=y.crossOrigin);const st=new U.Z(z),vt=this.createOlLayerOptions(y,"wms",st),Pt=new s.Z(Object.assign(vt,{preload:0,useInterimTilesOnError:!0}));return this.setSubdomains(y,Pt),this.addEventsToLayer(y,Pt,st),Pt}create_image_wms_layer(y){const z={params:Object.assign({},this.keysToUppercase(y.params)),url:y.url},st=new D.Z(z),it=this.createOlLayerOptions(y,"wms",st),Pt=new u.Z(Object.assign(it,{}));return this.addEventsToLayer(y,Pt,st),Pt}create_wmts_layer(y){if(y instanceof g.RC){let z=this.getTileGrid("wmts"),st=this.EPSG;y.params.matrixSetOptions&&(st=y.params.matrixSetOptions.matrixSet,"resolutions"in y.params.matrixSetOptions?z=this.getTileGrid("wmts",null,y.tileSize,null,y.params.matrixSetOptions.resolutions):("resolutionLevels"in y.params.matrixSetOptions||"tileMatrixPrefix"in y.params.matrixSetOptions)&&(z=this.getTileGrid("wmts",y.params.matrixSetOptions.resolutionLevels,y.tileSize,y.params.matrixSetOptions.tileMatrixPrefix,null)),"matrixIds"in y.params.matrixSetOptions&&(z=this.getTileGrid("wmts",null,y.tileSize,null,null,y.params.matrixSetOptions.matrixIds)));let it={url:y.url,tileGrid:z,matrixSet:st,wrapX:!1,layer:y.params.layer,style:y.params.style};it=Object.assign({},it,y.params),y.crossOrigin&&(it.crossOrigin=y.crossOrigin);const vt=new k(it),Pt=this.createOlLayerOptions(y,"wmts",vt),zt=new s.Z(Object.assign(Pt,{}));return this.setSubdomains(y,zt),this.setCrossOrigin(y,zt),this.addEventsToLayer(y,zt,vt),zt}console.error(`layer with id: ${y.id} and type ${y.type} is no instanceof WmtsLayer!`)}create_wfs_layer(y){let z=null;z=0===y.url.indexOf("http://")||0===y.url.indexOf("https://")?new URL(y.url):new URL(y.url,window.location.origin),z.searchParams.set("srsname",this.EPSG);const st=new G.Z({format:new ht.Z,url:z.toString()}),it=this.createOlLayerOptions(y,"wfs",st),vt={};y.options&&Object.assign(vt,y.options);const Pt=new f.Z(Object.assign(it,vt));return y.cluster&&this.setCluster(y,Pt,st,{}),this.setSubdomains(y,Pt),this.setCrossOrigin(y,Pt),this.addEventsToLayer(y,Pt,st),Pt}create_geojson_layer(y){let z;y.data?z=new G.Z({features:this.geoJsonToFeatures(y.data),format:new ht.Z,wrapX:!1}):y.url&&(z=new G.Z({url:y.url,format:new ht.Z({dataProjection:Pe,featureProjection:this.EPSG}),wrapX:!1}));const st=this.createOlLayerOptions(y,"geojson",z),it={};y.options&&Object.assign(it,y.options);const vt=new f.Z(Object.assign(st,it));return y.cluster&&this.setCluster(y,vt,z,{}),this.setCrossOrigin(y,vt),this.addEventsToLayer(y,vt,z),vt}create_kml_layer(y){let z;y.data?z=new G.Z({features:new _t.ZP({extractStyles:!0}).readFeatures(y.data,{dataProjection:Pe,featureProjection:this.EPSG}),format:new _t.ZP,wrapX:!1}):y.url&&(z=new G.Z({url:y.url,format:new _t.ZP({extractStyles:!0,crossOrigin:y.crossOrigin&&null===y.crossOrigin?y.crossOrigin:"anonymous"}),wrapX:!1}));const st=this.createOlLayerOptions(y,"kml",z),it={};y.options&&Object.assign(it,y.options);const vt=new f.Z(Object.assign(st,it));return y.cluster&&this.setCluster(y,vt,z,{}),this.setCrossOrigin(y,vt),this.addEventsToLayer(y,vt,st.source),vt}setCrossOrigin(y,z){if(z instanceof N.Z){const st=z.getSource();y.popup&&!y.crossOrigin&&null!==y.crossOrigin&&this.sourceSetCross(st),(y.crossOrigin||null===y.crossOrigin)&&this.sourceSetCross(st)}}setCluster(y,z,st,it){if(y.cluster){const vt={};"object"==typeof y.cluster&&Object.assign(vt,y.cluster),vt.source=st;const Pt=new q.Z(vt);z.setSource(Pt),z.setStyle(kt=>{const zt=kt.get("features").length;let ee=it[zt];return ee||(ee=new _e.ZP({image:new Ze.Z({radius:10,stroke:new xt.Z({color:"#fff"}),fill:new xe.Z({color:"#3399CC"})}),text:new Ce.Z({text:zt.toString(),fill:new xe.Z({color:"#fff"})})}),it[zt]=ee),ee})}}setSubdomains(y,z){if(y instanceof g.DJ||y instanceof g.YY){const st=z.getSource();if(y.subdomains){if("wfs"===y.type&&st instanceof G.Z)y.url=y.url.replace("{s}",`${y.subdomains[0]}-${y.subdomains[y.subdomains.length-1]}`),st.setUrl(y.url);else if(!(st instanceof G.Z)){const it=y.subdomains.map(vt=>y.url.replace("{s}",`${vt}`));st.setUrls(it)}}else st.setUrl(y.url)}}sourceSetCross(y){(y instanceof O.ZP||y instanceof C.Z||y instanceof T.Z)&&(y.crossOrigin="anonymous",y.crossOrigin_="anonymous")}create_custom_layer(y){if(y.custom_layer){const z=y.custom_layer;if(z instanceof N.Z){const it=z.getSource();y.attribution&&it.setAttributions([y.attribution]),it.wrapX_=!!y.continuousWorld&&y.continuousWorld,this.setCrossOrigin(y,z),this.addEventsToLayer(y,z,it),it instanceof J.ZP&&z.on("change:source",vt=>{vt.oldValue.dispose()})}else z instanceof w.Z?z.getLayers().forEach(it=>{it.set(Kt,y.id),it.set(Yt,y.name);const vt=`${y.id}_${(0,Bt.sq)(it)}`;if(it.get(Dt)||it.set(Dt,vt),it instanceof N.Z&&(this.setCrossOrigin(y,it),this.addEventsToLayer(y,it,it.getSource())),y.popup&&!it.get(ze)&&(it.set(ze,y.popup),"ol-layer"===it.getClassName()&&(it.className_=vt)),y.bbox){const Pt=(0,dt.$A)(y.bbox.slice(0,4),Pe,this.getProjection().getCode());it.setExtent(Pt)}}):console.error(`The custom_layer of ${y.id} in not a openlayers Layer`);y.maxResolution&&z.setMaxResolution(y.maxResolution),y.minResolution&&z.setMinResolution(y.minResolution),y.maxZoom&&z.setMaxZoom(y.maxZoom),y.minZoom&&z.setMinZoom(y.minZoom);const st={type:"custom",name:y.name,id:y.id,visible:y.visible,legendImg:y.legendImg,opacity:y.opacity||1,zIndex:1};if(y.popup&&!(z instanceof w.Z)&&(st.popup=y.popup,z.className_=y.id),y.bbox){const it=(0,dt.$A)(y.bbox.slice(0,4),Pe,this.getProjection().getCode());z.setExtent(it)}return z.setProperties(st),z}console.log("attribute custom_layer not set on layer type custom!",y)}create_stacked_layer(y){if(y instanceof g.WQ){const z=y.layers.map(Pt=>(Pt.visible=y.visible,Pt.opacity=y.opacity,y.popup&&(Pt.popup=y.popup),y.events&&(Pt.events=y.events),this.create_layers(Pt))),st=this.createOlLayerOptions(y,"custom");return z.forEach(Pt=>{Pt.set(Kt,y.id),Pt.set(Yt,y.name)}),new w.Z(Object.assign(st,{layers:z}))}console.log("layer is not of type StackedLayer!",y)}resolutionsFromExtent(y,z,st){const it=z,vt=(0,$t.Cr)(y),Pt=(0,$t.dz)(y),kt=Math.max(Pt/st,vt/st),zt=it+1,ee=new Array(zt);for(let re=0;rez?`${z}:${st}`:st)}getTileGrid(y="default",z,st,it,vt,Pt){const kt=z||ae.e,zt=st||ae.S,ee=it||"",re=this.getProjection().getExtent(),we=this.resolutionsFromExtent(re,kt,zt),ge=this.matrixIdsFromResolutions(we.length,ee),oe={extent:re,origin:(0,$t.rL)(re),resolutions:vt||we,tileSize:[zt,zt]};return"wmts"===y?(oe.matrixIds=Pt||ge,new R(oe)):"default"===y?new p.Z(oe):void 0}isPopupObj(y){return y&&"object"==typeof y&&!Array.isArray(y)}isPopupObjMove(y){return this.isPopupObj(y)&&"move"===y.event}isPopupObjClick(y){return this.isPopupObj(y)&&"click"===y.event}isPopupObjArray(y){return Array.isArray(y)&&y.length&&this.isPopupObj(y[0])}isPopupStringArray(y){return Array.isArray(y)&&y.length&&"string"==typeof y[0]}eventIsBrowserEvent(y,z){return"move"===y&&"pointermove"===z.type||"click"===y&&"click"===z.type||void 0}layersOnMapEvent(y){let z=!1;const st=this.map.getAllLayers();let it=st.length;const vt=new Map;let Pt=null;for(;it--;){const kt=st[it];let zt=kt.getVisible(),ee=kt.getOpacity();const re=kt.get(Kt);if(re){const ge=this.getLayerByKey({key:Dt,value:re});zt=ge.getVisible(),ee=ge.getOpacity()}const we=kt.get(ze);if(this.checkForPopupAsObservable(kt,zt,ee,we,vt),zt&&0!==ee&&this.filterLayerExtent(kt,y.pixel)&&!we)break;if(this.filterLayerNoPopup(kt)&&kt.getData&&kt.getData(y.pixel)&&this.checkIsRaster(kt)){const ge=kt.getData(y.pixel);let oe;if((ge instanceof Uint8ClampedArray||ge instanceof Uint8Array||ge instanceof Float32Array)&&(oe=ge[3]),oe||ge instanceof DataView){Pt={layer:kt,color:ge};break}}else if(this.filterLayerNoPopup(kt)&&this.filterLayerExtent(kt,y.pixel)&&this.checkIsVector(kt)){const ge=this.map.getFeaturesAtPixel(y.pixel,{layerFilter:oe=>kt.get(Dt)===oe.get(Dt)});if(ge.length){Pt={layer:kt,feature:ge[0]};break}}}if(Pt){const kt=Pt.layer.get(ze);this.hitLayerCurr=Pt.layer.get(Dt),this.hitLayerPrev||(this.hitLayerPrev=this.hitLayerCurr),(Pt.color||Pt.feature)&&(z=!0),this.hitLayerPrev&&this.hitLayerPrev!==this.hitLayerCurr&&(z=!1,this.hitLayerPrev=this.hitLayerCurr),this.checkTopLayerEvent(y,kt)&&this.layerOnEvent(y,Pt.layer,Pt.color,Pt.feature)}z?this.map.getTargetElement().style.cursor="pointer":(this.publishNullPropertiesAsObservable(vt,y),this.removeAllPopups(kt=>"pointermove"===kt.get("addEvent")),this.map.getTargetElement().style.cursor="")}checkForPopupAsObservable(y,z,st,it,vt){z&&0!==st&&it&&(this.isPopupObj(it)&&it.asObservable?vt.set(y.get(Dt),y):this.isPopupObjArray(it)&&it.forEach(Pt=>{Pt.asObservable&&vt.set(y.get(Dt),y)}))}publishNullPropertiesAsObservable(y,z){y.size&&y.forEach(st=>{const it=st.get(ze),vt=[];this.isPopupObj(it)&&it.asObservable?vt.push(it):this.isPopupObjArray(it)&&it.forEach(Pt=>{Pt.asObservable&&vt.push(Pt)}),vt.forEach(Pt=>{this.eventIsBrowserEvent(Pt.event||"click",z)&&this.popupEvents.next({popupObj:Pt,popupParams:{layerId:st.get(Dt),layerName:st.get("name"),mapEvent:z,layer:st,properties:null}})})})}checkTopLayerEvent(y,z){let st=null;const it=(vt,Pt)=>{Pt.event?this.eventIsBrowserEvent(Pt.event,vt)&&this.isPopupObjClick(Pt)?st="click":this.eventIsBrowserEvent(Pt.event,vt)&&this.isPopupObjMove(Pt)&&(st="move"):"click"===vt.type&&(st="click")};return"boolean"==typeof z?!0===z&&"click"===y.type&&(st="click"):this.isPopupStringArray(z)?"click"===y.type&&(st="click"):this.isPopupObjArray(z)?z.map(vt=>{it(y,vt)}):it(y,z),st}checkIsRaster(y){return y instanceof c.Z||y instanceof v.Z}checkIsVector(y){return y instanceof h.Z&&!this.checkIsRaster(y)}layerOnEvent(y,z,st,it){this.checkIsRaster(z)?this.rasterOnEvent(y,z,st):this.checkIsVector(z)&&this.vectorOnEvent(y,z,it)}filterLayerExtent(y,z){let st=!0;const it=y.getExtent();if(it){const vt=this.map.getCoordinateFromPixel(z);(0,$t.b8)(it,vt)||(st=!1)}return st}vectorOnEvent(y,z,st){if(z&&st){const it=z.get(ze);let vt={};const kt=st.getProperties().features;if(kt&&1===kt.length)vt=kt[0].getProperties();else{if(kt&&kt.length>1){if("click"===y.type){const zt=this.getFeaturesExtent(kt);return this.setExtent(zt),!1}return!0}vt=st.getProperties()}this.prepareAddPopup(z,y,it,st,vt)}}rasterOnEvent(y,z,st){const it=z.get(ze);it&&this.prepareAddPopup(z,y,it,null,null,st)}prepareAddPopup(y,z,st,it,vt,Pt){const kt=y.getProperties(),zt={layerId:kt.id,layerName:kt.name||kt[Yt]||null,mapEvent:z,layer:y,properties:vt?Object.assign({},vt):{}};zt.properties?.geometry&&delete zt.properties.geometry,it&&(zt.feature=it),Pt&&(zt.color=Pt);const ee=ge=>{ge&&ge.filterkeys&&(zt.properties=Object.keys(zt.properties).filter(oe=>ge.filterkeys.includes(oe)).reduce((oe,Xe)=>(oe[Xe]=zt.properties[Xe],oe),{}))};this.isPopupStringArray(st)?zt.properties=Object.keys(zt.properties).filter(ge=>st.includes(ge)).reduce((ge,oe)=>(ge[oe]=zt.properties[oe],ge),{}):this.isPopupObjArray(st)?ee(st.find(oe=>this.eventIsBrowserEvent(oe.event,z))):this.isPopupObj(st)&&ee(st);const re=ge=>{if(ge.properties){const oe=Object.keys(ge.properties);Array.isArray(oe)&&(zt.properties=Object.keys(zt.properties).reduce((Xe,oi)=>{const Qe=ge.properties[oi];return Qe?Xe[Qe]=zt.properties[oi]:Xe[oi]=zt.properties[oi],Xe},{}))}};this.isPopupObjArray(st)?st.forEach(ge=>{this.eventIsBrowserEvent(ge.event,z)&&re(ge)}):this.isPopupObj(st)&&re(st);const we=ge=>{"asyncPopup"in ge?ge.asyncPopup(zt,oe=>{ge.asObservable?this.publishPopupEvent(ge,zt,oe):this.addPopup(zt,ge,oe,ge.event,ge.single)}):ge.asObservable?this.publishPopupEvent(ge,zt):this.addPopup(zt,ge,null,ge.event,ge.single)};"boolean"==typeof st||this.isPopupStringArray(st)?this.addPopup(zt):this.isPopupObjArray(st)?st.forEach(ge=>{this.eventIsBrowserEvent(ge.event,z)&&we(ge)}):st&&we(st)}publishPopupEvent(y,z,st){st&&(z.properties=Object.assign(z.properties,st)),this.popupEvents.next({popupObj:y,popupParams:z})}addPopup(y,z,st,it,vt){const Pt=y.layer.get(ze),kt=y.layer.get(Dt),zt="popup_move_ID",ee="move_ID_L_F",re=this.getPopups().find(oe=>oe.getId()===zt),we=y.mapEvent;let ge=null;if("move"===it&&(y.color?ge=`${kt}:${y.color.toString()}`:y.feature?ge=`${kt}:${(0,Bt.sq)(y.feature)}`:y.layer&&(ge=`${kt}:${(0,Bt.sq)(y.layer)}`)),"move"===it&&"pointermove"===we.type&&re){let oe;const Xe=y.feature;if(oe=Xe&&"Point"===Xe.getGeometry()?.getType()?Xe.getGeometry().getCoordinates():we.coordinate,ge!==re.get(ee)){const oi=this.createPopupContainer(re,y,z,st,it);re.setElement(oi)}re.setPosition(oe),re.getElement().parentElement.style.zIndex="1"}else if("pointermove"!==we.type||it)if("pointermove"===we.type&&"click"===it)re&&this.removeAllPopups(oe=>"pointermove"===oe.get("addEvent"));else{let oe=null;oe="move"===it?zt:y.feature?`${kt}:${(0,Bt.sq)(y.feature)}`:y.layer?`${kt}:${(0,Bt.sq)(y.layer)}`:`${kt}:popup_${(new Date).getTime()}`;const Xe={id:oe,autoPan:{animation:{duration:250}},positioning:"bottom-center",stopEvent:!0,insertFirst:!1};let oi=Xe;if(this.isPopupObjArray(Pt)){const ui=Pt.find(di=>this.eventIsBrowserEvent(di.event,we));ui.options&&(oi=Object.assign(Xe,ui.options))}else this.isPopupObj(Pt)&&Pt.options&&(oi=Object.assign(Xe,Pt.options));const Qe=new S.Z(oi);ge&&Qe.set(ee,ge),vt&&this.removeAllPopups(ui=>{const ot=ui.getId().toString().split(":")[0];return!ot||(kt===ot?kt===ot:void 0)});const $e=this.getPopups().find(ui=>ui.getId()===Qe.getId()&&Qe.getId()!==zt);$e&&(this.map.removeOverlay($e),this.destroyDynamicPopupComponent($e.getId().toString()));const Je=this.createPopupContainer(Qe,y,z,st,it);let ri;Qe.getId()===zt?Qe.set("addEvent","pointermove"):Qe.set("addEvent",we.type),Qe.set(he,ze),Qe.setElement(Je);const _i=y.feature;ri=_i&&"Point"===_i.getGeometry()?.getType()?_i.getGeometry().getCoordinates():we.coordinate,Qe.setPosition(ri),re&&"move"===it||this.map.addOverlay(Qe)}else re&&this.removeAllPopups(oe=>"pointermove"===oe.get("addEvent"))}createPopupContainer(y,z,st,it,vt){const Pt=document.createElement("div");Pt.className="ol-popup-content";let kt="";if(st?.popupFunction){const ee=st.popupFunction(z);kt="string"==typeof ee?ee:this.createPopupHtml(ee)}else it?kt="string"==typeof it?it:this.createPopupHtml(it):Object.keys(z.properties).length&&(kt=this.createPopupHtml(z.properties));if(Pt.innerHTML=kt,st?.dynamicPopup){const ee=y.getId().toString();this.destroyDynamicPopupComponent(ee),this.createDynamicPopupComponent(ee,Pt,z,st)}const zt=document.createElement("div");if(zt.className="ol-popup",zt.id=y.getId().toString(),zt.style.display="block",!vt||"move"!==vt){const ee=document.createElement("a");ee.className="ol-popup-closer",zt.appendChild(ee);const re=()=>{ee.removeEventListener("click",re,!1),this.map.removeOverlay(y),this.destroyDynamicPopupComponent(y.getId().toString())};ee.addEventListener("click",re,!1)}return zt.appendChild(Pt),zt}removeAllPopups(y){let z=this.getPopups();y&&(z=this.getPopups().filter(y)),z.forEach(st=>{st.get(he)===ze&&(this.map.removeOverlay(st),this.destroyDynamicPopupComponent(st.getId().toString()))})}hideAllPopups(y,z){let st=this.getPopups();z&&(st=this.getPopups().filter(z)),st.forEach(it=>{if(it.get(he)===ze){const vt=it.getElement();y?vt.classList.add("hidden"):vt.classList.remove("hidden")}})}createPopupHtml(y){let z="";for(const st in y)y.hasOwnProperty(st)&&(z+='");return z+="
'+st+": "+y[st]+"
",z}getPopups(){const y=[];return this.map.getOverlays().getArray().slice(0).forEach(z=>{z.get(he)===ze&&y.push(z)}),y}destroyDynamicPopupComponent(y){this.dynamicPopupComponents.has(y)&&(this.dynamicPopupComponents.get(y).destroy(),this.dynamicPopupComponents.delete(y))}createDynamicPopupComponent(y,z,st,it){const vt=(0,_.LMc)(it.dynamicPopup.component,{environmentInjector:this.envInjector,hostElement:z});if(it.dynamicPopup.getAttributes){const Pt=it.dynamicPopup.getAttributes(st);for(const kt in Pt)"undefined"!==Pt[kt]&&(vt.instance[kt]=Pt[kt])}this.app.attachView(vt.hostView),this.dynamicPopupComponents.set(y,vt)}setExtent(y,z,st){const it=(0,dt.U2)(z?Pe:this.EPSG),vt=(0,dt.$A)(y.slice(0,4),it,this.getProjection().getCode()),Pt={size:this.map.getSize()};return st&&Object.assign(Pt,st),this.map.getView().fit(vt,st),vt}setCenter(y,z){const st=(0,dt.U2)(z?Pe:this.EPSG),it=(0,dt.vs)(y,st,this.getProjection().getCode());return this.map.getView().setCenter(it),it}getCenter(y){const z=(0,dt.U2)(y?Pe:this.EPSG),st=(0,dt.U2)(this.getProjection().getCode());return(0,dt.vs)(this.map.getView().getCenter(),st,z)}getFeaturesExtent(y,z){const st=y[0].getGeometry().getExtent().slice(0);if(y.forEach(it=>{(0,$t.l7)(st,it.getGeometry().getExtent())}),z){const it=(0,dt.U2)(Pe);return(0,dt.$A)(st,this.getProjection().getCode(),it)}return st}getCurrentExtent(y){const z=(0,dt.U2)(y?Pe:this.EPSG),st=this.map.getView().calculateExtent();return(0,dt.$A)(st,this.getProjection().getCode(),z)}setZoom(y){this.map.getView().setZoom(y)}getZoom(){return this.map.getView().getZoom()}zoomInOut(y,z){const st=this.map.getView();if(!st)return;const it=z?.zoomStep||1,vt="+"===y?it:-1*it,Pt=st.getZoom();if(void 0!==Pt){const kt=st.getConstrainedZoom(Pt+vt);st.getAnimating()&&st.cancelAnimations(),st.animate({zoom:kt,duration:z?.duration||250,easing:z?.easing||Qt.Vv},zt=>{z.callback&&z.callback(zt)})}}geoJsonToFeature(y){return new ht.Z({dataProjection:Pe,featureProjection:this.EPSG}).readFeature(y)}geoJsonToFeatures(y){return new ht.Z({dataProjection:Pe,featureProjection:this.EPSG}).readFeatures(y)}getProjection(){return this.map.getView().getProjection()}reprojectFeatures(y,z,st){y.getFeatures().forEach(it=>{it.getGeometry().transform(z,st)})}setProjection(y){if(y){let z={};if(this.viewOptions&&(z=this.viewOptions,z.minResolution=void 0,z.maxResolution=void 0,z.resolution=void 0,z.resolutions=void 0),y instanceof Tt.Z){z.projection=y;const vt=(0,dt.vs)(this.map.getView().getCenter(),this.map.getView().getProjection(),y);z.center=vt,z.zoom=this.map.getView().getZoom()}else"string"==typeof y&&(z.projection=y,z.center=this.map.getView().getCenter(),z.zoom=this.map.getView().getZoom());const st=new H.ZP(z),it=this.EPSG;this.EPSG=st.getProjection().getCode(),this.map.setView(st),this.view=this.map.getView(),this.map.getLayers().getArray().forEach(vt=>{vt.getLayers().getArray().forEach(Pt=>{if(Pt instanceof N.Z){let kt=Pt.getSource();for(;kt.source;)kt=kt.source;kt instanceof G.Z&&this.reprojectFeatures(kt,it,this.EPSG)}})}),this.projectionChange.next(this.getProjection())}}registerProjection(y){Ht.Z.defs(y.code,y.proj4js),(0,Lt.z2)(Ht.Z)}getOlProjection(y){return new Tt.Z({code:y.code,extent:y.extent?y.extent:void 0,worldExtent:y.worldExtent?y.worldExtent:void 0,global:!!y.global&&y.global,units:y.units?y.units:void 0})}keysToUppercase(y){return Object.keys(y).forEach(z=>{const st=z.toUpperCase();st!==z&&(y[st]=y[z],delete y[z])}),y}}return Zt.\u0275fac=function(y){return new(y||Zt)(_.LFG(_.z2F),_.LFG(_.lqb))},Zt.\u0275prov=_.Yz7({token:Zt,factory:Zt.\u0275fac,providedIn:"root"}),Zt})()},1899:(Vt,gt,r)=>{"use strict";r.d(gt,{oC:()=>j,BR:()=>_.B});var _=r(7560),Q=(r(3307),r(8692)),H=r(4537);let j=(()=>{class N{}return N.\u0275fac=function(S){return new(S||N)},N.\u0275mod=H.oAB({type:N}),N.\u0275inj=H.cJS({providers:[_.B],imports:[Q.ez]}),N})()},5548:(Vt,gt,r)=>{"use strict";r.d(gt,{AO:()=>P,ED:()=>S,sM:()=>h,Sw:()=>j,R6:()=>N,mh:()=>f,ex:()=>T,KD:()=>dt,YY:()=>i,WQ:()=>x,jn:()=>v,CY:()=>_,DJ:()=>m,KF:()=>w,TI:()=>C,MR:()=>g,RC:()=>U,$6:()=>Q,Aq:()=>H});const _="tms",g="wms",Q="wmts",H="xyz",j="geojson",N="kml",w="wfs",S="custom",v="stacked",h={Baselayers:"Baselayers",Overlays:"Overlays",Layers:"Layers"};class f{constructor(L){this.name="",this.id="",this.opacity=1,this.visible=!0,this.removable=!1,this.filtertype="Layers",this.continuousWorld=!1,this.expanded=!1,Object.assign(this,L)}get time(){return this.protTime}set time(L){this.protTime=L}}class i extends f{constructor(L){if(super(L),this.styles&&this.styles.length>0){let p=this.styles.find(M=>M.default);p||(p=this.styles[0]),this.legendImg=p.legendURL,this.params?(this.type===g?this.params.STYLES=p.name:this.type===Q&&(this.params.style=p.name),this.params.STYLES=p.name):this.type===Q&&(this.params||(this.params={}),this.params.style=p.name)}}set time(L){this.params&&(this.params.TIME=L),this.protTime=L}get time(){return this.protTime}}class m extends f{constructor(L){super(L)}}class P extends f{constructor(L){super(L),this.type=S,this.custom_layer={},Object.assign(this,L)}}class x extends f{constructor(L){super(L),this.type=v,this.layers=[],Object.assign(this,L)}}class T{constructor(L){this.filtertype="Layers",this.removable=!0,this.layerRemovable=!0,this.expanded=!1,L&&void 0!==L.visible&&L.layers&&L.layers.length&&(L.layers=L.layers.map(p=>(p.visible=L.visible,p))),Object.assign(this,L)}get visible(){return this.layers&&this.layers.length&&(this.protVisible=this.layers.filter(L=>L.visible).length>0),this.protVisible}set visible(L){this.protVisible=L,this.layers&&this.layers.length&&(this.layers=this.layers.map(p=>(p.visible=L,p)))}}class U extends i{constructor(L){super(L)}}class C extends i{constructor(L){super(L)}}var X=r(6215),$=r(4537);let dt=(()=>{class k{constructor(){this.store=new X.X(Array()),this.baseLayers=new X.X(Array()),this.overlays=new X.X(Array()),this.layers=new X.X(Array())}addLayer(p,M,R){if(this.isInLayergroups(p))console.error(`layer or Group with id: ${p.id} already exists!`);else{M?p.filtertype=M:M=p.filtertype;const K=this.store.getValue();R||(K.push(p),this.store.next(K)),this.filterFiltertype(M)}}removeLayer(p,M,R){this.isInLayergroups(p)?R?(console.log(`layer: ${p.id} is removed with force!`),this._removeLayer(p,M)):p.removable?this._removeLayer(p,M):p.removable||console.log(`layer: ${p.id} is not removable!`):console.error(`layer with id: ${p.id} not in storeItems!`)}_removeLayer(p,M){M?M!==p.filtertype&&console.error(`the layer with id: ${p.id} you want to remove from ${M} is from filtertype: ${p.filtertype}`):M=p.filtertype;const R=this.store.getValue().filter(K=>K instanceof f?K.id!==p.id:K);this.store.next(R),this.filterFiltertype(M)}updateLayer(p,M){this.isInLayergroups(p)?(M?M!==p.filtertype&&console.error(`the layer with id: ${p.id} you want to update is from filtertype: ${p.filtertype} and not from ${M} `):M=p.filtertype,"Overlays"===p.filtertype&&(this.updateLayerOrGroupInStore(p),this.filterFiltertype(p.filtertype)),"Layers"===p.filtertype&&(this.updateLayerOrGroupInStore(p),this.filterFiltertype(p.filtertype)),"Baselayers"===p.filtertype&&(this.updateLayerOrGroupInStore(p),this.filterFiltertype(p.filtertype))):console.error(`layer with id: ${p.id} you want to update not in storeItems!`)}updateLayerOrGroupInStore(p){this.store.getValue().filter((M,R,K)=>{M instanceof f&&p instanceof f?M.id===p.id&&(K[R]=p,this.store.next(K)):M instanceof T&&p instanceof T&&M.id===p.id&&(K[R]=p,this.store.next(K))})}removeLayerOrGroupById(p,M,R){this.store.getValue().filter(K=>{K instanceof f?K.id===p&&this.removeLayer(K,K.filtertype||"Layers",R):K instanceof T&&(K.id===p?this.removeLayerGroup(K,R):K.layers.forEach(G=>{G.id===p&&this.removeLayerFromGroup(G,K,M,R)}))})}addLayerToGroup(p,M){this.isInLayergroups(p)?console.error(`layer with id: ${p.id} already exists!`):(p.filtertype!==M.filtertype&&(p.filtertype=M.filtertype),this.isInLayergroups(p,[M])?console.error(`layer with id: ${p.id} already exists in ${M.id}!`,M):(M.layers.push(p),this.updateLayerGroup(M)))}addLayerToGroupById(p,M){this.store.getValue().forEach(R=>{R instanceof T&&R.id===M&&this.addLayerToGroup(p,R)})}removeLayerFromGroup(p,M,R=!0,K){M.layers=M.layers.filter(G=>G.id!==p.id),this.updateLayerGroup(M),this.filterFiltertype(p.filtertype),0===M.layers.length&&R&&this.removeLayerGroup(M,K)}setLayerIndexInGroup(p,M,R){const K=R.layers.indexOf(p);switch(M){case"up":if(0===K)break;this.arrayMove(R.layers,K,K-1);break;case"down":if(K===R.layers.length-1)break;this.arrayMove(R.layers,K,K+1)}this.updateLayer(p,R.filtertype||"Layers")}addLayerGroup(p,M){if(!this.isInLayergroups(p)){M?p.filtertype=M:M=p.filtertype;const R=this.store.getValue();this.isInLayergroups(p,p.layers)&&(p.layers=p.layers.filter(K=>K.id!==p.id)),p.layers=p.layers.map(K=>(K.filtertype=p.filtertype,K)),R.push(p),this.store.next(R),this.updateLayerGroup(p)}}removeLayerGroup(p,M){this.isInLayergroups(p)?M?(console.log(`layerGroup: ${p.id} is removed with force!`),this._removeLayerGroup(p)):p.removable?this._removeLayerGroup(p):p.removable||console.log(`layerGroup: ${p.id} is not removable!`):console.error(`layer or Group with id: ${p.id} not in storeItems!`)}_removeLayerGroup(p){for(const K of p.layers)this.removeLayerFromGroup(K,p);const R=this.store.getValue().filter(function(K,G){return K.id!==p.id});this.store.next(R)}updateLayerGroup(p,M=!1){M&&(p=this.sortLayerGroup(p)),this.updateLayerOrGroupInStore(p);for(const R of p.layers)this.updateLayer(R,p.filtertype||"Layers")}arrayMove(p,M,R){p.splice(R<0?p.length+R:R,0,p.splice(M,1)[0])}setGroupLayerIndex(p,M){let R;if((p instanceof f&&p.filtertype||p instanceof T)&&(R=this.getNumOfGroups(p.filtertype)),R>1){const K=this.store.getValue(),G=K.indexOf(p);(!this.isGroupFirst(p)||!this.isGroupLast(p))&&("number"==typeof M?this.arrayMove(K,G,M):"up"===M?this.arrayMove(K,G,G-1):"down"===M&&this.arrayMove(K,G,G+1)),this.store.next(K),this.baseLayers.next(this.filterBaseLayers()),this.layers.next(this.filterLayers()),this.overlays.next(this.filterOverlays())}}getNumOfGroups(p){let M=0;const R=this.store.getValue();for(const K of R)K.filtertype===p&&M++;return M}isGroupFirst(p,M,R){let K=!1,G=this.store.getValue();return M&&(G=M),R&&(G=G.filter(J=>J.filtertype===R)),0===G.indexOf(p)&&(K=!0),K}isGroupLast(p,M,R){let K=!1,G=this.store.getValue();return M&&(G=M),R&&(G=G.filter(J=>J.filtertype===R)),G.indexOf(p)===G.length-1&&(K=!0),K}isInLayergroups(p,M){let K,R=!1;K=p instanceof f||p instanceof T?p.id:p;const G=this.getLayerOrGroupById(K,M);return(G&&G instanceof f||G instanceof T)&&(R=!0),R}getLayerOrGroupById(p,M){const R=[];let K=this.store.getValue();return M&&(K=M),K.map(G=>{G instanceof T?G.id===p?R.push(G):G.layers.map(J=>{J.id===p&&R.push(J)}):G instanceof f&&G.id===p&&R.push(G)}),R.length?1===R.length?R[0]:void(R.length>1&&console.log("there is a duplicate ID in the Layer Groups!")):null}getLayerById(p,M){let R,K=this.flattenDeepArray(this.store.getValue());return M&&(K=M),K.map(G=>{G.id===p&&(R=G)}),R}getBaseLayers(){return this.baseLayers.asObservable()}removeBaseLayers(p){let M=this.filterBaseLayers();return p&&(M=M.filter(p)),M.forEach(R=>{this.removeLayerOrGroupById(R.id)}),this.baseLayers.asObservable()}getBaseLayersCount(){return this.baseLayers.getValue().length}getOverlays(){return this.overlays.asObservable()}removeOverlays(p){let M=this.filterOverlays();return p&&(M=M.filter(p)),M.forEach(R=>{this.removeLayerOrGroupById(R.id)}),this.overlays.asObservable()}getOverlaysCount(){return this.overlays.getValue().length}getLayers(){return this.layers.asObservable()}removeLayers(p){let M=this.filterLayers();return p&&(M=M.filter(p)),M.forEach(R=>{this.removeLayerOrGroupById(R.id)}),this.layers.asObservable()}getLayersCount(){return this.layers.getValue().length}getLayerGroups(){return this.store.asObservable()}setLayerGroups(p,M){return p.length>0&&p.map(R=>{R instanceof T&&R.layers.length>0&&(R.layers=R.layers.map(K=>(K.filtertype=R.filtertype,K)))}),M?("Baselayers"===M?this.removeBaseLayers():"Layers"===M?this.removeLayers():"Overlays"===M&&this.removeOverlays(),p.map(R=>{R instanceof f?this.addLayer(R,M):R instanceof T&&this.addLayerGroup(R,M)})):(this.store.next(p),this.baseLayers.next(this.filterBaseLayers()),this.layers.next(this.filterLayers()),this.overlays.next(this.filterOverlays())),this.store.asObservable()}getLayerGroupsCount(){return this.store.getValue().length}flattenDeepArray(p){return p.reduce((M,R)=>R instanceof T&&Array.isArray(R.layers)?M.concat(this.flattenDeepArray(R.layers)):M.concat(R),[])}filterOverlays(){const p=this.store.getValue();return this.flattenDeepArray(p.filter(R=>"Overlays"===R.filtertype))}filterBaseLayers(){const p=this.store.getValue();return this.flattenDeepArray(p.filter(R=>"Baselayers"===R.filtertype))}filterLayers(){const p=this.store.getValue();return this.flattenDeepArray(p.filter(R=>"Layers"===R.filtertype))}filterFiltertype(p){"Baselayers"===p?this.baseLayers.next(this.filterBaseLayers()):"Overlays"===p?this.overlays.next(this.filterOverlays()):"Layers"===p&&this.layers.next(this.filterLayers())}sortLayerGroup(p){return p.layers.sort((M,R)=>{let K=0;return M instanceof i?K=1:R instanceof i&&(K=-1),K}),p}}return k.\u0275fac=function(p){return new(p||k)},k.\u0275prov=$.Yz7({token:k,factory:k.\u0275fac,providedIn:"root"}),k})()},790:(Vt,gt,r)=>{"use strict";r.d(gt,{U5:()=>_,I3:()=>N});class _{constructor(v,h,c,u=[-180,-90,180,90],s=(new Date).toISOString()){this.zoom=v,this.center=h,this.extent=u,this.time=s,this.options=Object.assign({maxzoom:0,minzoom:0,notifier:"map"},c)}sameCenter(v){return this.center.lat===v.lat&&this.center.lon===v.lon}sameZoom(v){return this.zoom===v}sameExtent(v){let c=!1;return this.extent.length===v.length&&(c=this.extent.every((u,s)=>v[s]===u)),c}sameNotifier(v){return this.options.notifier===v}}var g=r(6215),Q=r(8002),H=r(4537);const j=new _(0,{lat:0,lon:0});let N=(()=>{class S{constructor(){this.mapState=new g.X(j),this.lastAction=new g.X(null)}getMapState(){return this.mapState}setMapState(h){if(h)if(this.lastAction.next("setState"),h instanceof _){const c=new _(h.zoom,h.center,h.options,h.extent,h.time);this.mapState.next(c)}else{const c={notifier:"user",...h.options},u=new _(h.zoom,h.center,c,h.extent,h.time);this.mapState.next(u)}}getExtent(){return this.mapState.pipe((0,Q.U)(h=>h.extent))}setExtent(h,c="user"){if(!h)return;this.lastAction.next("setExtent");const u=this.getMapState().getValue();u.options.notifier=c;const s=new _(u.zoom,u.center,u.options,h,u.time);this.mapState.next(s)}setTime(h){const c=this.getMapState().getValue();c.time=h instanceof Date?h.toISOString():h,this.setMapState(c)}getLastAction(){return this.lastAction}}return S.\u0275fac=function(h){return new(h||S)},S.\u0275prov=H.Yz7({token:S,factory:S.\u0275fac,providedIn:"root"}),S})()},4879:(Vt,gt,r)=>{"use strict";r.d(gt,{UT:()=>st,qS:()=>ee,n8:()=>c,fA:()=>Q,yv:()=>v,f$:()=>S,AH:()=>h,vK:()=>H,f_:()=>Kt});var _=r(1591),g=r(8975);function Q(ot){let rt=[];for(const St of ot)if(St instanceof _.Z){const Ft=Q(St.getLayers().getArray());rt=Array.prototype.concat(rt,Ft)}else rt.push(St);return rt}function H(ot,rt,St,bt=!1){const Ft=rt.getContext("2d");if(!Ft)throw new Error("The target-canvas needs to use a 2d-context.");if(!rt.width||!rt.height)throw new Error("TargetCanvas: width or height have not been set.");Ft instanceof CanvasRenderingContext2D&&Ft.clearRect(0,0,rt.width,rt.height);const se=ot.getSize();rt.width=se[0],rt.height=se[1];const fe=Q(ot.getLayers().getArray()),Se=[];for(const Le of fe)if(Le.getVisible()&&Le.getOpacity()>0){const ke=Le.on("postrender",Ve=>{const si=Ve.context.canvas;Ft instanceof CanvasRenderingContext2D&&(Ft.beginPath(),Ft.drawImage(si,0,0,si.clientWidth,si.clientHeight,0,0,rt.width,rt.height),Ft.closePath())});Array.isArray(ke)?ke.map(Ve=>Se.push(Ve)):Se.push(ke)}bt?ot.on("rendercomplete",Le=>{St(rt)}):ot.once("rendercomplete",Le=>{for(const ke of Se)(0,g.B)(ke);St(rt)}),ot.renderSync()}function S(ot,rt,St=!1){ot.setVisible(rt),!St&&ot instanceof _.Z&&ot.getLayers().forEach(Ft=>{S(Ft,rt)})}function v(ot,rt,St=!1){ot.setOpacity(rt),!St&&ot instanceof _.Z&&ot.getLayers().forEach(Ft=>{v(Ft,rt)})}function h(ot,rt,St){ot.setZIndex(St>0?rt+St:rt),ot instanceof _.Z&&ot.getLayers().forEach(se=>{h(se,rt,St)})}function c(ot,rt,St){St.remove(ot),St.insertAt(rt,ot)}var u=r(6555),s=r(6906),f=r(9015);const i=ot=>{let rt=[];for(const St of ot){let bt;bt=Array.isArray(St[0])?i(St):St,rt=Array.prototype.concat(rt,bt)}return rt},m=(ot,rt)=>Math.log(ot)/Math.log(rt),e=(ot,rt)=>m(ot,rt)%1==0,U=(ot,rt,St)=>{const bt=ot.createShader(rt);if(!bt)throw new Error("No shader was created");if(ot.shaderSource(bt,St),ot.compileShader(bt),!ot.getShaderParameter(bt,ot.COMPILE_STATUS))throw ot.deleteShader(bt),new Error(`An error occurred compiling the shader: ${ot.getShaderInfoLog(bt)}. \n\n Shader code: ${St}`);return bt},X=(ot,rt)=>{ot.useProgram(rt)},p=(ot,rt,St)=>{ot.bindBuffer(ot.ARRAY_BUFFER,St.buffer),ot.enableVertexAttribArray(rt),ot.vertexAttribPointer(rt,St.vectorSize,St.type,St.normalize,St.stride,St.offset)},ut=(ot,rt,St,bt)=>{if(St>ot.getParameter(ot.MAX_COMBINED_TEXTURE_IMAGE_UNITS))throw new Error(`There are only ${ot.getParameter(ot.MAX_COMBINED_TEXTURE_IMAGE_UNITS)} texture bind points, but you tried to bind to point nr. ${St}.`);7===St&&console.error(`You are about to bind to the dedicated texture-construction bind point (nr. ${St}).\n If after this call another texture is built, your shader will now use that new texture instead of this one!\n Consider using another bind point.`),ot.activeTexture(ot.TEXTURE0+St),ot.bindTexture(ot.TEXTURE_2D,rt),ot.uniform1i(bt,St)},$t=(ot,rt,St)=>{const bt=ot.getUniformLocation(rt,St);if(null===bt)throw new Error(`Couldn't find uniform ${St} in program.`);return bt},ae=(ot,rt,St,bt)=>{switch(St){case"bool":case"int":ot.uniform1i(rt,bt[0]);break;case"bvec2":case"ivec2":ot.uniform2i(rt,bt[0],bt[1]);break;case"bvec3":case"ivec3":ot.uniform3i(rt,bt[0],bt[1],bt[2]);break;case"bvec4":case"ivec4":ot.uniform4i(rt,bt[0],bt[1],bt[2],bt[3]);break;case"bool[]":case"int[]":ot.uniform1iv(rt,bt);break;case"bvec2[]":case"ivec2[]":ot.uniform2iv(rt,bt);break;case"bvec3[]":case"ivec3[]":ot.uniform3iv(rt,bt);break;case"bvec4[]":case"ivec4[]":ot.uniform4iv(rt,bt);break;case"float":ot.uniform1f(rt,bt[0]);break;case"vec2":ot.uniform2f(rt,bt[0],bt[1]);break;case"vec3":ot.uniform3f(rt,bt[0],bt[1],bt[2]);break;case"vec4":ot.uniform4f(rt,bt[0],bt[1],bt[2],bt[3]);break;case"float[]":ot.uniform1fv(rt,bt);break;case"vec2[]":ot.uniform2fv(rt,bt);break;case"vec3[]":ot.uniform3fv(rt,bt);break;case"vec4[]":ot.uniform4fv(rt,bt);break;case"mat2":ot.uniformMatrix2fv(rt,!1,bt);break;case"mat3":ot.uniformMatrix3fv(rt,!1,bt);break;case"mat4":ot.uniformMatrix4fv(rt,!1,bt);break;default:throw Error(`Type ${St} not implemented.`)}};class xe{constructor(rt,St,bt){this.vertexShaderSource=St,this.fragmentShaderSource=bt,this.program=((ot,rt,St)=>{const bt=ot.createProgram();if(!bt)throw new Error("No program was created");const Ft=U(ot,ot.VERTEX_SHADER,rt),se=U(ot,ot.FRAGMENT_SHADER,St);if(ot.attachShader(bt,Ft),ot.attachShader(bt,se),ot.linkProgram(bt),ot.detachShader(bt,Ft),ot.detachShader(bt,se),ot.deleteShader(Ft),ot.deleteShader(se),!ot.getProgramParameter(bt,ot.LINK_STATUS))throw ot.deleteProgram(bt),new Error("Unable to initialize the shader program: "+ot.getProgramInfoLog(bt));return bt})(rt,St,bt),this.id=function(ot){let rt=0;for(const St of ot)rt+=St.charCodeAt(0);return`${rt}`}(St+bt)}}class Ze{constructor(rt,St,bt,Ft,se){this.location=$t(rt,St.program,bt),this.type=Ft,this.value=se,this.variableName=bt}}class xt{constructor(rt,St,bt,Ft,se){this.location=$t(rt,St.program,bt),this.texture=Ft instanceof HTMLImageElement||Ft instanceof HTMLCanvasElement?((ot,rt)=>{const St=ot.createTexture();if(!St)throw new Error("No texture was created");ot.activeTexture(ot.TEXTURE0+7),ot.bindTexture(ot.TEXTURE_2D,St);const Ft=ot.RGBA,se=ot.RGBA,fe=ot.UNSIGNED_BYTE;let Se,Le;return ot.texImage2D(ot.TEXTURE_2D,0,Ft,se,fe,rt),ot.generateMipmap(ot.TEXTURE_2D),ot.bindTexture(ot.TEXTURE_2D,null),rt instanceof HTMLImageElement?(Se=rt.naturalWidth,Le=rt.naturalHeight):(Se=rt.width,Le=rt.height),{texture:St,level:0,internalformat:Ft,format:se,type:fe,width:Se,height:Le,border:0}})(rt,Ft):Ft,this.bindPoint=se,this.variableName=bt}}class Nt{constructor(rt,St,bt,Ft,se){this.location=$t(rt,St.program,bt),this.texture=((ot,rt)=>{const St=rt.length,bt=rt[0].length,Ft=rt[0][0].length;if(!e(bt,2)||!e(St,2))throw new Error(`Texture-data-dimensions must be a power of two, but are ${bt} x ${St}`);if(4!==Ft)throw new Error(`Expecting 4 channels, but ${Ft} provided`);const se=ot.createTexture();if(!se)throw new Error("No texture was created");ot.activeTexture(ot.TEXTURE0+7),ot.bindTexture(ot.TEXTURE_2D,se);const Le=ot.RGBA,ke=ot.RGBA,Ve=ot.UNSIGNED_BYTE,qe=new Uint8Array(i(rt));return 4!==Ft&&ot.pixelStorei(ot.UNPACK_ALIGNMENT,1),ot.texImage2D(ot.TEXTURE_2D,0,Le,bt,St,0,ke,Ve,qe),ot.texParameteri(ot.TEXTURE_2D,ot.TEXTURE_WRAP_S,ot.CLAMP_TO_EDGE),ot.texParameteri(ot.TEXTURE_2D,ot.TEXTURE_WRAP_T,ot.CLAMP_TO_EDGE),ot.texParameteri(ot.TEXTURE_2D,ot.TEXTURE_MIN_FILTER,ot.NEAREST),ot.texParameteri(ot.TEXTURE_2D,ot.TEXTURE_MAG_FILTER,ot.NEAREST),ot.bindTexture(ot.TEXTURE_2D,null),{texture:se,level:0,internalformat:Le,format:ke,type:Ve,width:bt,height:St,border:0}})(rt,Ft),this.bindPoint=se,this.variableName=bt}}class Bt{constructor(rt,St,bt,Ft,se="triangles"){let fe;switch(se){case"triangles":fe=rt.TRIANGLES;break;case"lines":fe=rt.LINES;break;case"points":fe=rt.POINTS;break;default:throw new Error(`Invalid drawing mode ${se}`)}this.location=((ot,rt,St)=>{const bt=ot.getAttribLocation(rt,St);if(-1===bt)throw new Error(`Couldn't find attribute ${St} in program.`);return bt})(rt,St.program,bt),this.value=((ot,rt,St=ot.TRIANGLES)=>{const bt=new Float32Array(i(rt)),Ft=ot.createBuffer();if(!Ft)throw new Error("No buffer was created");return ot.bindBuffer(ot.ARRAY_BUFFER,Ft),ot.bufferData(ot.ARRAY_BUFFER,bt,ot.STATIC_DRAW),ot.bindBuffer(ot.ARRAY_BUFFER,null),{buffer:Ft,vectorSize:rt[0].length,vectorCount:rt.length,type:ot.FLOAT,normalize:!1,stride:0,offset:0,drawingMode:St}})(rt,Ft,fe),this.variableName=bt,this.drawingMode=fe}}class ie{constructor(rt,St,bt="triangles"){let Ft;switch(bt){case"triangles":Ft=rt.TRIANGLES;break;case"lines":Ft=rt.LINES;break;case"points":Ft=rt.POINTS;break;default:throw new Error(`Invalid drawing mode ${bt}`)}this.index=((ot,rt,St=ot.TRIANGLES)=>{const bt=new Uint16Array(i(rt)),Ft=ot.createBuffer();if(!Ft)throw new Error("No buffer was created");return ot.bindBuffer(ot.ELEMENT_ARRAY_BUFFER,Ft),ot.bufferData(ot.ELEMENT_ARRAY_BUFFER,bt,ot.STATIC_DRAW),ot.bindBuffer(ot.ELEMENT_ARRAY_BUFFER,null),{buffer:Ft,count:bt.length,type:ot.UNSIGNED_SHORT,offset:0,drawingMode:St}})(rt,St,Ft)}}function Te(ot,rt){for(const St of ot)if(rt(St))return St;return null}class Mt{constructor(rt,St,bt,Ft,se){this.program=rt,this.attributes=St,this.uniforms=bt,this.textures=Ft,this.index=se;const[fe,Se,Le,ke]=function he(ot){const rt=/^\s*attribute (int|float|vec2|vec3|vec4|mat2|mat3|mat4) (\w*);/gm,St=/^\s*uniform (int|float|vec2|vec3|vec4|mat2|mat3|mat4) (\w*)(\[\d\])*;/gm,bt=/^\s*uniform sampler2D (\w*);/gm,Ft=/^\s*precision (\w*) float;/gm,se=ot.fragmentShaderSource+"\n\n\n"+ot.vertexShaderSource,fe=[];let Se;for(;null!==(Se=rt.exec(se));)fe.push(Se[2]);const Le=[];let ke;for(;null!==(ke=St.exec(se));)Le.push(ke[2]);const Ve=[];let qe;for(;null!==(qe=bt.exec(se));)Ve.push(qe[1]);const si=[];let pi;for(;null!==(pi=Ft.exec(se));)si.push(pi[1]);return[fe,Le,Ve,si]}(rt);for(const qe of fe){const si=St.filter(pi=>pi.variableName===qe);if(1!==si.length)throw new Error(`Provided ${si.length} values for shader's attribute ${qe}.`)}for(const qe of Se){const si=bt.filter(pi=>pi.variableName===qe);if(1!==si.length)throw new Error(`Provided ${si.length} values for shader's uniform ${qe}.`)}for(const qe of Le){const si=Ft.filter(pi=>pi.variableName===qe);if(1!==si.length)throw new Error(`Provided ${si.length} values for shader's texture ${qe}.`)}1===ke.length&&console.warn("You have only provided one precision qualifier.\n This can cause issues when you want to use a uniform in both the vertex- and the fragment-shader.");const Ve=this.attributes.map(qe=>qe.value.vectorCount);if(Math.min(...Ve)!==Math.max(...Ve))throw new Error("Your attributes are not of the same length!")}bind(rt){X(rt,this.program.program);for(const St of this.attributes)p(rt,St.location,St.value);for(const St of this.uniforms)ae(rt,St.location,St.type,St.value);for(const St of this.textures)ut(rt,St.texture.texture,St.bindPoint,St.location);this.index&&((ot,rt)=>{ot.bindBuffer(ot.ELEMENT_ARRAY_BUFFER,this.index.index.buffer)})(rt)}render(rt,St,bt,Ft){bt?((ot,rt,St)=>{ot.bindFramebuffer(ot.FRAMEBUFFER,rt.framebuffer),St?(rt.width/rt.height!=St[2]/St[3]&&console.warn("Your viewport-aspect is different from the framebuffer-aspect."),ot.viewport(...St)):ot.viewport(0,0,rt.width,rt.height)})(rt,bt,Ft):((ot,rt)=>{ot.bindFramebuffer(ot.FRAMEBUFFER,null),rt?(ot.canvas.width/ot.canvas.height!=rt[2]/rt[3]&&console.warn("Your viewport-aspect is different from the canvas-aspect."),ot.viewport(...rt)):ot.viewport(0,0,ot.canvas.width,ot.canvas.height)})(rt,Ft),St&&((ot,rt)=>{ot.clearColor(rt[0],rt[1],rt[2],rt[3]),ot.clearDepth(1),ot.clear(ot.COLOR_BUFFER_BIT|ot.DEPTH_BUFFER_BIT)})(rt,St),this.index?((ot,rt)=>{ot.drawElements(rt.drawingMode,rt.count,rt.type,rt.offset)})(rt,this.index.index):((ot,rt)=>{ot.drawArrays(rt.drawingMode,rt.offset,rt.vectorCount)})(rt,this.attributes[0].value)}updateAttributeData(rt,St,bt){const Ft=Te(this.attributes,se=>se.variableName===St);if(!Ft)throw new Error(`No such attribute ${St} to be updated.`);((ot,rt,St)=>{const bt=new Float32Array(i(St));ot.bindBuffer(ot.ARRAY_BUFFER,rt.buffer),ot.bufferData(ot.ARRAY_BUFFER,bt,ot.STATIC_DRAW),ot.bindBuffer(ot.ARRAY_BUFFER,null)})(rt,Ft.value,bt)}updateUniformData(rt,St,bt){const Ft=Te(this.uniforms,se=>se.variableName===St);if(!Ft)throw new Error(`No such uniform ${St} to be updated.`);Ft.value=bt}updateTextureData(rt,St,bt){const Ft=Te(this.textures,fe=>fe.variableName===St);if(!Ft)throw new Error(`No such texture ${St} to be updated.`);const se=((ot,rt,St)=>{if(ot.activeTexture(ot.TEXTURE0+7),ot.bindTexture(ot.TEXTURE_2D,rt.texture),St instanceof HTMLImageElement||St instanceof HTMLCanvasElement)ot.texImage2D(ot.TEXTURE_2D,0,ot.RGBA,ot.RGBA,ot.UNSIGNED_BYTE,St);else{const bt=St[0].length,Ft=St.length;if(!e(bt,2)||!e(Ft,2))throw new Error(`Texture-data-dimensions must be a power of two, but are ${Ft} x ${bt}`);const se=new Uint8Array(i(St));ot.texImage2D(ot.TEXTURE_2D,rt.level,rt.internalformat,rt.width,rt.height,rt.border,rt.format,rt.type,se)}return ot.generateMipmap(ot.TEXTURE_2D),ot.bindTexture(ot.TEXTURE_2D,null),St instanceof HTMLImageElement?(rt.width=St.naturalWidth,rt.height=St.naturalHeight):St instanceof HTMLCanvasElement?(rt.width=St.width,rt.height=St.height):(rt.width=St[0].length,rt.height=St.length),rt})(rt,Ft.texture,bt);Ft.texture=se}}class Dt{constructor(rt,St,bt){const Ft=(ot=>{const rt=ot.createFramebuffer();if(!rt)throw new Error("Error creating framebuffer");return rt})(rt),se=((ot,rt,St)=>{if(rt<=0||St<=0)throw new Error("Width and height must be positive.");const bt=ot.createTexture();if(!bt)throw new Error("No texture was created");return ot.activeTexture(ot.TEXTURE0+7),ot.bindTexture(ot.TEXTURE_2D,bt),ot.texImage2D(ot.TEXTURE_2D,0,ot.RGBA,rt,St,0,ot.RGBA,ot.UNSIGNED_BYTE,null),ot.texParameteri(ot.TEXTURE_2D,ot.TEXTURE_WRAP_S,ot.CLAMP_TO_EDGE),ot.texParameteri(ot.TEXTURE_2D,ot.TEXTURE_WRAP_T,ot.CLAMP_TO_EDGE),ot.texParameteri(ot.TEXTURE_2D,ot.TEXTURE_MIN_FILTER,ot.NEAREST),ot.texParameteri(ot.TEXTURE_2D,ot.TEXTURE_MAG_FILTER,ot.NEAREST),ot.bindTexture(ot.TEXTURE_2D,null),{texture:bt,level:0,internalformat:ot.RGBA,format:ot.RGBA,type:ot.UNSIGNED_BYTE,width:rt,height:St,border:0}})(rt,St,bt),fe=((ot,rt,St)=>{if(ot.bindFramebuffer(ot.FRAMEBUFFER,St),ot.framebufferTexture2D(ot.FRAMEBUFFER,ot.COLOR_ATTACHMENT0,ot.TEXTURE_2D,rt.texture,0),ot.checkFramebufferStatus(ot.FRAMEBUFFER)!==ot.FRAMEBUFFER_COMPLETE)throw new Error(`Error creating framebuffer: framebuffer-status: ${ot.checkFramebufferStatus(ot.FRAMEBUFFER)} ; error-code: ${ot.getError()}`);return ot.bindFramebuffer(ot.FRAMEBUFFER,null),{framebuffer:St,texture:rt,width:rt.width,height:rt.height}})(rt,se,Ft);this.fbo=fe}}function Kt(ot,rt){const St=1e3/ot;let Ft,se,fe,bt=St;const Se=()=>{Ft=window.performance.now(),rt(bt),se=window.performance.now(),bt=se-Ft,fe=Math.max(St-bt,0),setTimeout(()=>{requestAnimationFrame(Se)},fe)};Se()}const y=(ot,rt)=>({vertices:[[-ot/2,rt/2,0],[-ot/2,-rt/2,0],[ot/2,-rt/2,0],[-ot/2,rt/2,0],[ot/2,-rt/2,0],[ot/2,rt/2,0]],texturePositions:[[0,1],[0,0],[1,0],[0,1],[1,0],[1,1]]});class st extends s.Z{constructor(rt){super(rt)}createRenderer(){return this.renderer=new it(this),this.renderer}updateSunAngle(rt){this.renderer.updateSunAngle(rt)}}class it extends u.Z{constructor(rt){super(rt),this.state="loading";const St=document.createElement("canvas");St.width=1200,St.height=800,St.style.position="absolute";const bt=St.getContext("webgl"),Ft=rt.getSource(),se=Ft.getProjection(),fe=Ft.getImageExtent(),Se=this.bboxOntoRectangle(2,2,fe),Le=((ot,rt=256,St=256,bt="red")=>{const Ft=document.createElement("canvas").getContext("2d");if(!Ft)throw new Error("no context");return Ft.canvas.width=rt,Ft.canvas.height=St,Ft.font=`bold ${5*St/6|0}px sans-serif`,Ft.textAlign="center",Ft.textBaseline="middle",Ft.fillStyle=bt,Ft.fillText(ot,rt/2,St/2),Ft.canvas})("test",2048,2048,"red"),ke=new xe(bt,"\n attribute vec3 a_position;\n attribute vec2 a_texturePosition;\n uniform mat3 u_world2pix;\n uniform mat3 u_pix2canv;\n varying vec2 v_texturePosition;\n void main() {\n vec3 pixelPosition = u_world2pix * vec3(a_position.x, a_position.y, 1.);\n vec3 canvasPosition = u_pix2canv * pixelPosition;\n gl_Position = vec4(canvasPosition.x, canvasPosition.y, 0., 1.);\n v_texturePosition = a_texturePosition;\n }\n ","\n precision mediump float;\n uniform sampler2D u_srtm;\n uniform float u_imageSize;\n uniform vec3 u_sun;\n varying vec2 v_texturePosition;\n void main() {\n float delta = 4. / u_imageSize;\n float top = texture2D(u_srtm, vec2(v_texturePosition.x, 1. - v_texturePosition.y + delta)).r;\n float bot = texture2D(u_srtm, vec2(v_texturePosition.x, 1. - v_texturePosition.y - delta)).r;\n float lft = texture2D(u_srtm, vec2(v_texturePosition.x + delta, 1. - v_texturePosition.y )).r;\n float rgt = texture2D(u_srtm, vec2(v_texturePosition.x - delta, 1. - v_texturePosition.y )).r;\n\n vec3 surfaceNormal = vec3(\n lft - rgt,\n bot - top,\n 2. * delta\n );\n surfaceNormal = normalize(surfaceNormal);\n vec3 sunNormal = normalize(u_sun);\n float alignment = abs(dot(sunNormal, surfaceNormal));\n\n gl_FragColor = vec4(0., 0., 0., 0.5 * alignment);\n }\n ");X(bt,ke.program);const Ve=new Mt(ke,[new Bt(bt,ke,"a_position",Se.vertices),new Bt(bt,ke,"a_texturePosition",Se.texturePositions)],[new Ze(bt,ke,"u_imageSize","float",[2048]),new Ze(bt,ke,"u_sun","vec3",[0,0,1]),new Ze(bt,ke,"u_world2pix","mat3",i([[1,0,0],[0,1,0],[0,0,1]])),new Ze(bt,ke,"u_pix2canv","mat3",i([[1/(St.width/2),0,0],[0,-1/(St.height/2),0],[-1,1,1]]))],[new xt(bt,ke,"u_srtm",Le,0)]);Ve.bind(bt),this.shader=Ve,this.canvas=St,this.gl=bt,this.projection=se;const qe=Ft.getImage(fe,.02197265625,2.440000295639038,se);qe.addEventListener("change",si=>{const pi=qe.getImage();this.shader.updateTextureData(this.gl,"u_srtm",pi),this.shader.bind(this.gl),this.state="ready",super.getLayer().changed()}),qe.load()}prepareFrame(rt){if("ready"===this.state){const St=rt.coordinateToPixelTransform;this.shader.updateUniformData(this.gl,"u_world2pix",i([[St[0],St[1],0],[St[2],St[3],0],[St[4],St[5],1]])),this.shader.bind(this.gl),rt.viewState.projection!==this.projection&&this.reprojectImage(rt.viewState.projection)}return!0}renderFrame(rt,St){return"ready"===this.state&&(this.shader.render(this.gl),this.transformCanvas(rt)),this.canvas}renderDeclutter(rt){}updateSunAngle(rt){this.shader.updateUniformData(this.gl,"u_sun",[rt[0],rt[1],1]),this.shader.bind(this.gl),this.shader.render(this.gl)}bboxOntoRectangle(rt,St,bt){const Ft=y(rt,St);for(const se of Ft.vertices){const Se=se[1];se[0]=se[0]===rt/2?bt[2]:bt[0],se[1]=Se===St/2?bt[3]:bt[1]}return Ft}reprojectImage(rt){const St=super.getLayer().getSource(),bt=St.getProjection(),Ft=St.getImageExtent(),se=(0,f.$A)(Ft,bt,rt),fe=this.bboxOntoRectangle(2,2,se);this.shader.updateAttributeData(this.gl,"a_position",fe.vertices),this.shader.bind(this.gl)}transformCanvas(rt){const St=rt.layerStatesArray[rt.layerIndex],bt=rt.pixelRatio,Ft=rt.size,se=Math.round(Ft[0]*bt),fe=Math.round(Ft[1]*bt),Se=St.opacity;this.canvas.width=se,this.canvas.height=fe,this.canvas.style.opacity=`${Se}`,this.shader.updateUniformData(this.gl,"u_pix2canv",i([[1/(this.canvas.width/2),0,0],[0,-1/(this.canvas.height/2),0],[-1,1,1]]))}}var vt=r(2308),Pt=r(7356),kt=r(2663),zt=r(3842);class ee extends Pt.Z{constructor(rt){super(rt),this.options=rt}createRenderer(){return new re(this,this.options.renderSettings)}updateParas(rt,St,bt){const Ft={colorRamp:this.options.renderSettings.colorRamp,maxEdgeLength:this.options.renderSettings.maxEdgeLength,storeInterpolatedPixelData:this.options.renderSettings.storeInterpolatedPixelData,valueProperty:this.options.renderSettings.valueProperty,power:rt,showLabels:bt,smooth:St};super.getRenderer().updateSettings(Ft),this.options.renderSettings=Ft}}class re extends vt.Z{constructor(rt,St){super(rt),this.settings=St,this.container=document.createElement("div"),this.container.classList.add("ol-layer"),this.container.style.setProperty("position","absolute"),this.container.style.setProperty("width","100%"),this.container.style.setProperty("height","100%"),this.webGlCanvas=document.createElement("canvas"),this.webGlCanvas.style.setProperty("position","absolute"),this.webGlCanvas.style.setProperty("left","0px"),this.webGlCanvas.style.setProperty("top","0px"),this.webGlCanvas.style.setProperty("width","100%"),this.webGlCanvas.style.setProperty("height","100%"),this.webGlCanvas.width=1e3,this.webGlCanvas.height=1e3,this.gl=this.webGlCanvas.getContext("webgl"),this.container.appendChild(this.webGlCanvas),this.pointRenderer=new vt.Z(rt);const bt=rt.getSource();this.projection=bt.getProjection();const{coords:Ft,values:se,bboxDelta:fe,maxVal:Se}=this.parseData(bt,this.settings.valueProperty,this.settings.maxEdgeLength),{observationsBbox:Le,maxEdgeLengthBbox:ke}=this.parseDataBbox(fe,Ft,se,Se,this.settings.maxEdgeLength);this.bbox=fe;const Ve=[[1,0,0],[0,1,0],[0,0,1]];this.interpolationShader=ge(this.gl,Le,Se,this.settings.power,ke),this.valueFb=new Dt(this.gl,this.webGlCanvas.width,this.webGlCanvas.height),this.colorizationShader=oe(this.gl,this.settings.colorRamp,Se,this.settings.smooth,this.valueFb),this.colorFb=new Dt(this.gl,this.webGlCanvas.width,this.webGlCanvas.height),this.arrangementShader=Xe(this.gl,Ve,Ve,fe,this.colorFb),this.runInterpolationShader(this.valueFb.fbo),this.runColorizationShader(this.colorFb.fbo)}prepareFrame(rt){if(this.webGlCanvas.style.opacity=`${rt.layerStatesArray[rt.layerIndex].opacity}`,rt.viewState.projection!==this.projection){this.projection=rt.viewState.projection;const Ft=super.getLayer().getSource(),{coords:se,values:fe,bboxDelta:Se,maxVal:Le}=this.parseData(Ft,this.settings.valueProperty,this.settings.maxEdgeLength),{observationsBbox:ke,maxEdgeLengthBbox:Ve}=this.parseDataBbox(Se,se,fe,Le,this.settings.maxEdgeLength);this.updateInterpolationShader(this.settings.power,ke,Ve),this.runInterpolationShader(this.valueFb.fbo),this.runColorizationShader(this.colorFb.fbo),this.bbox=Se}return this.updateArrangementShader(rt.coordinateToPixelTransform,rt.size[0],rt.size[1],this.bbox),this.pointRenderer.prepareFrame(rt),!0}renderFrame(rt,St){if(this.runArrangementShader(),this.settings.showLabels){const bt=this.pointRenderer.renderFrame(rt,this.container);(0,zt.hF)(this.container,[this.webGlCanvas,bt])}else(0,zt.hF)(this.container,[this.webGlCanvas]);return this.container}renderDeclutter(rt){}updateSettings(rt){const St=this.settings;this.settings=rt,rt.power!==St.power?(this.updateInterpolationShader(rt.power),this.runInterpolationShader(this.valueFb.fbo),this.updateColorizationShader(rt.smooth),this.runColorizationShader(this.colorFb.fbo)):rt.smooth!==St.smooth&&(this.updateColorizationShader(rt.smooth),this.runColorizationShader(this.colorFb.fbo)),super.getLayer().changed()}updateArrangementShader(rt,St,bt,Ft){const fe=[[1/(St/2),0,0],[0,-1/(bt/2),0],[-1,1,1]];this.arrangementShader.updateUniformData(this.gl,"u_world2pix",i([[rt[0],rt[1],0],[rt[2],rt[3],0],[rt[4],rt[5],1]])),this.arrangementShader.updateUniformData(this.gl,"u_pix2clip",i(fe)),this.arrangementShader.updateUniformData(this.gl,"u_bbox",Ft)}runArrangementShader(rt){this.arrangementShader.bind(this.gl),this.arrangementShader.render(this.gl,[0,0,0,0],rt)}updateInterpolationShader(rt,St,bt){this.interpolationShader.updateUniformData(this.gl,"u_power",[rt]),St&&this.interpolationShader.updateTextureData(this.gl,"u_dataTexture",[St]),bt&&this.interpolationShader.updateUniformData(this.gl,"u_maxDistance",[bt])}runInterpolationShader(rt){this.interpolationShader.bind(this.gl),this.interpolationShader.render(this.gl,[0,0,0,0],rt),this.settings.storeInterpolatedPixelData&&(this.interpolatedValues=(ot=>{const rt=ot.getContext("webgl");if(!rt)throw new Error("no context");const St=rt.getParameter(rt.IMPLEMENTATION_COLOR_READ_FORMAT),bt=rt.getParameter(rt.IMPLEMENTATION_COLOR_READ_TYPE);let Ft;if(bt===rt.UNSIGNED_BYTE)Ft=new Uint8Array(rt.drawingBufferWidth*rt.drawingBufferHeight*4);else if(bt===rt.UNSIGNED_SHORT_5_6_5||bt===rt.UNSIGNED_SHORT_4_4_4_4||bt===rt.UNSIGNED_SHORT_5_5_5_1)Ft=new Uint16Array(rt.drawingBufferWidth*rt.drawingBufferHeight*4);else{if(bt!==rt.FLOAT)throw new Error(`Did not understand pixel data type ${bt} for format ${St}`);Ft=new Float32Array(rt.drawingBufferWidth*rt.drawingBufferHeight*4)}return rt.readPixels(0,0,ot.width,ot.height,St,bt,Ft),Ft})(this.webGlCanvas))}updateColorizationShader(rt){this.colorizationShader.updateUniformData(this.gl,"u_smooth",[rt?1:0])}runColorizationShader(rt){this.colorizationShader.bind(this.gl),this.colorizationShader.render(this.gl,[0,0,0,0],rt)}parseData(rt,St,bt){let Ft=rt.getFeatures();Ft=rt instanceof kt.Z?rt.getSource().getFeatures():rt.getFeatures();const se=Ft.map(Di=>Di.getGeometry().getCoordinates()),fe=Ft.map(Di=>parseFloat(Di.getProperties()[St])),Se=oi(se),Le=Se[2]-Se[0],ke=Se[3]-Se[1];let Ve,qe;Le>ke?(qe=Le-ke,Ve=0):(qe=0,Ve=ke-Le);const si=[Se[0]-bt,Se[1]-bt,Se[2]+Ve+bt,Se[3]+qe+bt],pi=fe.reduce((Di,Ri)=>Ri>Di?Ri:Di,0);return{coords:se,values:fe,bboxDelta:si,maxVal:pi}}parseDataBbox(rt,St,bt,Ft,se){const fe=Qe(St,bt).map(si=>{const pi=we([si[0],si[1]],rt);return[255*(pi[0]+1)/2,255*(pi[1]+1)/2,255*si[2]/Ft,255]}),Se=fe.length,Le=((ot,rt)=>{const St=Math.ceil(m(ot,2));return Math.pow(2,St)})(Se);for(let si=0;si[(ot[0]-rt[0])/(rt[2]-rt[0])*2-1,(ot[1]-rt[1])/(rt[3]-rt[1])*2-1],ge=(ot,rt,St,bt,Ft)=>{const fe=new xe(ot,"\n precision mediump float;\n attribute vec3 a_position;\n attribute vec2 a_texturePosition;\n varying vec2 v_position;\n varying vec2 v_texturePosition;\n\n void main() {\n v_position = a_position.xy;\n v_texturePosition = a_texturePosition;\n gl_Position = vec4(a_position.xy, 0.0, 1.0);\n }\n ","\n precision mediump float;\n uniform float u_power;\n uniform sampler2D u_dataTexture;\n uniform int u_nrDataPoints;\n uniform float u_maxValue;\n uniform float u_maxDistance;\n varying vec2 v_position;\n varying vec2 v_texturePosition;\n\n void main() {\n\n float valSum = 0.0;\n float wSum = 0.0;\n float minD = 10000.0;\n for (int i = 0; i < 10000; i++) {\n if (i > u_nrDataPoints) {\n break;\n }\n vec4 dataPoint = texture2D(u_dataTexture, vec2(float(i) / float(u_nrDataPoints), 0.5));\n if (dataPoint.w > 0.0) { // texture is padded to next power of two with transparent 0-values.\n vec2 coords = dataPoint.xy * 2.0 - 1.0; // transforming coords from [0, 1] to [-1, 1]\n float value = dataPoint.z * u_maxValue; // transforming value from [0, 1] to [0, maxValue]\n\n float d = distance(v_position, coords);\n float w = 1.0 / pow(d, u_power);\n valSum += value * w;\n wSum += w;\n if (d < minD) {\n minD = d;\n }\n }\n }\n float interpolatedValue = valSum / wSum;\n float alpha = 1.0;\n if (minD > u_maxDistance) {\n alpha = 0.0;\n }\n vec4 color = vec4(interpolatedValue / u_maxValue, 0.0, 0.0, alpha);\n\n gl_FragColor = color;\n }\n "),Se={vertices:[[-1,1,0],[-1,-1,0],[1,-1,0],[1,1,0]],texturePositions:[[0,1],[0,0],[1,0],[1,1]],vertexIndices:[[0,1,2],[0,2,3]]};return new Mt(fe,[new Bt(ot,fe,"a_position",Se.vertices),new Bt(ot,fe,"a_texturePosition",Se.texturePositions)],[new Ze(ot,fe,"u_power","float",[bt]),new Ze(ot,fe,"u_nrDataPoints","int",[rt.length]),new Ze(ot,fe,"u_maxValue","float",[St]),new Ze(ot,fe,"u_maxDistance","float",[Ft])],[new Nt(ot,fe,"u_dataTexture",[rt],0)],new ie(ot,Se.vertexIndices))},oe=(ot,rt,St,bt,Ft)=>{const fe=new xe(ot,"\n precision mediump float;\n attribute vec2 a_position;\n attribute vec2 a_textureCoord;\n varying vec2 v_textureCoord;\n\n void main() {\n v_textureCoord = a_textureCoord;\n gl_Position = vec4(a_position.xy, 0.0, 1.0);\n }\n ","\n precision mediump float;\n uniform float u_colorRampValues[15];\n uniform vec3 u_colorRampColors[15];\n uniform int u_nrColorRampValues;\n uniform float u_maxValue;\n uniform bool u_smooth;\n uniform sampler2D u_valueTexture;\n varying vec2 v_textureCoord;\n\n vec3 valueToSmoothColor(in float value) {\n if (value < u_colorRampValues[0]) {\n return u_colorRampColors[0];\n }\n for (int i = 1; i < 15; i++) {\n if (i > u_nrColorRampValues) {\n break;\n }\n if (value < u_colorRampValues[i]) {\n float alpha = (value - u_colorRampValues[i-1]) / (u_colorRampValues[i] - u_colorRampValues[i-1]);\n vec3 color = alpha * (u_colorRampColors[i] - u_colorRampColors[i-1]) + u_colorRampColors[i-1];\n return color;\n }\n if (i == u_nrColorRampValues) {\n return u_colorRampColors[i];\n }\n }\n }\n\n vec3 valueToStepColor(in float value) {\n for (int i = 0; i < 15; i++) {\n if (i > u_nrColorRampValues) {\n break;\n }\n if (value < u_colorRampValues[i]) {\n return u_colorRampColors[i];\n }\n if (i == u_nrColorRampValues) {\n return u_colorRampColors[i];\n }\n }\n }\n\n void main() {\n vec4 pixelData = texture2D(u_valueTexture, v_textureCoord);\n float val = pixelData.r * u_maxValue;\n float alpha = pixelData.w;\n vec3 rgb = vec3(0.0, 0.0, 0.0);\n if (alpha > 0.01) {\n if (u_smooth) {\n rgb = valueToSmoothColor(val);\n } else {\n rgb = valueToStepColor(val);\n }\n }\n gl_FragColor = vec4(rgb.x / 255.0, rgb.y / 255.0, rgb.z / 255.0, alpha);\n }\n ");return new Mt(fe,[new Bt(ot,fe,"a_position",y(2,2).vertices),new Bt(ot,fe,"a_textureCoord",y(2,2).texturePositions)],[new Ze(ot,fe,"u_colorRampValues","float[]",rt.map(Le=>Le.val)),new Ze(ot,fe,"u_colorRampColors","vec3[]",i(rt.map(Le=>Le.rgb))),new Ze(ot,fe,"u_nrColorRampValues","int",[rt.length]),new Ze(ot,fe,"u_maxValue","float",[St]),new Ze(ot,fe,"u_smooth","bool",[bt?1:0])],[new xt(ot,fe,"u_valueTexture",Ft.fbo.texture,0)])},Xe=(ot,rt,St,bt,Ft)=>{const se=new xe(ot,"\n precision mediump float;\n attribute vec3 a_pos;\n attribute vec2 a_posTexture;\n uniform mat3 u_world2pix;\n uniform mat3 u_pix2clip;\n uniform vec4 u_bbox;\n varying vec2 v_posTexture;\n\n vec2 clipBbx2worldCoords(vec2 clipCoords, vec4 bbox) {\n float xPerct = ( clipCoords.x + 1.0 ) / 2.0;\n float yPerct = ( clipCoords.y + 1.0 ) / 2.0;\n float xWorld = xPerct * (bbox.z - bbox.x) + bbox.x;\n float yWorld = yPerct * (bbox.w - bbox.y) + bbox.y;\n return vec2(xWorld, yWorld);\n }\n\n void main() {\n v_posTexture = a_posTexture;\n vec2 worldPos = clipBbx2worldCoords(a_pos.xy, u_bbox);\n vec3 clipPos = u_pix2clip * u_world2pix * vec3(worldPos.xy, 1.0);\n gl_Position = vec4(clipPos.xy, 0.0, 1.0);\n }\n ","\n precision mediump float;\n uniform sampler2D u_texture;\n varying vec2 v_posTexture;\n\n void main() {\n gl_FragColor = texture2D(u_texture, v_posTexture);\n }\n ");return new Mt(se,[new Bt(ot,se,"a_pos",y(2,2).vertices),new Bt(ot,se,"a_posTexture",y(2,2).texturePositions)],[new Ze(ot,se,"u_world2pix","mat3",i(rt)),new Ze(ot,se,"u_pix2clip","mat3",i(St)),new Ze(ot,se,"u_bbox","vec4",bt)],[new xt(ot,se,"u_texture",Ft.fbo.texture,0)])},oi=ot=>{const rt=ot.map(Se=>Se[0]),St=ot.map(Se=>Se[1]),bt=Math.min(...rt),Ft=Math.max(...rt);return[bt,Math.min(...St),Ft,Math.max(...St)]},Qe=(ot,rt)=>{const St=[];for(let bt=0;bt{"use strict";r.d(gt,{Zt:()=>vi,Bh:()=>bo,Wj:()=>Vr,_t:()=>hi,bA:()=>Bs});var _=r(4537),g=r(8692);function Q(ct){return null!=ct&&"false"!=`${ct}`}function H(ct,F=0){return function j(ct){return!isNaN(parseFloat(ct))&&!isNaN(Number(ct))}(ct)?Number(ct):F}function S(ct){return ct instanceof _.SBq?ct.nativeElement:ct}var h=r(9765),c=r(5917),u=r(882),s=r(2759),f=r(3989),l=r(6493);const e=new class m extends l.v{flush(F){this.active=!0,this.scheduled=void 0;const{actions:I}=this;let tt,ft=-1,wt=I.length;F=F||I.shift();do{if(tt=F.execute(F.state,F.delay))break}while(++ft0?super.requestAsyncId(F,I,tt):(F.actions.push(this),F.scheduled||(F.scheduled=requestAnimationFrame(()=>F.flush(null))))}recycleAsyncId(F,I,tt=0){if(null!==tt&&tt>0||null===tt&&this.delay>0)return super.recycleAsyncId(F,I,tt);0===F.actions.length&&(cancelAnimationFrame(I),F.scheduled=void 0)}});let x=1;const T=Promise.resolve(),U={};function D(ct){return ct in U&&(delete U[ct],!0)}const C={setImmediate(ct){const F=x++;return U[F]=!0,T.then(()=>D(F)&&ct()),F},clearImmediate(ct){D(ct)}};new class $ extends l.v{flush(F){this.active=!0,this.scheduled=void 0;const{actions:I}=this;let tt,ft=-1,wt=I.length;F=F||I.shift();do{if(tt=F.execute(F.state,F.delay))break}while(++ft0?super.requestAsyncId(F,I,tt):(F.actions.push(this),F.scheduled||(F.scheduled=C.setImmediate(F.flush.bind(F,null))))}recycleAsyncId(F,I,tt=0){if(null!==tt&&tt>0||null===tt&&this.delay>0)return super.recycleAsyncId(F,I,tt);0===F.actions.length&&(C.clearImmediate(I),F.scheduled=void 0)}});var k=r(3637),L=r(5345);class M{constructor(F){this.durationSelector=F}call(F,I){return I.subscribe(new R(F,this.durationSelector))}}class R extends L.Ds{constructor(F,I){super(F),this.durationSelector=I,this.hasValue=!1}_next(F){if(this.value=F,this.hasValue=!0,!this.throttled){let I;try{const{durationSelector:ft}=this;I=ft(F)}catch(ft){return this.destination.error(ft)}const tt=(0,L.ft)(I,new L.IY(this));!tt||tt.closed?this.clearThrottle():this.add(this.throttled=tt)}}clearThrottle(){const{value:F,hasValue:I,throttled:tt}=this;tt&&(this.remove(tt),this.throttled=void 0,tt.unsubscribe()),I&&(this.value=void 0,this.hasValue=!1,this.destination.next(F))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}var K=r(6797);function G(ct,F=k.P){return function p(ct){return function(I){return I.lift(new M(ct))}}(()=>(0,K.H)(ct,F))}var J=r(5435);let q;try{q=typeof Intl<"u"&&Intl.v8BreakIterator}catch{q=!1}let Ht,Ze,ut=(()=>{class ct{constructor(I){this._platformId=I,this.isBrowser=this._platformId?(0,g.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!q)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return ct.\u0275fac=function(I){return new(I||ct)(_.LFG(_.Lbi))},ct.\u0275prov=_.Yz7({token:ct,factory:ct.\u0275fac,providedIn:"root"}),ct})();function ae(ct){return function $t(){if(null==Ht&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Ht=!0}))}finally{Ht=Ht||!1}return Ht}()?ct:!!ct.capture}function Nt(ct){if(function xt(){if(null==Ze){const ct=typeof document<"u"?document.head:null;Ze=!(!ct||!ct.createShadowRoot&&!ct.attachShadow)}return Ze}()){const F=ct.getRootNode?ct.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&F instanceof ShadowRoot)return F}return null}function ie(ct){return ct.composedPath?ct.composedPath()[0]:ct.target}let Pe=(()=>{class ct{constructor(I,tt,ft){this._ngZone=I,this._platform=tt,this._scrolled=new h.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=ft}register(I){this.scrollContainers.has(I)||this.scrollContainers.set(I,I.elementScrolled().subscribe(()=>this._scrolled.next(I)))}deregister(I){const tt=this.scrollContainers.get(I);tt&&(tt.unsubscribe(),this.scrollContainers.delete(I))}scrolled(I=20){return this._platform.isBrowser?new u.y(tt=>{this._globalSubscription||this._addGlobalListener();const ft=I>0?this._scrolled.pipe(G(I)).subscribe(tt):this._scrolled.subscribe(tt);return this._scrolledCount++,()=>{ft.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,c.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((I,tt)=>this.deregister(tt)),this._scrolled.complete()}ancestorScrolled(I,tt){const ft=this.getAncestorScrollContainers(I);return this.scrolled(tt).pipe((0,J.h)(wt=>!wt||ft.indexOf(wt)>-1))}getAncestorScrollContainers(I){const tt=[];return this.scrollContainers.forEach((ft,wt)=>{this._scrollableContainsElement(wt,I)&&tt.push(wt)}),tt}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(I,tt){let ft=S(tt),wt=I.getElementRef().nativeElement;do{if(ft==wt)return!0}while(ft=ft.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const I=this._getWindow();return(0,s.R)(I.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return ct.\u0275fac=function(I){return new(I||ct)(_.LFG(_.R0b),_.LFG(ut),_.LFG(g.K0,8))},ct.\u0275prov=_.Yz7({token:ct,factory:ct.\u0275fac,providedIn:"root"}),ct})(),Zt=(()=>{class ct{constructor(I,tt,ft){this._platform=I,this._change=new h.xQ,this._changeListener=wt=>{this._change.next(wt)},this._document=ft,tt.runOutsideAngular(()=>{if(I.isBrowser){const wt=this._getWindow();wt.addEventListener("resize",this._changeListener),wt.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const I=this._getWindow();I.removeEventListener("resize",this._changeListener),I.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const I={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),I}getViewportRect(){const I=this.getViewportScrollPosition(),{width:tt,height:ft}=this.getViewportSize();return{top:I.top,left:I.left,bottom:I.top+ft,right:I.left+tt,height:ft,width:tt}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const I=this._document,tt=this._getWindow(),ft=I.documentElement,wt=ft.getBoundingClientRect();return{top:-wt.top||I.body.scrollTop||tt.scrollY||ft.scrollTop||0,left:-wt.left||I.body.scrollLeft||tt.scrollX||ft.scrollLeft||0}}change(I=20){return I>0?this._change.pipe(G(I)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const I=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:I.innerWidth,height:I.innerHeight}:{width:0,height:0}}}return ct.\u0275fac=function(I){return new(I||ct)(_.LFG(ut),_.LFG(_.R0b),_.LFG(g.K0,8))},ct.\u0275prov=_.Yz7({token:ct,factory:ct.\u0275fac,providedIn:"root"}),ct})(),ee=(()=>{class ct{}return ct.\u0275fac=function(I){return new(I||ct)},ct.\u0275mod=_.oAB({type:ct}),ct.\u0275inj=_.cJS({}),ct})();var hs=r(3464),_o=r(6561);function Fr(ct){const{subscriber:F,counter:I,period:tt}=ct;F.next(I),this.schedule({subscriber:F,counter:I+1,period:tt},tt)}var Ji=r(6682),Gn=r(6782),lr=r(9761),Nr=r(8002),hr=r(5257),Ds=r(6239),mo=r(3190);const vo=new _.OlP("cdk-dir-doc",{providedIn:"root",factory:function yo(){return(0,_.f3M)(g.K0)}}),kr=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let cr=(()=>{class ct{constructor(I){if(this.value="ltr",this.change=new _.vpe,I){const ft=I.documentElement?I.documentElement.dir:null;this.value=function cs(ct){const F=ct?.toLowerCase()||"";return"auto"===F&&typeof navigator<"u"&&navigator?.language?kr.test(navigator.language)?"rtl":"ltr":"rtl"===F?"rtl":"ltr"}((I.body?I.body.dir:null)||ft||"ltr")}}ngOnDestroy(){this.change.complete()}}return ct.\u0275fac=function(I){return new(I||ct)(_.LFG(vo,8))},ct.\u0275prov=_.Yz7({token:ct,factory:ct.\u0275fac,providedIn:"root"}),ct})();function Ls(ct,F,I){for(let tt in F)if(F.hasOwnProperty(tt)){const ft=F[tt];ft?ct.setProperty(tt,ft,I?.has(tt)?"important":""):ct.removeProperty(tt)}return ct}function vn(ct,F){const I=F?"":"none";Ls(ct.style,{"touch-action":F?"":"none","-webkit-user-drag":F?"":"none","-webkit-tap-highlight-color":F?"":"transparent","user-select":I,"-ms-user-select":I,"-webkit-user-select":I,"-moz-user-select":I})}function Br(ct,F,I){Ls(ct.style,{position:F?"":"fixed",top:F?"":"0",opacity:F?"":"0",left:F?"":"-999em"},I)}function bn(ct,F){return F&&"none"!=F?ct+" "+F:ct}function us(ct){const F=ct.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(ct)*F}function ur(ct,F){return ct.getPropertyValue(F).split(",").map(tt=>tt.trim())}function dr(ct){const F=ct.getBoundingClientRect();return{top:F.top,right:F.right,bottom:F.bottom,left:F.left,width:F.width,height:F.height,x:F.x,y:F.y}}function ds(ct,F,I){const{top:tt,bottom:ft,left:wt,right:te}=ct;return I>=tt&&I<=ft&&F>=wt&&F<=te}function Rn(ct,F,I){ct.top+=F,ct.bottom=ct.top+ct.height,ct.left+=I,ct.right=ct.left+ct.width}function As(ct,F,I,tt){const{top:ft,right:wt,bottom:te,left:ue,width:Oe,height:We}=ct,ai=Oe*F,mi=We*F;return tt>ft-mi&&ttue-ai&&I{this.positions.set(I,{scrollPosition:{top:I.scrollTop,left:I.scrollLeft},clientRect:dr(I)})})}handleScroll(F){const I=ie(F),tt=this.positions.get(I);if(!tt)return null;const ft=tt.scrollPosition;let wt,te;if(I===this._document){const We=this.getViewportScrollPosition();wt=We.top,te=We.left}else wt=I.scrollTop,te=I.scrollLeft;const ue=ft.top-wt,Oe=ft.left-te;return this.positions.forEach((We,ai)=>{We.clientRect&&I!==ai&&I.contains(ai)&&Rn(We.clientRect,ue,Oe)}),ft.top=wt,ft.left=te,{top:ue,left:Oe}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function fr(ct){const F=ct.cloneNode(!0),I=F.querySelectorAll("[id]"),tt=ct.nodeName.toLowerCase();F.removeAttribute("id");for(let ft=0;ft{if(this.beforeStarted.next(),this._handles.length){const Oe=this._getTargetHandle(ue);Oe&&!this._disabledHandles.has(Oe)&&!this.disabled&&this._initializeDragSequence(Oe,ue)}else this.disabled||this._initializeDragSequence(this._rootElement,ue)},this._pointerMove=ue=>{const Oe=this._getPointerPositionOnPage(ue);if(!this._hasStartedDragging){if(Math.abs(Oe.x-this._pickupPositionOnPage.x)+Math.abs(Oe.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const $i=Date.now()>=this._dragStartTime+this._getDragStartDelay(ue),on=this._dropContainer;if(!$i)return void this._endDragSequence(ue);(!on||!on.isDragging()&&!on.isReceiving())&&(ue.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(ue)))}return}ue.preventDefault();const We=this._getConstrainedPointerPosition(Oe);if(this._hasMoved=!0,this._lastKnownPointerPosition=Oe,this._updatePointerDirectionDelta(We),this._dropContainer)this._updateActiveDropContainer(We,Oe);else{const ai=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,mi=this._activeTransform;mi.x=We.x-ai.x+this._passiveTransform.x,mi.y=We.y-ai.y+this._passiveTransform.y,this._applyRootElementTransform(mi.x,mi.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:We,event:ue,distance:this._getDragDistance(We),delta:this._pointerDirectionDelta})})},this._pointerUp=ue=>{this._endDragSequence(ue)},this._nativeDragStart=ue=>{if(this._handles.length){const Oe=this._getTargetHandle(ue);Oe&&!this._disabledHandles.has(Oe)&&!this.disabled&&ue.preventDefault()}else this.disabled||ue.preventDefault()},this.withRootElement(F).withParent(I.parentDragRef||null),this._parentPositions=new tn(tt),te.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(F){const I=Q(F);I!==this._disabled&&(this._disabled=I,this._toggleNativeDragInteractions(),this._handles.forEach(tt=>vn(tt,I)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(F){this._handles=F.map(tt=>S(tt)),this._handles.forEach(tt=>vn(tt,this.disabled)),this._toggleNativeDragInteractions();const I=new Set;return this._disabledHandles.forEach(tt=>{this._handles.indexOf(tt)>-1&&I.add(tt)}),this._disabledHandles=I,this}withPreviewTemplate(F){return this._previewTemplate=F,this}withPlaceholderTemplate(F){return this._placeholderTemplate=F,this}withRootElement(F){const I=S(F);return I!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{I.addEventListener("mousedown",this._pointerDown,fs),I.addEventListener("touchstart",this._pointerDown,gr),I.addEventListener("dragstart",this._nativeDragStart,fs)}),this._initialTransform=void 0,this._rootElement=I),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(F){return this._boundaryElement=F?S(F):null,this._resizeSubscription.unsubscribe(),F&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(F){return this._parentDragRef=F,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(F){!this._disabledHandles.has(F)&&this._handles.indexOf(F)>-1&&(this._disabledHandles.add(F),vn(F,!0))}enableHandle(F){this._disabledHandles.has(F)&&(this._disabledHandles.delete(F),vn(F,this.disabled))}withDirection(F){return this._direction=F,this}_withDropContainer(F){this._dropContainer=F}getFreeDragPosition(){const F=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:F.x,y:F.y}}setFreeDragPosition(F){return this._activeTransform={x:0,y:0},this._passiveTransform.x=F.x,this._passiveTransform.y=F.y,this._dropContainer||this._applyRootElementTransform(F.x,F.y),this}withPreviewContainer(F){return this._previewContainer=F,this}_sortFromLastPointerPosition(){const F=this._lastKnownPointerPosition;F&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(F),F)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(F){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:F}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(F),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const I=this._getPointerPositionOnPage(F);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(I),dropPoint:I,event:F})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(F){Kn(F)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const I=this._dropContainer;if(I){const tt=this._rootElement,ft=tt.parentNode,wt=this._placeholder=this._createPlaceholderElement(),te=this._anchor=this._anchor||this._document.createComment(""),ue=this._getShadowRoot();ft.insertBefore(te,tt),this._initialTransform=tt.style.transform||"",this._preview=this._createPreviewElement(),Br(tt,!1,_r),this._document.body.appendChild(ft.replaceChild(wt,tt)),this._getPreviewInsertionPoint(ft,ue).appendChild(this._preview),this.started.next({source:this,event:F}),I.start(),this._initialContainer=I,this._initialIndex=I.getItemIndex(this)}else this.started.next({source:this,event:F}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(I?I.getScrollableParents():[])}_initializeDragSequence(F,I){this._parentDragRef&&I.stopPropagation();const tt=this.isDragging(),ft=Kn(I),wt=!ft&&0!==I.button,te=this._rootElement,ue=ie(I),Oe=!ft&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),We=ft?function as(ct){const F=ct.touches&&ct.touches[0]||ct.changedTouches&&ct.changedTouches[0];return!(!F||-1!==F.identifier||null!=F.radiusX&&1!==F.radiusX||null!=F.radiusY&&1!==F.radiusY)}(I):function jn(ct){return 0===ct.buttons||0===ct.offsetX&&0===ct.offsetY}(I);if(ue&&ue.draggable&&"mousedown"===I.type&&I.preventDefault(),tt||wt||Oe||We)return;if(this._handles.length){const Qi=te.style;this._rootElementTapHighlight=Qi.webkitTapHighlightColor||"",Qi.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(Qi=>this._updateOnScroll(Qi)),this._boundaryElement&&(this._boundaryRect=dr(this._boundaryElement));const ai=this._previewTemplate;this._pickupPositionInElement=ai&&ai.template&&!ai.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,F,I);const mi=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(I);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:mi.x,y:mi.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,I)}_cleanupDragArtifacts(F){Br(this._rootElement,!0,_r),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const I=this._dropContainer,tt=I.getItemIndex(this),ft=this._getPointerPositionOnPage(F),wt=this._getDragDistance(ft),te=I._isOverContainer(ft.x,ft.y);this.ended.next({source:this,distance:wt,dropPoint:ft,event:F}),this.dropped.next({item:this,currentIndex:tt,previousIndex:this._initialIndex,container:I,previousContainer:this._initialContainer,isPointerOverContainer:te,distance:wt,dropPoint:ft,event:F}),I.drop(this,tt,this._initialIndex,this._initialContainer,te,wt,ft,F),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:F,y:I},{x:tt,y:ft}){let wt=this._initialContainer._getSiblingContainerFromPosition(this,F,I);!wt&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(F,I)&&(wt=this._initialContainer),wt&&wt!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=wt,this._dropContainer.enter(this,F,I,wt===this._initialContainer&&wt.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:wt,currentIndex:wt.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(tt,ft),this._dropContainer._sortItem(this,F,I,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(F,I):this._applyPreviewTransform(F-this._pickupPositionInElement.x,I-this._pickupPositionInElement.y))}_createPreviewElement(){const F=this._previewTemplate,I=this.previewClass,tt=F?F.template:null;let ft;if(tt&&F){const wt=F.matchSize?this._initialClientRect:null,te=F.viewContainer.createEmbeddedView(tt,F.context);te.detectChanges(),ft=yn(te,this._document),this._previewRef=te,F.matchSize?pr(ft,wt):ft.style.transform=Wn(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else ft=fr(this._rootElement),pr(ft,this._initialClientRect),this._initialTransform&&(ft.style.transform=this._initialTransform);return Ls(ft.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},_r),vn(ft,!1),ft.classList.add("cdk-drag-preview"),ft.setAttribute("dir",this._direction),I&&(Array.isArray(I)?I.forEach(wt=>ft.classList.add(wt)):ft.classList.add(I)),ft}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const F=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(F.left,F.top);const I=function Ur(ct){const F=getComputedStyle(ct),I=ur(F,"transition-property"),tt=I.find(ue=>"transform"===ue||"all"===ue);if(!tt)return 0;const ft=I.indexOf(tt),wt=ur(F,"transition-duration"),te=ur(F,"transition-delay");return us(wt[ft])+us(te[ft])}(this._preview);return 0===I?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(tt=>{const ft=te=>{(!te||ie(te)===this._preview&&"transform"===te.propertyName)&&(this._preview?.removeEventListener("transitionend",ft),tt(),clearTimeout(wt))},wt=setTimeout(ft,1.5*I);this._preview.addEventListener("transitionend",ft)}))}_createPlaceholderElement(){const F=this._placeholderTemplate,I=F?F.template:null;let tt;return I?(this._placeholderRef=F.viewContainer.createEmbeddedView(I,F.context),this._placeholderRef.detectChanges(),tt=yn(this._placeholderRef,this._document)):tt=fr(this._rootElement),tt.style.pointerEvents="none",tt.classList.add("cdk-drag-placeholder"),tt}_getPointerPositionInElement(F,I,tt){const ft=I===this._rootElement?null:I,wt=ft?ft.getBoundingClientRect():F,te=Kn(tt)?tt.targetTouches[0]:tt,ue=this._getViewportScrollPosition();return{x:wt.left-F.left+(te.pageX-wt.left-ue.left),y:wt.top-F.top+(te.pageY-wt.top-ue.top)}}_getPointerPositionOnPage(F){const I=this._getViewportScrollPosition(),tt=Kn(F)?F.touches[0]||F.changedTouches[0]||{pageX:0,pageY:0}:F,ft=tt.pageX-I.left,wt=tt.pageY-I.top;if(this._ownerSVGElement){const te=this._ownerSVGElement.getScreenCTM();if(te){const ue=this._ownerSVGElement.createSVGPoint();return ue.x=ft,ue.y=wt,ue.matrixTransform(te.inverse())}}return{x:ft,y:wt}}_getConstrainedPointerPosition(F){const I=this._dropContainer?this._dropContainer.lockAxis:null;let{x:tt,y:ft}=this.constrainPosition?this.constrainPosition(F,this,this._initialClientRect,this._pickupPositionInElement):F;if("x"===this.lockAxis||"x"===I?ft=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===I)&&(tt=this._pickupPositionOnPage.x),this._boundaryRect){const{x:wt,y:te}=this._pickupPositionInElement,ue=this._boundaryRect,{width:Oe,height:We}=this._getPreviewRect(),ai=ue.top+te,mi=ue.bottom-(We-te);tt=Zs(tt,ue.left+wt,ue.right-(Oe-wt)),ft=Zs(ft,ai,mi)}return{x:tt,y:ft}}_updatePointerDirectionDelta(F){const{x:I,y:tt}=F,ft=this._pointerDirectionDelta,wt=this._pointerPositionAtLastDirectionChange,te=Math.abs(I-wt.x),ue=Math.abs(tt-wt.y);return te>this._config.pointerDirectionChangeThreshold&&(ft.x=I>wt.x?1:-1,wt.x=I),ue>this._config.pointerDirectionChangeThreshold&&(ft.y=tt>wt.y?1:-1,wt.y=tt),ft}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const F=this._handles.length>0||!this.isDragging();F!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=F,vn(this._rootElement,F))}_removeRootElementListeners(F){F.removeEventListener("mousedown",this._pointerDown,fs),F.removeEventListener("touchstart",this._pointerDown,gr),F.removeEventListener("dragstart",this._nativeDragStart,fs)}_applyRootElementTransform(F,I){const tt=Wn(F,I),ft=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=ft.transform&&"none"!=ft.transform?ft.transform:""),ft.transform=bn(tt,this._initialTransform)}_applyPreviewTransform(F,I){const tt=this._previewTemplate?.template?void 0:this._initialTransform,ft=Wn(F,I);this._preview.style.transform=bn(ft,tt)}_getDragDistance(F){const I=this._pickupPositionOnPage;return I?{x:F.x-I.x,y:F.y-I.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:F,y:I}=this._passiveTransform;if(0===F&&0===I||this.isDragging()||!this._boundaryElement)return;const tt=this._rootElement.getBoundingClientRect(),ft=this._boundaryElement.getBoundingClientRect();if(0===ft.width&&0===ft.height||0===tt.width&&0===tt.height)return;const wt=ft.left-tt.left,te=tt.right-ft.right,ue=ft.top-tt.top,Oe=tt.bottom-ft.bottom;ft.width>tt.width?(wt>0&&(F+=wt),te>0&&(F-=te)):F=0,ft.height>tt.height?(ue>0&&(I+=ue),Oe>0&&(I-=Oe)):I=0,(F!==this._passiveTransform.x||I!==this._passiveTransform.y)&&this.setFreeDragPosition({y:I,x:F})}_getDragStartDelay(F){const I=this.dragStartDelay;return"number"==typeof I?I:Kn(F)?I.touch:I?I.mouse:0}_updateOnScroll(F){const I=this._parentPositions.handleScroll(F);if(I){const tt=ie(F);this._boundaryRect&&tt!==this._boundaryElement&&tt.contains(this._boundaryElement)&&Rn(this._boundaryRect,I.top,I.left),this._pickupPositionOnPage.x+=I.left,this._pickupPositionOnPage.y+=I.top,this._dropContainer||(this._activeTransform.x-=I.left,this._activeTransform.y-=I.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=Nt(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(F,I){const tt=this._previewContainer||"global";if("parent"===tt)return F;if("global"===tt){const ft=this._document;return I||ft.fullscreenElement||ft.webkitFullscreenElement||ft.mozFullScreenElement||ft.msFullscreenElement||ft.body}return S(tt)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(F){return this._handles.find(I=>F.target&&(F.target===I||I.contains(F.target)))}}function Wn(ct,F){return`translate3d(${Math.round(ct)}px, ${Math.round(F)}px, 0)`}function Zs(ct,F,I){return Math.max(F,Math.min(I,ct))}function Kn(ct){return"t"===ct.type[0]}function yn(ct,F){const I=ct.rootNodes;if(1===I.length&&I[0].nodeType===F.ELEMENT_NODE)return I[0];const tt=F.createElement("div");return I.forEach(ft=>tt.appendChild(ft)),tt}function pr(ct,F){ct.style.width=`${F.width}px`,ct.style.height=`${F.height}px`,ct.style.transform=Wn(F.left,F.top)}function Bs(ct,F,I){const tt=En(F,ct.length-1),ft=En(I,ct.length-1);if(tt===ft)return;const wt=ct[tt],te=ft0)return null;const ue="horizontal"===this.orientation,Oe=wt.findIndex(en=>en.drag===F),We=wt[te],mi=We.clientRect,Qi=Oe>te?1:-1,$i=this._getItemOffsetPx(wt[Oe].clientRect,mi,Qi),on=this._getSiblingOffsetPx(Oe,wt,Qi),wn=wt.slice();return Bs(wt,Oe,te),wt.forEach((en,Hr)=>{if(wn[Hr]===en)return;const Jr=en.drag===F,zs=Jr?$i:on,Oo=Jr?F.getPlaceholderElement():en.drag.getRootElement();en.offset+=zs,ue?(Oo.style.transform=bn(`translate3d(${Math.round(en.offset)}px, 0, 0)`,en.initialTransform),Rn(en.clientRect,0,zs)):(Oo.style.transform=bn(`translate3d(0, ${Math.round(en.offset)}px, 0)`,en.initialTransform),Rn(en.clientRect,zs,0))}),this._previousSwap.overlaps=ds(mi,I,tt),this._previousSwap.drag=We.drag,this._previousSwap.delta=ue?ft.x:ft.y,{previousIndex:Oe,currentIndex:te}}enter(F,I,tt,ft){const wt=null==ft||ft<0?this._getItemIndexFromPointerPosition(F,I,tt):ft,te=this._activeDraggables,ue=te.indexOf(F),Oe=F.getPlaceholderElement();let We=te[wt];if(We===F&&(We=te[wt+1]),!We&&(null==wt||-1===wt||wt-1&&te.splice(ue,1),We&&!this._dragDropRegistry.isDragging(We)){const ai=We.getRootElement();ai.parentElement.insertBefore(Oe,ai),te.splice(wt,0,F)}else S(this._element).appendChild(Oe),te.push(F);Oe.style.transform="",this._cacheItemPositions()}withItems(F){this._activeDraggables=F.slice(),this._cacheItemPositions()}withSortPredicate(F){this._sortPredicate=F}reset(){this._activeDraggables.forEach(F=>{const I=F.getRootElement();if(I){const tt=this._itemPositions.find(ft=>ft.drag===F)?.initialTransform;I.style.transform=tt||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(F){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(tt=>tt.drag===F)}updateOnScroll(F,I){this._itemPositions.forEach(({clientRect:tt})=>{Rn(tt,F,I)}),this._itemPositions.forEach(({drag:tt})=>{this._dragDropRegistry.isDragging(tt)&&tt._sortFromLastPointerPosition()})}_cacheItemPositions(){const F="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(I=>{const tt=I.getVisibleElement();return{drag:I,offset:0,initialTransform:tt.style.transform||"",clientRect:dr(tt)}}).sort((I,tt)=>F?I.clientRect.left-tt.clientRect.left:I.clientRect.top-tt.clientRect.top)}_getItemOffsetPx(F,I,tt){const ft="horizontal"===this.orientation;let wt=ft?I.left-F.left:I.top-F.top;return-1===tt&&(wt+=ft?I.width-F.width:I.height-F.height),wt}_getSiblingOffsetPx(F,I,tt){const ft="horizontal"===this.orientation,wt=I[F].clientRect,te=I[F+-1*tt];let ue=wt[ft?"width":"height"]*tt;if(te){const Oe=ft?"left":"top",We=ft?"right":"bottom";-1===tt?ue-=te.clientRect[Oe]-wt[We]:ue+=wt[Oe]-te.clientRect[We]}return ue}_shouldEnterAsFirstChild(F,I){if(!this._activeDraggables.length)return!1;const tt=this._itemPositions,ft="horizontal"===this.orientation;if(tt[0].drag!==this._activeDraggables[0]){const te=tt[tt.length-1].clientRect;return ft?F>=te.right:I>=te.bottom}{const te=tt[0].clientRect;return ft?F<=te.left:I<=te.top}}_getItemIndexFromPointerPosition(F,I,tt,ft){const wt="horizontal"===this.orientation,te=this._itemPositions.findIndex(({drag:ue,clientRect:Oe})=>{if(ue===F)return!1;if(ft){const We=wt?ft.x:ft.y;if(ue===this._previousSwap.drag&&this._previousSwap.overlaps&&We===this._previousSwap.delta)return!1}return wt?I>=Math.floor(Oe.left)&&I=Math.floor(Oe.top)&&tt!0,this.sortPredicate=()=>!0,this.beforeStarted=new h.xQ,this.entered=new h.xQ,this.exited=new h.xQ,this.dropped=new h.xQ,this.sorted=new h.xQ,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=hs.w.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new h.xQ,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function po(ct=0,F=k.P){return(!(0,_o.k)(ct)||ct<0)&&(ct=0),(!F||"function"!=typeof F.schedule)&&(F=k.P),new u.y(I=>(I.add(F.schedule(Fr,ct,{subscriber:I,counter:0,period:ct})),I))}(0,e).pipe((0,Gn.R)(this._stopScrollTimers)).subscribe(()=>{const te=this._scrollNode,ue=this.autoScrollStep;1===this._verticalScrollDirection?te.scrollBy(0,-ue):2===this._verticalScrollDirection&&te.scrollBy(0,ue),1===this._horizontalScrollDirection?te.scrollBy(-ue,0):2===this._horizontalScrollDirection&&te.scrollBy(ue,0)})},this.element=S(F),this._document=tt,this.withScrollableParents([this.element]),I.registerDropContainer(this),this._parentPositions=new tn(tt),this._sortStrategy=new Co(this.element,I),this._sortStrategy.withSortPredicate((te,ue)=>this.sortPredicate(te,ue,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(F,I,tt,ft){this._draggingStarted(),null==ft&&this.sortingDisabled&&(ft=this._draggables.indexOf(F)),this._sortStrategy.enter(F,I,tt,ft),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:F,container:this,currentIndex:this.getItemIndex(F)})}exit(F){this._reset(),this.exited.next({item:F,container:this})}drop(F,I,tt,ft,wt,te,ue,Oe={}){this._reset(),this.dropped.next({item:F,currentIndex:I,previousIndex:tt,container:this,previousContainer:ft,isPointerOverContainer:wt,distance:te,dropPoint:ue,event:Oe})}withItems(F){const I=this._draggables;return this._draggables=F,F.forEach(tt=>tt._withDropContainer(this)),this.isDragging()&&(I.filter(ft=>ft.isDragging()).every(ft=>-1===F.indexOf(ft))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(F){return this._sortStrategy.direction=F,this}connectedTo(F){return this._siblings=F.slice(),this}withOrientation(F){return this._sortStrategy.orientation=F,this}withScrollableParents(F){const I=S(this.element);return this._scrollableElements=-1===F.indexOf(I)?[I,...F]:F.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(F){return this._isDragging?this._sortStrategy.getItemIndex(F):this._draggables.indexOf(F)}isReceiving(){return this._activeSiblings.size>0}_sortItem(F,I,tt,ft){if(this.sortingDisabled||!this._clientRect||!As(this._clientRect,.05,I,tt))return;const wt=this._sortStrategy.sort(F,I,tt,ft);wt&&this.sorted.next({previousIndex:wt.previousIndex,currentIndex:wt.currentIndex,container:this,item:F})}_startScrollingIfNecessary(F,I){if(this.autoScrollDisabled)return;let tt,ft=0,wt=0;if(this._parentPositions.positions.forEach((te,ue)=>{ue===this._document||!te.clientRect||tt||As(te.clientRect,.05,F,I)&&([ft,wt]=function mr(ct,F,I,tt){const ft=zr(F,tt),wt=Wr(F,I);let te=0,ue=0;if(ft){const Oe=ct.scrollTop;1===ft?Oe>0&&(te=1):ct.scrollHeight-Oe>ct.clientHeight&&(te=2)}if(wt){const Oe=ct.scrollLeft;1===wt?Oe>0&&(ue=1):ct.scrollWidth-Oe>ct.clientWidth&&(ue=2)}return[te,ue]}(ue,te.clientRect,F,I),(ft||wt)&&(tt=ue))}),!ft&&!wt){const{width:te,height:ue}=this._viewportRuler.getViewportSize(),Oe={width:te,height:ue,top:0,right:te,bottom:ue,left:0};ft=zr(Oe,I),wt=Wr(Oe,F),tt=window}tt&&(ft!==this._verticalScrollDirection||wt!==this._horizontalScrollDirection||tt!==this._scrollNode)&&(this._verticalScrollDirection=ft,this._horizontalScrollDirection=wt,this._scrollNode=tt,(ft||wt)&&tt?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const F=S(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=F.msScrollSnapType||F.scrollSnapType||"",F.scrollSnapType=F.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const F=S(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(F).clientRect}_reset(){this._isDragging=!1;const F=S(this.element).style;F.scrollSnapType=F.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(I=>I._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(F,I){return null!=this._clientRect&&ds(this._clientRect,F,I)}_getSiblingContainerFromPosition(F,I,tt){return this._siblings.find(ft=>ft._canReceive(F,I,tt))}_canReceive(F,I,tt){if(!this._clientRect||!ds(this._clientRect,I,tt)||!this.enterPredicate(F,this))return!1;const ft=this._getShadowRoot().elementFromPoint(I,tt);if(!ft)return!1;const wt=S(this.element);return ft===wt||wt.contains(ft)}_startReceiving(F,I){const tt=this._activeSiblings;!tt.has(F)&&I.every(ft=>this.enterPredicate(ft,this)||this._draggables.indexOf(ft)>-1)&&(tt.add(F),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(F){this._activeSiblings.delete(F),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(F=>{if(this.isDragging()){const I=this._parentPositions.handleScroll(F);I&&this._sortStrategy.updateOnScroll(I.top,I.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const F=Nt(S(this.element));this._cachedShadowRoot=F||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const F=this._sortStrategy.getActiveItemsSnapshot().filter(I=>I.isDragging());this._siblings.forEach(I=>I._startReceiving(this,F))}}function zr(ct,F){const{top:I,bottom:tt,height:ft}=ct,wt=.05*ft;return F>=I-wt&&F<=I+wt?1:F>=tt-wt&&F<=tt+wt?2:0}function Wr(ct,F){const{left:I,right:tt,width:ft}=ct,wt=.05*ft;return F>=I-wt&&F<=I+wt?1:F>=tt-wt&&F<=tt+wt?2:0}const In=ae({passive:!1,capture:!0});let js=(()=>{class ct{constructor(I,tt){this._ngZone=I,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=ft=>ft.isDragging(),this.pointerMove=new h.xQ,this.pointerUp=new h.xQ,this.scroll=new h.xQ,this._preventDefaultWhileDragging=ft=>{this._activeDragInstances.length>0&&ft.preventDefault()},this._persistentTouchmoveListener=ft=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&ft.preventDefault(),this.pointerMove.next(ft))},this._document=tt}registerDropContainer(I){this._dropInstances.has(I)||this._dropInstances.add(I)}registerDragItem(I){this._dragInstances.add(I),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,In)})}removeDropContainer(I){this._dropInstances.delete(I)}removeDragItem(I){this._dragInstances.delete(I),this.stopDragging(I),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,In)}startDragging(I,tt){if(!(this._activeDragInstances.indexOf(I)>-1)&&(this._activeDragInstances.push(I),1===this._activeDragInstances.length)){const ft=tt.type.startsWith("touch");this._globalListeners.set(ft?"touchend":"mouseup",{handler:wt=>this.pointerUp.next(wt),options:!0}).set("scroll",{handler:wt=>this.scroll.next(wt),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:In}),ft||this._globalListeners.set("mousemove",{handler:wt=>this.pointerMove.next(wt),options:In}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((wt,te)=>{this._document.addEventListener(te,wt.handler,wt.options)})})}}stopDragging(I){const tt=this._activeDragInstances.indexOf(I);tt>-1&&(this._activeDragInstances.splice(tt,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(I){return this._activeDragInstances.indexOf(I)>-1}scrolled(I){const tt=[this.scroll];return I&&I!==this._document&&tt.push(new u.y(ft=>this._ngZone.runOutsideAngular(()=>{const te=ue=>{this._activeDragInstances.length&&ft.next(ue)};return I.addEventListener("scroll",te,!0),()=>{I.removeEventListener("scroll",te,!0)}}))),(0,Ji.T)(...tt)}ngOnDestroy(){this._dragInstances.forEach(I=>this.removeDragItem(I)),this._dropInstances.forEach(I=>this.removeDropContainer(I)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((I,tt)=>{this._document.removeEventListener(tt,I.handler,I.options)}),this._globalListeners.clear()}}return ct.\u0275fac=function(I){return new(I||ct)(_.LFG(_.R0b),_.LFG(g.K0))},ct.\u0275prov=_.Yz7({token:ct,factory:ct.\u0275fac,providedIn:"root"}),ct})();const vr={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let Ge=(()=>{class ct{constructor(I,tt,ft,wt){this._document=I,this._ngZone=tt,this._viewportRuler=ft,this._dragDropRegistry=wt}createDrag(I,tt=vr){return new xo(I,tt,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(I){return new Mo(I,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return ct.\u0275fac=function(I){return new(I||ct)(_.LFG(g.K0),_.LFG(_.R0b),_.LFG(Zt),_.LFG(js))},ct.\u0275prov=_.Yz7({token:ct,factory:ct.\u0275fac,providedIn:"root"}),ct})();const yr=new _.OlP("CDK_DRAG_PARENT"),Kr=new _.OlP("CdkDropListGroup"),Po=new _.OlP("CDK_DRAG_CONFIG");let So=0;const Gs=new _.OlP("CdkDropList");let Vr=(()=>{class ct{constructor(I,tt,ft,wt,te,ue,Oe){this.element=I,this._changeDetectorRef=ft,this._scrollDispatcher=wt,this._dir=te,this._group=ue,this._destroyed=new h.xQ,this.connectedTo=[],this.id="cdk-drop-list-"+So++,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new _.vpe,this.entered=new _.vpe,this.exited=new _.vpe,this.sorted=new _.vpe,this._unsortedItems=new Set,this._dropListRef=tt.createDropList(I),this._dropListRef.data=this,Oe&&this._assignDefaults(Oe),this._dropListRef.enterPredicate=(We,ai)=>this.enterPredicate(We.data,ai.data),this._dropListRef.sortPredicate=(We,ai,mi)=>this.sortPredicate(We,ai.data,mi.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),ct._dropLists.push(this),ue&&ue._items.add(this)}get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(I){this._dropListRef.disabled=this._disabled=Q(I)}addItem(I){this._unsortedItems.add(I),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(I){this._unsortedItems.delete(I),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((I,tt)=>I._dragRef.getVisibleElement().compareDocumentPosition(tt._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const I=ct._dropLists.indexOf(this);I>-1&&ct._dropLists.splice(I,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(I){this._dir&&this._dir.change.pipe((0,lr.O)(this._dir.value),(0,Gn.R)(this._destroyed)).subscribe(tt=>I.withDirection(tt)),I.beforeStarted.subscribe(()=>{const tt=function N(ct){return Array.isArray(ct)?ct:[ct]}(this.connectedTo).map(ft=>"string"==typeof ft?ct._dropLists.find(te=>te.id===ft):ft);if(this._group&&this._group._items.forEach(ft=>{-1===tt.indexOf(ft)&&tt.push(ft)}),!this._scrollableParentsResolved){const ft=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(wt=>wt.getElementRef().nativeElement);this._dropListRef.withScrollableParents(ft),this._scrollableParentsResolved=!0}I.disabled=this.disabled,I.lockAxis=this.lockAxis,I.sortingDisabled=Q(this.sortingDisabled),I.autoScrollDisabled=Q(this.autoScrollDisabled),I.autoScrollStep=H(this.autoScrollStep,2),I.connectedTo(tt.filter(ft=>ft&&ft!==this).map(ft=>ft._dropListRef)).withOrientation(this.orientation)})}_handleEvents(I){I.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),I.entered.subscribe(tt=>{this.entered.emit({container:this,item:tt.item.data,currentIndex:tt.currentIndex})}),I.exited.subscribe(tt=>{this.exited.emit({container:this,item:tt.item.data}),this._changeDetectorRef.markForCheck()}),I.sorted.subscribe(tt=>{this.sorted.emit({previousIndex:tt.previousIndex,currentIndex:tt.currentIndex,container:this,item:tt.item.data})}),I.dropped.subscribe(tt=>{this.dropped.emit({previousIndex:tt.previousIndex,currentIndex:tt.currentIndex,previousContainer:tt.previousContainer.data,container:tt.container.data,item:tt.item.data,isPointerOverContainer:tt.isPointerOverContainer,distance:tt.distance,dropPoint:tt.dropPoint,event:tt.event}),this._changeDetectorRef.markForCheck()})}_assignDefaults(I){const{lockAxis:tt,draggingDisabled:ft,sortingDisabled:wt,listAutoScrollDisabled:te,listOrientation:ue}=I;this.disabled=ft??!1,this.sortingDisabled=wt??!1,this.autoScrollDisabled=te??!1,this.orientation=ue||"vertical",tt&&(this.lockAxis=tt)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(I=>I._dragRef))}}return ct._dropLists=[],ct.\u0275fac=function(I){return new(I||ct)(_.Y36(_.SBq),_.Y36(Ge),_.Y36(_.sBO),_.Y36(Pe),_.Y36(cr,8),_.Y36(Kr,12),_.Y36(Po,8))},ct.\u0275dir=_.lG2({type:ct,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(I,tt){2&I&&(_.uIk("id",tt.id),_.ekj("cdk-drop-list-disabled",tt.disabled)("cdk-drop-list-dragging",tt._dropListRef.isDragging())("cdk-drop-list-receiving",tt._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],data:["cdkDropListData","data"],orientation:["cdkDropListOrientation","orientation"],id:"id",lockAxis:["cdkDropListLockAxis","lockAxis"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[_._Bn([{provide:Kr,useValue:void 0},{provide:Gs,useExisting:ct}])]}),ct})();const Xr=new _.OlP("CdkDragHandle");let bo=(()=>{class ct{constructor(I,tt){this.element=I,this._stateChanges=new h.xQ,this._disabled=!1,this._parentDrag=tt}get disabled(){return this._disabled}set disabled(I){this._disabled=Q(I),this._stateChanges.next(this)}ngOnDestroy(){this._stateChanges.complete()}}return ct.\u0275fac=function(I){return new(I||ct)(_.Y36(_.SBq),_.Y36(yr,12))},ct.\u0275dir=_.lG2({type:ct,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:["cdkDragHandleDisabled","disabled"]},features:[_._Bn([{provide:Xr,useExisting:ct}])]}),ct})();const Ro=new _.OlP("CdkDragPlaceholder"),Yr=new _.OlP("CdkDragPreview");let vi=(()=>{class ct{constructor(I,tt,ft,wt,te,ue,Oe,We,ai,mi,Qi){this.element=I,this.dropContainer=tt,this._ngZone=wt,this._viewContainerRef=te,this._dir=Oe,this._changeDetectorRef=ai,this._selfHandle=mi,this._parentDrag=Qi,this._destroyed=new h.xQ,this.started=new _.vpe,this.released=new _.vpe,this.ended=new _.vpe,this.entered=new _.vpe,this.exited=new _.vpe,this.dropped=new _.vpe,this.moved=new u.y($i=>{const on=this._dragRef.moved.pipe((0,Nr.U)(wn=>({source:this,pointerPosition:wn.pointerPosition,event:wn.event,delta:wn.delta,distance:wn.distance}))).subscribe($i);return()=>{on.unsubscribe()}}),this._dragRef=We.createDrag(I,{dragStartThreshold:ue&&null!=ue.dragStartThreshold?ue.dragStartThreshold:5,pointerDirectionChangeThreshold:ue&&null!=ue.pointerDirectionChangeThreshold?ue.pointerDirectionChangeThreshold:5,zIndex:ue?.zIndex}),this._dragRef.data=this,ct._dragInstances.push(this),ue&&this._assignDefaults(ue),tt&&(this._dragRef._withDropContainer(tt._dropListRef),tt.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(I){this._disabled=Q(I),this._dragRef.disabled=this._disabled}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(I){this._dragRef.setFreeDragPosition(I)}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,hr.q)(1),(0,Gn.R)(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(I){const tt=I.rootElementSelector,ft=I.freeDragPosition;tt&&!tt.firstChange&&this._updateRootElement(),ft&&!ft.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const I=ct._dragInstances.indexOf(this);I>-1&&ct._dragInstances.splice(I,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){const I=this.element.nativeElement;let tt=I;this.rootElementSelector&&(tt=void 0!==I.closest?I.closest(this.rootElementSelector):I.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(tt||I)}_getBoundaryElement(){const I=this.boundaryElement;return I?"string"==typeof I?this.element.nativeElement.closest(I):S(I):null}_syncInputs(I){I.beforeStarted.subscribe(()=>{if(!I.isDragging()){const tt=this._dir,ft=this.dragStartDelay,wt=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,te=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;I.disabled=this.disabled,I.lockAxis=this.lockAxis,I.dragStartDelay="object"==typeof ft&&ft?ft:H(ft),I.constrainPosition=this.constrainPosition,I.previewClass=this.previewClass,I.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(wt).withPreviewTemplate(te).withPreviewContainer(this.previewContainer||"global"),tt&&I.withDirection(tt.value)}}),I.beforeStarted.pipe((0,hr.q)(1)).subscribe(()=>{if(this._parentDrag)return void I.withParent(this._parentDrag._dragRef);let tt=this.element.nativeElement.parentElement;for(;tt;){if(tt.classList.contains("cdk-drag")){I.withParent(ct._dragInstances.find(ft=>ft.element.nativeElement===tt)?._dragRef||null);break}tt=tt.parentElement}})}_handleEvents(I){I.started.subscribe(tt=>{this.started.emit({source:this,event:tt.event}),this._changeDetectorRef.markForCheck()}),I.released.subscribe(tt=>{this.released.emit({source:this,event:tt.event})}),I.ended.subscribe(tt=>{this.ended.emit({source:this,distance:tt.distance,dropPoint:tt.dropPoint,event:tt.event}),this._changeDetectorRef.markForCheck()}),I.entered.subscribe(tt=>{this.entered.emit({container:tt.container.data,item:this,currentIndex:tt.currentIndex})}),I.exited.subscribe(tt=>{this.exited.emit({container:tt.container.data,item:this})}),I.dropped.subscribe(tt=>{this.dropped.emit({previousIndex:tt.previousIndex,currentIndex:tt.currentIndex,previousContainer:tt.previousContainer.data,container:tt.container.data,isPointerOverContainer:tt.isPointerOverContainer,item:this,distance:tt.distance,dropPoint:tt.dropPoint,event:tt.event})})}_assignDefaults(I){const{lockAxis:tt,dragStartDelay:ft,constrainPosition:wt,previewClass:te,boundaryElement:ue,draggingDisabled:Oe,rootElementSelector:We,previewContainer:ai}=I;this.disabled=Oe??!1,this.dragStartDelay=ft||0,tt&&(this.lockAxis=tt),wt&&(this.constrainPosition=wt),te&&(this.previewClass=te),ue&&(this.boundaryElement=ue),We&&(this.rootElementSelector=We),ai&&(this.previewContainer=ai)}_setupHandlesListener(){this._handles.changes.pipe((0,lr.O)(this._handles),(0,Ds.b)(I=>{const tt=I.filter(ft=>ft._parentDrag===this).map(ft=>ft.element);this._selfHandle&&this.rootElementSelector&&tt.push(this.element),this._dragRef.withHandles(tt)}),(0,mo.w)(I=>(0,Ji.T)(...I.map(tt=>tt._stateChanges.pipe((0,lr.O)(tt))))),(0,Gn.R)(this._destroyed)).subscribe(I=>{const tt=this._dragRef,ft=I.element.nativeElement;I.disabled?tt.disableHandle(ft):tt.enableHandle(ft)})}}return ct._dragInstances=[],ct.\u0275fac=function(I){return new(I||ct)(_.Y36(_.SBq),_.Y36(Gs,12),_.Y36(g.K0),_.Y36(_.R0b),_.Y36(_.s_b),_.Y36(Po,8),_.Y36(cr,8),_.Y36(Ge),_.Y36(_.sBO),_.Y36(Xr,10),_.Y36(yr,12))},ct.\u0275dir=_.lG2({type:ct,selectors:[["","cdkDrag",""]],contentQueries:function(I,tt,ft){if(1&I&&(_.Suo(ft,Yr,5),_.Suo(ft,Ro,5),_.Suo(ft,Xr,5)),2&I){let wt;_.iGM(wt=_.CRH())&&(tt._previewTemplate=wt.first),_.iGM(wt=_.CRH())&&(tt._placeholderTemplate=wt.first),_.iGM(wt=_.CRH())&&(tt._handles=wt)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(I,tt){2&I&&_.ekj("cdk-drag-disabled",tt.disabled)("cdk-drag-dragging",tt._dragRef.isDragging())},inputs:{data:["cdkDragData","data"],lockAxis:["cdkDragLockAxis","lockAxis"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],boundaryElement:["cdkDragBoundary","boundaryElement"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"],disabled:["cdkDragDisabled","disabled"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],previewContainer:["cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[_._Bn([{provide:yr,useExisting:ct}]),_.TTD]}),ct})(),hi=(()=>{class ct{}return ct.\u0275fac=function(I){return new(I||ct)},ct.\u0275mod=_.oAB({type:ct}),ct.\u0275inj=_.cJS({providers:[Ge],imports:[ee]}),ct})()},5338:(Vt,gt,r)=>{"use strict";r.d(gt,{h0:()=>hi,bg:()=>Io});var _=r(795),g=r(694),Q=r(5999),H=r(2929),j=r(5253),N=r(1786),w=r(8185),S=r(2768),v=r(5809),h=r(8898),c=r(7521),u=r(1591),s=r(6114),f=r(6942),i=r(2673),l=r(1053),m=r(3242),e=r(9543),P=r(992),x=r(2705),T=r(9015),U=r(513);Error,Error;const p=class L extends m.Z{constructor(n){if(super({attributions:n.attributions,cacheSize:n.cacheSize,crossOrigin:n.crossOrigin,interpolate:n.interpolate,projection:(0,T.U2)("EPSG:3857"),reprojectionErrorThreshold:n.reprojectionErrorThreshold,state:"loading",tileLoadFunction:n.tileLoadFunction,wrapX:void 0===n.wrapX||n.wrapX,transition:n.transition,zDirection:n.zDirection}),this.tileJSON_=null,this.tileSize_=n.tileSize,n.url)if(n.jsonp)!function D(o,n,a,b){const W=document.createElement("script"),nt="olc_"+(0,U.sq)(n);function pt(){delete window[nt],W.parentNode.removeChild(W)}W.async=!0,W.src=o+(o.includes("?")?"&":"?")+(b||"callback")+"="+nt;const Ot=setTimeout(function(){pt(),a&&a()},1e4);window[nt]=function(Ut){clearTimeout(Ot),pt(),n(Ut)},document.head.appendChild(W)}(n.url,this.handleTileJSONResponse.bind(this),this.handleTileJSONError.bind(this));else{const a=new XMLHttpRequest;a.addEventListener("load",this.onXHRLoad_.bind(this)),a.addEventListener("error",this.onXHRError_.bind(this)),a.open("GET",n.url),a.send()}else n.tileJSON?this.handleTileJSONResponse(n.tileJSON):(0,P.h)(!1,51)}onXHRLoad_(n){const a=n.target;if(!a.status||a.status>=200&&a.status<300){let b;try{b=JSON.parse(a.responseText)}catch{return void this.handleTileJSONError()}this.handleTileJSONResponse(b)}else this.handleTileJSONError()}onXHRError_(n){this.handleTileJSONError()}getTileJSON(){return this.tileJSON_}handleTileJSONResponse(n){const a=(0,T.U2)("EPSG:4326"),b=this.getProjection();let W;if(void 0!==n.bounds){const Gt=(0,T.WO)(a,b);W=(0,e.Ne)(n.bounds,Gt)}const nt=(0,x.Tl)(b),Ut=(0,x.dl)({extent:nt,maxZoom:n.maxzoom||22,minZoom:n.minzoom||0,tileSize:this.tileSize_});if(this.tileGrid=Ut,this.tileUrlFunction=(0,v.uR)(n.tiles,Ut),n.attribution&&!this.getAttributions()){const Gt=void 0!==W?W:nt;this.setAttributions(function(Wt){return(0,e.kK)(Gt,Wt.extent)?[n.attribution]:null})}this.tileJSON_=n,this.setState("ready")}handleTileJSONError(){this.setState("error")}};var ut,M=r(7356),R=r(3149),K=r(585),G=r(978),J=r(8742),ht={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function _t(o){return(o=Math.round(o))<0?0:o>255?255:o}function Lt(o){return _t("%"===o[o.length-1]?parseFloat(o)/100*255:parseInt(o))}function Ht(o){return function Tt(o){return o<0?0:o>1?1:o}("%"===o[o.length-1]?parseFloat(o)/100:parseFloat(o))}function $t(o,n,a){return a<0?a+=1:a>1&&(a-=1),6*a<1?o+(n-o)*a*6:2*a<1?n:3*a<2?o+(n-o)*(2/3-a)*6:o}try{ut={}.parseCSSColor=function ae(o){var a,n=o.replace(/ /g,"").toLowerCase();if(n in ht)return ht[n].slice();if("#"===n[0])return 4===n.length?(a=parseInt(n.substr(1),16))>=0&&a<=4095?[(3840&a)>>4|(3840&a)>>8,240&a|(240&a)>>4,15&a|(15&a)<<4,1]:null:7===n.length&&(a=parseInt(n.substr(1),16))>=0&&a<=16777215?[(16711680&a)>>16,(65280&a)>>8,255&a,1]:null;var b=n.indexOf("("),W=n.indexOf(")");if(-1!==b&&W+1===n.length){var nt=n.substr(0,b),pt=n.substr(b+1,W-(b+1)).split(","),Ot=1;switch(nt){case"rgba":if(4!==pt.length)return null;Ot=Ht(pt.pop());case"rgb":return 3!==pt.length?null:[Lt(pt[0]),Lt(pt[1]),Lt(pt[2]),Ot];case"hsla":if(4!==pt.length)return null;Ot=Ht(pt.pop());case"hsl":if(3!==pt.length)return null;var Ut=(parseFloat(pt[0])%360+360)%360/360,Gt=Ht(pt[1]),Wt=Ht(pt[2]),le=Wt<=.5?Wt*(Gt+1):Wt+Gt-Wt*Gt,Ee=2*Wt-le;return[_t(255*$t(Ee,le,Ut+1/3)),_t(255*$t(Ee,le,Ut)),_t(255*$t(Ee,le,Ut-1/3)),Ot];default:return null}}return null}}catch{}var Qt=function(n,a,b,W){void 0===W&&(W=1),this.r=n,this.g=a,this.b=b,this.a=W};Qt.parse=function(n){if(n){if(n instanceof Qt)return n;if("string"==typeof n){var a=ut(n);if(a)return new Qt(a[0]/255*a[3],a[1]/255*a[3],a[2]/255*a[3],a[3])}}},Qt.prototype.toString=function(){var n=this.toArray(),b=n[1],W=n[2],nt=n[3];return"rgba("+Math.round(n[0])+","+Math.round(b)+","+Math.round(W)+","+nt+")"},Qt.prototype.toArray=function(){var n=this,nt=n.a;return 0===nt?[0,0,0,0]:[255*n.r/nt,255*n.g/nt,255*n.b/nt,nt]},Qt.prototype.toArray01=function(){var n=this,nt=n.a;return 0===nt?[0,0,0,0]:[n.r/nt,n.g/nt,n.b/nt,nt]},Qt.prototype.toArray01PremultipliedAlpha=function(){var n=this;return[n.r,n.g,n.b,n.a]},Qt.black=new Qt(0,0,0,1),Qt.white=new Qt(1,1,1,1),Qt.transparent=new Qt(0,0,0,0),Qt.red=new Qt(1,0,0,1),Qt.blue=new Qt(0,0,1,1);var _e=Qt;function Ce(o){return"object"==typeof o?["literal",o]:o}function xt(o){switch(o.colorSpace){case"hcl":return"interpolate-hcl";case"lab":return"interpolate-lab";default:return"interpolate"}}function ie(o,n){var a=Ce(function Bt(o,n){return void 0!==o?o:void 0!==n?n:void 0}(o.default,n.default));return void 0===a&&"resolvedImage"===n.type?"":a}function Te(o,n,a){var b=Kt(o,n),W=["get",o.property];if("categorical"===b&&"boolean"==typeof a[0][0]){for(var nt=["case"],pt=0,Ot=a;pt3&&n===o[o.length-2]||(b&&2===o.length||o.push(n),o.push(a))}function Kt(o,n){return o.type?o.type:n.expression.interpolated?"exponential":"interval"}function Yt(o){for(var n=["concat"],a=/{([^{}]+)}/g,b=0,W=a.exec(o);null!==W;W=a.exec(o)){var nt=o.slice(b,a.lastIndex-W[0].length);b=a.lastIndex,nt.length>0&&n.push(nt),n.push(["get",W[1]])}if(1===n.length)return o;if(b":"value"===o.itemType.kind?"array":"array<"+n+">"}return o.kind}var we=[He,Zt,Et,y,z,kt,st,ee(it),zt];function ge(o,n){if("error"===n.kind)return null;if("array"===o.kind){if("array"===n.kind&&(0===n.N&&"value"===n.itemType.kind||!ge(o.itemType,n.itemType))&&("number"!=typeof o.N||o.N===n.N))return null}else{if(o.kind===n.kind)return null;if("value"===o.kind)for(var a=0,b=we;a=0&&o<=255&&"number"==typeof n&&n>=0&&n<=255&&"number"==typeof a&&a>=0&&a<=255?typeof b>"u"||"number"==typeof b&&b>=0&&b<=1?null:"Invalid rgba value ["+[o,n,a,b].join(", ")+"]: 'a' must be between 0 and 1.":"Invalid rgba value ["+("number"==typeof b?[o,n,a,b]:[o,n,a]).join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}function ot(o){if(null===o)return!0;if("string"==typeof o)return!0;if("boolean"==typeof o)return!0;if("number"==typeof o)return!0;if(o instanceof _e)return!0;if(o instanceof Qe)return!0;if(o instanceof ri)return!0;if(o instanceof ui)return!0;if(Array.isArray(o)){for(var n=0,a=o;n2){var Ot=n[1];if("string"!=typeof Ot||!(Ot in Se)||"object"===Ot)return a.error('The item type argument of "array" must be one of string, number, boolean',1);pt=Se[Ot],b++}else pt=it;if(n.length>3){if(null!==n[2]&&("number"!=typeof n[2]||n[2]<0||n[2]!==Math.floor(n[2])))return a.error('The length argument to "array" must be a positive integer literal',2);Ut=n[2],b++}W=ee(pt,Ut)}else W=Se[nt];for(var Gt=[];b1)&&a.push(W)}}return a.concat(this.args.map(function(nt){return nt.serialize()}))};var ke=Le,Ve=function(n){this.type=kt,this.sections=n};Ve.parse=function(n,a){if(n.length<2)return a.error("Expected at least one argument.");var b=n[1];if(!Array.isArray(b)&&"object"==typeof b)return a.error("First argument must be an image or text section.");for(var W=[],nt=!1,pt=1;pt<=n.length-1;++pt){var Ot=n[pt];if(nt&&"object"==typeof Ot&&!Array.isArray(Ot)){nt=!1;var Ut=null;if(Ot["font-scale"]&&!(Ut=a.parse(Ot["font-scale"],1,Zt)))return null;var Gt=null;if(Ot["text-font"]&&!(Gt=a.parse(Ot["text-font"],1,ee(Et))))return null;var Wt=null;if(Ot["text-color"]&&!(Wt=a.parse(Ot["text-color"],1,z)))return null;var le=W[W.length-1];le.scale=Ut,le.font=Gt,le.textColor=Wt}else{var Ee=a.parse(n[pt],1,it);if(!Ee)return null;var Me=Ee.type.kind;if("string"!==Me&&"value"!==Me&&"null"!==Me&&"resolvedImage"!==Me)return a.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");nt=!0,W.push({content:Ee,scale:null,font:null,textColor:null})}}return new Ve(W)},Ve.prototype.evaluate=function(n){return new ri(this.sections.map(function(b){var W=b.content.evaluate(n);return rt(W)===zt?new $e("",W,null,null,null):new $e(St(W),null,b.scale?b.scale.evaluate(n):null,b.font?b.font.evaluate(n).join(","):null,b.textColor?b.textColor.evaluate(n):null)}))},Ve.prototype.eachChild=function(n){for(var a=0,b=this.sections;a-1),b},si.prototype.eachChild=function(n){n(this.input)},si.prototype.outputDefined=function(){return!1},si.prototype.serialize=function(){return["image",this.input.serialize()]};var pi=si,Di={"to-boolean":y,"to-color":z,"to-number":Zt,"to-string":Et},Ri=function(n,a){this.type=n,this.args=a};Ri.parse=function(n,a){if(n.length<2)return a.error("Expected at least one argument.");var b=n[0];if(("to-boolean"===b||"to-string"===b)&&2!==n.length)return a.error("Expected one argument.");for(var W=Di[b],nt=[],pt=1;pt4?"Invalid rbga value "+JSON.stringify(a)+": expected an array containing either three or four numeric values.":di(a[0],a[1],a[2],a[3])))return new _e(a[0]/255,a[1]/255,a[2]/255,a[3])}throw new fe(b||"Could not parse color from value '"+("string"==typeof a?a:String(JSON.stringify(a)))+"'")}if("number"===this.type.kind){for(var Ut=null,Gt=0,Wt=this.args;Gt=n[2]||o[1]<=n[1]||o[3]>=n[3])}function Mr(o,n){var a=function Fi(o){return(180+o)/360}(o[0]),b=function ji(o){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+o*Math.PI/360)))/360}(o[1]),W=Math.pow(2,n.z);return[Math.round(a*W*Ui),Math.round(b*W*Ui)]}function Gi(o,n,a){var b=o[0]-n[0],W=o[1]-n[1],nt=o[0]-a[0],pt=o[1]-a[1];return b*pt-nt*W==0&&b*nt<=0&&W*pt<=0}function Ln(o,n,a){return n[1]>o[1]!=a[1]>o[1]&&o[0]<(a[0]-n[0])*(o[1]-n[1])/(a[1]-n[1])+n[0]}function Hn(o,n){for(var a=!1,b=0,W=n.length;b0&&le<0||Wt<0&&le>0}function Ki(o,n,a,b){return 0!==function Cn(o,n){return o[0]*n[1]-o[1]*n[0]}([b[0]-a[0],b[1]-a[1]],[n[0]-o[0],n[1]-o[1]])&&!(!Ni(o,n,a,b)||!Ni(a,b,o,n))}function Fn(o,n,a){for(var b=0,W=a;ba[2]){var W=.5*b,nt=o[0]-a[0]>W?-b:a[0]-o[0]>W?b:0;0===nt&&(nt=o[0]-a[2]>W?-b:a[2]-o[0]>W?b:0),o[0]+=nt}Ei(n,o)}function ms(o,n,a,b){var W=Math.pow(2,b.z)*Ui,nt=[b.x*Ui,b.y*Ui],pt=[];if(!o)return pt;for(var Ot=0,Ut=o;Ot=0)return!1;var a=!0;return o.eachChild(function(b){a&&!ts(b,n)&&(a=!1)}),a}var gn=function(n,a){this.type=a.type,this.name=n,this.boundExpression=a};gn.parse=function(n,a){if(2!==n.length||"string"!=typeof n[1])return a.error("'var' expression requires exactly one string literal argument.");var b=n[1];return a.scope.has(b)?new gn(b,a.scope.get(b)):a.error('Unknown variable "'+b+'". Make sure "'+b+'" has been bound in an enclosing "let" expression before using it.',1)},gn.prototype.evaluate=function(n){return this.boundExpression.evaluate(n)},gn.prototype.eachChild=function(){},gn.prototype.outputDefined=function(){return!1},gn.prototype.serialize=function(){return["var",this.name]};var Js=gn,_n=function(n,a,b,W,nt){void 0===a&&(a=[]),void 0===W&&(W=new ze),void 0===nt&&(nt=[]),this.registry=n,this.path=a,this.key=a.map(function(pt){return"["+pt+"]"}).join(""),this.scope=W,this.errors=nt,this.expectedType=b};_n.prototype.parse=function(n,a,b,W,nt){return void 0===nt&&(nt={}),a?this.concat(a,b,W)._parse(n,nt):this._parse(n,nt)},_n.prototype._parse=function(n,a){function b(Wt,le,Ee){return"assert"===Ee?new ke(le,[Wt]):"coerce"===Ee?new Li(le,[Wt]):Wt}if((null===n||"string"==typeof n||"boolean"==typeof n||"number"==typeof n)&&(n=["literal",n]),Array.isArray(n)){if(0===n.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var W=n[0];if("string"!=typeof W)return this.error("Expression name must be a string, but found "+typeof W+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var nt=this.registry[W];if(nt){var pt=nt.parse(n,this);if(!pt)return null;if(this.expectedType){var Ot=this.expectedType,Ut=pt.type;if("string"!==Ot.kind&&"number"!==Ot.kind&&"boolean"!==Ot.kind&&"object"!==Ot.kind&&"array"!==Ot.kind||"value"!==Ut.kind)if("color"!==Ot.kind&&"formatted"!==Ot.kind&&"resolvedImage"!==Ot.kind||"value"!==Ut.kind&&"string"!==Ut.kind){if(this.checkSubtype(Ot,Ut))return null}else pt=b(pt,Ot,a.typeAnnotation||"coerce");else pt=b(pt,Ot,a.typeAnnotation||"assert")}if(!(pt instanceof Ft)&&"resolvedImage"!==pt.type.kind&&Es(pt)){var Gt=new Oi;try{pt=new Ft(pt.type,pt.evaluate(Gt))}catch(Wt){return this.error(Wt.message),null}}return pt}return this.error('Unknown expression "'+W+'". If you wanted a literal array, use ["literal", [...]].',0)}return this.error(typeof n>"u"?"'undefined' value invalid. Use null instead.":"object"==typeof n?'Bare objects invalid. Use ["literal", {...}] instead.':"Expected an array, but found "+typeof n+" instead.")},_n.prototype.concat=function(n,a,b){var W="number"==typeof n?this.path.concat(n):this.path,nt=b?this.scope.concat(b):this.scope;return new _n(this.registry,W,a||null,nt,this.errors)},_n.prototype.error=function(n){for(var a=[],b=arguments.length-1;b-- >0;)a[b]=arguments[b+1];var W=""+this.key+a.map(function(nt){return"["+nt+"]"}).join("");this.errors.push(new ye(W,n))},_n.prototype.checkSubtype=function(n,a){var b=ge(n,a);return b&&this.error(b),b};var cn=_n;function Es(o){if(o instanceof Js)return Es(o.boundExpression);if(o instanceof Ii&&"error"===o.name)return!1;if(o instanceof hn)return!1;if(o instanceof ys)return!1;var n=o instanceof Li||o instanceof ke,a=!0;return o.eachChild(function(b){a=n?a&&Es(b):a&&b instanceof Ft}),!!a&&Nn(o)&&ts(o,["zoom","heatmap-density","line-progress","sky-radial-progress","accumulated","is-supported-script","pitch","distance-from-center"])}function Qs(o,n){for(var pt,a=o.length-1,b=0,W=a,nt=0;b<=W;)if((pt=o[nt=Math.floor((b+W)/2)])<=n){if(nt===a||nn))throw new fe("Input is not a number.");W=nt-1}return 0}var pn=function(n,a,b){this.type=n,this.input=a,this.labels=[],this.outputs=[];for(var W=0,nt=b;W=Ot)return a.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',Gt);var le=a.parse(Ut,Wt,nt);if(!le)return null;nt=nt||le.type,W.push([Ot,le])}return new pn(nt,b,W)},pn.prototype.evaluate=function(n){var a=this.labels,b=this.outputs;if(1===a.length)return b[0].evaluate(n);var W=this.input.evaluate(n);if(W<=a[0])return b[0].evaluate(n);var nt=a.length;return W>=a[nt-1]?b[nt-1].evaluate(n):b[Qs(a,W)].evaluate(n)},pn.prototype.eachChild=function(n){n(this.input);for(var a=0,b=this.outputs;a0&&n.push(this.labels[a]),n.push(this.outputs[a].serialize());return n};var xs=pn,$s=un;function un(o,n,a,b){this.cx=3*o,this.bx=3*(a-o)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*n,this.by=3*(b-n)-this.cy,this.ay=1-this.cy-this.by,this.p1x=o,this.p1y=b,this.p2x=a,this.p2y=b}function zi(o,n,a){return o*(1-a)+n*a}un.prototype.sampleCurveX=function(o){return((this.ax*o+this.bx)*o+this.cx)*o},un.prototype.sampleCurveY=function(o){return((this.ay*o+this.by)*o+this.cy)*o},un.prototype.sampleCurveDerivativeX=function(o){return(3*this.ax*o+2*this.bx)*o+this.cx},un.prototype.solveCurveX=function(o,n){var a,b,W,nt,pt;for(typeof n>"u"&&(n=1e-6),W=o,pt=0;pt<8;pt++){if(nt=this.sampleCurveX(W)-o,Math.abs(nt)(b=1))return b;for(;ant?a=W:b=W,W=.5*(b-a)+a}return W},un.prototype.solve=function(o,n){return this.sampleCurveY(this.solveCurveX(o,n))};var Sr=Object.freeze({__proto__:null,number:zi,color:function qs(o,n,a){return new _e(zi(o.r,n.r,a),zi(o.g,n.g,a),zi(o.b,n.b,a),zi(o.a,n.a,a))},array:function Cs(o,n,a){return o.map(function(b,W){return zi(b,n[W],a)})}}),Ts=4/29,ki=6/29,ir=3*ki*ki,br=Math.PI/180,Rr=180/Math.PI;function es(o){return o>.008856451679035631?Math.pow(o,1/3):o/ir+Ts}function Ss(o){return o>ki?o*o*o:ir*(o-Ts)}function Tn(o){return 255*(o<=.0031308?12.92*o:1.055*Math.pow(o,1/2.4)-.055)}function kn(o){return(o/=255)<=.04045?o/12.92:Math.pow((o+.055)/1.055,2.4)}function Vi(o){var n=kn(o.r),a=kn(o.g),b=kn(o.b),W=es((.4124564*n+.3575761*a+.1804375*b)/.95047),nt=es((.2126729*n+.7151522*a+.072175*b)/1);return{l:116*nt-16,a:500*(W-nt),b:200*(nt-es((.0193339*n+.119192*a+.9503041*b)/1.08883)),alpha:o.a}}function nr(o){var n=(o.l+16)/116,a=isNaN(o.a)?n:n+o.a/500,b=isNaN(o.b)?n:n-o.b/200;return n=1*Ss(n),a=.95047*Ss(a),b=1.08883*Ss(b),new _e(Tn(3.2404542*a-1.5371385*n-.4985314*b),Tn(-.969266*a+1.8760108*n+.041556*b),Tn(.0556434*a-.2040259*n+1.0572252*b),o.alpha)}function qt(o,n,a){var b=n-o;return o+a*(b>180||b<-180?b-360*Math.round(b/360):b)}var Ct={forward:Vi,reverse:nr,interpolate:function Ir(o,n,a){return{l:zi(o.l,n.l,a),a:zi(o.a,n.a,a),b:zi(o.b,n.b,a),alpha:zi(o.alpha,n.alpha,a)}}},Rt_forward=function bs(o){var n=Vi(o),a=n.l,b=n.a,W=n.b,nt=Math.atan2(W,b)*Rr;return{h:nt<0?nt+360:nt,c:Math.sqrt(b*b+W*W),l:a,alpha:o.a}},Rt_reverse=function Or(o){var n=o.h*br,a=o.c;return nr({l:o.l,a:Math.cos(n)*a,b:Math.sin(n)*a,alpha:o.alpha})},Rt_interpolate=function mt(o,n,a){return{h:qt(o.h,n.h,a),c:zi(o.c,n.c,a),l:zi(o.l,n.l,a),alpha:zi(o.alpha,n.alpha,a)}},jt=function(n,a,b,W,nt){this.type=n,this.operator=a,this.interpolation=b,this.input=W,this.labels=[],this.outputs=[];for(var pt=0,Ot=nt;pt1}))return a.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);W={name:"cubic-bezier",controlPoints:Ut}}if(n.length-1<4)return a.error("Expected at least 4 arguments, but found only "+(n.length-1)+".");if((n.length-1)%2!=0)return a.error("Expected an even number of arguments.");if(!(nt=a.parse(nt,2,Zt)))return null;var Gt=[],Wt=null;"interpolate-hcl"===b||"interpolate-lab"===b?Wt=z:a.expectedType&&"value"!==a.expectedType.kind&&(Wt=a.expectedType);for(var le=0;le=Ee)return a.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',Ke);var d=a.parse(Me,t,Wt);if(!d)return null;Wt=Wt||d.type,Gt.push([Ee,d])}return"number"===Wt.kind||"color"===Wt.kind||"array"===Wt.kind&&"number"===Wt.itemType.kind&&"number"==typeof Wt.N?new jt(Wt,b,W,nt,Gt):a.error("Type "+re(Wt)+" is not interpolatable.")},jt.prototype.evaluate=function(n){var a=this.labels,b=this.outputs;if(1===a.length)return b[0].evaluate(n);var W=this.input.evaluate(n);if(W<=a[0])return b[0].evaluate(n);var nt=a.length;if(W>=a[nt-1])return b[nt-1].evaluate(n);var pt=Qs(a,W),Gt=jt.interpolationFactor(this.interpolation,W,a[pt],a[pt+1]),Wt=b[pt].evaluate(n),le=b[pt+1].evaluate(n);return"interpolate"===this.operator?Sr[this.type.kind.toLowerCase()](Wt,le,Gt):"interpolate-hcl"===this.operator?Rt_reverse(Rt_interpolate(Rt_forward(Wt),Rt_forward(le),Gt)):Ct.reverse(Ct.interpolate(Ct.forward(Wt),Ct.forward(le),Gt))},jt.prototype.eachChild=function(n){n(this.input);for(var a=0,b=this.outputs;a=b.length)throw new fe("Array index out of bounds: "+a+" > "+(b.length-1)+".");if(a!==Math.floor(a))throw new fe("Array index must be an integer, but found "+a+" instead.");return b[a]},li.prototype.eachChild=function(n){n(this.index),n(this.input)},li.prototype.outputDefined=function(){return!1},li.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var fi=li,gi=function(n,a){this.type=y,this.needle=n,this.haystack=a};gi.parse=function(n,a){if(3!==n.length)return a.error("Expected 2 arguments, but found "+(n.length-1)+" instead.");var b=a.parse(n[1],1,it),W=a.parse(n[2],2,it);return b&&W?oe(b.type,[y,Et,Zt,He,it])?new gi(b,W):a.error("Expected first argument to be of type boolean, string, number or null, but found "+re(b.type)+" instead"):null},gi.prototype.evaluate=function(n){var a=this.needle.evaluate(n),b=this.haystack.evaluate(n);if(null==b)return!1;if(!Xe(a,["boolean","string","number","null"]))throw new fe("Expected first argument to be of type boolean, string, number or null, but found "+re(rt(a))+" instead.");if(!Xe(b,["string","array"]))throw new fe("Expected second argument to be of type array or string, but found "+re(rt(b))+" instead.");return b.indexOf(a)>=0},gi.prototype.eachChild=function(n){n(this.needle),n(this.haystack)},gi.prototype.outputDefined=function(){return!0},gi.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var Ci=gi,wi=function(n,a,b){this.type=Zt,this.needle=n,this.haystack=a,this.fromIndex=b};wi.parse=function(n,a){if(n.length<=2||n.length>=5)return a.error("Expected 3 or 4 arguments, but found "+(n.length-1)+" instead.");var b=a.parse(n[1],1,it),W=a.parse(n[2],2,it);if(!b||!W)return null;if(!oe(b.type,[y,Et,Zt,He,it]))return a.error("Expected first argument to be of type boolean, string, number or null, but found "+re(b.type)+" instead");if(4===n.length){var nt=a.parse(n[3],3,Zt);return nt?new wi(b,W,nt):null}return new wi(b,W)},wi.prototype.evaluate=function(n){var a=this.needle.evaluate(n),b=this.haystack.evaluate(n);if(!Xe(a,["boolean","string","number","null"]))throw new fe("Expected first argument to be of type boolean, string, number or null, but found "+re(rt(a))+" instead.");if(!Xe(b,["string","array"]))throw new fe("Expected second argument to be of type array or string, but found "+re(rt(b))+" instead.");if(this.fromIndex){var W=this.fromIndex.evaluate(n);return b.indexOf(a,W)}return b.indexOf(a)},wi.prototype.eachChild=function(n){n(this.needle),n(this.haystack),this.fromIndex&&n(this.fromIndex)},wi.prototype.outputDefined=function(){return!1},wi.prototype.serialize=function(){if(null!=this.fromIndex&&void 0!==this.fromIndex){var n=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),n]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var Ti=wi,xi=function(n,a,b,W,nt,pt){this.inputType=n,this.type=a,this.input=b,this.cases=W,this.outputs=nt,this.otherwise=pt};xi.parse=function(n,a){if(n.length<5)return a.error("Expected at least 4 arguments, but found only "+(n.length-1)+".");if(n.length%2!=1)return a.error("Expected an even number of arguments.");var b,W;a.expectedType&&"value"!==a.expectedType.kind&&(W=a.expectedType);for(var nt={},pt=[],Ot=2;OtNumber.MAX_SAFE_INTEGER)return Wt.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if("number"==typeof Me&&Math.floor(Me)!==Me)return Wt.error("Numeric branch labels must be integer values.");if(b){if(Wt.checkSubtype(b,rt(Me)))return null}else b=rt(Me);if(typeof nt[String(Me)]<"u")return Wt.error("Branch labels must be unique.");nt[String(Me)]=pt.length}var Ke=a.parse(Gt,Ot,W);if(!Ke)return null;W=W||Ke.type,pt.push(Ke)}var t=a.parse(n[1],1,it);if(!t)return null;var d=a.parse(n[n.length-1],n.length-1,W);return!d||"value"!==t.type.kind&&a.concat(1).checkSubtype(b,t.type)?null:new xi(b,W,t,nt,pt,d)},xi.prototype.evaluate=function(n){var a=this.input.evaluate(n);return(rt(a)===this.inputType&&this.outputs[this.cases[a]]||this.otherwise).evaluate(n)},xi.prototype.eachChild=function(n){n(this.input),this.outputs.forEach(n),n(this.otherwise)},xi.prototype.outputDefined=function(){return this.outputs.every(function(n){return n.outputDefined()})&&this.otherwise.outputDefined()},xi.prototype.serialize=function(){for(var n=this,a=["match",this.input.serialize()],W=[],nt={},pt=0,Ot=Object.keys(this.cases).sort();pt=5)return a.error("Expected 3 or 4 arguments, but found "+(n.length-1)+" instead.");var b=a.parse(n[1],1,it),W=a.parse(n[2],2,Zt);if(!b||!W)return null;if(!oe(b.type,[ee(it),Et,it]))return a.error("Expected first argument to be of type array or string, but found "+re(b.type)+" instead");if(4===n.length){var nt=a.parse(n[3],3,Zt);return nt?new Xi(b.type,b,W,nt):null}return new Xi(b.type,b,W)},Xi.prototype.evaluate=function(n){var a=this.input.evaluate(n),b=this.beginIndex.evaluate(n);if(!Xe(a,["string","array"]))throw new fe("Expected first argument to be of type array or string, but found "+re(rt(a))+" instead.");if(this.endIndex){var W=this.endIndex.evaluate(n);return a.slice(b,W)}return a.slice(b)},Xi.prototype.eachChild=function(n){n(this.input),n(this.beginIndex),this.endIndex&&n(this.endIndex)},Xi.prototype.outputDefined=function(){return!1},Xi.prototype.serialize=function(){if(null!=this.endIndex&&void 0!==this.endIndex){var n=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),n]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};var rn=Xi;function Yi(o,n){return"=="===o||"!="===o?"boolean"===n.kind||"string"===n.kind||"number"===n.kind||"null"===n.kind||"value"===n.kind:"string"===n.kind||"number"===n.kind||"value"===n.kind}function or(o,n,a,b){return 0===b.compare(n,a)}function ss(o,n,a){var b="=="!==o&&"!="!==o;return function(){function W(nt,pt,Ot){this.type=y,this.lhs=nt,this.rhs=pt,this.collator=Ot,this.hasUntypedArgument="value"===nt.type.kind||"value"===pt.type.kind}return W.parse=function(pt,Ot){if(3!==pt.length&&4!==pt.length)return Ot.error("Expected two or three arguments.");var Ut=pt[0],Gt=Ot.parse(pt[1],1,it);if(!Gt)return null;if(!Yi(Ut,Gt.type))return Ot.concat(1).error('"'+Ut+"\" comparisons are not supported for type '"+re(Gt.type)+"'.");var Wt=Ot.parse(pt[2],2,it);if(!Wt)return null;if(!Yi(Ut,Wt.type))return Ot.concat(2).error('"'+Ut+"\" comparisons are not supported for type '"+re(Wt.type)+"'.");if(Gt.type.kind!==Wt.type.kind&&"value"!==Gt.type.kind&&"value"!==Wt.type.kind)return Ot.error("Cannot compare types '"+re(Gt.type)+"' and '"+re(Wt.type)+"'.");b&&("value"===Gt.type.kind&&"value"!==Wt.type.kind?Gt=new ke(Wt.type,[Gt]):"value"!==Gt.type.kind&&"value"===Wt.type.kind&&(Wt=new ke(Gt.type,[Wt])));var le=null;if(4===pt.length){if("string"!==Gt.type.kind&&"string"!==Wt.type.kind&&"value"!==Gt.type.kind&&"value"!==Wt.type.kind)return Ot.error("Cannot use collator to compare non-string types.");if(!(le=Ot.parse(pt[3],3,Pt)))return null}return new W(Gt,Wt,le)},W.prototype.evaluate=function(pt){var Ot=this.lhs.evaluate(pt),Ut=this.rhs.evaluate(pt);if(b&&this.hasUntypedArgument){var Gt=rt(Ot),Wt=rt(Ut);if(Gt.kind!==Wt.kind||"string"!==Gt.kind&&"number"!==Gt.kind)throw new fe('Expected arguments for "'+o+'" to be (string, string) or (number, number), but found ('+Gt.kind+", "+Wt.kind+") instead.")}if(this.collator&&!b&&this.hasUntypedArgument){var le=rt(Ot),Ee=rt(Ut);if("string"!==le.kind||"string"!==Ee.kind)return n(pt,Ot,Ut)}return this.collator?a(pt,Ot,Ut,this.collator.evaluate(pt)):n(pt,Ot,Ut)},W.prototype.eachChild=function(pt){pt(this.lhs),pt(this.rhs),this.collator&&pt(this.collator)},W.prototype.outputDefined=function(){return!0},W.prototype.serialize=function(){var pt=[o];return this.eachChild(function(Ot){pt.push(Ot.serialize())}),pt},W}()}var Wo=ss("==",function sr(o,n,a){return n===a},or),Ko=ss("!=",function Zn(o,n,a){return n!==a},function Uo(o,n,a,b){return!or(0,n,a,b)}),Vo=ss("<",function Bn(o,n,a){return n",function Rs(o,n,a){return n>a},function Go(o,n,a,b){return b.compare(n,a)>0}),so=ss("<=",function rr(o,n,a){return n<=a},function zo(o,n,a,b){return b.compare(n,a)<=0}),ro=ss(">=",function is(o,n,a){return n>=a},function ns(o,n,a,b){return b.compare(n,a)>=0}),Pn=function(n,a,b,W,nt,pt){this.type=Et,this.number=n,this.locale=a,this.currency=b,this.unit=W,this.minFractionDigits=nt,this.maxFractionDigits=pt};Pn.parse=function(n,a){if(3!==n.length)return a.error("Expected two arguments.");var b=a.parse(n[1],1,Zt);if(!b)return null;var W=n[2];if("object"!=typeof W||Array.isArray(W))return a.error("NumberFormat options argument must be an object.");var nt=null;if(W.locale&&!(nt=a.parse(W.locale,1,Et)))return null;var pt=null;if(W.currency&&!(pt=a.parse(W.currency,1,Et)))return null;var Ot=null;if(W.unit&&!(Ot=a.parse(W.unit,1,Et)))return null;var Ut=null;if(W["min-fraction-digits"]&&!(Ut=a.parse(W["min-fraction-digits"],1,Zt)))return null;var Gt=null;return W["max-fraction-digits"]&&!(Gt=a.parse(W["max-fraction-digits"],1,Zt))?null:new Pn(b,nt,pt,Ot,Ut,Gt)},Pn.prototype.evaluate=function(n){return new Intl.NumberFormat(this.locale?this.locale.evaluate(n):[],{style:(this.currency?"currency":this.unit&&"unit")||"decimal",currency:this.currency?this.currency.evaluate(n):void 0,unit:this.unit?this.unit.evaluate(n):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(n):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(n):void 0}).format(this.number.evaluate(n))},Pn.prototype.eachChild=function(n){n(this.number),this.locale&&n(this.locale),this.currency&&n(this.currency),this.unit&&n(this.unit),this.minFractionDigits&&n(this.minFractionDigits),this.maxFractionDigits&&n(this.maxFractionDigits)},Pn.prototype.outputDefined=function(){return!1},Pn.prototype.serialize=function(){var n={};return this.locale&&(n.locale=this.locale.serialize()),this.currency&&(n.currency=this.currency.serialize()),this.unit&&(n.unit=this.unit.serialize()),this.minFractionDigits&&(n["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(n["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),n]};var oo=Pn,mn=function(n){this.type=Zt,this.input=n};mn.parse=function(n,a){if(2!==n.length)return a.error("Expected 1 argument, but found "+(n.length-1)+" instead.");var b=a.parse(n[1],1);return b?"array"!==b.type.kind&&"string"!==b.type.kind&&"value"!==b.type.kind?a.error("Expected argument of type string or array, but found "+re(b.type)+" instead."):new mn(b):null},mn.prototype.evaluate=function(n){var a=this.input.evaluate(n);if("string"==typeof a)return a.length;if(Array.isArray(a))return a.length;throw new fe("Expected value to be of type string or array, but found "+re(rt(a))+" instead.")},mn.prototype.eachChild=function(n){n(this.input)},mn.prototype.outputDefined=function(){return!1},mn.prototype.serialize=function(){var n=["length"];return this.eachChild(function(a){n.push(a.serialize())}),n};var ao={"==":Wo,"!=":Ko,">":no,"<":Vo,">=":ro,"<=":so,array:ke,at:fi,boolean:ke,case:Bi,coalesce:De,collator:hn,format:qe,image:pi,in:Ci,"index-of":Ti,interpolate:de,"interpolate-hcl":de,"interpolate-lab":de,length:mn,let:ei,literal:Ft,match:Zi,number:ke,"number-format":oo,object:ke,slice:rn,step:xs,string:ke,"to-boolean":Li,"to-color":Li,"to-number":Li,"to-string":Li,var:Js,within:ys};function lo(o,n){var a=n[0],b=n[1],W=n[2],nt=n[3];a=a.evaluate(o),b=b.evaluate(o),W=W.evaluate(o);var pt=nt?nt.evaluate(o):1,Ot=di(a,b,W,pt);if(Ot)throw new fe(Ot);return new _e(a/255*pt,b/255*pt,W/255*pt,pt)}function ho(o,n){return o in n}function wr(o,n){var a=n[o];return typeof a>"u"?null:a}function Pi(o){return{type:o}}Ii.register(ao,{error:[{kind:"error"},[Et],function(o,n){throw new fe(n[0].evaluate(o))}],typeof:[Et,[it],function(o,n){return re(rt(n[0].evaluate(o)))}],"to-rgba":[ee(Zt,4),[z],function(o,n){return n[0].evaluate(o).toArray()}],rgb:[z,[Zt,Zt,Zt],lo],rgba:[z,[Zt,Zt,Zt,Zt],lo],has:{type:y,overloads:[[[Et],function(o,n){return ho(n[0].evaluate(o),o.properties())}],[[Et,st],function(o,n){var b=n[1];return ho(n[0].evaluate(o),b.evaluate(o))}]]},get:{type:it,overloads:[[[Et],function(o,n){return wr(n[0].evaluate(o),o.properties())}],[[Et,st],function(o,n){var b=n[1];return wr(n[0].evaluate(o),b.evaluate(o))}]]},"feature-state":[it,[Et],function(o,n){return wr(n[0].evaluate(o),o.featureState||{})}],properties:[st,[],function(o){return o.properties()}],"geometry-type":[Et,[],function(o){return o.geometryType()}],id:[it,[],function(o){return o.id()}],zoom:[Zt,[],function(o){return o.globals.zoom}],pitch:[Zt,[],function(o){return o.globals.pitch||0}],"distance-from-center":[Zt,[],function(o){return o.distanceFromCenter()}],"heatmap-density":[Zt,[],function(o){return o.globals.heatmapDensity||0}],"line-progress":[Zt,[],function(o){return o.globals.lineProgress||0}],"sky-radial-progress":[Zt,[],function(o){return o.globals.skyRadialProgress||0}],accumulated:[it,[],function(o){return void 0===o.globals.accumulated?null:o.globals.accumulated}],"+":[Zt,Pi(Zt),function(o,n){for(var a=0,b=0,W=n;b":[y,[Et,it],function(o,n){var a=n[0],b=n[1],W=o.properties()[a.value],nt=b.value;return typeof W==typeof nt&&W>nt}],"filter-id->":[y,[it],function(o,n){var a=n[0],b=o.id(),W=a.value;return typeof b==typeof W&&b>W}],"filter-<=":[y,[Et,it],function(o,n){var a=n[0],b=n[1],W=o.properties()[a.value],nt=b.value;return typeof W==typeof nt&&W<=nt}],"filter-id-<=":[y,[it],function(o,n){var a=n[0],b=o.id(),W=a.value;return typeof b==typeof W&&b<=W}],"filter->=":[y,[Et,it],function(o,n){var a=n[0],b=n[1],W=o.properties()[a.value],nt=b.value;return typeof W==typeof nt&&W>=nt}],"filter-id->=":[y,[it],function(o,n){var a=n[0],b=o.id(),W=a.value;return typeof b==typeof W&&b>=W}],"filter-has":[y,[it],function(o,n){return n[0].value in o.properties()}],"filter-has-id":[y,[],function(o){return null!==o.id()&&void 0!==o.id()}],"filter-type-in":[y,[ee(Et)],function(o,n){return n[0].value.indexOf(o.geometryType())>=0}],"filter-id-in":[y,[ee(it)],function(o,n){return n[0].value.indexOf(o.id())>=0}],"filter-in-small":[y,[Et,ee(it)],function(o,n){var a=n[0];return n[1].value.indexOf(o.properties()[a.value])>=0}],"filter-in-large":[y,[Et,ee(it)],function(o,n){var a=n[0],b=n[1];return function Yo(o,n,a,b){for(;a<=b;){var W=a+b>>1;if(n[W]===o)return!0;n[W]>o?b=W-1:a=W+1}return!1}(o.properties()[a.value],b.value,0,b.value.length-1)}],all:{type:y,overloads:[[[y,y],function(o,n){var b=n[1];return n[0].evaluate(o)&&b.evaluate(o)}],[Pi(y),function(o,n){for(var a=0,b=n;a-1}(n))return dn([new ye("","zoom expressions not supported")]);var nt=ws(a);return nt||W?nt instanceof ye?dn([nt]):nt instanceof de&&!function jn(o){return!!o.expression&&o.expression.interpolated}(n)?dn([new ye("",'"interpolate" expressions cannot be used with this property')]):Un(nt?new Os(b?"camera":"composite",o.value,nt.labels,nt instanceof de?nt.interpolation:void 0):new ar(b?"constant":"source",o.value)):dn([new ye("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')])}function ws(o){var n=null;if(o instanceof ei)n=ws(o.result);else if(o instanceof De)for(var a=0,b=o.args;a":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},expression_name:{type:"enum",values:{let:{group:"Variable binding"},var:{group:"Variable binding"},literal:{group:"Types"},array:{group:"Types"},at:{group:"Lookup"},in:{group:"Lookup"},"index-of":{group:"Lookup"},slice:{group:"Lookup"},case:{group:"Decision"},match:{group:"Decision"},coalesce:{group:"Decision"},step:{group:"Ramps, scales, curves"},interpolate:{group:"Ramps, scales, curves"},"interpolate-hcl":{group:"Ramps, scales, curves"},"interpolate-lab":{group:"Ramps, scales, curves"},ln2:{group:"Math"},pi:{group:"Math"},e:{group:"Math"},typeof:{group:"Types"},string:{group:"Types"},number:{group:"Types"},boolean:{group:"Types"},object:{group:"Types"},collator:{group:"Types"},format:{group:"Types"},image:{group:"Types"},"number-format":{group:"Types"},"to-string":{group:"Types"},"to-number":{group:"Types"},"to-boolean":{group:"Types"},"to-rgba":{group:"Color"},"to-color":{group:"Types"},rgb:{group:"Color"},rgba:{group:"Color"},get:{group:"Lookup"},has:{group:"Lookup"},length:{group:"Lookup"},properties:{group:"Feature data"},"feature-state":{group:"Feature data"},"geometry-type":{group:"Feature data"},id:{group:"Feature data"},zoom:{group:"Camera"},pitch:{group:"Camera"},"distance-from-center":{group:"Camera"},"heatmap-density":{group:"Heatmap"},"line-progress":{group:"Feature data"},"sky-radial-progress":{group:"sky"},accumulated:{group:"Feature data"},"+":{group:"Math"},"*":{group:"Math"},"-":{group:"Math"},"/":{group:"Math"},"%":{group:"Math"},"^":{group:"Math"},sqrt:{group:"Math"},log10:{group:"Math"},ln:{group:"Math"},log2:{group:"Math"},sin:{group:"Math"},cos:{group:"Math"},tan:{group:"Math"},asin:{group:"Math"},acos:{group:"Math"},atan:{group:"Math"},min:{group:"Math"},max:{group:"Math"},round:{group:"Math"},abs:{group:"Math"},ceil:{group:"Math"},floor:{group:"Math"},distance:{group:"Math"},"==":{group:"Decision"},"!=":{group:"Decision"},">":{group:"Decision"},"<":{group:"Decision"},">=":{group:"Decision"},"<=":{group:"Decision"},all:{group:"Decision"},any:{group:"Decision"},"!":{group:"Decision"},within:{group:"Decision"},"is-supported-script":{group:"String"},upcase:{group:"String"},downcase:{group:"String"},concat:{group:"String"},"resolved-locale":{group:"String"}}},fog:{range:{type:"array",default:[.5,10],minimum:-20,maximum:20,length:2,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"high-color":{type:"color","property-type":"data-constant",default:"#245cdf",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"space-color":{type:"color","property-type":"data-constant",default:["interpolate",["linear"],["zoom"],4,"#010b19",7,"#367ab9"],expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-blend":{type:"number","property-type":"data-constant",default:["interpolate",["linear"],["zoom"],4,.2,7,.1],minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"star-intensity":{type:"number","property-type":"data-constant",default:["interpolate",["linear"],["zoom"],5,.35,6,0],minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},projection:{name:{type:"enum",values:{albers:{},equalEarth:{},equirectangular:{},lambertConformalConic:{},mercator:{},naturalEarth:{},winkelTripel:{},globe:{}},default:"mercator",required:!0},center:{type:"array",length:2,value:"number","property-type":"data-constant",minimum:[-180,-90],maximum:[180,90],transition:!1,requires:[{name:["albers","lambertConformalConic"]}]},parallels:{type:"array",length:2,value:"number","property-type":"data-constant",minimum:[-90,-90],maximum:[90,90],transition:!1,requires:[{name:["albers","lambertConformalConic"]}]}},terrain:{source:{type:"string",required:!0},exaggeration:{type:"number","property-type":"data-constant",default:1,minimum:0,maximum:1e3,expression:{interpolated:!0,parameters:["zoom"]},transition:!0,requires:["source"]}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background","paint_sky"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!1,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!1,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-ambient-occlusion-intensity":{"property-type":"data-constant",type:"number",private:!0,default:0,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fill-extrusion-ambient-occlusion-radius":{"property-type":"data-constant",type:"number",private:!0,default:3,minimum:0,expression:{interpolated:!0,parameters:["zoom"]},transition:!0,requires:["fill-extrusion-edge-radius"]}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!1,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-pattern":{type:"resolvedImage",transition:!1,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"},"line-trim-offset":{type:"array",value:"number",length:2,default:[0,0],minimum:[0,0],maximum:[1,1],transition:!1,requires:[{source:"geojson",has:{lineMetrics:!0}}],"property-type":"constant"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_sky:{"sky-type":{type:"enum",values:{gradient:{},atmosphere:{}},default:"atmosphere",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun":{type:"array",value:"number",length:2,units:"degrees",minimum:[0,0],maximum:[360,180],transition:!1,requires:[{"sky-type":"atmosphere"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun-intensity":{type:"number",requires:[{"sky-type":"atmosphere"}],default:10,minimum:0,maximum:100,transition:!1,"property-type":"data-constant"},"sky-gradient-center":{type:"array",requires:[{"sky-type":"gradient"}],value:"number",default:[0,0],length:2,units:"degrees",minimum:[0,0],maximum:[360,180],transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-gradient-radius":{type:"number",requires:[{"sky-type":"gradient"}],default:90,minimum:0,maximum:180,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-gradient":{type:"color",default:["interpolate",["linear"],["sky-radial-progress"],.8,"#87ceeb",1,"white"],transition:!1,requires:[{"sky-type":"gradient"}],expression:{interpolated:!0,parameters:["sky-radial-progress"]},"property-type":"color-ramp"},"sky-atmosphere-halo-color":{type:"color",default:"white",transition:!1,requires:[{"sky-type":"atmosphere"}],"property-type":"data-constant"},"sky-atmosphere-color":{type:"color",default:"white",transition:!1,requires:[{"sky-type":"atmosphere"}],"property-type":"data-constant"},"sky-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}};function uo(o){if(!0===o||!1===o)return!0;if(!Array.isArray(o)||0===o.length)return!1;switch(o[0]){case"has":return o.length>=2&&"$id"!==o[1]&&"$type"!==o[1];case"in":return o.length>=3&&("string"!=typeof o[1]||Array.isArray(o[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return 3!==o.length||Array.isArray(o[1])||Array.isArray(o[2]);case"any":case"all":for(var n=0,a=o.slice(1);n",">=","<","<=","to-boolean"]);function po(o,n){return on?1:0}function Fr(o){if(!Array.isArray(o))return!1;if("within"===o[0])return!0;for(var n=1;n"===n||"<="===n||">="===n?Gn(o[1],o[2],n):"any"===n?function lr(o){return["any"].concat(o.map(Ji))}(o.slice(1)):"all"===n?["all"].concat(o.slice(1).map(Ji)):"none"===n?["all"].concat(o.slice(1).map(Ji).map(Ds)):"in"===n?Nr(o[1],o.slice(2)):"!in"===n?Ds(Nr(o[1],o.slice(2))):"has"===n?hr(o[1]):"!has"===n?Ds(hr(o[1])):"within"!==n||o}function Gn(o,n,a){switch(o){case"$type":return["filter-type-"+a,n];case"$id":return["filter-id-"+a,n];default:return["filter-"+a,o,n]}}function Nr(o,n){if(0===n.length)return!1;switch(o){case"$type":return["filter-type-in",["literal",n]];case"$id":return["filter-id-in",["literal",n]];default:return n.length>200&&!n.some(function(a){return typeof a!=typeof n[0]})?["filter-in-large",o,["literal",n.sort(po)]]:["filter-in-small",o,["literal",n]]}}function hr(o){switch(o){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",o]}}function Ds(o){return["!",o]}var mo=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function vo(o,n){var a={};for(var b in o)"ref"!==b&&(a[b]=o[b]);return mo.forEach(function(W){W in n&&(a[W]=n[W])}),a}var kr={thin:100,hairline:100,"ultra-light":100,"extra-light":100,light:200,book:300,regular:400,normal:400,plain:400,roman:400,standard:400,medium:500,"semi-bold":600,"demi-bold":600,bold:700,heavy:800,black:800,"extra-bold":800,"ultra-black":900,"extra-black":900,"ultra-bold":900,"heavy-black":900,fat:900,poster:900},cr=/(italic|oblique)$/i,Eo={},Zr=function(o,n,a){var b=Eo[o];if(!b){Array.isArray(o)||(o=[o]);for(var W=400,nt="normal",pt=[],Gt=0,Wt=o.length;Gt1?Ee[Ee.length-2].toLowerCase():"";if(Me==Ke||Me==Ke.replace("-","")||t+"-"+Me==Ke){W=kr[Ke],Ee.pop(),t&&Ke.startsWith(t)&&Ee.pop();break}}"number"==typeof Me&&(W=Me);var d=Ee.join(" ").replace("Klokantech Noto Sans","Noto Sans");-1!==d.indexOf(" ")&&(d='"'+d+'"'),pt.push(d)}b=Eo[o]=[nt,W,pt]}return b[0]+" "+b[1]+" "+n+"px"+(a?"/"+a:"")+" "+b[2]},Ls="https://api.mapbox.com";function vn(o){var n="mapbox://";return 0!==o.indexOf(n)?"":o.slice(n.length)}function bn(o,n){var a=vn(o);if(!a)return decodeURI(new URL(o,location.href).href);var b="styles/";if(0!==a.indexOf(b))throw new Error("unexpected style url: "+o);var W=a.slice(b.length);return Ls+"/styles/v1/"+W+"?&access_token="+n}function us(o,n,a,b){var W=new URL(o,b),nt=vn(o);return nt?"mapbox.satellite"===nt?"https://api.mapbox.com/v4/"+nt+"/{z}/{x}/{y}"+(window.devicePixelRatio>=1.5?"@2x":"")+".webp?access_token="+n:"https://{a-d}.tiles.mapbox.com/v4/"+nt+"/{z}/{x}/{y}.vector.pbf?access_token="+n:(n&&W.searchParams.set(a,n),decodeURI(W.href))}var Ur=0,ur={},dr={};function As(o){return o*Math.PI/180}var tn=function(){for(var o=[],n=78271.51696402048;o.length<=24;n/=2)o.push(n);return o}();function fr(o,n){if(typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof OffscreenCanvas<"u")return new OffscreenCanvas(o,n);var a=document.createElement("canvas");return a.width=o,a.height=n,a}function Fs(o,n){for(var a=0,b=n.length;a0&&pt.arc(Gt,le,a*n.pixelRatio,0,2*Math.PI);return pt.fill(),W}var Zs,xo=Array(256).join("\u200a");function Wn(o,n){if(n>=.05){for(var a="",b=o.split("\n"),W=xo.slice(0,Math.round(n/.1)),nt=0,pt=b.length;nt0&&(a+="\n"),a+=b[nt].split("").join(W);return a}return o}function Kn(){return Zs||(Zs=fr(1,1).getContext("2d")),Zs}function yn(o,n){return Kn().measureText(o).width+(o.length-1)*n}var pr={};function Bs(o,n,a,b){if(-1!==o.indexOf("\n")){for(var W=o.split("\n"),nt=[],pt=0,Ot=W.length;pt1){var le=Kn();le.font=n;for(var Me=le.measureText("M").width*a,Ke="",t=[],d=0,E=Wt.length;d1;++et){var at=t[et];if(yn(at,b)<.35*Me){var yt=et>0?yn(t[et-1],b):1/0,It=et.7*Me&&yn(me,b)<.6*Me){var pe=ne.split(" "),ve=pe.pop();yn(ve,b)<.2*Me&&(t[Xt]=pe.join(" "),t[Xt+1]=ve+" "+me),At-=1}}Gt=t.join("\n")}else Gt=o;Gt=Wn(Gt,b),pr[Ut]=Gt}return Gt}var En,ia=/font-family: ?([^;]*);/,na=/("|')/g;function Co(o){if(!En){En={};for(var n=document.styleSheets,a=0,b=n.length;a0&&"string"==typeof o[0]&&o[0]in rs}(Gt);if(!le&&as(Gt)&&(Gt=function xe(o,n){var a=o.stops;if(!a)return function Ze(o,n){var a=["get",o.property];if(void 0===o.default)return"string"===n.type?["string",a]:a;if("enum"===n.type)return["match",a,Object.keys(n.values),a,o.default];var b=["color"===n.type?"to-color":n.type,a,Ce(o.default)];return"array"===n.type&&b.splice(1,0,n.value,n.length||null),b}(o,n);var b=a&&"object"==typeof a[0][0],W=b||void 0!==o.property,nt=b||!W;return a=a.map(function(pt){return!W&&n.tokens&&"string"==typeof pt[1]?[pt[0],Yt(pt[1])]:[pt[0],Ce(pt[1])]}),b?function Nt(o,n,a){for(var b={},W={},nt=[],pt=0;pt=Ue.maxzoom)){var Va=Ue.filter;if(!Va||Kr(Ue.id,Va,Ne,be,Y)){Ue;var Dn=void 0,gs=void 0,oa=void 0,Xn=void 0,_s=void 0,je=void 0,Qr=ra.index;if(3==ni&&("fill"==Ue.type||"fill-extrusion"==Ue.type))if(gs=Ge(Ue,"paint",Ue.type+"-opacity",be,Ne,E,Fe),Ue.type+"-pattern"in Er){var aa=Ge(Ue,"paint",Ue.type+"-pattern",be,Ne,E,Fe);if(aa){var va="string"==typeof aa?Gs(aa,ti):aa.toString();if(Ut&&W&&W[va]){++ci,(!(je=ve[ci])||!je.getFill()||je.getStroke()||je.getText())&&(je=new N.ZP({fill:new g.Z}),ve[ci]=je),oa=je.getFill(),je.setZIndex(Qr);var Xa=va+"."+gs,la=d[Xa];if(!la){var Ws=W[va],Ya=fr(Ws.width,Ws.height),ya=Ya.getContext("2d");ya.globalAlpha=gs,ya.drawImage(Ut,Ws.x,Ws.y,Ws.width,Ws.height,0,0,Ws.width,Ws.height),la=ya.createPattern(Ya,"repeat"),d[Xa]=la}oa.setColor(la)}}}else Dn=On(Ge(Ue,"paint",Ue.type+"-color",be,Ne,E,Fe),gs),Ue.type+"-outline-color"in Er&&(_s=On(Ge(Ue,"paint",Ue.type+"-outline-color",be,Ne,E,Fe),gs)),_s||(_s=Dn),(Dn||_s)&&(++ci,(!(je=ve[ci])||Dn&&!je.getFill()||!Dn&&je.getFill()||_s&&!je.getStroke()||!_s&&je.getStroke()||je.getText())&&(je=new N.ZP({fill:Dn?new g.Z:void 0,stroke:_s?new j.Z:void 0}),ve[ci]=je),Dn&&(oa=je.getFill()).setColor(Dn),_s&&((Xn=je.getStroke()).setColor(_s),Xn.setWidth(.5)),je.setZIndex(Qr));if(1!=ni&&"line"==Ue.type){Dn=!("line-pattern"in Er)&&"line-color"in Er?On(Ge(Ue,"paint","line-color",be,Ne,E,Fe),Ge(Ue,"paint","line-opacity",be,Ne,E,Fe)):void 0;var Ea=Ge(Ue,"paint","line-width",be,Ne,E,Fe);Dn&&Ea>0&&(++ci,(!(je=ve[ci])||!je.getStroke()||je.getFill()||je.getText())&&(je=new N.ZP({stroke:new j.Z}),ve[ci]=je),(Xn=je.getStroke()).setLineCap(Ge(Ue,"layout","line-cap",be,Ne,E,Fe)),Xn.setLineJoin(Ge(Ue,"layout","line-join",be,Ne,E,Fe)),Xn.setMiterLimit(Ge(Ue,"layout","line-miter-limit",be,Ne,E,Fe)),Xn.setColor(Dn),Xn.setWidth(Ea),Xn.setLineDash(Er["line-dasharray"]?Ge(Ue,"paint","line-dasharray",be,Ne,E,Fe).map(function(ln){return ln*Ea}):null),je.setZIndex(Qr))}var ha=!1,Si=null,Ha=0,Do=void 0,nn=void 0,xa=void 0;if((1==ni||2==ni)&&"icon-image"in wo){var ca=Ge(Ue,"layout","icon-image",be,Ne,E,Fe);if(ca){Do="string"==typeof ca?Gs(ca,ti):ca.toString();var Ca=void 0,xr=Ot?Ot(o,Do):void 0;if(Ut&&W&&W[Do]||xr){var Ma=Ge(Ue,"layout","icon-rotation-alignment",be,Ne,E,Fe);if(2==ni){var Ks=Ae.getGeometry();if(Ks.getFlatMidpoint||Ks.getFlatMidpoints){var ua=Ks.getExtent();if(Math.sqrt(Math.max(Math.pow((ua[2]-ua[0])/Ye,2),Math.pow((ua[3]-ua[1])/Ye,2)))>150){var $r="MultiLineString"===Ks.getType()?Ks.getFlatMidpoints():Ks.getFlatMidpoint();if(vr||(vr=new H.ZP("Point",js=[NaN,NaN],[],{},null)),Ca=vr,js[0]=$r[0],js[1]=$r[1],"line"===Ge(Ue,"layout","symbol-placement",be,Ne,E,Fe)&&"map"===Ma)for(var da=Ks.getStride(),Lo=Ks.getFlatCoordinates(),qr=0,_l=Lo.length-da;qr<_l;qr+=da){var Ta=Lo[qr],Pa=Lo[qr+1],Sa=Lo[qr+da],ba=Lo[qr+da+1],pl=Math.min(Ta,Sa),ml=Math.min(Pa,ba),vl=Math.max(Ta,Sa),yl=Math.max(Pa,ba);if($r[0]>=pl&&$r[0]<=vl&&$r[1]>=ml&&$r[1]<=yl){Ha=Math.atan2(Pa-ba,Sa-Ta);break}}}}}if(2!==ni||Ca){var Ja=Ge(Ue,"layout","icon-size",be,Ne,E,Fe),ps=void 0!==Er["icon-color"]?Ge(Ue,"paint","icon-color",be,Ne,E,Fe):null;if(!ps||0!==ps.a){var Qa=Ge(Ue,"paint","icon-halo-color",be,Ne,E,Fe),Ra=Ge(Ue,"paint","icon-halo-width",be,Ne,E,Fe),Ia=Do+"."+Ja+"."+Ra+"."+Qa;if(null!==ps&&(Ia+="."+ps),!(nn=t[Ia])){var $a=yr(Ue,be,Ne,E),fa=void 0;"icon-offset"in wo&&((fa=Ge(Ue,"layout","icon-offset",be,Ne,E,Fe))[1]*=-1);var qa=ps?[255*ps.r,255*ps.g,255*ps.b,ps.a]:void 0;if(xr){var ga={color:qa,rotateWithView:"map"===Ma,displacement:fa,declutterMode:$a};"string"==typeof xr?ga.src=xr:(ga.img=xr,ga.imgSize=[xr.width,xr.height]),nn=new Q.Z(ga)}else{var to=W[Do],Ao=void 0,Oa=void 0,tl=void 0,el=void 0;Ra?Oa=[(Ao=_r(Ut,to,Ra,Qa)).width,Ao.height]:(Ao=Ut,Oa=Gt,tl=[to.width,to.height],el=[to.x,to.y]),nn=new Q.Z({color:qa,img:Ao,imgSize:Oa,size:tl,offset:el,rotateWithView:"map"===Ma,scale:Ja/to.pixelRatio,displacement:fa,declutterMode:$a})}t[Ia]=nn}}nn&&(++ci,(!(je=ve[ci])||!je.getImage()||je.getFill()||je.getStroke())&&(je=new N.ZP,ve[ci]=je),je.setGeometry(Ca),nn.setRotation(Ha+As(Ge(Ue,"layout","icon-rotate",be,Ne,E,Fe))),nn.setOpacity(Ge(Ue,"paint","icon-opacity",be,Ne,E,Fe)),nn.setAnchor(zr[Ge(Ue,"layout","icon-anchor",be,Ne,E,Fe)]),je.setImage(nn),Si=je.getText(),je.setText(void 0),je.setZIndex(Qr),ha=!0,xa=!1)}else xa=!0}}}if(1==ni&&"circle"===Ue.type){++ci,(!(je=ve[ci])||!je.getImage()||je.getFill()||je.getStroke())&&(je=new N.ZP,ve[ci]=je);var il="circle-radius"in Er?Ge(Ue,"paint","circle-radius",be,Ne,E,Fe):5,wa=On(Ge(Ue,"paint","circle-stroke-color",be,Ne,E,Fe),Ge(Ue,"paint","circle-stroke-opacity",be,Ne,E,Fe)),Da=On(Ge(Ue,"paint","circle-color",be,Ne,E,Fe),Ge(Ue,"paint","circle-opacity",be,Ne,E,Fe)),La=Ge(Ue,"paint","circle-stroke-width",be,Ne,E,Fe),nl=il+"."+wa+"."+Da+"."+La;(nn=t[nl])||(nn=new _.Z({radius:il,stroke:wa&&La>0?new j.Z({width:La,color:wa}):void 0,fill:Da?new g.Z({color:Da}):void 0,declutterMode:"none"}),t[nl]=nn),je.setImage(nn),Si=je.getText(),je.setText(void 0),je.setGeometry(void 0),je.setZIndex(Qr),ha=!0}var Hi=void 0,Fo=void 0,No=void 0,Vs=void 0,ko=void 0,Aa=void 0;if("text-field"in wo){Vs=Math.round(Ge(Ue,"layout","text-size",be,Ne,E,Fe));var Fa=Ge(Ue,"layout","text-font",be,Ne,E,Fe);No=Ge(Ue,"layout","text-line-height",be,Ne,E,Fe),(Fo=Zr(pt?pt(Fa):Fa,Vs,No)).includes("sans-serif")||(Fo+=",sans-serif"),ko=Ge(Ue,"layout","text-letter-spacing",be,Ne,E,Fe),Aa=Ge(Ue,"layout","text-max-width",be,Ne,E,Fe);var eo=Ge(Ue,"layout","text-field",be,Ne,E,Fe);Hi="object"==typeof eo&&eo.sections?1===eo.sections.length?eo.toString():eo.sections.reduce(function(ln,Xs,Ml){var ul=Xs.fontStack?Xs.fontStack.split(","):Fa,ja=Zr(pt?pt(ul):ul,Vs*(Xs.scale||1),No),io=Xs.text;if("\n"===io)return ln.push("\n",""),ln;if(2!=ni){for(var pa=0,Cl=(io=Bs(io,ja,Aa,ko).split("\n")).length;pa0&&ln.push("\n",""),ln.push(io[pa],ja);return ln}ln.push(Wn(io,ko),ja)},[]):Gs(eo,ti).trim(),gs=Ge(Ue,"paint","text-opacity",be,Ne,E,Fe)}if(Hi&&gs&&!xa){ha||(++ci,(!(je=ve[ci])||!je.getText()||je.getFill()||je.getStroke())&&(je=new N.ZP,ve[ci]=je),je.setImage(void 0),je.setGeometry(void 0)),je.getText()||je.setText(Si||new w.Z({padding:[2,2,2,2]})),Si=je.getText();var sl=wo["text-transform"];"uppercase"==sl?Hi=Array.isArray(Hi)?Hi.map(function(ln,Xs){return Xs%2?ln:ln.toUpperCase()}):Hi.toUpperCase():"lowercase"==sl&&(Hi=Array.isArray(Hi)?Hi.map(function(ln,Xs){return Xs%2?ln:ln.toLowerCase()}):Hi.toLowerCase());var rl=Array.isArray(Hi)?Hi:2==ni?Wn(Hi,ko):Bs(Hi,Fo,Aa,ko);Si.setText(rl),Si.setFont(Fo),Si.setRotation(As(Ge(Ue,"layout","text-rotate",be,Ne,E,Fe)));var _a=Ge(Ue,"layout","text-anchor",be,Ne,E,Fe),Na=ha||1==ni?"point":Ge(Ue,"layout","symbol-placement",be,Ne,E,Fe);if(Si.setPlacement(Na),"function"==typeof Si.setRepeat){var El=Ge(Ue,"layout","symbol-spacing",be,Ne,E,Fe);Si.setRepeat(2*El)}Si.setOverflow("point"===Na);var Cr=Ge(Ue,"paint","text-halo-width",be,Ne,E,Fe),ol=Ge(Ue,"layout","text-offset",be,Ne,E,Fe),al=Ge(Ue,"paint","text-translate",be,Ne,E,Fe),ka=0,Za=0;if("point"==Na){var Ba="center";-1!==_a.indexOf("left")?(Ba="left",Za=Cr):-1!==_a.indexOf("right")&&(Ba="right",Za=-Cr),Si.setTextAlign(Ba);var xl=Ge(Ue,"layout","text-rotation-alignment",be,Ne,E,Fe);Si.setRotateWithView("map"==xl)}else Si.setMaxAngle(As(Ge(Ue,"layout","text-max-angle",be,Ne,E,Fe))*Hi.length/rl.length),Si.setTextAlign(),Si.setRotateWithView(!1);var Ua="middle";0==_a.indexOf("bottom")?(Ua="bottom",ka=-Cr-.5*(No-1)*Vs):0==_a.indexOf("top")&&(Ua="top",ka=Cr+.5*(No-1)*Vs),Si.setTextBaseline(Ua);var ll=Ge(Ue,"layout","text-justify",be,Ne,E,Fe);Si.setJustify("auto"===ll?void 0:ll),Si.setOffsetX(ol[0]*Vs+Za+al[0]),Si.setOffsetY(ol[1]*Vs+ka+al[1]),pe.setColor(On(Ge(Ue,"paint","text-color",be,Ne,E,Fe),gs)),Si.setFill(pe);var hl=On(Ge(Ue,"paint","text-halo-color",be,Ne,E,Fe),gs);if(hl){me.setColor(hl);var cl=.5*Vs;me.setWidth((Cr*=2)<=cl?Cr:cl),Si.setStroke(me)}else Si.setStroke(void 0);var Zo=Ge(Ue,"layout","text-padding",be,Ne,E,Fe),Bo=Si.getPadding();Zo!==Bo[0]&&(Bo[0]=Zo,Bo[1]=Zo,Bo[2]=Zo,Bo[3]=Zo),je.setZIndex(Qr)}}}}if(ci>-1)return ve.length=ci+1,ve}};return o.setStyle(Ie),o.set("mapbox-source",V),o.set("mapbox-layers",Ke),o.set("mapbox-featurestate",{}),Ie}function sa(o,n){return void 0===n&&(n=512),o.getExtent()?(0,x.dl)({extent:o.getExtent(),tileSize:n,maxZoom:22}).getResolutions():tn}function Io(o,n,a,b,W){void 0===a&&(a=""),void 0===b&&(b={}),void 0===W&&(W=void 0);var nt,pt,Ot,Ut,Gt=!0;return"string"==typeof a||Array.isArray(a)?Ut=a:(Ut=(Ot=a).source||Ot.layers,b=Ot),"string"==typeof b?(nt=b,Ot={}):(nt=b.styleUrl,Ot=b),!1===Ot.updateSource&&(Gt=!1),W||(W=Ot.resolutions),!nt&&"string"==typeof n&&!n.trim().startsWith("{")&&(nt=n),nt&&(nt=nt.startsWith("data:")?location.href:bn(nt,Ot.accessToken),Ot=function Yr(o,n){return n.accessToken||(n=Object.assign({},n),new URL(o).searchParams.forEach(function(b,W){n.accessToken=b,n.accessTokenParam=W})),n}(nt,Ot)),new Promise(function(Wt,le){ks(n,Ot).then(function(Ee){if(8!=Ee.version)return le(new Error("glStyle version 8 required."));if(!(o instanceof M.Z||o instanceof K.Z))return le(new Error("Can only apply to VectorLayer or VectorTileLayer"));var d,E,Y,Me=o instanceof K.Z?"vector":"geojson";if(Ut?pt=Array.isArray(Ut)?Ee.layers.find(function(yt){return yt.id===Ut[0]}).source:Ut:(pt=Object.keys(Ee.sources).find(function(yt){return Ee.sources[yt].type===Me}),Ut=pt),!pt)return le(new Error("No "+Me+" source found in the glStyle."));function Ke(){if(!Gt)return Promise.resolve();if(o instanceof K.Z)return function wt(o,n,a){return new Promise(function(b,W){(function jr(o,n,a){void 0===a&&(a={});var b=[n,JSON.stringify(o)].toString(),W=fs[b];if(!W||a.transformRequest){var nt=o.url;if(nt&&!o.tiles){var pt=us(nt,a.accessToken,a.accessTokenParam||"access_token",n||location.href);if(nt.startsWith("mapbox://"))W=Promise.resolve(Object.assign({},o,{url:void 0,tiles:(0,v.Gk)(pt)}));else{var Ot={};W=Ns("Source",pt,a,Ot).then(function(Ut){return Ut.tiles=Ut.tiles.map(function(Gt){return gr(us(Gt,a.accessToken,a.accessTokenParam||"access_token",Ot.request.url),a)}),Promise.resolve(Ut)})}}else o=Object.assign({},o,{tiles:o.tiles.map(function(Ut){return gr(us(Ut,a.accessToken,a.accessTokenParam||"access_token",n||location.href),a)})}),W=Promise.resolve(Object.assign({},o));fs[b]=W}return W})(o,n,a).then(function(nt){var pt=function I(o,n,a){var b=new p({tileJSON:n,tileSize:o.tileSize||n.tileSize||512}),W=b.getTileJSON(),nt=b.getTileGrid(),pt=(0,T.U2)(a.projection||"EPSG:3857"),Ot=function F(o,n){var a=o.bounds;if(a){var b=(0,T.mi)([a[0],a[1]],n),W=(0,T.mi)([a[2],a[3]],n);return[b[0],b[1],W[0],W[1]]}return(0,T.U2)(n).getExtent()}(W,pt),Ut=pt.getExtent(),Gt=W.minzoom||0,Wt=W.maxzoom||22,le={attributions:b.getAttributions(),projection:pt,tileGrid:new l.Z({origin:Ut?(0,e.rL)(Ut):nt.getOrigin(0),extent:Ot||nt.getExtent(),minZoom:Gt,resolutions:sa(pt,n.tileSize).slice(0,Wt+1),tileSize:nt.getTileSize(0)})};return Array.isArray(W.tiles)?le.urls=W.tiles:le.url=W.tiles,le}(o,nt,a);pt.format=new s.Z,Array.isArray(nt.tiles)?pt.urls=nt.tiles:pt.url=nt.tiles,b(new G.Z(pt))}).catch(W)})}(Ee.sources[pt],nt,Ot).then(function(At){var ne=o.getSource();if(ne?At!==ne&&(ne.setTileUrlFunction(At.getTileUrlFunction()),ne.format_||(ne.format_=At.format_),ne.getAttributions()||ne.setAttributions(At.getAttributions()),ne.getTileLoadFunction()===G.I&&ne.setTileLoadFunction(At.getTileLoadFunction()),(0,T.OP)(ne.getProjection(),At.getProjection())&&(ne.tileGrid=At.getTileGrid())):o.setSource(At),!isFinite(o.getMaxResolution())&&!isFinite(o.getMinZoom())){var me=o.getSource().getTileGrid();o.setMaxResolution(me.getResolution(me.getMinZoom()))}});var yt=Ee.sources[pt],It=o.getSource();(!It||It.get("mapbox-source")!==yt)&&(It=function mi(o,n,a){var b=o.data,W={};if("string"==typeof b){var nt=us(b,a.accessToken,a.accessTokenParam||"access_token",n||location.href);if(a.transformRequest){var pt=a.transformRequest(nt,"GeoJSON");pt instanceof Request&&(nt=decodeURI(pt.url))}if(/\{bbox-[0-9a-z-]+\}/.test(nt)){var Ut=new R.Z({attributions:o.attribution,format:ai,url:function(Wt,le,Ee){var Me=function ue(o){return"{bbox-"+(o?o.getCode():"EPSG:3857").toLowerCase().replace(/[^a-z0-9]/g,"-")+"}"}(Ee);return nt.replace(Me,Wt.join(",")+","+Ee.getCode())},strategy:J.VW});return Ut.set("mapbox-source",o),Ut}return new R.Z({attributions:o.attribution,format:ai,url:nt})}W.features=ai.readFeatures(b,{featureProjection:(0,T.Cs)()||"EPSG:3857"});var Gt=new R.Z(Object.assign({attributions:o.attribution,format:ai},W));return Gt.set("mapbox-source",o),Gt}(yt,nt,Ot));var Xt=o.getSource();return Xt?It!==Xt&&(Xt.getAttributions()||Xt.setAttributions(It.getAttributions()),Xt.format_||(Xt.format_=It.getFormat()),Xt.url_=It.getUrl()):o.setSource(It),Promise.resolve()}function V(){if(Y||Ee.sprite&&!d)Y?(o.setStyle(Y),Ke().then(Wt).catch(le)):le(new Error("Something went wrong trying to apply style."));else{if(Ot.projection&&!W){var It=(0,T.U2)(Ot.projection).getUnits();"m"!==It&&(W=tn.map(function(Xt){return Xt/T.Wm[It]}))}Y=bo(o,Ee,Ut,W,d,E,Gr,Ot.getImage),o.getStyle()?Ke().then(Wt).catch(le):le(new Error("Nothing to show for source ["+pt+"]"))}}if(Ee.sprite){var et=new URL(function Br(o,n,a){var b=vn(o);if(!b)return decodeURI(new URL(o,a).href);var W="sprites/";if(0!==b.indexOf(W))throw new Error("unexpected sprites url: "+o);var nt=b.slice(W.length);return Ls+"/styles/v1/"+nt+"/sprite?access_token="+n}(Ee.sprite,Ot.accessToken,nt||location.href)),lt=.5==(window.devicePixelRatio>=1.5?.5:1)?"@2x":"",at=et.origin+et.pathname+lt+".json"+et.search;new Promise(function(yt,It){Ns("Sprite",at,Ot).then(yt).catch(function(Xt){Ns("Sprite",at=et.origin+et.pathname+".json"+et.search,Ot).then(yt).catch(It)})}).then(function(yt){if(void 0===yt&&le(new Error("No sprites found.")),d=yt,E=et.origin+et.pathname+lt+".png"+et.search,Ot.transformRequest){var It=Ot.transformRequest(E,"SpriteImage");It instanceof Request&&(E=encodeURI(It.url))}V()}).catch(function(yt){le(new Error("Sprites cannot be loaded: "+at+": "+yt.message))})}else V()}).catch(le)})}var xn={};function hi(o,n,a){return void 0===a&&(a={}),ks(n,a).then(function(b){!function vi(o,n,a){n.layers.some(function(b){if("background"===b.type){if(o instanceof c.Z)return o.setBackground(function(W){return tt(b,W,a,{})}),!0;if(o instanceof f.Z||o instanceof u.Z)return o.getLayers().push(function ft(o,n,a){var b=document.createElement("div");return b.className="ol-mapbox-style-background",b.style.position="absolute",b.style.width="100%",b.style.height="100%",new c.Z({source:new i.Z({}),render:function(nt){var pt=tt(o,nt.viewState.resolution,n,a);return b.style.backgroundColor=pt,b}})}(b,a,{})),!0}})}(o,b,a)})}function tt(o,n,a,b){var W={id:o.id,type:o.type},nt=o.layout||{},pt=o.paint||{};W.paint=pt;var Ut,Gt,Ot=Fs(n,a.resolutions||tn);return void 0!==pt["background-color"]&&(Ut=Ge(W,"paint","background-color",Ot,xn,b)),void 0!==pt["background-opacity"]&&(Gt=Ge(W,"paint","background-opacity",Ot,xn,b)),"none"==nt.visibility?void 0:On(Ut,Gt)}var ai=new h.Z},1955:(Vt,gt,r)=>{"use strict";r.d(gt,{Z:()=>Q});const _={1:"The view center is not defined",2:"The view resolution is not defined",3:"The view rotation is not defined",4:"`image` and `src` cannot be provided at the same time",5:"`imgSize` must be set when `image` is provided",7:"`format` must be set when `url` is set",8:"Unknown `serverType` configured",9:"`url` must be configured or set using `#setUrl()`",10:"The default `geometryFunction` can only handle `Point` geometries",11:"`options.featureTypes` must be an Array",12:"`options.geometryName` must also be provided when `options.bbox` is set",13:"Invalid corner",14:"Invalid color",15:"Tried to get a value for a key that does not exist in the cache",16:"Tried to set a value for a key that is used already",17:"`resolutions` must be sorted in descending order",18:"Either `origin` or `origins` must be configured, never both",19:"Number of `tileSizes` and `resolutions` must be equal",20:"Number of `origins` and `resolutions` must be equal",22:"Either `tileSize` or `tileSizes` must be configured, never both",24:"Invalid extent or geometry provided as `geometry`",25:"Cannot fit empty extent provided as `geometry`",26:"Features must have an id set",27:"Features must have an id set",28:'`renderMode` must be `"hybrid"` or `"vector"`',30:"The passed `feature` was already added to the source",31:"Tried to enqueue an `element` that was already added to the queue",32:"Transformation matrix cannot be inverted",33:"Invalid units",34:"Invalid geometry layout",36:"Unknown SRS type",37:"Unknown geometry type found",38:"`styleMapValue` has an unknown type",39:"Unknown geometry type",40:"Expected `feature` to have a geometry",41:"Expected an `ol/style/Style` or an array of `ol/style/Style.js`",42:"Question unknown, the answer is 42",43:"Expected `layers` to be an array or a `Collection`",47:"Expected `controls` to be an array or an `ol/Collection`",48:"Expected `interactions` to be an array or an `ol/Collection`",49:"Expected `overlays` to be an array or an `ol/Collection`",50:"`options.featureTypes` should be an Array",51:"Either `url` or `tileJSON` options must be provided",52:"Unknown `serverType` configured",53:"Unknown `tierSizeCalculation` configured",55:"The {-y} placeholder requires a tile grid with extent",56:"mapBrowserEvent must originate from a pointer event",57:"At least 2 conditions are required",59:"Invalid command found in the PBF",60:"Missing or invalid `size`",61:"Cannot determine IIIF Image API version from provided image information JSON",62:"A `WebGLArrayBuffer` must either be of type `ELEMENT_ARRAY_BUFFER` or `ARRAY_BUFFER`",64:"Layer opacity must be a number",66:"`forEachFeatureAtCoordinate` cannot be used on a WebGL layer if the hit detection logic has not been enabled. This is done by providing adequate shaders using the `hitVertexShader` and `hitFragmentShader` properties of `WebGLPointsLayerRenderer`",67:"A layer can only be added to the map once. Use either `layer.setMap()` or `map.addLayer()`, not both",68:"A VectorTile source can only be rendered if it has a projection compatible with the view projection",69:"`width` or `height` cannot be provided together with `scale`"};class g extends Error{constructor(j){const N=_[j];super(N),this.code=j,this.name="AssertionError",this.message=N}}const Q=g},9573:(Vt,gt,r)=>{"use strict";r.d(gt,{Z:()=>S});var _=r(1955),g=r(4115),Q=r(448),H=r(3615);class N extends H.ZP{constructor(h,c,u){super(h),this.element=c,this.index=u}}const S=class w extends g.Z{constructor(h,c){if(super(),this.unique_=!!(c=c||{}).unique,this.array_=h||[],this.unique_)for(let u=0,s=this.array_.length;u0;)this.pop()}extend(h){for(let c=0,u=h.length;cthis.getLength())throw new Error("Index out of bounds: "+h);this.unique_&&this.assertUnique_(c),this.array_.splice(h,0,c),this.updateLength_(),this.dispatchEvent(new N(Q.Z.ADD,c,h))}pop(){return this.removeAt(this.getLength()-1)}push(h){this.unique_&&this.assertUnique_(h);const c=this.getLength();return this.insertAt(c,h),this.getLength()}remove(h){const c=this.array_;for(let u=0,s=c.length;u=this.getLength())return;const c=this.array_[h];return this.array_.splice(h,1),this.updateLength_(),this.dispatchEvent(new N(Q.Z.REMOVE,c,h)),c}setAt(h,c){if(h>=this.getLength())return void this.insertAt(h,c);if(h<0)throw new Error("Index out of bounds: "+h);this.unique_&&this.assertUnique_(c,h);const s=this.array_[h];this.array_[h]=c,this.dispatchEvent(new N(Q.Z.REMOVE,s,h)),this.dispatchEvent(new N(Q.Z.ADD,c,h))}updateLength_(){this.set("length",this.array_.length)}assertUnique_(h,c){for(let u=0,s=this.array_.length;u{"use strict";r.d(gt,{Z:()=>_});const _={ADD:"add",REMOVE:"remove"}},6450:(Vt,gt,r)=>{"use strict";r.d(gt,{Z:()=>g});const g=class _{constructor(){this.disposed=!1}dispose(){this.disposed||(this.disposed=!0,this.disposeInternal())}disposeInternal(){}}},3413:(Vt,gt,r)=>{"use strict";r.d(gt,{Z:()=>w});var _=r(4115),g=r(3044),Q=r(992),H=r(2716);class j extends _.Z{constructor(v){super(),this.id_=void 0,this.geometryName_="geometry",this.style_=null,this.styleFunction_=void 0,this.geometryChangeKey_=null,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),v&&("function"==typeof v.getSimplifiedGeometry?this.setGeometry(v):this.setProperties(v))}clone(){const v=new j(this.hasProperties()?this.getProperties():null);v.setGeometryName(this.getGeometryName());const h=this.getGeometry();h&&v.setGeometry(h.clone());const c=this.getStyle();return c&&v.setStyle(c),v}getGeometry(){return this.get(this.geometryName_)}getId(){return this.id_}getGeometryName(){return this.geometryName_}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}handleGeometryChange_(){this.changed()}handleGeometryChanged_(){this.geometryChangeKey_&&((0,H.bN)(this.geometryChangeKey_),this.geometryChangeKey_=null);const v=this.getGeometry();v&&(this.geometryChangeKey_=(0,H.oL)(v,g.Z.CHANGE,this.handleGeometryChange_,this)),this.changed()}setGeometry(v){this.set(this.geometryName_,v)}setStyle(v){this.style_=v,this.styleFunction_=v?function N(S){if("function"==typeof S)return S;let v;return Array.isArray(S)?v=S:((0,Q.h)("function"==typeof S.getZIndex,41),v=[S]),function(){return v}}(v):void 0,this.changed()}setId(v){this.id_=v,this.changed()}setGeometryName(v){this.removeChangeListener(this.geometryName_,this.handleGeometryChanged_),this.geometryName_=v,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),this.handleGeometryChanged_()}}const w=j},1309:(Vt,gt,r)=>{"use strict";r.d(gt,{K:()=>S,Z:()=>v});var _=r(3044),g=r(1649),Q=r(1501),H=r(5063),j=r(9543),N=r(2716);function S(h,c,u){const s=h;let f=!0,i=!1,l=!1;const m=[(0,N.Vx)(s,_.Z.LOAD,function(){l=!0,i||c()})];return s.src&&H.Tp?(i=!0,s.decode().then(function(){f&&c()}).catch(function(e){f&&(l?c():u())})):m.push((0,N.Vx)(s,_.Z.ERROR,u)),function(){f=!1,m.forEach(N.bN)}}const v=class w extends g.Z{constructor(c,u,s,f,i,l,m){super(c,u,s,Q.Z.IDLE),this.src_=f,this.image_=new Image,null!==i&&(this.image_.crossOrigin=i),this.context_=m,this.unlisten_=null,this.state=Q.Z.IDLE,this.imageLoadFunction_=l}getImage(){if(this.state==Q.Z.LOADED&&this.context_&&!(this.image_ instanceof HTMLCanvasElement)){const c=this.context_.canvas;c.width=this.image_.width,c.height=this.image_.height,this.context_.drawImage(this.image_,0,0),this.image_=this.context_.canvas}return this.image_}handleImageError_(){this.state=Q.Z.ERROR,this.unlistenImage_(),this.changed()}handleImageLoad_(){void 0===this.resolution&&(this.resolution=(0,j.Cr)(this.extent)/this.image_.height),this.state=Q.Z.LOADED,this.unlistenImage_(),this.changed()}load(){(this.state==Q.Z.IDLE||this.state==Q.Z.ERROR)&&(this.state=Q.Z.LOADING,this.changed(),this.imageLoadFunction_(this,this.src_),this.unlisten_=S(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))}setImage(c){this.image_=c,this.resolution=(0,j.Cr)(this.extent)/this.image_.height}unlistenImage_(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)}}},1649:(Vt,gt,r)=>{"use strict";r.d(gt,{Z:()=>j});var _=r(1398),g=r(3044),Q=r(513);const j=class H extends _.Z{constructor(w,S,v,h){super(),this.extent=w,this.pixelRatio_=v,this.resolution=S,this.state=h}changed(){this.dispatchEvent(g.Z.CHANGE)}getExtent(){return this.extent}getImage(){return(0,Q.O3)()}getPixelRatio(){return this.pixelRatio_}getResolution(){return this.resolution}getState(){return this.state}load(){(0,Q.O3)()}}},443:(Vt,gt,r)=>{"use strict";r.d(gt,{Z:()=>H});var _=r(1649),g=r(1501);const H=class Q extends _.Z{constructor(N,w,S,v,h){super(N,w,S,void 0!==h?g.Z.IDLE:g.Z.LOADED),this.loader_=void 0!==h?h:null,this.canvas_=v,this.error_=null}getError(){return this.error_}handleLoad_(N){N?(this.error_=N,this.state=g.Z.ERROR):this.state=g.Z.LOADED,this.changed()}load(){this.state==g.Z.IDLE&&(this.state=g.Z.LOADING,this.changed(),this.loader_(this.handleLoad_.bind(this)))}getImage(){return this.canvas_}}},1501:(Vt,gt,r)=>{"use strict";r.d(gt,{Z:()=>_});const _={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},8879:(Vt,gt,r)=>{"use strict";r.d(gt,{Z:()=>w});var _=r(8786),g=r(4700),Q=r(3842),H=r(1309);const w=class j extends _.Z{constructor(v,h,c,u,s,f){super(v,h,f),this.crossOrigin_=u,this.src_=c,this.key=c,this.image_=new Image,null!==u&&(this.image_.crossOrigin=u),this.unlisten_=null,this.tileLoadFunction_=s}getImage(){return this.image_}setImage(v){this.image_=v,this.state=g.Z.LOADED,this.unlistenImage_(),this.changed()}handleImageError_(){this.state=g.Z.ERROR,this.unlistenImage_(),this.image_=function N(){const S=(0,Q.E4)(1,1);return S.fillStyle="rgba(0,0,0,0)",S.fillRect(0,0,1,1),S.canvas}(),this.changed()}handleImageLoad_(){const v=this.image_;this.state=v.naturalWidth&&v.naturalHeight?g.Z.LOADED:g.Z.EMPTY,this.unlistenImage_(),this.changed()}load(){this.state==g.Z.ERROR&&(this.state=g.Z.IDLE,this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==g.Z.IDLE&&(this.state=g.Z.LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=(0,H.K)(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))}unlistenImage_(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)}}},6942:(Vt,gt,r)=>{"use strict";r.d(gt,{Z:()=>Te});var _=r(4115),g=r(9573),Q=r(448),H=r(6450),j=r(1334),N=r(513),w=r(7139),S=r(9543),v=r(9118),h=r(7521),c=r(5415);function s(he,Mt){v.c.expire()}const f=class u extends H.Z{constructor(Mt){super(),this.map_=Mt}dispatchRenderEvent(Mt,Dt){(0,N.O3)()}calculateMatrices2D(Mt){const Dt=Mt.viewState,Kt=Mt.coordinateToPixelTransform,Yt=Mt.pixelToCoordinateTransform;(0,w.qC)(Kt,Mt.size[0]/2,Mt.size[1]/2,1/Dt.resolution,-1/Dt.resolution,-Dt.rotation,-Dt.center[0],-Dt.center[1]),(0,w.nb)(Yt,Kt)}forEachFeatureAtCoordinate(Mt,Dt,Kt,Yt,Jt,ye,Pe,ze){let He;const Zt=Dt.viewState;function Et(ee,re,we,ge){return Jt.call(ye,re,ee?we:null,ge)}const y=Zt.projection,z=(0,c.Cf)(Mt.slice(),y),st=[[0,0]];if(y.canWrapX()&&Yt){const ee=y.getExtent(),re=(0,S.dz)(ee);st.push([-re,0],[re,0])}const it=Dt.layerStatesArray,vt=it.length,Pt=[],kt=[];for(let ee=0;ee=0;--re){const we=it[re],ge=we.layer;if(ge.hasRenderer()&&(0,h.j)(we,Zt)&&Pe.call(ze,ge)){const oe=ge.getRenderer(),Xe=ge.getSource();if(oe&&Xe){const oi=Xe.getWrapX()?z:Mt,Qe=Et.bind(null,we.managed);kt[0]=oi[0]+st[ee][0],kt[1]=oi[1]+st[ee][1],He=oe.forEachFeatureAtCoordinate(kt,Dt,Kt,Qe,Pt)}if(He)return He}}if(0===Pt.length)return;const zt=1/Pt.length;return Pt.forEach((ee,re)=>ee.distanceSq+=re*zt),Pt.sort((ee,re)=>ee.distanceSq-re.distanceSq),Pt.some(ee=>He=ee.callback(ee.feature,ee.layer,ee.geometry)),He}hasFeatureAtCoordinate(Mt,Dt,Kt,Yt,Jt,ye){return void 0!==this.forEachFeatureAtCoordinate(Mt,Dt,Kt,Yt,j.uX,this,Jt,ye)}getMap(){return this.map_}renderFrame(Mt){(0,N.O3)()}scheduleExpireIconCache(Mt){v.c.canExpireCache()&&Mt.postRenderFunctions.push(s)}};var i=r(8296),l=r(9683),m=r(8779),e=r(1119),P=r(2768),x=r(2716),T=r(3842);const D=class U extends f{constructor(Mt){super(Mt),this.fontChangeListenerKey_=(0,x.oL)(P.sG,i.Z.PROPERTYCHANGE,Mt.redrawText.bind(Mt)),this.element_=document.createElement("div");const Dt=this.element_.style;Dt.position="absolute",Dt.width="100%",Dt.height="100%",Dt.zIndex="0",this.element_.className=e.XV+" ol-layers";const Kt=Mt.getViewport();Kt.insertBefore(this.element_,Kt.firstChild||null),this.children_=[],this.renderedVisible_=!0}dispatchRenderEvent(Mt,Dt){const Kt=this.getMap();if(Kt.hasListener(Mt)){const Yt=new l.Z(Mt,void 0,Dt);Kt.dispatchEvent(Yt)}}disposeInternal(){(0,x.bN)(this.fontChangeListenerKey_),this.element_.parentNode.removeChild(this.element_),super.disposeInternal()}renderFrame(Mt){if(!Mt)return void(this.renderedVisible_&&(this.element_.style.display="none",this.renderedVisible_=!1));this.calculateMatrices2D(Mt),this.dispatchRenderEvent(m.Z.PRECOMPOSE,Mt);const Dt=Mt.layerStatesArray.sort(function(ye,Pe){return ye.zIndex-Pe.zIndex}),Kt=Mt.viewState;this.children_.length=0;const Yt=[];let Jt=null;for(let ye=0,Pe=Dt.length;ye=0;--ye)Yt[ye].renderDeclutter(Mt);(0,T.hF)(this.element_,this.children_),this.dispatchRenderEvent(m.Z.POSTCOMPOSE,Mt),this.renderedVisible_||(this.element_.style.display="",this.renderedVisible_=!0),this.scheduleExpireIconCache(Mt)}};var C=r(3044),O=r(1591),X=r(3615);const dt=class $ extends X.ZP{constructor(Mt,Dt,Kt){super(Mt),this.map=Dt,this.frameState=void 0!==Kt?Kt:null}},k=class B extends dt{constructor(Mt,Dt,Kt,Yt,Jt,ye){super(Mt,Dt,Jt),this.originalEvent=Kt,this.pixel_=null,this.coordinate_=null,this.dragging=void 0!==Yt&&Yt,this.activePointers=ye}get pixel(){return this.pixel_||(this.pixel_=this.map.getEventPixel(this.originalEvent)),this.pixel_}set pixel(Mt){this.pixel_=Mt}get coordinate(){return this.coordinate_||(this.coordinate_=this.map.getCoordinateFromPixel(this.pixel)),this.coordinate_}set coordinate(Mt){this.coordinate_=Mt}preventDefault(){super.preventDefault(),"preventDefault"in this.originalEvent&&this.originalEvent.preventDefault()}stopPropagation(){super.stopPropagation(),"stopPropagation"in this.originalEvent&&this.originalEvent.stopPropagation()}};var L=r(1590),p=r(5622),M=r(1398),R=r(5063);const G=class K extends M.Z{constructor(Mt,Dt){super(Mt),this.map_=Mt,this.emulateClicks_=!1,this.dragging_=!1,this.dragListenerKeys_=[],this.moveTolerance_=void 0===Dt?1:Dt,this.down_=null;const Kt=this.map_.getViewport();this.activePointers_=[],this.trackedTouches_={},this.element_=Kt,this.pointerdownListenerKey_=(0,x.oL)(Kt,p.Z.POINTERDOWN,this.handlePointerDown_,this),this.relayedListenerKey_=(0,x.oL)(Kt,p.Z.POINTERMOVE,this.relayMoveEvent_,this),this.boundHandleTouchMove_=this.handleTouchMove_.bind(this),this.element_.addEventListener(C.Z.TOUCHMOVE,this.boundHandleTouchMove_,!!R.bM&&{passive:!1})}emulateClick_(Mt){let Dt=new k(L.Z.CLICK,this.map_,Mt);this.dispatchEvent(Dt),void 0!==this.clickTimeoutId_?(clearTimeout(this.clickTimeoutId_),this.clickTimeoutId_=void 0,Dt=new k(L.Z.DBLCLICK,this.map_,Mt),this.dispatchEvent(Dt)):this.clickTimeoutId_=setTimeout(()=>{this.clickTimeoutId_=void 0;const Kt=new k(L.Z.SINGLECLICK,this.map_,Mt);this.dispatchEvent(Kt)},250)}updateActivePointers_(Mt){const Dt=Mt,Kt=Dt.pointerId;if(Dt.type==L.Z.POINTERUP||Dt.type==L.Z.POINTERCANCEL){delete this.trackedTouches_[Kt];for(const Yt in this.trackedTouches_)if(this.trackedTouches_[Yt].target!==Dt.target){delete this.trackedTouches_[Yt];break}}else(Dt.type==L.Z.POINTERDOWN||Dt.type==L.Z.POINTERMOVE)&&(this.trackedTouches_[Kt]=Dt);this.activePointers_=Object.values(this.trackedTouches_)}handlePointerUp_(Mt){this.updateActivePointers_(Mt);const Dt=new k(L.Z.POINTERUP,this.map_,Mt,void 0,void 0,this.activePointers_);this.dispatchEvent(Dt),this.emulateClicks_&&!Dt.defaultPrevented&&!this.dragging_&&this.isMouseActionButton_(Mt)&&this.emulateClick_(this.down_),0===this.activePointers_.length&&(this.dragListenerKeys_.forEach(x.bN),this.dragListenerKeys_.length=0,this.dragging_=!1,this.down_=null)}isMouseActionButton_(Mt){return 0===Mt.button}handlePointerDown_(Mt){this.emulateClicks_=0===this.activePointers_.length,this.updateActivePointers_(Mt);const Dt=new k(L.Z.POINTERDOWN,this.map_,Mt,void 0,void 0,this.activePointers_);if(this.dispatchEvent(Dt),this.down_=new PointerEvent(Mt.type,Mt),Object.defineProperty(this.down_,"target",{writable:!1,value:Mt.target}),0===this.dragListenerKeys_.length){const Kt=this.map_.getOwnerDocument();this.dragListenerKeys_.push((0,x.oL)(Kt,L.Z.POINTERMOVE,this.handlePointerMove_,this),(0,x.oL)(Kt,L.Z.POINTERUP,this.handlePointerUp_,this),(0,x.oL)(this.element_,L.Z.POINTERCANCEL,this.handlePointerUp_,this)),this.element_.getRootNode&&this.element_.getRootNode()!==Kt&&this.dragListenerKeys_.push((0,x.oL)(this.element_.getRootNode(),L.Z.POINTERUP,this.handlePointerUp_,this))}}handlePointerMove_(Mt){if(this.isMoving_(Mt)){this.updateActivePointers_(Mt),this.dragging_=!0;const Dt=new k(L.Z.POINTERDRAG,this.map_,Mt,this.dragging_,void 0,this.activePointers_);this.dispatchEvent(Dt)}}relayMoveEvent_(Mt){this.originalPointerMoveEvent_=Mt;const Dt=!(!this.down_||!this.isMoving_(Mt));this.dispatchEvent(new k(L.Z.POINTERMOVE,this.map_,Mt,Dt))}handleTouchMove_(Mt){const Dt=this.originalPointerMoveEvent_;(!Dt||Dt.defaultPrevented)&&("boolean"!=typeof Mt.cancelable||!0===Mt.cancelable)&&Mt.preventDefault()}isMoving_(Mt){return this.dragging_||Math.abs(Mt.clientX-this.down_.clientX)>this.moveTolerance_||Math.abs(Mt.clientY-this.down_.clientY)>this.moveTolerance_}disposeInternal(){this.relayedListenerKey_&&((0,x.bN)(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(C.Z.TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&((0,x.bN)(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(x.bN),this.dragListenerKeys_.length=0,this.element_=null,super.disposeInternal()}};var J=r(9806),q=r(3161),ut=r(2988),ht=r(5109),_t=r(9500),Tt=r(992),Lt=r(9633),Ht=r(5267),$t=r(1014),Qt=r(1179),_e=r(142),Ce=r(9015),xe=r(931),Ze=r(246);function xt(he){he instanceof h.Z?he.setMapInternal(null):he instanceof O.Z&&he.getLayers().forEach(xt)}function Nt(he,Mt){if(he instanceof h.Z)he.setMapInternal(Mt);else if(he instanceof O.Z){const Dt=he.getLayers().getArray();for(let Kt=0,Yt=Dt.length;Ktthis.updateSize()),this.controls=Dt.controls||function ae(he){he=he||{};const Mt=new g.Z;return(void 0===he.zoom||he.zoom)&&Mt.push(new $t.Z(he.zoomOptions)),(void 0===he.rotate||he.rotate)&&Mt.push(new Ht.Z(he.rotateOptions)),(void 0===he.attribution||he.attribution)&&Mt.push(new Lt.Z(he.attributionOptions)),Mt}(),this.interactions=Dt.interactions||(0,Qt.c)({onFocusOnly:!0}),this.overlays_=Dt.overlays,this.overlayIdIndex_={},this.renderer_=null,this.postRenderFunctions_=[],this.tileQueue_=new ut.Z(this.getTilePriority.bind(this),this.handleTileChange_.bind(this)),this.addChangeListener(q.Z.LAYERGROUP,this.handleLayerGroupChanged_),this.addChangeListener(q.Z.VIEW,this.handleViewChanged_),this.addChangeListener(q.Z.SIZE,this.handleSizeChanged_),this.addChangeListener(q.Z.TARGET,this.handleTargetChanged_),this.setProperties(Dt.values);const Kt=this;Mt.view&&!(Mt.view instanceof ht.ZP)&&Mt.view.then(function(Yt){Kt.setView(new ht.ZP(Yt))}),this.controls.addEventListener(Q.Z.ADD,Yt=>{Yt.element.setMap(this)}),this.controls.addEventListener(Q.Z.REMOVE,Yt=>{Yt.element.setMap(null)}),this.interactions.addEventListener(Q.Z.ADD,Yt=>{Yt.element.setMap(this)}),this.interactions.addEventListener(Q.Z.REMOVE,Yt=>{Yt.element.setMap(null)}),this.overlays_.addEventListener(Q.Z.ADD,Yt=>{this.addOverlayInternal_(Yt.element)}),this.overlays_.addEventListener(Q.Z.REMOVE,Yt=>{const Jt=Yt.element.getId();void 0!==Jt&&delete this.overlayIdIndex_[Jt.toString()],Yt.element.setMap(null)}),this.controls.forEach(Yt=>{Yt.setMap(this)}),this.interactions.forEach(Yt=>{Yt.setMap(this)}),this.overlays_.forEach(this.addOverlayInternal_.bind(this))}addControl(Mt){this.getControls().push(Mt)}addInteraction(Mt){this.getInteractions().push(Mt)}addLayer(Mt){this.getLayerGroup().getLayers().push(Mt)}handleLayerAdd_(Mt){Nt(Mt.layer,this)}addOverlay(Mt){this.getOverlays().push(Mt)}addOverlayInternal_(Mt){const Dt=Mt.getId();void 0!==Dt&&(this.overlayIdIndex_[Dt.toString()]=Mt),Mt.setMap(this)}disposeInternal(){this.controls.clear(),this.interactions.clear(),this.overlays_.clear(),this.resizeObserver_.disconnect(),this.setTarget(null),super.disposeInternal()}forEachFeatureAtPixel(Mt,Dt,Kt){if(!this.frameState_||!this.renderer_)return;const Yt=this.getCoordinateFromPixelInternal(Mt);return this.renderer_.forEachFeatureAtCoordinate(Yt,this.frameState_,void 0!==(Kt=void 0!==Kt?Kt:{}).hitTolerance?Kt.hitTolerance:0,!1!==Kt.checkWrapped,Dt,null,void 0!==Kt.layerFilter?Kt.layerFilter:j.uX,null)}getFeaturesAtPixel(Mt,Dt){const Kt=[];return this.forEachFeatureAtPixel(Mt,function(Yt){Kt.push(Yt)},Dt),Kt}getAllLayers(){const Mt=[];return function Dt(Kt){Kt.forEach(function(Yt){Yt instanceof O.Z?Dt(Yt.getLayers()):Mt.push(Yt)})}(this.getLayers()),Mt}hasFeatureAtPixel(Mt,Dt){if(!this.frameState_||!this.renderer_)return!1;const Kt=this.getCoordinateFromPixelInternal(Mt);return this.renderer_.hasFeatureAtCoordinate(Kt,this.frameState_,void 0!==(Dt=void 0!==Dt?Dt:{}).hitTolerance?Dt.hitTolerance:0,!1!==Dt.checkWrapped,void 0!==Dt.layerFilter?Dt.layerFilter:j.uX,null)}getEventCoordinate(Mt){return this.getCoordinateFromPixel(this.getEventPixel(Mt))}getEventCoordinateInternal(Mt){return this.getCoordinateFromPixelInternal(this.getEventPixel(Mt))}getEventPixel(Mt){const Kt=this.viewport_.getBoundingClientRect(),Yt=this.getSize(),Pe="changedTouches"in Mt?Mt.changedTouches[0]:Mt;return[(Pe.clientX-Kt.left)/(Kt.width/Yt[0]),(Pe.clientY-Kt.top)/(Kt.height/Yt[1])]}getTarget(){return this.get(q.Z.TARGET)}getTargetElement(){return this.targetElement_}getCoordinateFromPixel(Mt){return(0,Ce.lO)(this.getCoordinateFromPixelInternal(Mt),this.getView().getProjection())}getCoordinateFromPixelInternal(Mt){const Dt=this.frameState_;return Dt?(0,w.nn)(Dt.pixelToCoordinateTransform,Mt.slice()):null}getControls(){return this.controls}getOverlays(){return this.overlays_}getOverlayById(Mt){const Dt=this.overlayIdIndex_[Mt.toString()];return void 0!==Dt?Dt:null}getInteractions(){return this.interactions}getLayerGroup(){return this.get(q.Z.LAYERGROUP)}setLayers(Mt){const Dt=this.getLayerGroup();if(Mt instanceof g.Z)return void Dt.setLayers(Mt);const Kt=Dt.getLayers();Kt.clear(),Kt.extend(Mt)}getLayers(){return this.getLayerGroup().getLayers()}getLoadingOrNotReady(){const Mt=this.getLayerGroup().getLayerStatesArray();for(let Dt=0,Kt=Mt.length;Dt=0;Jt--){const ye=Yt[Jt];if(ye.getMap()===this&&ye.getActive()&&this.getTargetElement()&&(!ye.handleEvent(Mt)||Mt.propagationStopped))break}}}handlePostRender(){const Mt=this.frameState_,Dt=this.tileQueue_;if(!Dt.isEmpty()){let Yt=this.maxTilesLoading_,Jt=Yt;if(Mt){const ye=Mt.viewHints;if(ye[_t.Z.ANIMATING]||ye[_t.Z.INTERACTING]){const Pe=Date.now()-Mt.time>8;Yt=Pe?0:8,Jt=Pe?0:2}}Dt.getTilesLoading(){this.postRenderTimeoutHandle_=void 0,this.handlePostRender()},0))}setLayerGroup(Mt){const Dt=this.getLayerGroup();Dt&&this.handleLayerRemove_(new O.V("removelayer",Dt)),this.set(q.Z.LAYERGROUP,Mt)}setSize(Mt){this.set(q.Z.SIZE,Mt)}setTarget(Mt){this.set(q.Z.TARGET,Mt)}setView(Mt){if(!Mt||Mt instanceof ht.ZP)return void this.set(q.Z.VIEW,Mt);this.set(q.Z.VIEW,new ht.ZP);const Dt=this;Mt.then(function(Kt){Dt.setView(new ht.ZP(Kt))})}updateSize(){const Mt=this.getTargetElement();let Dt;if(Mt){const Yt=getComputedStyle(Mt),Jt=Mt.offsetWidth-parseFloat(Yt.borderLeftWidth)-parseFloat(Yt.paddingLeft)-parseFloat(Yt.paddingRight)-parseFloat(Yt.borderRightWidth),ye=Mt.offsetHeight-parseFloat(Yt.borderTopWidth)-parseFloat(Yt.paddingTop)-parseFloat(Yt.paddingBottom)-parseFloat(Yt.borderBottomWidth);!isNaN(Jt)&&!isNaN(ye)&&(Dt=[Jt,ye],!(0,xe.py)(Dt)&&(Mt.offsetWidth||Mt.offsetHeight||Mt.getClientRects().length)&&(0,Ze.ZK)("No map visible because the map container's width or height are 0."))}const Kt=this.getSize();Dt&&(!Kt||!(0,_e.fS)(Dt,Kt))&&(this.setSize(Dt),this.updateViewportSize_())}updateViewportSize_(){const Mt=this.getView();if(Mt){let Dt;const Kt=getComputedStyle(this.viewport_);Kt.width&&Kt.height&&(Dt=[parseInt(Kt.width,10),parseInt(Kt.height,10)]),Mt.setViewportSize(Dt)}}}},1590:(Vt,gt,r)=>{"use strict";r.d(gt,{Z:()=>g});var _=r(3044);const g={SINGLECLICK:"singleclick",CLICK:_.Z.CLICK,DBLCLICK:_.Z.DBLCLICK,POINTERDRAG:"pointerdrag",POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"}},9806:(Vt,gt,r)=>{"use strict";r.d(gt,{Z:()=>_});const _={POSTRENDER:"postrender",MOVESTART:"movestart",MOVEEND:"moveend",LOADSTART:"loadstart",LOADEND:"loadend"}},3161:(Vt,gt,r)=>{"use strict";r.d(gt,{Z:()=>_});const _={LAYERGROUP:"layergroup",SIZE:"size",TARGET:"target",VIEW:"view"}},4115:(Vt,gt,r)=>{"use strict";r.d(gt,{Z:()=>S});var _=r(3615),g=r(8296),Q=r(8975),H=r(513),j=r(9306);class N extends _.ZP{constructor(h,c,u){super(h),this.key=c,this.oldValue=u}}const S=class w extends Q.Z{constructor(h){super(),(0,H.sq)(this),this.values_=null,void 0!==h&&this.setProperties(h)}get(h){let c;return this.values_&&this.values_.hasOwnProperty(h)&&(c=this.values_[h]),c}getKeys(){return this.values_&&Object.keys(this.values_)||[]}getProperties(){return this.values_&&Object.assign({},this.values_)||{}}hasProperties(){return!!this.values_}notify(h,c){let u;u=`change:${h}`,this.hasListener(u)&&this.dispatchEvent(new N(u,h,c)),u=g.Z.PROPERTYCHANGE,this.hasListener(u)&&this.dispatchEvent(new N(u,h,c))}addChangeListener(h,c){this.addEventListener(`change:${h}`,c)}removeChangeListener(h,c){this.removeEventListener(`change:${h}`,c)}set(h,c,u){const s=this.values_||(this.values_={});if(u)s[h]=c;else{const f=s[h];s[h]=c,f!==c&&this.notify(h,f)}}setProperties(h,c){for(const u in h)this.set(u,h[u],c)}applyProperties(h){!h.values_||Object.assign(this.values_||(this.values_={}),h.values_)}unset(h,c){if(this.values_&&h in this.values_){const u=this.values_[h];delete this.values_[h],(0,j.x)(this.values_)&&(this.values_=null),c||this.notify(h,u)}}}},8296:(Vt,gt,r)=>{"use strict";r.d(gt,{Z:()=>_});const _={PROPERTYCHANGE:"propertychange"}},8975:(Vt,gt,r)=>{"use strict";r.d(gt,{B:()=>j,Z:()=>N});var _=r(1398),g=r(3044),Q=r(2716);function j(w){if(Array.isArray(w))for(let S=0,v=w.length;S{"use strict";r.d(gt,{Z:()=>v});var _=r(4115),g=r(9806),Q=r(1119),H=r(9543),j=r(2716),N=r(3842);const v=class S extends _.Z{constructor(c){super(),this.options=c,this.id=c.id,this.insertFirst=void 0===c.insertFirst||c.insertFirst,this.stopEvent=void 0===c.stopEvent||c.stopEvent,this.element=document.createElement("div"),this.element.className=void 0!==c.className?c.className:"ol-overlay-container "+Q.$A,this.element.style.position="absolute",this.element.style.pointerEvents="auto",this.autoPan=!0===c.autoPan?{}:c.autoPan||void 0,this.rendered={transform_:"",visible:!0},this.mapPostrenderListenerKey=null,this.addChangeListener("element",this.handleElementChanged),this.addChangeListener("map",this.handleMapChanged),this.addChangeListener("offset",this.handleOffsetChanged),this.addChangeListener("position",this.handlePositionChanged),this.addChangeListener("positioning",this.handlePositioningChanged),void 0!==c.element&&this.setElement(c.element),this.setOffset(void 0!==c.offset?c.offset:[0,0]),this.setPositioning(c.positioning||"top-left"),void 0!==c.position&&this.setPosition(c.position)}getElement(){return this.get("element")}getId(){return this.id}getMap(){return this.get("map")||null}getOffset(){return this.get("offset")}getPosition(){return this.get("position")}getPositioning(){return this.get("positioning")}handleElementChanged(){(0,N.ep)(this.element);const c=this.getElement();c&&this.element.appendChild(c)}handleMapChanged(){this.mapPostrenderListenerKey&&((0,N.ZF)(this.element),(0,j.bN)(this.mapPostrenderListenerKey),this.mapPostrenderListenerKey=null);const c=this.getMap();if(c){this.mapPostrenderListenerKey=(0,j.oL)(c,g.Z.POSTRENDER,this.render,this),this.updatePixelPosition();const u=this.stopEvent?c.getOverlayContainerStopEvent():c.getOverlayContainer();this.insertFirst?u.insertBefore(this.element,u.childNodes[0]||null):u.appendChild(this.element),this.performAutoPan()}}render(){this.updatePixelPosition()}handleOffsetChanged(){this.updatePixelPosition()}handlePositionChanged(){this.updatePixelPosition(),this.performAutoPan()}handlePositioningChanged(){this.updatePixelPosition()}setElement(c){this.set("element",c)}setMap(c){this.set("map",c)}setOffset(c){this.set("offset",c)}setPosition(c){this.set("position",c)}performAutoPan(){this.autoPan&&this.panIntoView(this.autoPan)}panIntoView(c){const u=this.getMap();if(!u||!u.getTargetElement()||!this.get("position"))return;const s=this.getRect(u.getTargetElement(),u.getSize()),f=this.getElement(),i=this.getRect(f,[(0,N.iO)(f),(0,N.Pb)(f)]),l=void 0===(c=c||{}).margin?20:c.margin;if(!(0,H.r4)(s,i)){const m=i[0]-s[0],e=s[2]-i[2],P=i[1]-s[1],x=s[3]-i[3],T=[0,0];if(m<0?T[0]=m-l:e<0&&(T[0]=Math.abs(e)+l),P<0?T[1]=P-l:x<0&&(T[1]=Math.abs(x)+l),0!==T[0]||0!==T[1]){const U=u.getView().getCenterInternal(),D=u.getPixelFromCoordinateInternal(U);if(!D)return;const C=[D[0]+T[0],D[1]+T[1]],O=c.animation||{};u.getView().animateInternal({center:u.getCoordinateFromPixelInternal(C),duration:O.duration,easing:O.easing})}}}getRect(c,u){const s=c.getBoundingClientRect(),f=s.left+window.pageXOffset,i=s.top+window.pageYOffset;return[f,i,f+u[0],i+u[1]]}setPositioning(c){this.set("positioning",c)}setVisible(c){this.rendered.visible!==c&&(this.element.style.display=c?"":"none",this.rendered.visible=c)}updatePixelPosition(){const c=this.getMap(),u=this.getPosition();if(!c||!c.isRendered()||!u)return void this.setVisible(!1);const s=c.getPixelFromCoordinate(u),f=c.getSize();this.updateRenderedPosition(s,f)}updateRenderedPosition(c,u){const s=this.element.style,f=this.getOffset(),i=this.getPositioning();this.setVisible(!0);let e="0%",P="0%";"bottom-right"==i||"center-right"==i||"top-right"==i?e="-100%":("bottom-center"==i||"center-center"==i||"top-center"==i)&&(e="-50%"),"bottom-left"==i||"bottom-center"==i||"bottom-right"==i?P="-100%":("center-left"==i||"center-center"==i||"center-right"==i)&&(P="-50%");const x=`translate(${e}, ${P}) translate(${Math.round(c[0]+f[0])+"px"}, ${Math.round(c[1]+f[1])+"px"})`;this.rendered.transform_!=x&&(this.rendered.transform_=x,s.transform=x)}getOptions(){return this.options}}},8786:(Vt,gt,r)=>{"use strict";r.d(gt,{Z:()=>w});var _=r(1398),g=r(3044),Q=r(4700),H=r(513),j=r(4720);const w=class N extends _.Z{constructor(v,h,c){super(),c=c||{},this.tileCoord=v,this.state=h,this.interimTile=null,this.key="",this.transition_=void 0===c.transition?250:c.transition,this.transitionStarts_={},this.interpolate=!!c.interpolate}changed(){this.dispatchEvent(g.Z.CHANGE)}release(){this.state===Q.Z.ERROR&&this.setState(Q.Z.EMPTY)}getKey(){return this.key+"/"+this.tileCoord}getInterimTile(){if(!this.interimTile)return this;let v=this.interimTile;do{if(v.getState()==Q.Z.LOADED)return this.transition_=0,v;v=v.interimTile}while(v);return this}refreshInterimChain(){if(!this.interimTile)return;let v=this.interimTile,h=this;do{if(v.getState()==Q.Z.LOADED){v.interimTile=null;break}v.getState()==Q.Z.LOADING?h=v:v.getState()==Q.Z.IDLE?h.interimTile=v.interimTile:h=v,v=h.interimTile}while(v)}getTileCoord(){return this.tileCoord}getState(){return this.state}setState(v){if(this.state!==Q.Z.ERROR&&this.state>v)throw new Error("Tile load sequence violation");this.state=v,this.changed()}load(){(0,H.O3)()}getAlpha(v,h){if(!this.transition_)return 1;let c=this.transitionStarts_[v];if(c){if(-1===c)return 1}else c=h,this.transitionStarts_[v]=c;const u=h-c+1e3/60;return u>=this.transition_?1:(0,j.YQ)(u/this.transition_)}inTransition(v){return!!this.transition_&&-1!==this.transitionStarts_[v]}endTransition(v){this.transition_&&(this.transitionStarts_[v]=-1)}}},7450:(Vt,gt,r)=>{"use strict";r.d(gt,{Z:()=>N});var _=r(992);var H=r(5474);const N=class j extends class g{constructor(S){this.highWaterMark=void 0!==S?S:2048,this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}canExpireCache(){return this.highWaterMark>0&&this.getCount()>this.highWaterMark}expireCache(S){for(;this.canExpireCache();)this.pop()}clear(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}containsKey(S){return this.entries_.hasOwnProperty(S)}forEach(S){let v=this.oldest_;for(;v;)S(v.value_,v.key_,this),v=v.newer}get(S,v){const h=this.entries_[S];return(0,_.h)(void 0!==h,15),h===this.newest_||(h===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(h.newer.older=h.older,h.older.newer=h.newer),h.newer=null,h.older=this.newest_,this.newest_.newer=h,this.newest_=h),h.value_}remove(S){const v=this.entries_[S];return(0,_.h)(void 0!==v,15),v===this.newest_?(this.newest_=v.older,this.newest_&&(this.newest_.newer=null)):v===this.oldest_?(this.oldest_=v.newer,this.oldest_&&(this.oldest_.older=null)):(v.newer.older=v.older,v.older.newer=v.newer),delete this.entries_[S],--this.count_,v.value_}getCount(){return this.count_}getKeys(){const S=new Array(this.count_);let h,v=0;for(h=this.newest_;h;h=h.older)S[v++]=h.key_;return S}getValues(){const S=new Array(this.count_);let h,v=0;for(h=this.newest_;h;h=h.older)S[v++]=h.value_;return S}peekLast(){return this.oldest_.value_}peekLastKey(){return this.oldest_.key_}peekFirstKey(){return this.newest_.key_}peek(S){if(this.containsKey(S))return this.entries_[S].value_}pop(){const S=this.oldest_;return delete this.entries_[S.key_],S.newer&&(S.newer.older=null),this.oldest_=S.newer,this.oldest_||(this.newest_=null),--this.count_,S.value_}replace(S,v){this.get(S),this.entries_[S].value_=v}set(S,v){(0,_.h)(!(S in this.entries_),16);const h={key_:S,newer:null,older:this.newest_,value_:v};this.newest_?this.newest_.newer=h:this.oldest_=h,this.newest_=h,this.entries_[S]=h,++this.count_}setSize(S){this.highWaterMark=S}}{clear(){for(;this.getCount()>0;)this.pop().release();super.clear()}expireCache(S){for(;this.canExpireCache()&&!(this.peekLast().getKey()in S);)this.pop().release()}pruneExceptNewestZ(){if(0===this.getCount())return;const S=this.peekFirstKey(),h=(0,H.Ul)(S)[0];this.forEach(c=>{c.tileCoord[0]!==h&&(this.remove((0,H.km)(c.tileCoord)),c.release())})}}},2988:(Vt,gt,r)=>{"use strict";r.d(gt,{Z:()=>v,R:()=>h});var _=r(3044),g=r(992),Q=r(9306);const H=1/0;var w=r(4700);const v=class S extends class j{constructor(u,s){this.priorityFunction_=u,this.keyFunction_=s,this.elements_=[],this.priorities_=[],this.queuedElements_={}}clear(){this.elements_.length=0,this.priorities_.length=0,(0,Q.Z)(this.queuedElements_)}dequeue(){const u=this.elements_,s=this.priorities_,f=u[0];1==u.length?(u.length=0,s.length=0):(u[0]=u.pop(),s[0]=s.pop(),this.siftUp_(0));const i=this.keyFunction_(f);return delete this.queuedElements_[i],f}enqueue(u){(0,g.h)(!(this.keyFunction_(u)in this.queuedElements_),31);const s=this.priorityFunction_(u);return s!=H&&(this.elements_.push(u),this.priorities_.push(s),this.queuedElements_[this.keyFunction_(u)]=!0,this.siftDown_(0,this.elements_.length-1),!0)}getCount(){return this.elements_.length}getLeftChildIndex_(u){return 2*u+1}getRightChildIndex_(u){return 2*u+2}getParentIndex_(u){return u-1>>1}heapify_(){let u;for(u=(this.elements_.length>>1)-1;u>=0;u--)this.siftUp_(u)}isEmpty(){return 0===this.elements_.length}isKeyQueued(u){return u in this.queuedElements_}isQueued(u){return this.isKeyQueued(this.keyFunction_(u))}siftUp_(u){const s=this.elements_,f=this.priorities_,i=s.length,l=s[u],m=f[u],e=u;for(;u>1;){const P=this.getLeftChildIndex_(u),x=this.getRightChildIndex_(u),T=xu;){const e=this.getParentIndex_(s);if(!(i[e]>m))break;f[s]=f[e],i[s]=i[e],s=e}f[s]=l,i[s]=m}reprioritize(){const u=this.priorityFunction_,s=this.elements_,f=this.priorities_;let i=0;const l=s.length;let m,e,P;for(e=0;e0;)l=this.dequeue()[0],m=l.getKey(),i=l.getState(),i===w.Z.IDLE&&!(m in this.tilesLoadingKeys_)&&(this.tilesLoadingKeys_[m]=!0,++this.tilesLoading_,++f,l.load())}};function h(c,u,s,f,i){if(!c||!(s in c.wantedTiles)||!c.wantedTiles[s][u.getKey()])return H;const l=c.viewState.center,m=f[0]-l[0],e=f[1]-l[1];return 65536*Math.log(i)+Math.sqrt(m*m+e*e)/i}},828:(Vt,gt,r)=>{"use strict";r.d(gt,{T:()=>g,Z:()=>Q});class _{constructor(j,N,w,S){this.minX=j,this.maxX=N,this.minY=w,this.maxY=S}contains(j){return this.containsXY(j[1],j[2])}containsTileRange(j){return this.minX<=j.minX&&j.maxX<=this.maxX&&this.minY<=j.minY&&j.maxY<=this.maxY}containsXY(j,N){return this.minX<=j&&j<=this.maxX&&this.minY<=N&&N<=this.maxY}equals(j){return this.minX==j.minX&&this.minY==j.minY&&this.maxX==j.maxX&&this.maxY==j.maxY}extend(j){j.minXthis.maxX&&(this.maxX=j.maxX),j.minYthis.maxY&&(this.maxY=j.maxY)}getHeight(){return this.maxY-this.minY+1}getSize(){return[this.getWidth(),this.getHeight()]}getWidth(){return this.maxX-this.minX+1}intersects(j){return this.minX<=j.maxX&&this.maxX>=j.minX&&this.minY<=j.maxY&&this.maxY>=j.minY}}function g(H,j,N,w,S){return void 0!==S?(S.minX=H,S.maxX=j,S.minY=N,S.maxY=w,S):new _(H,j,N,w)}const Q=_},4700:(Vt,gt,r)=>{"use strict";r.d(gt,{Z:()=>_});const _={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},5109:(Vt,gt,r)=>{"use strict";r.d(gt,{ZP:()=>k});var _=r(4115),g=r(9500),Q=r(1266),H=r(2258),j=r(9015),N=r(1334),w=r(5415),S=r(992),v=r(4331);function h(L,p,M){return function(R,K,G,J,q){if(!R)return;if(!K&&!p)return R;const ut=p?0:G[0]*K,ht=p?0:G[1]*K,_t=q?q[0]:0,Tt=q?q[1]:0;let Lt=L[0]+ut/2+_t,Ht=L[2]-ut/2+_t,$t=L[1]+ht/2+Tt,ae=L[3]-ht/2+Tt;Lt>Ht&&(Lt=(Ht+Lt)/2,Ht=Lt),$t>ae&&($t=(ae+$t)/2,ae=$t);let Qt=(0,v.uZ)(R[0],Lt,Ht),_e=(0,v.uZ)(R[1],$t,ae);if(J&&M&&K){const Ce=30*K;Qt+=-Ce*Math.log(1+Math.max(0,Lt-R[0])/Ce)+Ce*Math.log(1+Math.max(0,R[0]-Ht)/Ce),_e+=-Ce*Math.log(1+Math.max(0,$t-R[1])/Ce)+Ce*Math.log(1+Math.max(0,R[1]-ae)/Ce)}return[Qt,_e]}}function c(L){return L}var u=r(9543),s=r(142);function f(L,p,M,R){const K=(0,u.dz)(p)/M[0],G=(0,u.Cr)(p)/M[1];return R?Math.min(L,Math.max(K,G)):Math.min(L,Math.min(K,G))}function i(L,p,M){let R=Math.min(L,p);return R*=Math.log(1+50*Math.max(0,L/p-1))/50+1,M&&(R=Math.max(R,M),R/=Math.log(1+50*Math.max(0,M/L-1))/50+1),(0,v.uZ)(R,M/2,2*p)}function e(L,p,M,R,K){return M=void 0===M||M,function(G,J,q,ut){if(void 0!==G){const ht=R?f(L,R,q,K):L;return M&&ut?i(G,ht,p):(0,v.uZ)(G,p,ht)}}}var P=r(7011),x=r(4720),T=r(7464);function C(L,p){setTimeout(function(){L(p)},0)}function B(L,p,M,R,K){const G=Math.cos(-K);let J=Math.sin(-K),q=L[0]*G-L[1]*J,ut=L[1]*G+L[0]*J;return q+=(p[0]/2-M[0])*R,ut+=(M[1]-p[1]/2)*R,J=-J,[q*G-ut*J,ut*G+q*J]}const k=class D extends _.Z{constructor(p){super(),p=Object.assign({},p),this.hints_=[0,0],this.animations_=[],this.projection_=(0,j.UQ)(p.projection,"EPSG:3857"),this.viewportSize_=[100,100],this.targetCenter_=null,this.nextCenter_=null,this.cancelAnchor_=void 0,p.projection&&(0,j.h_)(),p.center&&(p.center=(0,j.Vs)(p.center,this.projection_)),p.extent&&(p.extent=(0,j.dY)(p.extent,this.projection_)),this.applyOptions_(p)}applyOptions_(p){const M=Object.assign({},p);for(const q in Q.Z)delete M[q];this.setProperties(M,!0);const R=function X(L){let p,M,R,J=void 0!==L.minZoom?L.minZoom:0,q=void 0!==L.maxZoom?L.maxZoom:28;const ut=void 0!==L.zoomFactor?L.zoomFactor:2,ht=void 0!==L.multiWorld&&L.multiWorld,_t=void 0===L.smoothResolutionConstraint||L.smoothResolutionConstraint,Tt=void 0!==L.showFullExtent&&L.showFullExtent,Lt=(0,j.UQ)(L.projection,"EPSG:3857"),Ht=Lt.getExtent();let $t=L.constrainOnlyCenter,ae=L.extent;if(!ht&&!ae&&Lt.isGlobal()&&($t=!1,ae=Ht),void 0!==L.resolutions){const Qt=L.resolutions;M=Qt[J],R=void 0!==Qt[q]?Qt[q]:Qt[Qt.length-1],p=L.constrainResolution?function l(L,p,M,R){return p=void 0===p||p,function(K,G,J,q){if(void 0!==K){const ut=L[0],ht=L[L.length-1],_t=M?f(ut,M,J,R):ut;if(q)return p?i(K,_t,ht):(0,v.uZ)(K,ht,_t);const Tt=Math.min(_t,K),Lt=Math.floor((0,s.h7)(L,Tt,G));return L[Lt]>_t&&Lt1&&"function"==typeof arguments[M-1]&&(R=arguments[M-1],--M);let K=0;for(;K0}getInteracting(){return this.hints_[g.Z.INTERACTING]>0}cancelAnimations(){let p;this.setHint(g.Z.ANIMATING,-this.hints_[g.Z.ANIMATING]);for(let M=0,R=this.animations_.length;M=0;--R){const K=this.animations_[R];let G=!0;for(let J=0,q=K.length;J0?ht/ut.duration:1;_t>=1?(ut.complete=!0,_t=1):G=!1;const Tt=ut.easing(_t);if(ut.sourceCenter){const Lt=ut.sourceCenter[0],Ht=ut.sourceCenter[1],$t=ut.targetCenter[0],ae=ut.targetCenter[1];this.nextCenter_=ut.targetCenter,this.targetCenter_=[Lt+Tt*($t-Lt),Ht+Tt*(ae-Ht)]}if(ut.sourceResolution&&ut.targetResolution){const Lt=1===Tt?ut.targetResolution:ut.sourceResolution+Tt*(ut.targetResolution-ut.sourceResolution);if(ut.anchor){const Ht=this.getViewportSize_(this.getRotation()),$t=this.constraints_.resolution(Lt,0,Ht,!0);this.targetCenter_=this.calculateCenterZoom($t,ut.anchor)}this.nextResolution_=ut.targetResolution,this.targetResolution_=Lt,this.applyTargetState_(!0)}if(void 0!==ut.sourceRotation&&void 0!==ut.targetRotation){const Lt=1===Tt?(0,v.$W)(ut.targetRotation+Math.PI,2*Math.PI)-Math.PI:ut.sourceRotation+Tt*(ut.targetRotation-ut.sourceRotation);if(ut.anchor){const Ht=this.constraints_.rotation(Lt,!0);this.targetCenter_=this.calculateCenterRotate(Ht,ut.anchor)}this.nextRotation_=ut.targetRotation,this.targetRotation_=Lt}if(this.applyTargetState_(!0),M=!0,!ut.complete)break}if(G){this.animations_[R]=null,this.setHint(g.Z.ANIMATING,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;const J=K[0].callback;J&&C(J,!0)}}this.animations_=this.animations_.filter(Boolean),M&&void 0===this.updateAnimationKey_&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}calculateCenterRotate(p,M){let R;const K=this.getCenterInternal();return void 0!==K&&(R=[K[0]-M[0],K[1]-M[1]],(0,w.U1)(R,p-this.getRotation()),(0,w.IH)(R,M)),R}calculateCenterZoom(p,M){let R;const K=this.getCenterInternal(),G=this.getResolution();return void 0!==K&&void 0!==G&&(R=[M[0]-p*(M[0]-K[0])/G,M[1]-p*(M[1]-K[1])/G]),R}getViewportSize_(p){const M=this.viewportSize_;if(p){const R=M[0],K=M[1];return[Math.abs(R*Math.cos(p))+Math.abs(K*Math.sin(p)),Math.abs(R*Math.sin(p))+Math.abs(K*Math.cos(p))]}return M}setViewportSize(p){this.viewportSize_=Array.isArray(p)?p.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)}getCenter(){const p=this.getCenterInternal();return p&&(0,j.lO)(p,this.getProjection())}getCenterInternal(){return this.get(Q.Z.CENTER)}getConstraints(){return this.constraints_}getConstrainResolution(){return this.get("constrainResolution")}getHints(p){return void 0!==p?(p[0]=this.hints_[0],p[1]=this.hints_[1],p):this.hints_.slice()}calculateExtent(p){const M=this.calculateExtentInternal(p);return(0,j.Fj)(M,this.getProjection())}calculateExtentInternal(p){p=p||this.getViewportSizeMinusPadding_();const M=this.getCenterInternal();(0,S.h)(M,1);const R=this.getResolution();(0,S.h)(void 0!==R,2);const K=this.getRotation();return(0,S.h)(void 0!==K,3),(0,u.p8)(M,R,K,p)}getMaxResolution(){return this.maxResolution_}getMinResolution(){return this.minResolution_}getMaxZoom(){return this.getZoomForResolution(this.minResolution_)}setMaxZoom(p){this.applyOptions_(this.getUpdatedOptions_({maxZoom:p}))}getMinZoom(){return this.getZoomForResolution(this.maxResolution_)}setMinZoom(p){this.applyOptions_(this.getUpdatedOptions_({minZoom:p}))}setConstrainResolution(p){this.applyOptions_(this.getUpdatedOptions_({constrainResolution:p}))}getProjection(){return this.projection_}getResolution(){return this.get(Q.Z.RESOLUTION)}getResolutions(){return this.resolutions_}getResolutionForExtent(p,M){return this.getResolutionForExtentInternal((0,j.dY)(p,this.getProjection()),M)}getResolutionForExtentInternal(p,M){M=M||this.getViewportSizeMinusPadding_();const R=(0,u.dz)(p)/M[0],K=(0,u.Cr)(p)/M[1];return Math.max(R,K)}getResolutionForValueFunction(p){p=p||2;const M=this.getConstrainedResolution(this.maxResolution_),K=Math.log(M/this.minResolution_)/Math.log(p);return function(G){return M/Math.pow(p,G*K)}}getRotation(){return this.get(Q.Z.ROTATION)}getValueForResolutionFunction(p){const M=Math.log(p||2),R=this.getConstrainedResolution(this.maxResolution_),G=Math.log(R/this.minResolution_)/M;return function(J){return Math.log(R/J)/M/G}}getViewportSizeMinusPadding_(p){let M=this.getViewportSize_(p);const R=this.padding_;return R&&(M=[M[0]-R[1]-R[3],M[1]-R[0]-R[2]]),M}getState(){const p=this.getProjection(),M=this.getResolution(),R=this.getRotation();let K=this.getCenterInternal();const G=this.padding_;if(G){const J=this.getViewportSizeMinusPadding_();K=B(K,this.getViewportSize_(),[J[0]/2+G[3],J[1]/2+G[0]],M,R)}return{center:K.slice(0),projection:void 0!==p?p:null,resolution:M,nextCenter:this.nextCenter_,nextResolution:this.nextResolution_,nextRotation:this.nextRotation_,rotation:R,zoom:this.getZoom()}}getViewStateAndExtent(){return{viewState:this.getState(),extent:this.calculateExtent()}}getZoom(){let p;const M=this.getResolution();return void 0!==M&&(p=this.getZoomForResolution(M)),p}getZoomForResolution(p){let R,K,M=this.minZoom_||0;if(this.resolutions_){const G=(0,s.h7)(this.resolutions_,p,1);M=G,R=this.resolutions_[G],K=G==this.resolutions_.length-1?2:R/this.resolutions_[G+1]}else R=this.maxResolution_,K=this.zoomFactor_;return M+Math.log(R/p)/Math.log(K)}getResolutionForZoom(p){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;const M=(0,v.uZ)(Math.floor(p),0,this.resolutions_.length-2);return this.resolutions_[M]/Math.pow(this.resolutions_[M]/this.resolutions_[M+1],(0,v.uZ)(p-M,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,p-this.minZoom_)}fit(p,M){let R;if((0,S.h)(Array.isArray(p)||"function"==typeof p.getSimplifiedGeometry,24),Array.isArray(p)){(0,S.h)(!(0,u.xb)(p),25);const K=(0,j.dY)(p,this.getProjection());R=(0,T.oJ)(K)}else if("Circle"===p.getType()){const K=(0,j.dY)(p.getExtent(),this.getProjection());R=(0,T.oJ)(K),R.rotate(this.getRotation(),(0,u.qg)(K))}else{const K=(0,j.Cs)();R=K?p.clone().transform(K,this.getProjection()):p}this.fitInternal(R,M)}rotatedExtentForGeometry(p){const M=this.getRotation(),R=Math.cos(M),K=Math.sin(-M),G=p.getFlatCoordinates(),J=p.getStride();let q=1/0,ut=1/0,ht=-1/0,_t=-1/0;for(let Tt=0,Lt=G.length;Tt{"use strict";r.d(gt,{Z:()=>_});const _={ANIMATING:0,INTERACTING:1}},1266:(Vt,gt,r)=>{"use strict";r.d(gt,{Z:()=>_});const _={CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"}},142:(Vt,gt,r)=>{"use strict";function _(h,c,u){let s,f;u=u||g;let i=0,l=h.length,m=!1;for(;i>1),f=+u(h[s],c),f<0?i=s+1:(l=s,m=!f);return m?i:~i}function g(h,c){return h>c?1:h0){for(f=1;f0?f-1:f:h[f-1]-c0||u&&0===l)})}r.d(gt,{FZ:()=>H,fS:()=>w,h7:()=>Q,j2:()=>g,l7:()=>j,pT:()=>v,ry:()=>_})},992:(Vt,gt,r)=>{"use strict";r.d(gt,{h:()=>g});var _=r(1955);function g(Q,H){if(!Q)throw new _.Z(H)}},866:(Vt,gt,r)=>{"use strict";r.d(gt,{BB:()=>c,XC:()=>j,_2:()=>S});var _=r(992),g=r(4331);const Q=/^#([a-f0-9]{3}|[a-f0-9]{4}(?:[a-f0-9]{2}){0,2})$/i,H=/^([a-z]*)$|^hsla?\(.*\)$/i;function j(s){return"string"==typeof s?s:c(s)}const w=function(){const f={};let i=0;return function(l){let m;if(f.hasOwnProperty(l))m=f[l];else{if(i>=1024){let e=0;for(const P in f)0==(3&e++)&&(delete f[P],--i)}m=function v(s){let f,i,l,m,e;if(H.exec(s)&&(s=function N(s){const f=document.createElement("div");if(f.style.color=s,""!==f.style.color){document.body.appendChild(f);const i=getComputedStyle(f).color;return document.body.removeChild(f),i}return""}(s)),Q.exec(s)){const P=s.length-1;let x;x=P<=4?1:2;const T=4===P||8===P;f=parseInt(s.substr(1+0*x,x),16),i=parseInt(s.substr(1+1*x,x),16),l=parseInt(s.substr(1+2*x,x),16),m=T?parseInt(s.substr(1+3*x,x),16):255,1==x&&(f=(f<<4)+f,i=(i<<4)+i,l=(l<<4)+l,T&&(m=(m<<4)+m)),e=[f,i,l,m/255]}else s.startsWith("rgba(")?(e=s.slice(5,-1).split(",").map(Number),h(e)):s.startsWith("rgb(")?(e=s.slice(4,-1).split(",").map(Number),e.push(1),h(e)):(0,_.h)(!1,14);return e}(l),f[l]=m,++i}return m}}();function S(s){return Array.isArray(s)?s:w(s)}function h(s){return s[0]=(0,g.uZ)(s[0]+.5|0,0,255),s[1]=(0,g.uZ)(s[1]+.5|0,0,255),s[2]=(0,g.uZ)(s[2]+.5|0,0,255),s[3]=(0,g.uZ)(s[3],0,1),s}function c(s){let f=s[0];f!=(0|f)&&(f=f+.5|0);let i=s[1];i!=(0|i)&&(i=i+.5|0);let l=s[2];return l!=(0|l)&&(l=l+.5|0),"rgba("+f+","+i+","+l+","+(void 0===s[3]?1:Math.round(100*s[3])/100)+")"}},4890:(Vt,gt,r)=>{"use strict";r.d(gt,{y:()=>g});var _=r(866);function g(Q){return Array.isArray(Q)?(0,_.BB)(Q):Q}},246:(Vt,gt,r)=>{"use strict";r.d(gt,{ZK:()=>j});const __warn=2;let g=1;function j(...w){g>__warn||console.warn(...w)}},9633:(Vt,gt,r)=>{"use strict";r.d(gt,{Z:()=>w});var _=r(6581),g=r(3044),Q=r(1119),H=r(142),j=r(3842);const w=class N extends _.Z{constructor(v){v=v||{},super({element:document.createElement("div"),render:v.render,target:v.target}),this.ulElement_=document.createElement("ul"),this.collapsed_=void 0===v.collapsed||v.collapsed,this.userCollapsed_=this.collapsed_,this.overrideCollapsible_=void 0!==v.collapsible,this.collapsible_=void 0===v.collapsible||v.collapsible,this.collapsible_||(this.collapsed_=!1);const h=void 0!==v.className?v.className:"ol-attribution",c=void 0!==v.tipLabel?v.tipLabel:"Attributions",u=void 0!==v.expandClassName?v.expandClassName:h+"-expand",s=void 0!==v.collapseLabel?v.collapseLabel:"\u203a",f=void 0!==v.collapseClassName?v.collapseClassName:h+"-collapse";"string"==typeof s?(this.collapseLabel_=document.createElement("span"),this.collapseLabel_.textContent=s,this.collapseLabel_.className=f):this.collapseLabel_=s;const i=void 0!==v.label?v.label:"i";"string"==typeof i?(this.label_=document.createElement("span"),this.label_.textContent=i,this.label_.className=u):this.label_=i;const l=this.collapsible_&&!this.collapsed_?this.collapseLabel_:this.label_;this.toggleButton_=document.createElement("button"),this.toggleButton_.setAttribute("type","button"),this.toggleButton_.setAttribute("aria-expanded",String(!this.collapsed_)),this.toggleButton_.title=c,this.toggleButton_.appendChild(l),this.toggleButton_.addEventListener(g.Z.CLICK,this.handleClick_.bind(this),!1);const e=this.element;e.className=h+" "+Q.XV+" "+Q.hg+(this.collapsed_&&this.collapsible_?" "+Q.hN:"")+(this.collapsible_?"":" ol-uncollapsible"),e.appendChild(this.toggleButton_),e.appendChild(this.ulElement_),this.renderedAttributions_=[],this.renderedVisible_=!0}collectSourceAttributions_(v){const h=Array.from(new Set(this.getMap().getAllLayers().flatMap(u=>u.getAttributions(v)))),c=!this.getMap().getAllLayers().some(u=>u.getSource()&&!1===u.getSource().getAttributionsCollapsible());return this.overrideCollapsible_||this.setCollapsible(c),h}updateElement_(v){if(!v)return void(this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1));const h=this.collectSourceAttributions_(v),c=h.length>0;if(this.renderedVisible_!=c&&(this.element.style.display=c?"":"none",this.renderedVisible_=c),!(0,H.fS)(h,this.renderedAttributions_)){(0,j.ep)(this.ulElement_);for(let u=0,s=h.length;u{"use strict";r.d(gt,{Z:()=>w});var _=r(4115),g=r(9806),Q=r(1334),H=r(2716),j=r(3842);const w=class N extends _.Z{constructor(v){super();const h=v.element;h&&!v.target&&!h.style.pointerEvents&&(h.style.pointerEvents="auto"),this.element=h||null,this.target_=null,this.map_=null,this.listenerKeys=[],v.render&&(this.render=v.render),v.target&&this.setTarget(v.target)}disposeInternal(){(0,j.ZF)(this.element),super.disposeInternal()}getMap(){return this.map_}setMap(v){this.map_&&(0,j.ZF)(this.element);for(let h=0,c=this.listenerKeys.length;h{"use strict";r.d(gt,{Z:()=>N});var _=r(6581),g=r(3044),Q=r(1119),H=r(4720);const N=class j extends _.Z{constructor(S){S=S||{},super({element:document.createElement("div"),render:S.render,target:S.target});const v=void 0!==S.className?S.className:"ol-rotate",h=void 0!==S.label?S.label:"\u21e7",c=void 0!==S.compassClassName?S.compassClassName:"ol-compass";this.label_=null,"string"==typeof h?(this.label_=document.createElement("span"),this.label_.className=c,this.label_.textContent=h):(this.label_=h,this.label_.classList.add(c));const u=S.tipLabel?S.tipLabel:"Reset rotation",s=document.createElement("button");s.className=v+"-reset",s.setAttribute("type","button"),s.title=u,s.appendChild(this.label_),s.addEventListener(g.Z.CLICK,this.handleClick_.bind(this),!1);const i=this.element;i.className=v+" "+Q.XV+" "+Q.hg,i.appendChild(s),this.callResetNorth_=S.resetNorth?S.resetNorth:void 0,this.duration_=void 0!==S.duration?S.duration:250,this.autoHide_=void 0===S.autoHide||S.autoHide,this.rotation_=void 0,this.autoHide_&&this.element.classList.add(Q.oj)}handleClick_(S){S.preventDefault(),void 0!==this.callResetNorth_?this.callResetNorth_():this.resetNorth_()}resetNorth_(){const v=this.getMap().getView();if(!v)return;const h=v.getRotation();void 0!==h&&(this.duration_>0&&h%(2*Math.PI)!=0?v.animate({rotation:0,duration:this.duration_,easing:H.Vv}):v.setRotation(0))}render(S){const v=S.frameState;if(!v)return;const h=v.viewState.rotation;if(h!=this.rotation_){const c="rotate("+h+"rad)";if(this.autoHide_){const u=this.element.classList.contains(Q.oj);u||0!==h?u&&0!==h&&this.element.classList.remove(Q.oj):this.element.classList.add(Q.oj)}this.label_.style.transform=c}this.rotation_=h}}},1014:(Vt,gt,r)=>{"use strict";r.d(gt,{Z:()=>N});var _=r(6581),g=r(3044),Q=r(1119),H=r(4720);const N=class j extends _.Z{constructor(S){S=S||{},super({element:document.createElement("div"),target:S.target});const v=void 0!==S.className?S.className:"ol-zoom",h=void 0!==S.delta?S.delta:1,c=void 0!==S.zoomInClassName?S.zoomInClassName:v+"-in",u=void 0!==S.zoomOutClassName?S.zoomOutClassName:v+"-out",s=void 0!==S.zoomInLabel?S.zoomInLabel:"+",f=void 0!==S.zoomOutLabel?S.zoomOutLabel:"\u2013",i=void 0!==S.zoomInTipLabel?S.zoomInTipLabel:"Zoom in",l=void 0!==S.zoomOutTipLabel?S.zoomOutTipLabel:"Zoom out",m=document.createElement("button");m.className=c,m.setAttribute("type","button"),m.title=i,m.appendChild("string"==typeof s?document.createTextNode(s):s),m.addEventListener(g.Z.CLICK,this.handleClick_.bind(this,h),!1);const e=document.createElement("button");e.className=u,e.setAttribute("type","button"),e.title=l,e.appendChild("string"==typeof f?document.createTextNode(f):f),e.addEventListener(g.Z.CLICK,this.handleClick_.bind(this,-h),!1);const x=this.element;x.className=v+" "+Q.XV+" "+Q.hg,x.appendChild(m),x.appendChild(e),this.duration_=void 0!==S.duration?S.duration:250}handleClick_(S,v){v.preventDefault(),this.zoomByDelta_(S)}zoomByDelta_(S){const h=this.getMap().getView();if(!h)return;const c=h.getZoom();if(void 0!==c){const u=h.getConstrainedZoom(c+S);this.duration_>0?(h.getAnimating()&&h.cancelAnimations(),h.animate({zoom:u,duration:this.duration_,easing:H.Vv})):h.setZoom(u)}}}},5415:(Vt,gt,r)=>{"use strict";r.d(gt,{Cf:()=>e,I8:()=>S,IH:()=>H,U1:()=>c,bA:()=>u,fS:()=>h,jk:()=>P,yZ:()=>m});var _=r(9543),g=r(4331),Q=r(7531);function H(x,T){return x[0]+=+T[0],x[1]+=+T[1],x}function S(x,T,U){const D=(0,g.$W)(T+180,360)-180,C=Math.abs(3600*D),O=U||0;let X=Math.floor(C/3600),$=Math.floor((C-3600*X)/60),dt=(0,g.FH)(C-3600*X-60*$,O);dt>=60&&(dt=0,$+=1),$>=60&&($=0,X+=1);let B=X+"\xb0";return(0!==$||0!==dt)&&(B+=" "+(0,Q.v)($,2)+"\u2032"),0!==dt&&(B+=" "+(0,Q.v)(dt,2,O)+"\u2033"),0!==D&&(B+=" "+x.charAt(D<0?1:0)),B}function h(x,T){let U=!0;for(let D=x.length-1;D>=0;--D)if(x[D]!=T[D]){U=!1;break}return U}function c(x,T){const U=Math.cos(T),D=Math.sin(T),O=x[1]*U+x[0]*D;return x[0]=x[0]*U-x[1]*D,x[1]=O,x}function u(x,T){return x[0]*=T,x[1]*=T,x}function m(x,T){return function v(x,T,U){return x?T.replace("{x}",x[0].toFixed(U)).replace("{y}",x[1].toFixed(U)):""}(x,"{x}, {y}",T)}function e(x,T){if(T.canWrapX()){const U=(0,_.dz)(T.getExtent()),D=P(x,T,U);D&&(x[0]-=D*U)}return x}function P(x,T,U){const D=T.getExtent();let C=0;return T.canWrapX()&&(x[0]D[2])&&(U=U||(0,_.dz)(D),C=Math.floor((x[0]-D[0])/U)),C}},1119:(Vt,gt,r)=>{"use strict";r.d(gt,{$A:()=>g,Qi:()=>H,XV:()=>Q,hN:()=>N,hg:()=>j,oj:()=>_,p:()=>v});const _="ol-hidden",g="ol-selectable",Q="ol-unselectable",H="ol-unsupported",j="ol-control",N="ol-collapsed",w=new RegExp(["^\\s*(?=(?:(?:[-a-z]+\\s*){0,2}(italic|oblique))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(small-caps))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(bold(?:er)?|lighter|[1-9]00 ))?)","(?:(?:normal|\\1|\\2|\\3)\\s*){0,3}((?:xx?-)?","(?:small|large)|medium|smaller|larger|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx]))","(?:\\s*\\/\\s*(normal|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx])?))","?\\s*([-,\\\"\\'\\sa-z]+?)\\s*$"].join(""),"i"),S=["style","variant","weight","size","lineHeight","family"],v=function(h){const c=h.match(w);if(!c)return null;const u={lineHeight:"normal",size:"1.2em",style:"normal",weight:"normal",variant:"normal"};for(let s=0,f=S.length;s{"use strict";r.d(gt,{$H:()=>N,E4:()=>g,Pb:()=>j,ZF:()=>w,ep:()=>S,hF:()=>v,iO:()=>H,jy:()=>Q});var _=r(5063);function g(h,c,u,s){let f;return f=u&&u.length?u.shift():_.Id?new OffscreenCanvas(h||300,c||300):document.createElement("canvas"),h&&(f.width=h),c&&(f.height=c),f.getContext("2d",s)}function Q(h){const c=h.canvas;c.width=1,c.height=1,h.clearRect(0,0,1,1)}function H(h){let c=h.offsetWidth;const u=getComputedStyle(h);return c+=parseInt(u.marginLeft,10)+parseInt(u.marginRight,10),c}function j(h){let c=h.offsetHeight;const u=getComputedStyle(h);return c+=parseInt(u.marginTop,10)+parseInt(u.marginBottom,10),c}function N(h,c){const u=c.parentNode;u&&u.replaceChild(h,c)}function w(h){return h&&h.parentNode?h.parentNode.removeChild(h):null}function S(h){for(;h.lastChild;)h.removeChild(h.lastChild)}function v(h,c){const u=h.childNodes;for(let s=0;;++s){const f=u[s],i=c[s];if(!f&&!i)break;if(f!==i){if(!f){h.appendChild(i);continue}if(!i){h.removeChild(f),--s;continue}h.insertBefore(i,f)}}}},4720:(Vt,gt,r)=>{"use strict";function _(N){return Math.pow(N,3)}function g(N){return 1-_(1-N)}function Q(N){return 3*N*N-2*N*N*N}function H(N){return N}r.d(gt,{GE:()=>H,Vv:()=>g,YQ:()=>_,rd:()=>Q})},2716:(Vt,gt,r)=>{"use strict";r.d(gt,{Vx:()=>Q,bN:()=>H,oL:()=>g});var _=r(9306);function g(j,N,w,S,v){if(S&&S!==j&&(w=w.bind(S)),v){const c=w;w=function(){j.removeEventListener(N,w),c.apply(this,arguments)}}const h={target:j,type:N,listener:w};return j.addEventListener(N,w),h}function Q(j,N,w,S){return g(j,N,w,S,!0)}function H(j){j&&j.target&&(j.target.removeEventListener(j.type,j.listener),(0,_.Z)(j))}},3615:(Vt,gt,r)=>{"use strict";r.d(gt,{ZP:()=>H});const H=class _{constructor(N){this.type=N,this.target=null}preventDefault(){this.defaultPrevented=!0}stopPropagation(){this.propagationStopped=!0}}},3044:(Vt,gt,r)=>{"use strict";r.d(gt,{Z:()=>_});const _={CHANGE:"change",ERROR:"error",BLUR:"blur",CLEAR:"clear",CONTEXTMENU:"contextmenu",CLICK:"click",DBLCLICK:"dblclick",DRAGENTER:"dragenter",DRAGOVER:"dragover",DROP:"drop",FOCUS:"focus",KEYDOWN:"keydown",KEYPRESS:"keypress",LOAD:"load",RESIZE:"resize",TOUCHMOVE:"touchmove",WHEEL:"wheel"}},1398:(Vt,gt,r)=>{"use strict";r.d(gt,{Z:()=>N});var _=r(6450),g=r(3615),Q=r(1334),H=r(9306);const N=class j extends _.Z{constructor(S){super(),this.eventTarget_=S,this.pendingRemovals_=null,this.dispatching_=null,this.listeners_=null}addEventListener(S,v){if(!S||!v)return;const h=this.listeners_||(this.listeners_={}),c=h[S]||(h[S]=[]);c.includes(v)||c.push(v)}dispatchEvent(S){const v="string"==typeof S,h=v?S:S.type,c=this.listeners_&&this.listeners_[h];if(!c)return;const u=v?new g.ZP(S):S;u.target||(u.target=this.eventTarget_||this);const s=this.dispatching_||(this.dispatching_={}),f=this.pendingRemovals_||(this.pendingRemovals_={});let i;h in s||(s[h]=0,f[h]=0),++s[h];for(let l=0,m=c.length;l0)}removeEventListener(S,v){const h=this.listeners_&&this.listeners_[S];if(h){const c=h.indexOf(v);-1!==c&&(this.pendingRemovals_&&S in this.pendingRemovals_?(h[c]=Q.Zn,++this.pendingRemovals_[S]):(h.splice(c,1),0===h.length&&delete this.listeners_[S]))}}}},7963:(Vt,gt,r)=>{"use strict";r.d(gt,{$6:()=>H,Bx:()=>v,QL:()=>x,TN:()=>P,Xp:()=>D,aj:()=>N,rM:()=>l,v8:()=>c,vY:()=>e,yZ:()=>S});var _=r(1334),g=r(5063),Q=r(992);function H(C){const O=arguments;return function(X){let $=!0;for(let dt=0,B=O.length;dt{"use strict";r.d(gt,{Cf:()=>xe,Cr:()=>G,EO:()=>ae,Ed:()=>q,GN:()=>m,H6:()=>$,H9:()=>Qt,HK:()=>i,I7:()=>_e,MV:()=>Ze,Ne:()=>Ce,T9:()=>s,Wj:()=>U,Xv:()=>Tt,YN:()=>f,b8:()=>S,bg:()=>dt,d9:()=>N,dY:()=>K,dz:()=>Lt,f3:()=>j,fS:()=>P,g0:()=>p,hC:()=>B,hI:()=>Q,iW:()=>x,jE:()=>h,kK:()=>Ht,l7:()=>T,lJ:()=>u,p8:()=>R,pX:()=>c,qP:()=>C,qf:()=>w,qg:()=>L,r4:()=>v,rL:()=>_t,w$:()=>k,xb:()=>$t});var _=r(8326),g=r(992);function Q(xt){const Nt=[1/0,1/0,-1/0,-1/0];for(let Bt=0,ie=xt.length;Btxt[2]&&(Kt|=_.Z.RIGHT),Dtxt[3]&&(Kt|=_.Z.ABOVE),Kt===_.Z.UNKNOWN&&(Kt=_.Z.INTERSECTING),Kt}function u(){return[1/0,1/0,-1/0,-1/0]}function s(xt,Nt,Bt,ie,Te){return Te?(Te[0]=xt,Te[1]=Nt,Te[2]=Bt,Te[3]=ie,Te):[xt,Nt,Bt,ie]}function f(xt){return s(1/0,1/0,-1/0,-1/0,xt)}function i(xt,Nt){const Bt=xt[0],ie=xt[1];return s(Bt,ie,Bt,ie,Nt)}function m(xt,Nt,Bt,ie,Te){return C(f(Te),xt,Nt,Bt,ie)}function P(xt,Nt){return xt[0]==Nt[0]&&xt[2]==Nt[2]&&xt[1]==Nt[1]&&xt[3]==Nt[3]}function x(xt,Nt,Bt){return Math.abs(xt[0]-Nt[0])xt[2]&&(xt[2]=Nt[2]),Nt[1]xt[3]&&(xt[3]=Nt[3]),xt}function U(xt,Nt){Nt[0]xt[2]&&(xt[2]=Nt[0]),Nt[1]xt[3]&&(xt[3]=Nt[1])}function C(xt,Nt,Bt,ie,Te){for(;BtNt[0]?xt[0]:Nt[0],ie[1]=xt[1]>Nt[1]?xt[1]:Nt[1],ie[2]=xt[2]=Nt[0]&&xt[1]<=Nt[3]&&xt[3]>=Nt[1]}function $t(xt){return xt[2]=Mt&&Zt<=Kt),!ie&&!!(he&_.Z.RIGHT)&&!(Te&_.Z.RIGHT)&&(Et=ze-(Pe-Kt)*He,ie=Et>=Dt&&Et<=Yt),!ie&&!!(he&_.Z.BELOW)&&!(Te&_.Z.BELOW)&&(Zt=Pe-(ze-Dt)/He,ie=Zt>=Mt&&Zt<=Kt),!ie&&he&_.Z.LEFT&&!(Te&_.Z.LEFT)&&(Et=ze-(Pe-Mt)*He,ie=Et>=Dt&&Et<=Yt)}return ie}function Ce(xt,Nt,Bt,ie){let Te=[];if(ie>1){const Dt=xt[2]-xt[0],Kt=xt[3]-xt[1];for(let Yt=0;Yt=Bt[2])){const Te=Lt(Bt),Mt=Math.floor((ie[0]-Bt[0])/Te)*Te;xt[0]-=Mt,xt[2]-=Mt}return xt}function Ze(xt,Nt){if(Nt.canWrapX()){const Bt=Nt.getExtent();if(!isFinite(xt[0])||!isFinite(xt[2]))return[[Bt[0],xt[1],Bt[2],xt[3]]];xe(xt,Nt);const ie=Lt(Bt);if(Lt(xt)>ie)return[[Bt[0],xt[1],Bt[2],xt[3]]];if(xt[0]Bt[2])return[[xt[0],xt[1],Bt[2],xt[3]],[Bt[0],xt[1],xt[2]-ie,xt[3]]]}return[xt]}},8326:(Vt,gt,r)=>{"use strict";r.d(gt,{Z:()=>_});const _={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16}},75:(Vt,gt,r)=>{"use strict";r.d(gt,{Be:()=>H,ov:()=>Q});var _=r(1334);function Q(N,w,S,v,h,c,u){const s=new XMLHttpRequest;s.open("GET","function"==typeof N?N(S,v,h):N,!0),"arraybuffer"==w.getType()&&(s.responseType="arraybuffer"),s.withCredentials=false,s.onload=function(f){if(!s.status||s.status>=200&&s.status<300){const i=w.getType();let l;"json"==i||"text"==i?l=s.responseText:"xml"==i?(l=s.responseXML,l||(l=(new DOMParser).parseFromString(s.responseText,"application/xml"))):"arraybuffer"==i&&(l=s.response),l?c(w.readFeatures(l,{extent:S,featureProjection:h}),w.readProjection(l)):u()}else u()},s.onerror=u,s.send()}function H(N,w){return function(S,v,h,c,u){const s=this;Q(N,w,S,v,h,function(f,i){s.addFeatures(f),void 0!==c&&c(f)},u||_.Zn)}}},1122:(Vt,gt,r)=>{"use strict";r.d(gt,{ZP:()=>H,fI:()=>j});var _=r(513),g=r(9015);const H=class Q{constructor(){this.dataProjection=void 0,this.defaultFeatureProjection=void 0,this.supportedMediaTypes=null}getReadOptions(S,v){if(v){let h=v.dataProjection?(0,g.U2)(v.dataProjection):this.readProjection(S);v.extent&&h&&"tile-pixels"===h.getUnits()&&(h=(0,g.U2)(h),h.setWorldExtent(v.extent)),v={dataProjection:h,featureProjection:v.featureProjection}}return this.adaptOptions(v)}adaptOptions(S){return Object.assign({dataProjection:this.dataProjection,featureProjection:this.defaultFeatureProjection},S)}getType(){return(0,_.O3)()}readFeature(S,v){return(0,_.O3)()}readFeatures(S,v){return(0,_.O3)()}readGeometry(S,v){return(0,_.O3)()}readProjection(S){return(0,_.O3)()}writeFeature(S,v){return(0,_.O3)()}writeFeatures(S,v){return(0,_.O3)()}writeGeometry(S,v){return(0,_.O3)()}};function j(w,S,v){const h=v?(0,g.U2)(v.featureProjection):null,c=v?(0,g.U2)(v.dataProjection):null;let u;if(u=h&&c&&!(0,g.OP)(h,c)?(S?w.clone():w).transform(S?h:c,S?c:h):w,S&&v&&void 0!==v.decimals){const s=Math.pow(10,v.decimals),f=function(i){for(let l=0,m=i.length;l{"use strict";r.d(gt,{Z:()=>L});var _=r(3413),g=r(4505),Q=r(7680),H=r(23),j=r(7090),N=r(1537),w=r(4034),S=r(7026),v=r(7464),h=r(992),c=r(9015),u=r(9306),s=r(1122);function i(p,M){if(!p)return null;let R;switch(p.type){case"Point":R=function m(p){return new S.Z(p.coordinates)}(p);break;case"LineString":R=function e(p){return new H.Z(p.coordinates)}(p);break;case"Polygon":R=function U(p){return new v.ZP(p.coordinates)}(p);break;case"MultiPoint":R=function x(p){return new N.Z(p.coordinates)}(p);break;case"MultiLineString":R=function P(p){return new j.Z(p.coordinates)}(p);break;case"MultiPolygon":R=function T(p){return new w.Z(p.coordinates)}(p);break;case"GeometryCollection":R=function l(p,M){const R=p.geometries.map(function(K){return i(K,M)});return new g.Z(R)}(p);break;default:throw new Error("Unsupported GeoJSON type: "+p.type)}return(0,s.fI)(R,!1,M)}function D(p,M){const R=(p=(0,s.fI)(p,!0,M)).getType();let K;switch(R){case"Point":K=function B(p,M){return{type:"Point",coordinates:p.getCoordinates()}}(p);break;case"LineString":K=function O(p,M){return{type:"LineString",coordinates:p.getCoordinates()}}(p);break;case"Polygon":K=function k(p,M){let R;return M&&(R=M.rightHanded),{type:"Polygon",coordinates:p.getCoordinates(R)}}(p,M);break;case"MultiPoint":K=function $(p,M){return{type:"MultiPoint",coordinates:p.getCoordinates()}}(p);break;case"MultiLineString":K=function X(p,M){return{type:"MultiLineString",coordinates:p.getCoordinates()}}(p);break;case"MultiPolygon":K=function dt(p,M){let R;return M&&(R=M.rightHanded),{type:"MultiPolygon",coordinates:p.getCoordinates(R)}}(p,M);break;case"GeometryCollection":K=function C(p,M){delete(M=Object.assign({},M)).featureProjection;const R=p.getGeometriesArray().map(function(K){return D(K,M)});return{type:"GeometryCollection",geometries:R}}(p,M);break;case"Circle":K={type:"GeometryCollection",geometries:[]};break;default:throw new Error("Unsupported geometry type: "+R)}return K}const L=class f extends Q.Z{constructor(M){M=M||{},super(),this.dataProjection=(0,c.U2)(M.dataProjection?M.dataProjection:"EPSG:4326"),M.featureProjection&&(this.defaultFeatureProjection=(0,c.U2)(M.featureProjection)),this.geometryName_=M.geometryName,this.extractGeometryName_=M.extractGeometryName,this.supportedMediaTypes=["application/geo+json","application/vnd.geo+json"]}readFeatureFromObject(M,R){let K=null;K="Feature"===M.type?M:{type:"Feature",geometry:M,properties:null};const G=i(K.geometry,R),J=new _.Z;return this.geometryName_?J.setGeometryName(this.geometryName_):this.extractGeometryName_&&"geometry_name"in K!==void 0&&J.setGeometryName(K.geometry_name),J.setGeometry(G),"id"in K&&J.setId(K.id),K.properties&&J.setProperties(K.properties,!0),J}readFeaturesFromObject(M,R){let G=null;if("FeatureCollection"===M.type){G=[];const q=M.features;for(let ut=0,ht=q.length;ut{"use strict";r.d(gt,{Z:()=>j});var _=r(1122),g=r(513);function H(N){return"string"==typeof N?JSON.parse(N)||null:null!==N?N:null}const j=class Q extends _.ZP{constructor(){super()}getType(){return"json"}readFeature(w,S){return this.readFeatureFromObject(H(w),this.getReadOptions(w,S))}readFeatures(w,S){return this.readFeaturesFromObject(H(w),this.getReadOptions(w,S))}readFeatureFromObject(w,S){return(0,g.O3)()}readFeaturesFromObject(w,S){return(0,g.O3)()}readGeometry(w,S){return this.readGeometryFromObject(H(w),this.getReadOptions(w,S))}readGeometryFromObject(w,S){return(0,g.O3)()}readProjection(w){return this.readProjectionFromObject(H(w))}readProjectionFromObject(w){return(0,g.O3)()}writeFeature(w,S){return JSON.stringify(this.writeFeatureObject(w,S))}writeFeatureObject(w,S){return(0,g.O3)()}writeFeatures(w,S){return JSON.stringify(this.writeFeaturesObject(w,S))}writeFeaturesObject(w,S){return(0,g.O3)()}writeGeometry(w,S){return JSON.stringify(this.writeGeometryObject(w,S))}writeGeometryObject(w,S){return(0,g.O3)()}}},4007:(Vt,gt,r)=>{"use strict";r.d(gt,{ZP:()=>Or});var _=r(3413),g=r(694),Q=r(4505),H=r(5999),j=r(1501),N=r(23),w=r(7090),S=r(1537),v=r(4034),h=r(7026),c=r(7464),u=r(5253),s=r(1786),f=r(8185),i=r(1122),l=r(513),m=r(142),e=r(8809);const x=class P extends i.ZP{constructor(){super(),this.xmlSerializer_=(0,e.xc)()}getType(){return"xml"}readFeature(mt,Ct){if(!mt)return null;if("string"==typeof mt){const Rt=(0,e.Qc)(mt);return this.readFeatureFromDocument(Rt,Ct)}return(0,e.qk)(mt)?this.readFeatureFromDocument(mt,Ct):this.readFeatureFromNode(mt,Ct)}readFeatureFromDocument(mt,Ct){const Rt=this.readFeaturesFromDocument(mt,Ct);return Rt.length>0?Rt[0]:null}readFeatureFromNode(mt,Ct){return null}readFeatures(mt,Ct){if(!mt)return[];if("string"==typeof mt){const Rt=(0,e.Qc)(mt);return this.readFeaturesFromDocument(Rt,Ct)}return(0,e.qk)(mt)?this.readFeaturesFromDocument(mt,Ct):this.readFeaturesFromNode(mt,Ct)}readFeaturesFromDocument(mt,Ct){const Rt=[];for(let jt=mt.firstChild;jt;jt=jt.nextSibling)jt.nodeType==Node.ELEMENT_NODE&&(0,m.l7)(Rt,this.readFeaturesFromNode(jt,Ct));return Rt}readFeaturesFromNode(mt,Ct){return(0,l.O3)()}readGeometry(mt,Ct){if(!mt)return null;if("string"==typeof mt){const Rt=(0,e.Qc)(mt);return this.readGeometryFromDocument(Rt,Ct)}return(0,e.qk)(mt)?this.readGeometryFromDocument(mt,Ct):this.readGeometryFromNode(mt,Ct)}readGeometryFromDocument(mt,Ct){return null}readGeometryFromNode(mt,Ct){return null}readProjection(mt){if(!mt)return null;if("string"==typeof mt){const Ct=(0,e.Qc)(mt);return this.readProjectionFromDocument(Ct)}return(0,e.qk)(mt)?this.readProjectionFromDocument(mt):this.readProjectionFromNode(mt)}readProjectionFromDocument(mt){return this.dataProjection}readProjectionFromNode(mt){return this.dataProjection}writeFeature(mt,Ct){const Rt=this.writeFeatureNode(mt,Ct);return this.xmlSerializer_.serializeToString(Rt)}writeFeatureNode(mt,Ct){return null}writeFeatures(mt,Ct){const Rt=this.writeFeaturesNode(mt,Ct);return this.xmlSerializer_.serializeToString(Rt)}writeFeaturesNode(mt,Ct){return null}writeGeometry(mt,Ct){const Rt=this.writeGeometryNode(mt,Ct);return this.xmlSerializer_.serializeToString(Rt)}writeGeometryNode(mt,Ct){return null}};var T=r(866),U=r(992),D=r(9015),C=r(52),O=r(4331);const X=["http://www.google.com/kml/ext/2.2"],$=[null,"http://earth.google.com/kml/2.0","http://earth.google.com/kml/2.1","http://earth.google.com/kml/2.2","http://www.opengis.net/kml/2.2"],B={fraction:"fraction",pixels:"pixels",insetPixels:"pixels"},k=(0,e.C5)($,{ExtendedData:Di,Region:Ri,MultiGeometry:(0,e.Pr)(Ft,"geometry"),LineString:(0,e.Pr)(rt,"geometry"),LinearRing:(0,e.Pr)(St,"geometry"),Point:(0,e.Pr)(se,"geometry"),Polygon:(0,e.Pr)(Se,"geometry"),Style:(0,e.Pr)(ke),StyleMap:function Wi(qt,mt){const Ct=st.call(this,qt,mt);if(!Ct)return;const Rt=mt[mt.length-1];Array.isArray(Ct)?Rt.Style=Ct:"string"==typeof Ct?Rt.styleUrl=Ct:(0,U.h)(!1,38)},address:(0,e.Pr)(C.s2),description:(0,e.Pr)(C.s2),name:(0,e.Pr)(C.s2),open:(0,e.Pr)(C.ud),phoneNumber:(0,e.Pr)(C.s2),styleUrl:(0,e.Pr)(Zt),visibility:(0,e.Pr)(C.ud)},(0,e.C5)(X,{MultiTrack:(0,e.Pr)(function Qe(qt,mt){const Ct=(0,e.O)([],oi,qt,mt);if(Ct)return new w.Z(Ct)},"geometry"),Track:(0,e.Pr)(Je,"geometry")})),L=(0,e.C5)($,{ExtendedData:Di,Region:Ri,Link:function Mr(qt,mt){(0,e.T3)(p,qt,mt)},address:(0,e.Pr)(C.s2),description:(0,e.Pr)(C.s2),name:(0,e.Pr)(C.s2),open:(0,e.Pr)(C.ud),phoneNumber:(0,e.Pr)(C.s2),visibility:(0,e.Pr)(C.ud)}),p=(0,e.C5)($,{href:(0,e.Pr)(He)}),M=(0,e.C5)($,{LatLonAltBox:function yi(qt,mt){const Ct=(0,e.O)({},Ii,qt,mt);if(!Ct)return;const Rt=mt[mt.length-1],jt=[parseFloat(Ct.west),parseFloat(Ct.south),parseFloat(Ct.east),parseFloat(Ct.north)];Rt.extent=jt,Rt.altitudeMode=Ct.altitudeMode,Rt.minAltitude=parseFloat(Ct.minAltitude),Rt.maxAltitude=parseFloat(Ct.maxAltitude)},Lod:function Ui(qt,mt){const Ct=(0,e.O)({},hn,qt,mt);if(!Ct)return;const Rt=mt[mt.length-1];Rt.minLodPixels=parseFloat(Ct.minLodPixels),Rt.maxLodPixels=parseFloat(Ct.maxLodPixels),Rt.minFadeExtent=parseFloat(Ct.minFadeExtent),Rt.maxFadeExtent=parseFloat(Ct.maxFadeExtent)}}),R=(0,e.C5)($,["Document","Placemark"]),K=(0,e.C5)($,{Document:(0,e.A4)(function Tr(qt,mt,Ct){(0,e.ZL)({node:qt},Fn,Mn,mt,Ct,void 0,this)}),Placemark:(0,e.A4)(Ms)});let G,ut,ht,_t,Tt,Lt,ae,Ce,Mt,J=null,Ht=null,Qt=null,xe=null,xt=null,Bt=null;function Te(qt){return 32/Math.min(qt[0],qt[1])}function Dt(qt){return qt}function ye(qt,mt,Ct){return Array.isArray(qt)?qt:"string"==typeof qt?ye(Ct[qt],mt,Ct):mt}function Pe(qt){const mt=(0,e.Ve)(qt,!1),Ct=/^\s*#?\s*([0-9A-Fa-f]{8})\s*$/.exec(mt);if(Ct){const Rt=Ct[1];return[parseInt(Rt.substr(6,2),16),parseInt(Rt.substr(4,2),16),parseInt(Rt.substr(2,2),16),parseInt(Rt.substr(0,2),16)/255]}}function ze(qt){let mt=(0,e.Ve)(qt,!1);const Ct=[];mt=mt.replace(/\s*,\s*/g,",");const Rt=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?),([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)(?:\s+|,|$)(?:([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)(?:\s+|$))?\s*/i;let jt;for(;jt=Rt.exec(mt);){const ce=parseFloat(jt[1]),de=parseFloat(jt[2]),Re=jt[3]?parseFloat(jt[3]):0;Ct.push(ce,de,Re),mt=mt.substr(jt[0].length)}if(""===mt)return Ct}function He(qt){const mt=(0,e.Ve)(qt,!1).trim();let Ct=qt.baseURI;return(!Ct||"about:blank"==Ct)&&(Ct=window.location.href),Ct?new URL(mt,Ct).href:mt}function Zt(qt){const mt=(0,e.Ve)(qt,!1).trim().replace(/^(?!.*#)/,"#");let Ct=qt.baseURI;return(!Ct||"about:blank"==Ct)&&(Ct=window.location.href),Ct?new URL(mt,Ct).href:mt}function y(qt){return(0,C.fy)(qt)}const z=(0,e.C5)($,{Pair:function Yn(qt,mt){const Ct=(0,e.O)({},Li,qt,mt,this);if(!Ct)return;const Rt=Ct.key;if(Rt&&"normal"==Rt){const jt=Ct.styleUrl;jt&&(mt[mt.length-1]=jt);const ce=Ct.Style;ce&&(mt[mt.length-1]=ce)}}});function st(qt,mt){return(0,e.O)(void 0,z,qt,mt,this)}const it=(0,e.C5)($,{Icon:(0,e.Pr)(function _i(qt,mt){return(0,e.O)({},ri,qt,mt)||null}),color:(0,e.Pr)(Pe),heading:(0,e.Pr)(C.fy),hotSpot:(0,e.Pr)(function Et(qt){const mt=qt.getAttribute("xunits"),Ct=qt.getAttribute("yunits");let Rt;return Rt="insetPixels"!==mt?"insetPixels"!==Ct?"bottom-left":"top-left":"insetPixels"!==Ct?"bottom-right":"top-right",{x:parseFloat(qt.getAttribute("x")),xunits:B[mt],y:parseFloat(qt.getAttribute("y")),yunits:B[Ct],origin:Rt}}),scale:(0,e.Pr)(y)}),Pt=(0,e.C5)($,{color:(0,e.Pr)(Pe),scale:(0,e.Pr)(y)}),zt=(0,e.C5)($,{color:(0,e.Pr)(Pe),width:(0,e.Pr)(C.fy)}),re=(0,e.C5)($,{color:(0,e.Pr)(Pe),fill:(0,e.Pr)(C.ud),outline:(0,e.Pr)(C.ud)}),ge=(0,e.C5)($,{coordinates:(0,e.z)(ze)});function oe(qt,mt){return(0,e.O)(null,ge,qt,mt)}const oi=(0,e.C5)(X,{Track:(0,e.Ei)(Je)}),$e=(0,e.C5)($,{when:function Gi(qt,mt){const Rt=mt[mt.length-1].whens,jt=(0,e.Ve)(qt,!1),ce=Date.parse(jt);Rt.push(isNaN(ce)?0:ce)}},(0,e.C5)(X,{coord:function Xe(qt,mt){const Rt=mt[mt.length-1].coordinates,jt=(0,e.Ve)(qt,!1),de=/^\s*([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s+([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s+([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s*$/i.exec(jt);if(de){const Re=parseFloat(de[1]),De=parseFloat(de[2]),Be=parseFloat(de[3]);Rt.push([Re,De,Be])}else Rt.push([])}}));function Je(qt,mt){const Ct=(0,e.O)({coordinates:[],whens:[]},$e,qt,mt);if(!Ct)return;const Rt=[],jt=Ct.coordinates,ce=Ct.whens;for(let de=0,Re=Math.min(jt.length,ce.length);de0&&mt[mt.length-1].push(...Ct)},outerBoundaryIs:function fn(qt,mt){const Ct=(0,e.O)(void 0,ji,qt,mt);Ct&&(mt[mt.length-1][0]=Ct)}});function Se(qt,mt){const Ct=(0,e.O)({},ot,qt,mt),Rt=(0,e.O)([null],fe,qt,mt);if(Rt&&Rt[0]){const jt=Rt[0],ce=[jt.length];for(let Re=1,De=Rt.length;Re0;let de;const Re=jt.href;Re?de=Re:ce&&(de=Lt);let De,Be,ei,li="bottom-left";const fi=Ct.hotSpot;let gi;fi?(De=[fi.x,fi.y],Be=fi.xunits,ei=fi.yunits,li=fi.origin):/^https?:\/\/maps\.(?:google|gstatic)\.com\//.test(de)&&(de.includes("pushpin")?(De=ut,Be=ht,ei=_t):de.includes("arrow-reverse")?(De=[54,42],Be=ht,ei=_t):de.includes("paddle")&&(De=[32,1],Be=ht,ei=_t));const Ci=jt.x,wi=jt.y;let Ti;void 0!==Ci&&void 0!==wi&&(gi=[Ci,wi]);const xi=jt.w,Zi=jt.h;let bi;void 0!==xi&&void 0!==Zi&&(Ti=[xi,Zi]);const Bi=Ct.heading;void 0!==Bi&&(bi=(0,O.Yr)(Bi));const rn=Ct.color;if(ce){de==Lt&&(Ti=Tt);const Yi=new H.Z({anchor:De,anchorOrigin:li,anchorXUnits:Be,anchorYUnits:ei,crossOrigin:this.crossOrigin_,offset:gi,offsetOrigin:"bottom-left",rotation:bi,scale:Ct.scale,size:Ti,src:this.iconUrlFunction_(de),color:rn}),sr=Yi.getScaleArray()[0],Zn=Yi.getSize();if(null===Zn){const Bn=Yi.getImageState();if(Bn===j.Z.IDLE||Bn===j.Z.LOADING){const Rs=function(){const rr=Yi.getImageState();if(rr!==j.Z.IDLE&&rr!==j.Z.LOADING){const is=Yi.getSize();if(is&&2==is.length){const or=Te(is);Yi.setScale(sr*or)}Yi.unlistenImageChange(Rs)}};Yi.listenImageChange(Rs),Bn===j.Z.IDLE&&Yi.load()}}else if(2==Zn.length){const Bn=Te(Zn);Yi.setScale(sr*Bn)}Rt.imageStyle=Yi}else Rt.imageStyle=ae},LabelStyle:function kt(qt,mt){const Ct=(0,e.O)({},Pt,qt,mt);if(!Ct)return;const Rt=mt[mt.length-1],jt=new f.Z({fill:new g.Z({color:"color"in Ct?Ct.color:G}),scale:Ct.scale});Rt.textStyle=jt},LineStyle:function ee(qt,mt){const Ct=(0,e.O)({},zt,qt,mt);if(!Ct)return;const Rt=mt[mt.length-1],jt=new u.Z({color:"color"in Ct?Ct.color:G,width:"width"in Ct?Ct.width:1});Rt.strokeStyle=jt},PolyStyle:function we(qt,mt){const Ct=(0,e.O)({},re,qt,mt);if(!Ct)return;const Rt=mt[mt.length-1],jt=new g.Z({color:"color"in Ct?Ct.color:G});Rt.fillStyle=jt;const ce=Ct.fill;void 0!==ce&&(Rt.fill=ce);const de=Ct.outline;void 0!==de&&(Rt.outline=de)}});function ke(qt,mt){const Ct=(0,e.O)({},Le,qt,mt,this);if(!Ct)return null;let Rt="fillStyle"in Ct?Ct.fillStyle:J;const jt=Ct.fill;let ce;void 0!==jt&&!jt&&(Rt=null),"imageStyle"in Ct?Ct.imageStyle!=ae&&(ce=Ct.imageStyle):ce=Ht;const de="textStyle"in Ct?Ct.textStyle:xe,Re="strokeStyle"in Ct?Ct.strokeStyle:Qt,De=Ct.outline;return void 0===De||De?[new s.ZP({fill:Rt,image:ce,stroke:Re,text:de,zIndex:void 0})]:[new s.ZP({geometry:function(Be){const ei=Be.getGeometry(),li=ei.getType();return"GeometryCollection"===li?new Q.Z(ei.getGeometriesArrayRecursive().filter(function(gi){const Ci=gi.getType();return"Polygon"!==Ci&&"MultiPolygon"!==Ci})):"Polygon"!==li&&"MultiPolygon"!==li?ei:void 0},fill:Rt,image:ce,stroke:Re,text:de,zIndex:void 0}),new s.ZP({geometry:function(Be){const ei=Be.getGeometry(),li=ei.getType();return"GeometryCollection"===li?new Q.Z(ei.getGeometriesArrayRecursive().filter(function(gi){const Ci=gi.getType();return"Polygon"===Ci||"MultiPolygon"===Ci})):"Polygon"===li||"MultiPolygon"===li?ei:void 0},fill:Rt,stroke:null,zIndex:void 0})]}function Ve(qt,mt){const Ct=mt.length,Rt=new Array(mt.length),jt=new Array(mt.length),ce=new Array(mt.length);let de,Re,De;de=!1,Re=!1,De=!1;for(let Be=0;Be0){const gi=(0,e.RA)(jt,de);(0,e.ZL)(Rt,Cs,tr,[{names:de,values:gi}],Ct)}const li=Ct[0];let fi=mt.getGeometry();fi&&(fi=(0,i.fI)(fi,!0,li)),(0,e.ZL)(Rt,Cs,cn,[fi],Ct)}const er=(0,e.C5)($,["extrude","tessellate","altitudeMode","coordinates"]),Ts=(0,e.C5)($,{extrude:(0,e.A4)(C.Vi),tessellate:(0,e.A4)(C.Vi),altitudeMode:(0,e.A4)(C.bZ),coordinates:(0,e.A4)(function Hn(qt,mt,Ct){const Rt=Ct[Ct.length-1],jt=Rt.layout,ce=Rt.stride;let de;"XY"==jt||"XYM"==jt?de=2:"XYZ"==jt||"XYZM"==jt?de=3:(0,U.h)(!1,34);const Re=mt.length;let De="";if(Re>0){De+=mt[0];for(let Be=1;Be0;else{const fi=li.getType();Re="Point"===fi||"MultiPoint"===fi}}Re&&(De=ce.get("name"),Re=Re&&!!De,Re&&/&[^&]+;/.test(De)&&(Mt||(Mt=document.createElement("textarea")),Mt.innerHTML=De,De=Mt.value));let ei=Ct;if(qt?ei=qt:mt&&(ei=ye(mt,Ct,Rt)),Re){const li=function Yt(qt,mt){const Ct=[0,0];let Rt="start";const jt=qt.getImage();if(jt){const Re=jt.getSize();if(Re&&2==Re.length){const De=jt.getScaleArray(),Be=jt.getAnchor();Ct[0]=De[0]*(Re[0]-Be[0]),Ct[1]=De[1]*(Re[1]/2-Be[1]),Rt="left"}}let ce=qt.getText();return ce?(ce=ce.clone(),ce.setFont(ce.getFont()||xe.getFont()),ce.setScale(ce.getScale()||xe.getScale()),ce.setFill(ce.getFill()||xe.getFill()),ce.setStroke(ce.getStroke()||Ce)):ce=xe.clone(),ce.setText(mt),ce.setOffsetX(Ct[0]),ce.setOffsetY(Ct[1]),ce.setTextAlign(Rt),new s.ZP({image:jt,text:ce})}(ei[0],De);return Be.length>0?(li.setGeometry(new Q.Z(Be)),[li,new s.ZP({geometry:ei[0].getGeometry(),image:null,fill:ei[0].getFill(),stroke:ei[0].getStroke(),text:null})].concat(ei.slice(1))):li}return ei}}(Rt.Style,Rt.styleUrl,this.defaultStyle_,this.sharedStyles_,this.showPointNames_);jt.setStyle(ei)}return delete Rt.Style,jt.setProperties(Rt,!0),jt}readSharedStyle_(mt,Ct){const Rt=mt.getAttribute("id");if(null!==Rt){const jt=ke.call(this,mt,Ct);if(jt){let ce,de=mt.baseURI;(!de||"about:blank"==de)&&(de=window.location.href),ce=de?new URL("#"+Rt,de).href:"#"+Rt,this.sharedStyles_[ce]=jt}}}readSharedStyleMap_(mt,Ct){const Rt=mt.getAttribute("id");if(null===Rt)return;const jt=st.call(this,mt,Ct);if(!jt)return;let ce,de=mt.baseURI;(!de||"about:blank"==de)&&(de=window.location.href),ce=de?new URL("#"+Rt,de).href:"#"+Rt,this.sharedStyles_[ce]=jt}readFeatureFromNode(mt,Ct){return $.includes(mt.namespaceURI)&&this.readPlacemark_(mt,[this.getReadOptions(mt,Ct)])||null}readFeaturesFromNode(mt,Ct){if(!$.includes(mt.namespaceURI))return[];let Rt;const jt=mt.localName;if("Document"==jt||"Folder"==jt)return Rt=this.readDocumentOrFolder_(mt,[this.getReadOptions(mt,Ct)]),Rt||[];if("Placemark"==jt){const ce=this.readPlacemark_(mt,[this.getReadOptions(mt,Ct)]);return ce?[ce]:[]}if("kml"==jt){Rt=[];for(let ce=mt.firstElementChild;ce;ce=ce.nextElementSibling){const de=this.readFeaturesFromNode(ce,Ct);de&&(0,m.l7)(Rt,de)}return Rt}return[]}readName(mt){if(mt){if("string"==typeof mt){const Ct=(0,e.Qc)(mt);return this.readNameFromDocument(Ct)}return(0,e.qk)(mt)?this.readNameFromDocument(mt):this.readNameFromNode(mt)}}readNameFromDocument(mt){for(let Ct=mt.firstChild;Ct;Ct=Ct.nextSibling)if(Ct.nodeType==Node.ELEMENT_NODE){const Rt=this.readNameFromNode(Ct);if(Rt)return Rt}}readNameFromNode(mt){for(let Ct=mt.firstElementChild;Ct;Ct=Ct.nextElementSibling)if($.includes(Ct.namespaceURI)&&"name"==Ct.localName)return(0,C.s2)(Ct);for(let Ct=mt.firstElementChild;Ct;Ct=Ct.nextElementSibling){const Rt=Ct.localName;if($.includes(Ct.namespaceURI)&&("Document"==Rt||"Folder"==Rt||"Placemark"==Rt||"kml"==Rt)){const jt=this.readNameFromNode(Ct);if(jt)return jt}}}readNetworkLinks(mt){const Ct=[];if("string"==typeof mt){const Rt=(0,e.Qc)(mt);(0,m.l7)(Ct,this.readNetworkLinksFromDocument(Rt))}else(0,e.qk)(mt)?(0,m.l7)(Ct,this.readNetworkLinksFromDocument(mt)):(0,m.l7)(Ct,this.readNetworkLinksFromNode(mt));return Ct}readNetworkLinksFromDocument(mt){const Ct=[];for(let Rt=mt.firstChild;Rt;Rt=Rt.nextSibling)Rt.nodeType==Node.ELEMENT_NODE&&(0,m.l7)(Ct,this.readNetworkLinksFromNode(Rt));return Ct}readNetworkLinksFromNode(mt){const Ct=[];for(let Rt=mt.firstElementChild;Rt;Rt=Rt.nextElementSibling)if($.includes(Rt.namespaceURI)&&"NetworkLink"==Rt.localName){const jt=(0,e.O)({},L,Rt,[]);Ct.push(jt)}for(let Rt=mt.firstElementChild;Rt;Rt=Rt.nextElementSibling){const jt=Rt.localName;$.includes(Rt.namespaceURI)&&("Document"==jt||"Folder"==jt||"kml"==jt)&&(0,m.l7)(Ct,this.readNetworkLinksFromNode(Rt))}return Ct}readRegion(mt){const Ct=[];if("string"==typeof mt){const Rt=(0,e.Qc)(mt);(0,m.l7)(Ct,this.readRegionFromDocument(Rt))}else(0,e.qk)(mt)?(0,m.l7)(Ct,this.readRegionFromDocument(mt)):(0,m.l7)(Ct,this.readRegionFromNode(mt));return Ct}readRegionFromDocument(mt){const Ct=[];for(let Rt=mt.firstChild;Rt;Rt=Rt.nextSibling)Rt.nodeType==Node.ELEMENT_NODE&&(0,m.l7)(Ct,this.readRegionFromNode(Rt));return Ct}readRegionFromNode(mt){const Ct=[];for(let Rt=mt.firstElementChild;Rt;Rt=Rt.nextElementSibling)if($.includes(Rt.namespaceURI)&&"Region"==Rt.localName){const jt=(0,e.O)({},M,Rt,[]);Ct.push(jt)}for(let Rt=mt.firstElementChild;Rt;Rt=Rt.nextElementSibling){const jt=Rt.localName;$.includes(Rt.namespaceURI)&&("Document"==jt||"Folder"==jt||"kml"==jt)&&(0,m.l7)(Ct,this.readRegionFromNode(Rt))}return Ct}writeFeaturesNode(mt,Ct){Ct=this.adaptOptions(Ct);const Rt=(0,e.c)($[4],"kml"),jt="http://www.w3.org/2000/xmlns/";Rt.setAttributeNS(jt,"xmlns:gx",X[0]),Rt.setAttributeNS(jt,"xmlns:xsi",e.fJ),Rt.setAttributeNS(e.fJ,"xsi:schemaLocation","http://www.opengis.net/kml/2.2 https://developers.google.com/kml/schema/kml22gx.xsd");const ce={node:Rt},de={};mt.length>1?de.Document=mt:1==mt.length&&(de.Placemark=mt[0]);const Re=R[Rt.namespaceURI],De=(0,e.RA)(de,Re);return(0,e.ZL)(ce,K,e.hg,De,[Ct],Re,this),Rt}}},6114:(Vt,gt,r)=>{"use strict";r.d(gt,{Z:()=>x});var _=r(1122),g=r(23),Q=r(7090),H=r(1537),j=r(4034),N=r(6697),w=r(7026),S=r(7464),v=r(2632),h=r(2929),c=r(992),u=r(9015),s=r(5784);function i(T,U,D){if(3===T){const C={keys:[],values:[],features:[]},O=D.readVarint()+D.pos;D.readFields(l,C,O),C.length=C.features.length,C.length&&(U[C.name]=C)}}function l(T,U,D){if(15===T)U.version=D.readVarint();else if(1===T)U.name=D.readString();else if(5===T)U.extent=D.readVarint();else if(2===T)U.features.push(D.pos);else if(3===T)U.keys.push(D.readString());else if(4===T){let C=null;const O=D.readVarint()+D.pos;for(;D.pos>3)?D.readString():2===T?D.readFloat():3===T?D.readDouble():4===T?D.readVarint64():5===T?D.readVarint():6===T?D.readSVarint():7===T?D.readBoolean():null;U.values.push(C)}}function m(T,U,D){if(1==T)U.id=D.readVarint();else if(2==T){const C=D.readVarint()+D.pos;for(;D.pos>3}dt--,1===$||2===$?(B+=U.readSVarint(),k+=U.readSVarint(),1===$&&L>p&&(O.push(L),p=L),C.push(B,k),L+=2):7===$?L>p&&(C.push(C[p],C[p+1]),L+=2):(0,c.h)(!1,59)}L>p&&(O.push(L),p=L)}createFeature_(U,D,C){const O=D.type;if(0===O)return null;let X;const $=D.properties;let dt;this.idProperty_?(dt=$[this.idProperty_],delete $[this.idProperty_]):dt=D.id,$[this.layerName_]=D.layer.name;const B=[],k=[];this.readRawGeometry_(U,D,B,k);const L=function P(T,U){let D;return 1===T?D=1===U?"Point":"MultiPoint":2===T?D=1===U?"LineString":"MultiLineString":3===T&&(D="Polygon"),D}(O,k.length);if(this.featureClass_===h.ZP)X=new this.featureClass_(L,B,k,$,dt),X.transform(C.dataProjection);else{let p;if("Polygon"==L){const K=(0,s.Q3)(B,k);p=K.length>1?new j.Z(B,"XY",K):new S.ZP(B,"XY",k)}else p="Point"===L?new w.Z(B,"XY"):"LineString"===L?new g.Z(B,"XY"):"MultiPoint"===L?new H.Z(B,"XY"):"MultiLineString"===L?new Q.Z(B,"XY",k):null;X=new(0,this.featureClass_),this.geometryName_&&X.setGeometryName(this.geometryName_);const R=(0,_.fI)(p,!1,C);X.setGeometry(R),void 0!==dt&&X.setId(dt),X.setProperties($,!0)}return X}getType(){return"arraybuffer"}readFeatures(U,D){const C=this.layers_;D=this.adaptOptions(D);const O=(0,u.U2)(D.dataProjection);O.setWorldExtent(D.extent),D.dataProjection=O;const X=new N(U),$=X.readFields(i,{}),dt=[];for(const B in $){if(C&&!C.includes(B))continue;const k=$[B];O.setExtent(k?[0,0,k.extent,k.extent]:null);for(let p=0,M=k.length;p{"use strict";r.d(gt,{$L:()=>w,Vi:()=>h,_E:()=>S,bZ:()=>i,ej:()=>N,f3:()=>s,fy:()=>j,s2:()=>v,ud:()=>g,v$:()=>Q,xO:()=>c});var _=r(8809);function g(l){return Q((0,_.Ve)(l,!1))}function Q(l){const m=/^\s*(true|1)|(false|0)\s*$/.exec(l);if(m)return void 0!==m[1]||!1}function j(l){return N((0,_.Ve)(l,!1))}function N(l){const m=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*$/i.exec(l);if(m)return parseFloat(m[1])}function w(l){return S((0,_.Ve)(l,!1))}function S(l){const m=/^\s*(\d+)\s*$/.exec(l);if(m)return parseInt(m[1],10)}function v(l){return(0,_.Ve)(l,!1).trim()}function h(l,m){i(l,m?"1":"0")}function c(l,m){l.appendChild((0,_.Me)().createCDATASection(m))}function s(l,m){const e=m.toPrecision();l.appendChild((0,_.Me)().createTextNode(e))}function i(l,m){l.appendChild((0,_.Me)().createTextNode(m))}},1334:(Vt,gt,r)=>{"use strict";r.d(gt,{Dv:()=>Q,Zn:()=>H,qe:()=>j,uX:()=>g});var _=r(142);function g(){return!0}function Q(){return!1}function H(){}function j(w){let v,h,c,S=!1;return function(){const u=Array.prototype.slice.call(arguments);return(!S||this!==c||!(0,_.fS)(u,h))&&(S=!0,c=this,h=u,v=w.apply(this,arguments)),v}}},4023:(Vt,gt,r)=>{"use strict";r.d(gt,{Z:()=>h});var _=r(4115),g=r(513),Q=r(7139),H=r(9543),j=r(9015),N=r(1334),w=r(3904);const S=(0,Q.Ue)(),h=class v extends _.Z{constructor(){super(),this.extent_=(0,H.lJ)(),this.extentRevision_=-1,this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=0,this.simplifyTransformedInternal=(0,N.qe)(function(u,s,f){if(!f)return this.getSimplifiedGeometry(s);const i=this.clone();return i.applyTransform(f),i.getSimplifiedGeometry(s)})}simplifyTransformed(u,s){return this.simplifyTransformedInternal(this.getRevision(),u,s)}clone(){return(0,g.O3)()}closestPointXY(u,s,f,i){return(0,g.O3)()}containsXY(u,s){const f=this.getClosestPoint([u,s]);return f[0]===u&&f[1]===s}getClosestPoint(u,s){return this.closestPointXY(u[0],u[1],s=s||[NaN,NaN],1/0),s}intersectsCoordinate(u){return this.containsXY(u[0],u[1])}computeExtent(u){return(0,g.O3)()}getExtent(u){if(this.extentRevision_!=this.getRevision()){const s=this.computeExtent(this.extent_);(isNaN(s[0])||isNaN(s[1]))&&(0,H.YN)(s),this.extentRevision_=this.getRevision()}return(0,H.EO)(this.extent_,u)}rotate(u,s){(0,g.O3)()}scale(u,s,f){(0,g.O3)()}simplify(u){return this.getSimplifiedGeometry(u*u)}getSimplifiedGeometry(u){return(0,g.O3)()}getType(){return(0,g.O3)()}applyTransform(u){(0,g.O3)()}intersectsExtent(u){return(0,g.O3)()}translate(u,s){(0,g.O3)()}transform(u,s){const f=(0,j.U2)(u),i="tile-pixels"==f.getUnits()?function(l,m,e){const P=f.getExtent(),x=f.getWorldExtent(),T=(0,H.Cr)(x)/(0,H.Cr)(P);return(0,Q.qC)(S,x[0],x[3],T,-T,0,0,0),(0,w.vT)(l,0,l.length,e,S,m),(0,j.Ck)(f,s)(l,m,e)}:(0,j.Ck)(f,s);return this.applyTransform(i),this}}},4505:(Vt,gt,r)=>{"use strict";r.d(gt,{Z:()=>w});var _=r(3044),g=r(4023),Q=r(9543),H=r(2716);class j extends g.Z{constructor(v){super(),this.geometries_=v||null,this.changeEventsKeys_=[],this.listenGeometriesChange_()}unlistenGeometriesChange_(){this.changeEventsKeys_.forEach(H.bN),this.changeEventsKeys_.length=0}listenGeometriesChange_(){if(this.geometries_)for(let v=0,h=this.geometries_.length;v{"use strict";r.d(gt,{Z:()=>s});var _=r(1790),g=r(4558),Q=r(9543),H=r(9216),j=r(1757),N=r(142),w=r(8665),S=r(4850),v=r(7170),h=r(4429),c=r(8575);class u extends _.ZP{constructor(i,l){super(),this.flatMidpoint_=null,this.flatMidpointRevision_=-1,this.maxDelta_=-1,this.maxDeltaRevision_=-1,void 0===l||Array.isArray(i[0])?this.setCoordinates(i,l):this.setFlatCoordinates(l,i)}appendCoordinate(i){this.flatCoordinates?(0,N.l7)(this.flatCoordinates,i):this.flatCoordinates=i.slice(),this.changed()}clone(){const i=new u(this.flatCoordinates.slice(),this.layout);return i.applyProperties(this),i}closestPointXY(i,l,m,e){return e<(0,Q.qf)(this.getExtent(),i,l)?e:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,g.Bv)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,g.H$)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!1,i,l,m,e))}forEachSegment(i){return(0,w.E)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,i)}getCoordinateAtM(i,l){return"XYM"!=this.layout&&"XYZM"!=this.layout?null:(0,v.iJ)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,i,l=void 0!==l&&l)}getCoordinates(){return(0,S.Ml)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getCoordinateAt(i,l){return(0,v.WW)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,i,l,this.stride)}getLength(){return(0,c.W)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getFlatMidpoint(){return this.flatMidpointRevision_!=this.getRevision()&&(this.flatMidpoint_=this.getCoordinateAt(.5,this.flatMidpoint_),this.flatMidpointRevision_=this.getRevision()),this.flatMidpoint_}getSimplifiedGeometryInternal(i){const l=[];return l.length=(0,j.dt)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,i,l,0),new u(l,"XY")}getType(){return"LineString"}intersectsExtent(i){return(0,h.Kz)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,i)}setCoordinates(i,l){this.setLayout(l,i,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,H.Sg)(this.flatCoordinates,0,i,this.stride),this.changed()}}const s=u},7090:(Vt,gt,r)=>{"use strict";r.d(gt,{Z:()=>u});var _=r(23),g=r(1790),Q=r(4558),H=r(9543),j=r(9216),N=r(1757),w=r(142),S=r(4850),v=r(7170),h=r(4429);class c extends g.ZP{constructor(f,i,l){if(super(),this.ends_=[],this.maxDelta_=-1,this.maxDeltaRevision_=-1,Array.isArray(f[0]))this.setCoordinates(f,i);else if(void 0!==i&&l)this.setFlatCoordinates(i,f),this.ends_=l;else{let m=this.getLayout();const e=f,P=[],x=[];for(let T=0,U=e.length;T{"use strict";r.d(gt,{Z:()=>v});var _=r(7026),g=r(1790),Q=r(9543),H=r(9216),j=r(142),N=r(4850),w=r(4331);class S extends g.ZP{constructor(c,u){super(),u&&!Array.isArray(c[0])?this.setFlatCoordinates(u,c):this.setCoordinates(c,u)}appendPoint(c){this.flatCoordinates?(0,j.l7)(this.flatCoordinates,c.getFlatCoordinates()):this.flatCoordinates=c.getFlatCoordinates().slice(),this.changed()}clone(){const c=new S(this.flatCoordinates.slice(),this.layout);return c.applyProperties(this),c}closestPointXY(c,u,s,f){if(f<(0,Q.qf)(this.getExtent(),c,u))return f;const i=this.flatCoordinates,l=this.stride;for(let m=0,e=i.length;m{"use strict";r.d(gt,{Z:()=>m});var _=r(1537),g=r(7464),Q=r(1790),H=r(4558),j=r(9543),N=r(9216),w=r(142),S=r(5577),v=r(4850),h=r(4429),c=r(5784),u=r(4793),s=r(2783),f=r(5101),i=r(1757);class l extends Q.ZP{constructor(P,x,T){if(super(),this.endss_=[],this.flatInteriorPointsRevision_=-1,this.flatInteriorPoints_=null,this.maxDelta_=-1,this.maxDeltaRevision_=-1,this.orientedRevision_=-1,this.orientedFlatCoordinates_=null,!T&&!Array.isArray(P[0])){let U=this.getLayout();const D=P,C=[],O=[];for(let X=0,$=D.length;X<$;++X){const dt=D[X];0===X&&(U=dt.getLayout());const B=C.length,k=dt.getEnds();for(let L=0,p=k.length;L{"use strict";r.d(gt,{Z:()=>N});var _=r(1790),g=r(9543),Q=r(9216),H=r(4331);class j extends _.ZP{constructor(S,v){super(),this.setCoordinates(S,v)}clone(){const S=new j(this.flatCoordinates.slice(),this.layout);return S.applyProperties(this),S}closestPointXY(S,v,h,c){const u=this.flatCoordinates,s=(0,H.bI)(S,v,u[0],u[1]);if(s{"use strict";r.d(gt,{ZP:()=>m,oJ:()=>P});var _=r(1790),g=r(4558),Q=r(9543),H=r(9216),j=r(1757),N=r(4850),w=r(4793);class S extends _.ZP{constructor(D,C){super(),this.maxDelta_=-1,this.maxDeltaRevision_=-1,void 0===C||Array.isArray(D[0])?this.setCoordinates(D,C):this.setFlatCoordinates(C,D)}clone(){return new S(this.flatCoordinates.slice(),this.layout)}closestPointXY(D,C,O,X){return X<(0,Q.qf)(this.getExtent(),D,C)?X:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,g.Bv)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,g.H$)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!0,D,C,O,X))}getArea(){return(0,w.QQ)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getCoordinates(){return(0,N.Ml)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getSimplifiedGeometryInternal(D){const C=[];return C.length=(0,j.dt)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,D,C,0),new S(C,"XY")}getType(){return"LinearRing"}intersectsExtent(D){return!1}setCoordinates(D,C){this.setLayout(C,D,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,H.Sg)(this.flatCoordinates,0,D,this.stride),this.changed()}}const v=S;var h=r(7026),c=r(142),u=r(5577),s=r(4429),f=r(5784),i=r(5101);class l extends _.ZP{constructor(D,C,O){super(),this.ends_=[],this.flatInteriorPointRevision_=-1,this.flatInteriorPoint_=null,this.maxDelta_=-1,this.maxDeltaRevision_=-1,this.orientedRevision_=-1,this.orientedFlatCoordinates_=null,void 0!==C&&O?(this.setFlatCoordinates(C,D),this.ends_=O):this.setCoordinates(D,C)}appendLinearRing(D){this.flatCoordinates?(0,c.l7)(this.flatCoordinates,D.getFlatCoordinates()):this.flatCoordinates=D.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()}clone(){const D=new l(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return D.applyProperties(this),D}closestPointXY(D,C,O,X){return X<(0,Q.qf)(this.getExtent(),D,C)?X:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,g.Af)(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,g.Xl)(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!0,D,C,O,X))}containsXY(D,C){return(0,i.wY)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,D,C)}getArea(){return(0,w.KP)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride)}getCoordinates(D){let C;return void 0!==D?(C=this.getOrientedFlatCoordinates().slice(),(0,f.zX)(C,0,this.ends_,this.stride,D)):C=this.flatCoordinates,(0,N.o1)(C,0,this.ends_,this.stride)}getEnds(){return this.ends_}getFlatInteriorPoint(){if(this.flatInteriorPointRevision_!=this.getRevision()){const D=(0,Q.qg)(this.getExtent());this.flatInteriorPoint_=(0,u.X)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,D,0),this.flatInteriorPointRevision_=this.getRevision()}return this.flatInteriorPoint_}getInteriorPoint(){return new h.Z(this.getFlatInteriorPoint(),"XYM")}getLinearRingCount(){return this.ends_.length}getLinearRing(D){return D<0||this.ends_.length<=D?null:new v(this.flatCoordinates.slice(0===D?0:this.ends_[D-1],this.ends_[D]),this.layout)}getLinearRings(){const D=this.layout,C=this.flatCoordinates,O=this.ends_,X=[];let $=0;for(let dt=0,B=O.length;dt{"use strict";r.d(gt,{Kr:()=>S,ZP:()=>v});var _=r(4023),g=r(513),Q=r(9543),H=r(3904);function w(h){let c;return"XY"==h?c=2:"XYZ"==h||"XYM"==h?c=3:"XYZM"==h&&(c=4),c}function S(h,c,u){const s=h.getFlatCoordinates();if(!s)return null;const f=h.getStride();return(0,H.vT)(s,0,s.length,f,c,u)}const v=class j extends _.Z{constructor(){super(),this.layout="XY",this.stride=2,this.flatCoordinates=null}computeExtent(c){return(0,Q.GN)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,c)}getCoordinates(){return(0,g.O3)()}getFirstCoordinate(){return this.flatCoordinates.slice(0,this.stride)}getFlatCoordinates(){return this.flatCoordinates}getLastCoordinate(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)}getLayout(){return this.layout}getSimplifiedGeometry(c){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),c<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&c<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;const u=this.getSimplifiedGeometryInternal(c);return u.getFlatCoordinates().length{"use strict";function _(H,j,N,w){let S=0,v=H[N-w],h=H[N-w+1];for(;jQ,KP:()=>g,QQ:()=>_})},2783:(Vt,gt,r)=>{"use strict";r.d(gt,{E:()=>g});var _=r(9543);function g(Q,H,j,N){const w=[];let S=(0,_.lJ)();for(let v=0,h=j.length;v{"use strict";r.d(gt,{Af:()=>H,Bv:()=>Q,H$:()=>N,Xl:()=>w,gI:()=>S,sD:()=>j});var _=r(4331);function g(v,h,c,u,s,f,i){const l=v[h],m=v[h+1],e=v[c]-l,P=v[c+1]-m;let x;if(0===e&&0===P)x=h;else{const T=((s-l)*e+(f-m)*P)/(e*e+P*P);if(T>1)x=c;else{if(T>0){for(let U=0;Us&&(s=e),f=l,i=m}return s}function H(v,h,c,u,s){for(let f=0,i=c.length;f{"use strict";r.d(gt,{TG:()=>Q,Zl:()=>j,uG:()=>g,wY:()=>H});var _=r(9543);function g(N,w,S,v,h){return!(0,_.H6)(h,function(u){return!Q(N,w,S,v,u[0],u[1])})}function Q(N,w,S,v,h,c){let u=0,s=N[S-v],f=N[S-v+1];for(;wc&&(i-s)*(c-f)-(h-s)*(l-f)>0&&u++:l<=c&&(i-s)*(c-f)-(h-s)*(l-f)<0&&u--,s=i,f=l}return 0!==u}function H(N,w,S,v,h,c){if(0===S.length||!Q(N,w,S[0],v,h,c))return!1;for(let u=1,s=S.length;u{"use strict";function _(j,N,w,S){for(let v=0,h=w.length;v_,QT:()=>H,Sg:()=>g,_5:()=>Q})},4850:(Vt,gt,r)=>{"use strict";function _(H,j,N,w,S){S=void 0!==S?S:[];let v=0;for(let h=j;h_,o1:()=>g,ug:()=>Q})},5577:(Vt,gt,r)=>{"use strict";r.d(gt,{U:()=>H,X:()=>Q});var _=r(142),g=r(5101);function Q(j,N,w,S,v,h,c){let u,s,f,i,l,m,e;const P=v[h+1],x=[];for(let D=0,C=w.length;DU&&(f=(i+l)/2,(0,g.wY)(j,N,w,S,f,P)&&(T=f,U=D)),i=l}return isNaN(T)&&(T=v[h]),c?(c.push(T,P,U),c):[T,P,U]}function H(j,N,w,S,v){let h=[];for(let c=0,u=w.length;c{"use strict";r.d(gt,{WW:()=>Q,dG:()=>j,iJ:()=>H});var _=r(142),g=r(4331);function Q(N,w,S,v,h,c,u){let s,f;const i=(S-w)/v;if(1===i)s=w;else if(2===i)s=w,f=h;else if(0!==i){let l=N[w],m=N[w+1],e=0;const P=[0];for(let U=w+v;U1?u:2,c=c||new Array(u);for(let l=0;l>1;h{"use strict";r.d(gt,{AW:()=>j,Kz:()=>H,ac:()=>w,mV:()=>N,oW:()=>S});var _=r(9543),g=r(8665),Q=r(5101);function H(v,h,c,u,s){const f=(0,_.qP)((0,_.lJ)(),v,h,c,u);return!!(0,_.kK)(s,f)&&(!!((0,_.r4)(s,f)||f[0]>=s[0]&&f[2]<=s[2]||f[1]>=s[1]&&f[3]<=s[3])||(0,g.E)(v,h,c,u,function(i,l){return(0,_.I7)(s,i,l)}))}function j(v,h,c,u,s){for(let f=0,i=c.length;f{"use strict";function _(Q,H,j,N){let w=Q[H],S=Q[H+1],v=0;for(let h=H+N;h_})},5784:(Vt,gt,r)=>{"use strict";function _(S,v,h,c){for(;v0}function Q(S,v,h,c,u){u=void 0!==u&&u;for(let s=0,f=h.length;sw,$v:()=>Q,Oj:()=>H,zX:()=>j,dL:()=>N})},8665:(Vt,gt,r)=>{"use strict";function _(g,Q,H,j,N){let w;for(Q+=j;Q_})},1757:(Vt,gt,r)=>{"use strict";r.d(gt,{Pp:()=>h,UJ:()=>H,Zh:()=>v,dt:()=>Q,uZ:()=>w});var _=r(4331);function Q(c,u,s,f,i,l,m){const e=(s-u)/f;if(e<3){for(;u0;){const U=x.pop(),D=x.pop();let C=0;const O=c[D],X=c[D+1],$=c[U],dt=c[U+1];for(let B=D+f;BC&&(T=B,C=p)}C>i&&(P[(T-u)/f]=1,D+f0&&X>C)&&(O<0&&$0&&$>O)?(x=U,T=D):(l[m++]=x,l[m++]=T,e=x,P=T,x=U,T=D)}return l[m++]=x,l[m++]=T,m}function v(c,u,s,f,i,l,m,e){for(let P=0,x=s.length;P{"use strict";function _(j,N,w,S,v,h){h=h||[];let c=0;for(let u=N;uH,U1:()=>g,bA:()=>Q,vT:()=>_})},5063:(Vt,gt,r)=>{"use strict";r.d(gt,{G$:()=>j,Id:()=>S,ME:()=>H,MP:()=>w,Tp:()=>v,V:()=>g,bM:()=>h,tK:()=>N});const _=typeof navigator<"u"&&typeof navigator.userAgent<"u"?navigator.userAgent.toLowerCase():"",g=_.includes("firefox"),H=_.includes("safari")&&!_.includes("chrom")&&(_.includes("version/15.4")||/cpu (os|iphone os) 15_4 like mac os x/.test(_)),j=_.includes("webkit")&&!_.includes("edge"),N=_.includes("macintosh"),w=typeof devicePixelRatio<"u"?devicePixelRatio:1,S=typeof WorkerGlobalScope<"u"&&typeof OffscreenCanvas<"u"&&self instanceof WorkerGlobalScope,v=typeof Image<"u"&&Image.prototype.decode,h=function(){let c=!1;try{const u=Object.defineProperty({},"passive",{get:function(){c=!0}});window.addEventListener("_",null,u),window.removeEventListener("_",null,u)}catch{}return c}()},2659:(Vt,gt,r)=>{"use strict";r.d(gt,{Z:()=>c});var _=r(3615),g=r(8437),Q=r(6450),H=r(7464);const N=class j extends Q.Z{constructor(s){super(),this.geometry_=null,this.element_=document.createElement("div"),this.element_.style.position="absolute",this.element_.style.pointerEvents="auto",this.element_.className="ol-box "+s,this.map_=null,this.startPixel_=null,this.endPixel_=null}disposeInternal(){this.setMap(null)}render_(){const s=this.startPixel_,f=this.endPixel_,i="px",l=this.element_.style;l.left=Math.min(s[0],f[0])+i,l.top=Math.min(s[1],f[1])+i,l.width=Math.abs(f[0]-s[0])+i,l.height=Math.abs(f[1]-s[1])+i}setMap(s){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);const f=this.element_.style;f.left="inherit",f.top="inherit",f.width="inherit",f.height="inherit"}this.map_=s,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)}setPixels(s,f){this.startPixel_=s,this.endPixel_=f,this.createOrUpdateGeometry(),this.render_()}createOrUpdateGeometry(){const s=this.startPixel_,f=this.endPixel_,l=[s,[s[0],f[1]],f,[f[0],s[1]]].map(this.map_.getCoordinateFromPixelInternal,this.map_);l[4]=l[0].slice(),this.geometry_?this.geometry_.setCoordinates([l]):this.geometry_=new H.ZP([l])}getGeometry(){return this.geometry_}};var w=r(7963);class v extends _.ZP{constructor(s,f,i){super(s),this.coordinate=f,this.mapBrowserEvent=i}}const c=class h extends g.Z{constructor(s){super(),this.box_=new N((s=s||{}).className||"ol-dragbox"),this.minArea_=void 0!==s.minArea?s.minArea:64,s.onBoxEnd&&(this.onBoxEnd=s.onBoxEnd),this.startPixel_=null,this.condition_=s.condition?s.condition:w.v8,this.boxEndCondition_=s.boxEndCondition?s.boxEndCondition:this.defaultBoxEndCondition}defaultBoxEndCondition(s,f,i){const l=i[0]-f[0],m=i[1]-f[1];return l*l+m*m>=this.minArea_}getGeometry(){return this.box_.getGeometry()}handleDragEvent(s){this.box_.setPixels(this.startPixel_,s.pixel),this.dispatchEvent(new v("boxdrag",s.coordinate,s))}handleUpEvent(s){this.box_.setMap(null);const f=this.boxEndCondition_(s,this.startPixel_,s.pixel);return f&&this.onBoxEnd(s),this.dispatchEvent(new v(f?"boxend":"boxcancel",s.coordinate,s)),!1}handleDownEvent(s){return!!this.condition_(s)&&(this.startPixel_=s.pixel,this.box_.setMap(s.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new v("boxstart",s.coordinate,s)),!0)}onBoxEnd(s){}}},3181:(Vt,gt,r)=>{"use strict";r.d(gt,{ZP:()=>w,Cv:()=>j,FW:()=>N});var _=r(4115);var Q=r(4720);function j(S,v,h){const c=S.getCenterInternal();c&&S.animateInternal({duration:void 0!==h?h:250,easing:Q.GE,center:S.getConstrainedCenter([c[0]+v[0],c[1]+v[1]])})}function N(S,v,h,c){const u=S.getZoom();if(void 0===u)return;const s=S.getConstrainedZoom(u+v),f=S.getResolutionForZoom(s);S.getAnimating()&&S.cancelAnimations(),S.animate({resolution:f,anchor:h,duration:void 0!==c?c:250,easing:Q.Vv})}const w=class H extends _.Z{constructor(v){super(),v&&v.handleEvent&&(this.handleEvent=v.handleEvent),this.map_=null,this.setActive(!0)}getActive(){return this.get("active")}getMap(){return this.map_}handleEvent(v){return!0}setActive(v){this.set("active",v)}setMap(v){this.map_=v}}},8437:(Vt,gt,r)=>{"use strict";r.d(gt,{S:()=>H,Z:()=>j});var _=r(3181),g=r(1590);function H(N){const w=N.length;let S=0,v=0;for(let h=0;h0}}else if(w.type==g.Z.POINTERDOWN){const v=this.handleDownEvent(w);this.handlingDownUpSequence=v,S=this.stopDown(v)}else w.type==g.Z.POINTERMOVE&&this.handleMoveEvent(w);return!S}handleMoveEvent(w){}handleUpEvent(w){return!1}stopDown(w){return w}updateTrackedPointers_(w){w.activePointers&&(this.targetPointers=w.activePointers)}}},1179:(Vt,gt,r)=>{"use strict";r.d(gt,{c:()=>K});var _=r(9573),g=r(3181),Q=r(1590);const j=class H extends g.ZP{constructor(J){super(),this.delta_=(J=J||{}).delta?J.delta:1,this.duration_=void 0!==J.duration?J.duration:250}handleEvent(J){let q=!1;if(J.type==Q.Z.DBLCLICK){const ut=J.originalEvent,_t=J.coordinate,Tt=ut.shiftKey?-this.delta_:this.delta_,Lt=J.map.getView();(0,g.FW)(Lt,Tt,_t,this.duration_),ut.preventDefault(),q=!0}return!q}};var N=r(8437),w=r(1334),S=r(7963),v=r(4720),h=r(5415);const u=class c extends N.Z{constructor(J){super({stopDown:w.Dv}),this.kinetic_=(J=J||{}).kinetic,this.lastCentroid=null,this.panning_=!1;const q=J.condition?J.condition:(0,S.$6)(S.rM,S.Xp);this.condition_=J.onFocusOnly?(0,S.$6)(S.yZ,q):q,this.noKinetic_=!1}handleDragEvent(J){const q=J.map;this.panning_||(this.panning_=!0,q.getView().beginInteraction());const ut=this.targetPointers,ht=q.getEventPixel((0,N.S)(ut));if(ut.length==this.lastPointersCount_){if(this.kinetic_&&this.kinetic_.update(ht[0],ht[1]),this.lastCentroid){const _t=[this.lastCentroid[0]-ht[0],ht[1]-this.lastCentroid[1]],Lt=J.map.getView();(0,h.bA)(_t,Lt.getResolution()),(0,h.U1)(_t,Lt.getRotation()),Lt.adjustCenterInternal(_t)}}else this.kinetic_&&this.kinetic_.begin();this.lastCentroid=ht,this.lastPointersCount_=ut.length,J.originalEvent.preventDefault()}handleUpEvent(J){const q=J.map,ut=q.getView();if(0===this.targetPointers.length){if(!this.noKinetic_&&this.kinetic_&&this.kinetic_.end()){const ht=this.kinetic_.getDistance(),_t=this.kinetic_.getAngle(),Tt=ut.getCenterInternal(),Lt=q.getPixelFromCoordinateInternal(Tt),Ht=q.getCoordinateFromPixelInternal([Lt[0]-ht*Math.cos(_t),Lt[1]-ht*Math.sin(_t)]);ut.animateInternal({center:ut.getConstrainedCenter(Ht),duration:500,easing:v.Vv})}return this.panning_&&(this.panning_=!1,ut.endInteraction()),!1}return this.kinetic_&&this.kinetic_.begin(),this.lastCentroid=null,!0}handleDownEvent(J){if(this.targetPointers.length>0&&this.condition_(J)){const ut=J.map.getView();return this.lastCentroid=null,ut.getAnimating()&&ut.cancelAnimations(),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}return!1}};var s=r(7011);const i=class f extends N.Z{constructor(J){J=J||{},super({stopDown:w.Dv}),this.condition_=J.condition?J.condition:S.aj,this.lastAngle_=void 0,this.duration_=void 0!==J.duration?J.duration:250}handleDragEvent(J){if(!(0,S.QL)(J))return;const q=J.map,ut=q.getView();if(ut.getConstraints().rotation===s.h$)return;const ht=q.getSize(),_t=J.pixel,Tt=Math.atan2(ht[1]/2-_t[1],_t[0]-ht[0]/2);void 0!==this.lastAngle_&&ut.adjustRotationInternal(-(Tt-this.lastAngle_)),this.lastAngle_=Tt}handleUpEvent(J){return!(0,S.QL)(J)||(J.map.getView().endInteraction(this.duration_),!1)}handleDownEvent(J){return!!((0,S.QL)(J)&&(0,S.v8)(J)&&this.condition_(J))&&(J.map.getView().beginInteraction(),this.lastAngle_=void 0,!0)}};var l=r(2659);const e=class m extends l.Z{constructor(J){super({condition:(J=J||{}).condition?J.condition:S.vY,className:J.className||"ol-dragzoom",minArea:J.minArea}),this.duration_=void 0!==J.duration?J.duration:200,this.out_=void 0!==J.out&&J.out}onBoxEnd(J){const ut=this.getMap().getView();let ht=this.getGeometry();if(this.out_){const _t=ut.rotatedExtentForGeometry(ht),Tt=ut.getResolutionForExtentInternal(_t),Lt=ut.getResolution()/Tt;ht=ht.clone(),ht.scale(Lt*Lt)}ut.fitInternal(ht,{duration:this.duration_,easing:v.Vv})}};var P=r(3044);const U=class T extends g.ZP{constructor(J){super(),J=J||{},this.defaultCondition_=function(q){return(0,S.rM)(q)&&(0,S.TN)(q)},this.condition_=void 0!==J.condition?J.condition:this.defaultCondition_,this.duration_=void 0!==J.duration?J.duration:100,this.pixelDelta_=void 0!==J.pixelDelta?J.pixelDelta:128}handleEvent(J){let q=!1;if(J.type==P.Z.KEYDOWN){const ut=J.originalEvent,ht=ut.keyCode;if(this.condition_(J)&&(40==ht||37==ht||39==ht||38==ht)){const Tt=J.map.getView(),Lt=Tt.getResolution()*this.pixelDelta_;let Ht=0,$t=0;40==ht?$t=-Lt:37==ht?Ht=-Lt:39==ht?Ht=Lt:$t=Lt;const ae=[Ht,$t];(0,h.U1)(ae,Tt.getRotation()),(0,g.Cv)(Tt,ae,this.duration_),ut.preventDefault(),q=!0}}return!q}},C=class D extends g.ZP{constructor(J){super(),this.condition_=(J=J||{}).condition?J.condition:S.TN,this.delta_=J.delta?J.delta:1,this.duration_=void 0!==J.duration?J.duration:100}handleEvent(J){let q=!1;if(J.type==P.Z.KEYDOWN||J.type==P.Z.KEYPRESS){const ut=J.originalEvent,ht=ut.key;if(this.condition_(J)&&("+"===ht||"-"===ht)){const Tt="+"===ht?this.delta_:-this.delta_,Lt=J.map.getView();(0,g.FW)(Lt,Tt,void 0,this.duration_),ut.preventDefault(),q=!0}}return!q}};var $=r(5063),dt=r(4331);const k=class B extends g.ZP{constructor(J){super(J=J||{}),this.totalDelta_=0,this.lastDelta_=0,this.maxDelta_=void 0!==J.maxDelta?J.maxDelta:1,this.duration_=void 0!==J.duration?J.duration:250,this.timeout_=void 0!==J.timeout?J.timeout:80,this.useAnchor_=void 0===J.useAnchor||J.useAnchor,this.constrainResolution_=void 0!==J.constrainResolution&&J.constrainResolution;const q=J.condition?J.condition:S.Bx;this.condition_=J.onFocusOnly?(0,S.$6)(S.yZ,q):q,this.lastAnchor_=null,this.startTime_=void 0,this.mode_=void 0,this.trackpadEventGap_=400,this.deltaPerZoom_=300}endInteraction_(){this.trackpadTimeoutId_=void 0;const J=this.getMap();J&&J.getView().endInteraction(void 0,this.lastDelta_?this.lastDelta_>0?1:-1:0,this.lastAnchor_)}handleEvent(J){if(!this.condition_(J)||J.type!==P.Z.WHEEL)return!0;const ut=J.map,ht=J.originalEvent;let _t;if(ht.preventDefault(),this.useAnchor_&&(this.lastAnchor_=J.coordinate),J.type==P.Z.WHEEL&&(_t=ht.deltaY,$.V&&ht.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(_t/=$.MP),ht.deltaMode===WheelEvent.DOM_DELTA_LINE&&(_t*=40)),0===_t)return!1;this.lastDelta_=_t;const Tt=Date.now();void 0===this.startTime_&&(this.startTime_=Tt),(!this.mode_||Tt-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(_t)<4?"trackpad":"wheel");const Lt=ut.getView();if("trackpad"===this.mode_&&!Lt.getConstrainResolution()&&!this.constrainResolution_)return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):(Lt.getAnimating()&&Lt.cancelAnimations(),Lt.beginInteraction()),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.timeout_),Lt.adjustZoom(-_t/this.deltaPerZoom_,this.lastAnchor_),this.startTime_=Tt,!1;this.totalDelta_+=_t;const Ht=Math.max(this.timeout_-(Tt-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,ut),Ht),!1}handleWheelZoom_(J){const q=J.getView();q.getAnimating()&&q.cancelAnimations();let ut=-(0,dt.uZ)(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(q.getConstrainResolution()||this.constrainResolution_)&&(ut=ut?ut>0?1:-1:0),(0,g.FW)(q,ut,this.lastAnchor_,this.duration_),this.mode_=void 0,this.totalDelta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0}setMouseAnchor(J){this.useAnchor_=J,J||(this.lastAnchor_=null)}},p=class L extends N.Z{constructor(J){const q=J=J||{};q.stopDown||(q.stopDown=w.Dv),super(q),this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.threshold_=void 0!==J.threshold?J.threshold:.3,this.duration_=void 0!==J.duration?J.duration:250}handleDragEvent(J){let q=0;const ut=this.targetPointers[0],ht=this.targetPointers[1],_t=Math.atan2(ht.clientY-ut.clientY,ht.clientX-ut.clientX);if(void 0!==this.lastAngle_){const Ht=_t-this.lastAngle_;this.rotationDelta_+=Ht,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),q=Ht}this.lastAngle_=_t;const Tt=J.map,Lt=Tt.getView();Lt.getConstraints().rotation!==s.h$&&(this.anchor_=Tt.getCoordinateFromPixelInternal(Tt.getEventPixel((0,N.S)(this.targetPointers))),this.rotating_&&(Tt.render(),Lt.adjustRotationInternal(q,this.anchor_)))}handleUpEvent(J){return!(this.targetPointers.length<2&&(J.map.getView().endInteraction(this.duration_),1))}handleDownEvent(J){if(this.targetPointers.length>=2){const q=J.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||q.getView().beginInteraction(),!0}return!1}},R=class M extends N.Z{constructor(J){const q=J=J||{};q.stopDown||(q.stopDown=w.Dv),super(q),this.anchor_=null,this.duration_=void 0!==J.duration?J.duration:400,this.lastDistance_=void 0,this.lastScaleDelta_=1}handleDragEvent(J){let q=1;const ut=this.targetPointers[0],ht=this.targetPointers[1],_t=ut.clientX-ht.clientX,Tt=ut.clientY-ht.clientY,Lt=Math.sqrt(_t*_t+Tt*Tt);void 0!==this.lastDistance_&&(q=this.lastDistance_/Lt),this.lastDistance_=Lt;const Ht=J.map,$t=Ht.getView();1!=q&&(this.lastScaleDelta_=q),this.anchor_=Ht.getCoordinateFromPixelInternal(Ht.getEventPixel((0,N.S)(this.targetPointers))),Ht.render(),$t.adjustResolutionInternal(q,this.anchor_)}handleUpEvent(J){return!(this.targetPointers.length<2)||(J.map.getView().endInteraction(this.duration_,this.lastScaleDelta_>1?1:-1),!1)}handleDownEvent(J){if(this.targetPointers.length>=2){const q=J.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||q.getView().beginInteraction(),!0}return!1}};function K(G){G=G||{};const J=new _.Z,q=new class O{constructor(J,q,ut){this.decay_=J,this.minVelocity_=q,this.delay_=ut,this.points_=[],this.angle_=0,this.initialVelocity_=0}begin(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0}update(J,q){this.points_.push(J,q,Date.now())}end(){if(this.points_.length<6)return!1;const J=Date.now()-this.delay_,q=this.points_.length-3;if(this.points_[q+2]0&&this.points_[ut+2]>J;)ut-=3;const ht=this.points_[q+2]-this.points_[ut+2];if(ht<1e3/60)return!1;const _t=this.points_[q]-this.points_[ut],Tt=this.points_[q+1]-this.points_[ut+1];return this.angle_=Math.atan2(Tt,_t),this.initialVelocity_=Math.sqrt(_t*_t+Tt*Tt)/ht,this.initialVelocity_>this.minVelocity_}getDistance(){return(this.minVelocity_-this.initialVelocity_)/this.decay_}getAngle(){return this.angle_}}(-.005,.05,100);return(void 0===G.altShiftDragRotate||G.altShiftDragRotate)&&J.push(new i),(void 0===G.doubleClickZoom||G.doubleClickZoom)&&J.push(new j({delta:G.zoomDelta,duration:G.zoomDuration})),(void 0===G.dragPan||G.dragPan)&&J.push(new u({onFocusOnly:G.onFocusOnly,kinetic:q})),(void 0===G.pinchRotate||G.pinchRotate)&&J.push(new p),(void 0===G.pinchZoom||G.pinchZoom)&&J.push(new R({duration:G.zoomDuration})),(void 0===G.keyboard||G.keyboard)&&(J.push(new U),J.push(new C({delta:G.zoomDelta,duration:G.zoomDuration}))),(void 0===G.mouseWheelZoom||G.mouseWheelZoom)&&J.push(new k({onFocusOnly:G.onFocusOnly,duration:G.zoomDuration})),(void 0===G.shiftDragZoom||G.shiftDragZoom)&&J.push(new e({duration:G.zoomDuration})),J}},2462:(Vt,gt,r)=>{"use strict";r.d(gt,{Z:()=>w});var _=r(4115),g=r(3570),Q=r(513),H=r(992),j=r(4331);const w=class N extends _.Z{constructor(v){super(),this.background_=v.background;const h=Object.assign({},v);"object"==typeof v.properties&&(delete h.properties,Object.assign(h,v.properties)),h[g.Z.OPACITY]=void 0!==v.opacity?v.opacity:1,(0,H.h)("number"==typeof h[g.Z.OPACITY],64),h[g.Z.VISIBLE]=void 0===v.visible||v.visible,h[g.Z.Z_INDEX]=v.zIndex,h[g.Z.MAX_RESOLUTION]=void 0!==v.maxResolution?v.maxResolution:1/0,h[g.Z.MIN_RESOLUTION]=void 0!==v.minResolution?v.minResolution:0,h[g.Z.MIN_ZOOM]=void 0!==v.minZoom?v.minZoom:-1/0,h[g.Z.MAX_ZOOM]=void 0!==v.maxZoom?v.maxZoom:1/0,this.className_=void 0!==h.className?h.className:"ol-layer",delete h.className,this.setProperties(h),this.state_=null}getBackground(){return this.background_}getClassName(){return this.className_}getLayerState(v){const h=this.state_||{layer:this,managed:void 0===v||v},c=this.getZIndex();return h.opacity=(0,j.uZ)(Math.round(100*this.getOpacity())/100,0,1),h.visible=this.getVisible(),h.extent=this.getExtent(),h.zIndex=void 0!==c||h.managed?c:1/0,h.maxResolution=this.getMaxResolution(),h.minResolution=Math.max(this.getMinResolution(),0),h.minZoom=this.getMinZoom(),h.maxZoom=this.getMaxZoom(),this.state_=h,h}getLayersArray(v){return(0,Q.O3)()}getLayerStatesArray(v){return(0,Q.O3)()}getExtent(){return this.get(g.Z.EXTENT)}getMaxResolution(){return this.get(g.Z.MAX_RESOLUTION)}getMinResolution(){return this.get(g.Z.MIN_RESOLUTION)}getMinZoom(){return this.get(g.Z.MIN_ZOOM)}getMaxZoom(){return this.get(g.Z.MAX_ZOOM)}getOpacity(){return this.get(g.Z.OPACITY)}getSourceState(){return(0,Q.O3)()}getVisible(){return this.get(g.Z.VISIBLE)}getZIndex(){return this.get(g.Z.Z_INDEX)}setBackground(v){this.background_=v,this.changed()}setExtent(v){this.set(g.Z.EXTENT,v)}setMaxResolution(v){this.set(g.Z.MAX_RESOLUTION,v)}setMinResolution(v){this.set(g.Z.MIN_RESOLUTION,v)}setMaxZoom(v){this.set(g.Z.MAX_ZOOM,v)}setMinZoom(v){this.set(g.Z.MIN_ZOOM,v)}setOpacity(v){(0,H.h)("number"==typeof v,64),this.set(g.Z.OPACITY,v)}setVisible(v){this.set(g.Z.VISIBLE,v)}setZIndex(v){this.set(g.Z.Z_INDEX,v)}disposeInternal(){this.state_&&(this.state_.layer=null,this.state_=null),super.disposeInternal()}}},3998:(Vt,gt,r)=>{"use strict";r.d(gt,{Z:()=>Q});var _=r(7521);const Q=class g extends _.Z{constructor(j){super(j=j||{})}}},7319:(Vt,gt,r)=>{"use strict";r.d(gt,{Z:()=>H});var _=r(7521),g=r(3332);const H=class Q extends _.Z{constructor(N){N=N||{};const w=Object.assign({},N);delete w.preload,delete w.useInterimTilesOnError,super(w),this.setPreload(void 0!==N.preload?N.preload:0),this.setUseInterimTilesOnError(void 0===N.useInterimTilesOnError||N.useInterimTilesOnError)}getPreload(){return this.get(g.Z.PRELOAD)}setPreload(N){this.set(g.Z.PRELOAD,N)}getUseInterimTilesOnError(){return this.get(g.Z.USE_INTERIM_TILES_ON_ERROR)}setUseInterimTilesOnError(N){this.set(g.Z.USE_INTERIM_TILES_ON_ERROR,N)}getData(N){return super.getData(N)}}},4420:(Vt,gt,r)=>{"use strict";r.d(gt,{Z:()=>m});var _=r(7521),g=r(3036),Q=r(1786),H=r(795),j=r(694),N=r(5999),w=r(2682),S=r(5253),v=r(8185);function h(e){return new Q.ZP({fill:c(e,""),stroke:u(e,""),text:s(e),image:f(e)})}function c(e,P){const x=e[P+"fill-color"];if(x)return new j.Z({color:x})}function u(e,P){const x=e[P+"stroke-width"],T=e[P+"stroke-color"];if(x||T)return new S.Z({width:x,color:T,lineCap:e[P+"stroke-line-cap"],lineJoin:e[P+"stroke-line-join"],lineDash:e[P+"stroke-line-dash"],lineDashOffset:e[P+"stroke-line-dash-offset"],miterLimit:e[P+"stroke-miter-limit"]})}function s(e){const P=e["text-value"];return P?new v.Z({text:P,font:e["text-font"],maxAngle:e["text-max-angle"],offsetX:e["text-offset-x"],offsetY:e["text-offset-y"],overflow:e["text-overflow"],placement:e["text-placement"],repeat:e["text-repeat"],scale:e["text-scale"],rotateWithView:e["text-rotate-with-view"],rotation:e["text-rotation"],textAlign:e["text-align"],justify:e["text-justify"],textBaseline:e["text-baseline"],padding:e["text-padding"],fill:c(e,"text-"),backgroundFill:c(e,"text-background-"),stroke:u(e,"text-"),backgroundStroke:u(e,"text-background-")}):void 0}function f(e){const P=e["icon-src"],x=e["icon-img"];if(P||x)return new N.Z({src:P,img:x,imgSize:e["icon-img-size"],anchor:e["icon-anchor"],anchorOrigin:e["icon-anchor-origin"],anchorXUnits:e["icon-anchor-x-units"],anchorYUnits:e["icon-anchor-y-units"],color:e["icon-color"],crossOrigin:e["icon-cross-origin"],offset:e["icon-offset"],displacement:e["icon-displacement"],opacity:e["icon-opacity"],scale:e["icon-scale"],rotation:e["icon-rotation"],rotateWithView:e["icon-rotate-with-view"],size:e["icon-size"],declutterMode:e["icon-declutter-mode"]});const T=e["shape-points"];if(T){const D="shape-";return new w.Z({points:T,fill:c(e,D),stroke:u(e,D),radius:e["shape-radius"],radius1:e["shape-radius1"],radius2:e["shape-radius2"],angle:e["shape-angle"],displacement:e["shape-displacement"],rotation:e["shape-rotation"],rotateWithView:e["shape-rotate-with-view"],scale:e["shape-scale"],declutterMode:e["shape-declutter-mode"]})}const U=e["circle-radius"];if(U){const D="circle-";return new H.Z({radius:U,fill:c(e,D),stroke:u(e,D),displacement:e["circle-displacement"],scale:e["circle-scale"],rotation:e["circle-rotation"],rotateWithView:e["circle-rotate-with-view"],declutterMode:e["circle-declutter-mode"]})}}const m=class l extends _.Z{constructor(P){P=P||{};const x=Object.assign({},P);delete x.style,delete x.renderBuffer,delete x.updateWhileAnimating,delete x.updateWhileInteracting,super(x),this.declutter_=void 0!==P.declutter&&P.declutter,this.renderBuffer_=void 0!==P.renderBuffer?P.renderBuffer:100,this.style_=null,this.styleFunction_=void 0,this.setStyle(P.style),this.updateWhileAnimating_=void 0!==P.updateWhileAnimating&&P.updateWhileAnimating,this.updateWhileInteracting_=void 0!==P.updateWhileInteracting&&P.updateWhileInteracting}getDeclutter(){return this.declutter_}getFeatures(P){return super.getFeatures(P)}getRenderBuffer(){return this.renderBuffer_}getRenderOrder(){return this.get("renderOrder")}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}getUpdateWhileAnimating(){return this.updateWhileAnimating_}getUpdateWhileInteracting(){return this.updateWhileInteracting_}renderDeclutter(P){P.declutterTree||(P.declutterTree=new g(9)),this.getRenderer().renderDeclutter(P)}setRenderOrder(P){this.set("renderOrder",P)}setStyle(P){let x;if(void 0===P)x=Q.yF;else if(null===P)x=null;else if("function"==typeof P)x=P;else if(P instanceof Q.ZP)x=P;else if(Array.isArray(P)){const T=P.length,U=new Array(T);for(let D=0;D{"use strict";r.d(gt,{V:()=>u,Z:()=>i});var _=r(2462),g=r(9573),Q=r(448),H=r(3615),j=r(3044),N=r(8296),w=r(992),S=r(9306),v=r(9543),h=r(513),c=r(2716);class u extends H.ZP{constructor(m,e){super(m),this.layer=e}}class f extends _.Z{constructor(m){m=m||{};const e=Object.assign({},m);delete e.layers;let P=m.layers;super(e),this.layersListenerKeys_=[],this.listenerKeys_={},this.addChangeListener("layers",this.handleLayersChanged_),P?Array.isArray(P)?P=new g.Z(P.slice(),{unique:!0}):(0,w.h)("function"==typeof P.getArray,43):P=new g.Z(void 0,{unique:!0}),this.setLayers(P)}handleLayerChange_(){this.changed()}handleLayersChanged_(){this.layersListenerKeys_.forEach(c.bN),this.layersListenerKeys_.length=0;const m=this.getLayers();this.layersListenerKeys_.push((0,c.oL)(m,Q.Z.ADD,this.handleLayersAdd_,this),(0,c.oL)(m,Q.Z.REMOVE,this.handleLayersRemove_,this));for(const P in this.listenerKeys_)this.listenerKeys_[P].forEach(c.bN);(0,S.Z)(this.listenerKeys_);const e=m.getArray();for(let P=0,x=e.length;P{"use strict";r.d(gt,{Z:()=>H});var _=r(3998),g=r(8915);const H=class Q extends _.Z{constructor(N){super(N)}createRenderer(){return new g.Z(this)}getData(N){return super.getData(N)}}},7521:(Vt,gt,r)=>{"use strict";r.d(gt,{Z:()=>c,j:()=>h});var _=r(2462),g=r(3044),Q=r(3570),H=r(8779),j=r(5109),N=r(992),w=r(9543),S=r(2716);function h(u,s){if(!u.visible)return!1;const f=s.resolution;if(f=u.maxResolution)return!1;const i=s.zoom;return i>u.minZoom&&i<=u.maxZoom}const c=class v extends _.Z{constructor(s){const f=Object.assign({},s);delete f.source,super(f),this.mapPrecomposeKey_=null,this.mapRenderKey_=null,this.sourceChangeKey_=null,this.renderer_=null,this.sourceReady_=!1,this.rendered=!1,s.render&&(this.render=s.render),s.map&&this.setMap(s.map),this.addChangeListener(Q.Z.SOURCE,this.handleSourcePropertyChange_),this.setSource(s.source?s.source:null)}getLayersArray(s){return(s=s||[]).push(this),s}getLayerStatesArray(s){return(s=s||[]).push(this.getLayerState()),s}getSource(){return this.get(Q.Z.SOURCE)||null}getRenderSource(){return this.getSource()}getSourceState(){const s=this.getSource();return s?s.getState():"undefined"}handleSourceChange_(){this.changed(),!this.sourceReady_&&"ready"===this.getSource().getState()&&(this.sourceReady_=!0,this.dispatchEvent("sourceready"))}handleSourcePropertyChange_(){this.sourceChangeKey_&&((0,S.bN)(this.sourceChangeKey_),this.sourceChangeKey_=null),this.sourceReady_=!1;const s=this.getSource();s&&(this.sourceChangeKey_=(0,S.oL)(s,g.Z.CHANGE,this.handleSourceChange_,this),"ready"===s.getState()&&(this.sourceReady_=!0,setTimeout(()=>{this.dispatchEvent("sourceready")},0))),this.changed()}getFeatures(s){return this.renderer_?this.renderer_.getFeatures(s):Promise.resolve([])}getData(s){return this.renderer_&&this.rendered?this.renderer_.getData(s):null}isVisible(s){let f;f=s instanceof j.ZP?{viewState:s.getState(),extent:s.calculateExtent()}:s;const i=this.getExtent();return this.getVisible()&&h(this.getLayerState(),f.viewState)&&(!i||(0,w.kK)(i,f.extent))}getAttributions(s){if(!this.isVisible(s))return[];let f;const i=this.getSource();if(i&&(f=i.getAttributions()),!f)return[];let m=f(s instanceof j.ZP?s.getViewStateAndExtent():s);return Array.isArray(m)||(m=[m]),m}render(s,f){const i=this.getRenderer();if(i.prepareFrame(s))return this.rendered=!0,i.renderFrame(s,f)}unrender(){this.rendered=!1}setMapInternal(s){s||this.unrender(),this.set(Q.Z.MAP,s)}getMapInternal(){return this.get(Q.Z.MAP)}setMap(s){this.mapPrecomposeKey_&&((0,S.bN)(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),s||this.changed(),this.mapRenderKey_&&((0,S.bN)(this.mapRenderKey_),this.mapRenderKey_=null),s&&(this.mapPrecomposeKey_=(0,S.oL)(s,H.Z.PRECOMPOSE,function(f){const l=f.frameState.layerStatesArray,m=this.getLayerState(!1);(0,N.h)(!l.some(function(e){return e.layer===m.layer}),67),l.push(m)},this),this.mapRenderKey_=(0,S.oL)(this,g.Z.CHANGE,s.render,s),this.changed())}setSource(s){this.set(Q.Z.SOURCE,s)}getRenderer(){return this.renderer_||(this.renderer_=this.createRenderer()),this.renderer_}hasRenderer(){return!!this.renderer_}createRenderer(){return null}disposeInternal(){this.renderer_&&(this.renderer_.dispose(),delete this.renderer_),this.setSource(null),super.disposeInternal()}}},3570:(Vt,gt,r)=>{"use strict";r.d(gt,{Z:()=>_});const _={OPACITY:"opacity",VISIBLE:"visible",EXTENT:"extent",Z_INDEX:"zIndex",MAX_RESOLUTION:"maxResolution",MIN_RESOLUTION:"minResolution",MAX_ZOOM:"maxZoom",MIN_ZOOM:"minZoom",SOURCE:"source",MAP:"map"}},993:(Vt,gt,r)=>{"use strict";r.d(gt,{Z:()=>H});var _=r(7319),g=r(6257);const H=class Q extends _.Z{constructor(N){super(N)}createRenderer(){return new g.Z(this)}}},3332:(Vt,gt,r)=>{"use strict";r.d(gt,{Z:()=>_});const _={PRELOAD:"preload",USE_INTERIM_TILES_ON_ERROR:"useInterimTilesOnError"}},7356:(Vt,gt,r)=>{"use strict";r.d(gt,{Z:()=>H});var _=r(4420),g=r(2308);const H=class Q extends _.Z{constructor(N){super(N)}createRenderer(){return new g.Z(this)}}},585:(Vt,gt,r)=>{"use strict";r.d(gt,{Z:()=>T});var _=r(4420),g=r(7599),Q=r(1015),H=r(6257),j=r(4700),N=r(9500),w=r(7713),S=r(7139),v=r(9543),h=r(7707),c=r(513),u=r(931),s=r(5415);const f={image:["Polygon","Circle","LineString","Image","Text"],hybrid:["Polygon","LineString"],vector:[]},i={hybrid:["Image","Text","Default"],vector:["Polygon","Circle","LineString","Image","Text","Default"]},m=class l extends H.Z{constructor(D){super(D),this.boundHandleStyleImageChange_=this.handleStyleImageChange_.bind(this),this.renderedPixelToCoordinateTransform_=null,this.tmpTransform_=(0,S.Ue)()}prepareTile(D,C,O){let X;const $=D.getState();return($===j.Z.LOADED||$===j.Z.ERROR)&&(this.updateExecutorGroup_(D,C,O),this.tileImageNeedsRender_(D)&&(X=!0)),X}getTile(D,C,O,X){const $=X.pixelRatio,dt=X.viewState,B=dt.resolution,k=dt.projection,L=this.getLayer(),p=L.getSource().getTile(D,C,O,$,k),M=X.viewHints,R=!(M[N.Z.ANIMATING]||M[N.Z.INTERACTING]);return(R||!p.wantedResolution)&&(p.wantedResolution=B),this.prepareTile(p,$,k)&&(R||Date.now()-X.time<8)&&"vector"!==L.getRenderMode()&&this.renderTileImage_(p,X),super.getTile(D,C,O,X)}isDrawableTile(D){const C=this.getLayer();return super.isDrawableTile(D)&&("vector"===C.getRenderMode()?(0,c.sq)(C)in D.executorGroups:D.hasContext(C))}getTileImage(D){return D.getImage(this.getLayer())}prepareFrame(D){const C=this.getLayer().getRevision();return this.renderedLayerRevision_!==C&&(this.renderedLayerRevision_=C,this.renderedTiles.length=0),super.prepareFrame(D)}updateExecutorGroup_(D,C,O){const X=this.getLayer(),$=X.getRevision(),dt=X.getRenderOrder()||null,B=D.wantedResolution,k=D.getReplayState(X);if(!k.dirty&&k.renderedResolution===B&&k.renderedRevision==$&&k.renderedRenderOrder==dt)return;const L=X.getSource(),p=X.getDeclutter(),M=L.getTileGrid(),K=L.getTileGridForProjection(O).getTileCoordExtent(D.wrappedTileCoord),G=L.getSourceTiles(C,O,D),J=(0,c.sq)(X);delete D.hitDetectionImageData[J],D.executorGroups[J]=[],p&&(D.declutterExecutorGroups[J]=[]),k.dirty=!1;for(let q=0,ut=G.length;q{const ae=$t===Ht?C.declutterTree.all().map(Qt=>Qt.value):null;for(let Qt=0,_e=$t.length;Qt<_e;++Qt)if(J=$t[Qt].forEachFeatureAtCoordinate(D,dt,B,O,K,ae),J)return!0})}return J}getFeatures(D){return new Promise((C,O)=>{const X=this.getLayer(),$=(0,c.sq)(X),dt=X.getSource(),B=this.renderedProjection,k=B.getExtent(),L=this.renderedResolution,p=dt.getTileGridForProjection(B),M=(0,S.nn)(this.renderedPixelToCoordinateTransform_,D.slice()),R=p.getTileCoordForCoordAndResolution(M,L);let K;for(let _t=0,Tt=this.renderedTiles.length;_t0)return void C([]);const G=p.getTileCoordExtent(K.wrappedTileCoord),J=(0,v.rL)(G),q=[(M[0]-J[0])/L,(J[1]-M[1])/L],ut=K.getSourceTiles().reduce(function(_t,Tt){return _t.concat(Tt.getFeatures())},[]);let ht=K.hitDetectionImageData[$];if(!ht){const _t=(0,u.Pq)(p.getTileSize(p.getZForResolution(L,dt.zDirection))),Tt=this.renderedRotation_,Lt=[this.getRenderTransform(p.getTileCoordCenter(K.wrappedTileCoord),L,0,w.UN,_t[0]*w.UN,_t[1]*w.UN,0)];ht=(0,w.TU)(_t,Lt,ut,X.getStyleFunction(),p.getTileCoordExtent(K.wrappedTileCoord),K.getReplayState(X).renderedResolution,Tt),K.hitDetectionImageData[$]=ht}C((0,w.ix)(q,ut,ht))})}handleFontsChanged(){const D=this.getLayer();D.getVisible()&&void 0!==this.renderedLayerRevision_&&D.changed()}handleStyleImageChange_(D){this.renderIfReadyAndVisible()}renderDeclutter(D){const C=this.context,O=C.globalAlpha;C.globalAlpha=this.getLayer().getOpacity();const X=D.viewHints,$=!(X[N.Z.ANIMATING]||X[N.Z.INTERACTING]),dt=this.renderedTiles;for(let B=0,k=dt.length;B=0;--M)p[M].execute(this.context,1,this.getTileRenderTransform(L,D),D.viewState.rotation,$,void 0,D.declutterTree)}C.globalAlpha=O}getTileRenderTransform(D,C){const O=C.pixelRatio,X=C.viewState,$=X.center,dt=X.resolution,B=X.rotation,k=C.size,L=Math.round(k[0]*O),p=Math.round(k[1]*O),R=this.getLayer().getSource().getTileGridForProjection(C.viewState.projection),K=D.tileCoord,G=R.getTileCoordExtent(D.wrappedTileCoord),J=R.getTileCoordExtent(K,this.tmpExtent)[0]-G[0];return(0,S.Jp)((0,S.bA)(this.inversePixelTransform.slice(),1/O,1/O),this.getRenderTransform($,dt,B,O,L,p,J))}postRender(D,C){const O=C.viewHints,X=!(O[N.Z.ANIMATING]||O[N.Z.INTERACTING]);this.renderedPixelToCoordinateTransform_=C.pixelToCoordinateTransform.slice(),this.renderedRotation_=C.viewState.rotation;const $=this.getLayer(),dt=$.getRenderMode(),B=D.globalAlpha;D.globalAlpha=$.getOpacity();const k=i[dt],L=C.viewState,p=L.rotation,M=$.getSource(),K=M.getTileGridForProjection(L.projection).getZForResolution(L.resolution,M.zDirection),G=this.renderedTiles,J=[],q=[];let ut=!0;for(let ht=G.length-1;ht>=0;--ht){const _t=G[ht];ut=ut&&!_t.getReplayState($).dirty;const Tt=_t.executorGroups[(0,c.sq)($)].filter(Qt=>Qt.hasExecutors(k));if(0===Tt.length)continue;const Lt=this.getTileRenderTransform(_t,C),Ht=_t.tileCoord[0];let $t=!1;const ae=Tt[0].getClipCoords(Lt);if(ae){for(let Qt=0,_e=J.length;Qt<_e;++Qt)if(K!==Ht&&Ht{"use strict";function g(j,N){return[[-1/0,-1/0,1/0,1/0]]}function Q(j,N){return[j]}r.d(gt,{$6:()=>g,VW:()=>Q}),r(9015)},4331:(Vt,gt,r)=>{"use strict";function _(s,f,i){return Math.min(Math.max(s,f),i)}function g(s,f,i,l,m,e){const P=m-i,x=e-l;if(0!==P||0!==x){const T=((s-i)*P+(f-l)*x)/(P*P+x*x);T>1?(i=m,l=e):T>0&&(i+=P*T,l+=x*T)}return Q(s,f,i,l)}function Q(s,f,i,l){const m=i-s,e=l-f;return m*m+e*e}function H(s){const f=s.length;for(let l=0;le&&(e=T,m=x)}if(0===e)return null;const P=s[m];s[m]=s[l],s[l]=P;for(let x=l+1;x=0;l--){i[l]=s[l][f]/s[l][l];for(let m=l-1;m>=0;m--)s[m][f]-=s[m][l]*i[l]}return i}function N(s){return s*Math.PI/180}function w(s,f){const i=s%f;return i*f<0?i+f:i}function S(s,f,i){return s+i*(f-s)}function v(s,f){const i=Math.pow(10,f);return Math.round(s*i)/i}function h(s,f){return Math.round(v(s,f))}function c(s,f){return Math.floor(v(s,f))}function u(s,f){return Math.ceil(v(s,f))}r.d(gt,{$W:()=>w,FH:()=>v,GW:()=>c,NM:()=>h,SV:()=>H,Yr:()=>N,bI:()=>Q,mD:()=>u,rU:()=>g,t7:()=>S,uZ:()=>_})},9306:(Vt,gt,r)=>{"use strict";function _(Q){for(const H in Q)delete Q[H]}function g(Q){let H;for(H in Q)return!1;return!H}r.d(gt,{Z:()=>_,x:()=>g})},5622:(Vt,gt,r)=>{"use strict";r.d(gt,{Z:()=>_});const _={POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"}},9015:(Vt,gt,r)=>{"use strict";r.d(gt,{Wm:()=>l.W,kv:()=>_.Z,zY:()=>ae,rM:()=>_t,Sx:()=>J,UQ:()=>Ht,uA:()=>He,h_:()=>R,OP:()=>Ce,mi:()=>Qt,Vs:()=>Yt,dY:()=>ye,U2:()=>ut,_Q:()=>ht,Ck:()=>Ze,WO:()=>xe,Cs:()=>Mt,gD:()=>G,lO:()=>Kt,Fj:()=>Jt,on:()=>Pe,vs:()=>xt,$A:()=>Nt});var _=r(2632);const g=6378137,Q=Math.PI*g,H=[-Q,-Q,Q,Q],j=[-180,-85,180,85],N=g*Math.log(Math.tan(Math.PI/2));class w extends _.Z{constructor(y){super({code:y,units:"m",extent:H,global:!0,worldExtent:j,getPointResolution:function(z,st){return z/Math.cosh(st[1]/g)}})}}const S=[new w("EPSG:3857"),new w("EPSG:102100"),new w("EPSG:102113"),new w("EPSG:900913"),new w("http://www.opengis.net/def/crs/EPSG/0/3857"),new w("http://www.opengis.net/gml/srs/epsg.xml#3857")];function v(Et,y,z){const st=Et.length;z=z>1?z:2,void 0===y&&(y=z>2?Et.slice():new Array(st));for(let it=0;itN?vt=N:vt<-N&&(vt=-N),y[it+1]=vt}return y}function h(Et,y,z){const st=Et.length;z=z>1?z:2,void 0===y&&(y=z>2?Et.slice():new Array(st));for(let it=0;it=kt?y[vt+zt]:Pt[zt]}return z}}function ae(Et,y,z,st){const it=ut(Et),vt=ut(y);(0,T.IH)(it,vt,$t(z)),(0,T.IH)(vt,it,$t(st))}function Qt(Et,y){return R(),xt(Et,"EPSG:4326",void 0!==y?y:"EPSG:3857")}function Ce(Et,y){if(Et===y)return!0;const z=Et.getUnits()===y.getUnits();return(Et.getCode()===y.getCode()||xe(Et,y)===K)&&z}function xe(Et,y){const z=Et.getCode(),st=y.getCode();let it=(0,T.U2)(z,st);return it||(it=G),it}function Ze(Et,y){return xe(ut(Et),ut(y))}function xt(Et,y,z){return Ze(y,z)(Et,void 0,Et.length)}function Nt(Et,y,z,st){const it=Ze(y,z);return(0,U.Ne)(Et,it,void 0,st)}let ie=null;function Mt(){return ie}function Kt(Et,y){return Et}function Yt(Et,y){return M&&!(0,C.fS)(Et,[0,0])&&Et[0]>=-180&&Et[0]<=180&&Et[1]>=-90&&Et[1]<=90&&(M=!1,(0,p.ZK)("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),Et}function Jt(Et,y){return Et}function ye(Et,y){return Et}function Pe(Et,y){return Et}function He(Et,y,z){return function(st){let it,vt;if(Et.canWrapX()){const Pt=Et.getExtent(),kt=(0,U.dz)(Pt);st=st.slice(0),vt=(0,C.jk)(st,Et,kt),vt&&(st[0]=st[0]-vt*kt),st[0]=(0,D.uZ)(st[0],Pt[0],Pt[2]),st[1]=(0,D.uZ)(st[1],Pt[1],Pt[3]),it=z(st)}else it=z(st);return vt&&y.canWrapX()&&(it[0]+=vt*(0,U.dz)(y.getExtent())),it}}!function Zt(){_t(S),_t(i),function Tt(Et,y,z,st){Et.forEach(function(it){y.forEach(function(vt){(0,T.IH)(it,vt,z),(0,T.IH)(vt,it,st)})})}(i,S,v,h)}()},2632:(Vt,gt,r)=>{"use strict";r.d(gt,{Z:()=>Q});var _=r(1285);const Q=class g{constructor(j){this.code_=j.code,this.units_=j.units,this.extent_=void 0!==j.extent?j.extent:null,this.worldExtent_=void 0!==j.worldExtent?j.worldExtent:null,this.axisOrientation_=void 0!==j.axisOrientation?j.axisOrientation:"enu",this.global_=void 0!==j.global&&j.global,this.canWrapX_=!(!this.global_||!this.extent_),this.getPointResolutionFunc_=j.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=j.metersPerUnit}canWrapX(){return this.canWrapX_}getCode(){return this.code_}getExtent(){return this.extent_}getUnits(){return this.units_}getMetersPerUnit(){return this.metersPerUnit_||_.W[this.units_]}getWorldExtent(){return this.worldExtent_}getAxisOrientation(){return this.axisOrientation_}isGlobal(){return this.global_}setGlobal(j){this.global_=j,this.canWrapX_=!(!j||!this.extent_)}getDefaultTileGrid(){return this.defaultTileGrid_}setDefaultTileGrid(j){this.defaultTileGrid_=j}setExtent(j){this.extent_=j,this.canWrapX_=!(!this.global_||!j)}setWorldExtent(j){this.worldExtent_=j}setGetPointResolution(j){this.getPointResolutionFunc_=j}getPointResolutionFunc(){return this.getPointResolutionFunc_}}},1285:(Vt,gt,r)=>{"use strict";r.d(gt,{W:()=>Q});const Q={radians:6370997/(2*Math.PI),degrees:2*Math.PI*6370997/360,ft:.3048,m:1,"us-ft":1200/3937}},3669:(Vt,gt,r)=>{"use strict";r.d(gt,{z2:()=>w});var _=r(2632),g=r(9015),Q=r(6794);let H=null;function w(s){H=s;const f=Object.keys(s.defs),i=f.length;let l,m;for(l=0;l{"use strict";r.d(gt,{IH:()=>Q,U2:()=>j});let _={};function Q(N,w,S){const v=N.getCode(),h=w.getCode();v in _||(_[v]={}),_[v][h]=S}function j(N,w){let S;return N in _&&w in _[N]&&(S=_[N][w]),S}},9683:(Vt,gt,r)=>{"use strict";r.d(gt,{Z:()=>Q});var _=r(3615);const Q=class g extends _.ZP{constructor(j,N,w,S){super(j),this.inversePixelTransform=N,this.frameState=w,this.context=S}}},8779:(Vt,gt,r)=>{"use strict";r.d(gt,{Z:()=>_});const _={PRERENDER:"prerender",POSTRENDER:"postrender",PRECOMPOSE:"precompose",POSTCOMPOSE:"postcompose",RENDERCOMPLETE:"rendercomplete"}},2929:(Vt,gt,r)=>{"use strict";r.d(gt,{ZP:()=>s});var _=r(7139),g=r(9543),Q=r(142),H=r(5577),j=r(9015),N=r(7170),w=r(2783),S=r(3904);const v=(0,_.Ue)();class h{constructor(i,l,m,e,P){this.id_=P,this.type_=i,this.flatCoordinates_=l,this.flatInteriorPoints_=null,this.flatMidpoints_=null,this.ends_=m,this.properties_=e}get(i){return this.properties_[i]}getExtent(){return this.extent_||(this.extent_="Point"===this.type_?(0,g.HK)(this.flatCoordinates_):(0,g.GN)(this.flatCoordinates_,0,this.flatCoordinates_.length,2)),this.extent_}getFlatInteriorPoint(){if(!this.flatInteriorPoints_){const i=(0,g.qg)(this.getExtent());this.flatInteriorPoints_=(0,H.X)(this.flatCoordinates_,0,this.ends_,2,i,0)}return this.flatInteriorPoints_}getFlatInteriorPoints(){if(!this.flatInteriorPoints_){const i=(0,w.E)(this.flatCoordinates_,0,this.ends_,2);this.flatInteriorPoints_=(0,H.U)(this.flatCoordinates_,0,this.ends_,2,i)}return this.flatInteriorPoints_}getFlatMidpoint(){return this.flatMidpoints_||(this.flatMidpoints_=(0,N.WW)(this.flatCoordinates_,0,this.flatCoordinates_.length,2,.5)),this.flatMidpoints_}getFlatMidpoints(){if(!this.flatMidpoints_){this.flatMidpoints_=[];const i=this.flatCoordinates_;let l=0;const m=this.ends_;for(let e=0,P=m.length;e{"use strict";r.d(gt,{Z:()=>g});const g=class _{drawCustom(H,j,N,w){}drawGeometry(H){}setStyle(H){}drawCircle(H,j){}drawFeature(H,j){}drawGeometryCollection(H,j){}drawLineString(H,j){}drawMultiLineString(H,j){}drawMultiPoint(H,j){}drawMultiPolygon(H,j){}drawPoint(H,j){}drawPolygon(H,j){}drawText(H,j){}setFillStrokeStyle(H,j){}setImageStyle(H,j){}setTextStyle(H,j){}}},2768:(Vt,gt,r)=>{"use strict";r.d(gt,{Df:()=>N,He:()=>h,Kd:()=>X,PH:()=>f,Qx:()=>U,Tx:()=>s,V4:()=>u,X9:()=>v,Zw:()=>$,_f:()=>B,bL:()=>w,mb:()=>S,oB:()=>l,rc:()=>c,ru:()=>i,sG:()=>e,yC:()=>m});var _=r(4115),g=r(5063),Q=r(9306),H=r(3842),j=r(1119);const N="10px sans-serif",w="#000",S="round",v=[],h=0,c="round",u=10,s="#000",f="center",i="middle",l=[0,0,0,0],m=1,e=new _.Z;let x,P=null;const T={},U=function(){const p="32px ",M=["monospace","serif"],R=M.length,K="wmytzilWMYTZIL@#/&?$%10\uf013";let G,J;function q(ht,_t,Tt){let Lt=!0;for(let Ht=0;HtMath.max(K,O(L,G)),0);return M[p]=R,R}function $(L,p){const M=[],R=[],K=[];let G=0,J=0,q=0,ut=0;for(let ht=0,_t=p.length;ht<=_t;ht+=2){const Tt=p[ht];if("\n"===Tt||ht===_t){G=Math.max(G,J),K.push(J),J=0,q+=ut;continue}const Lt=p[ht+1]||L.font,Ht=O(Lt,Tt);M.push(Ht),J+=Ht;const $t=D(Lt);R.push($t),ut=Math.max(ut,$t)}return{width:G,height:q,widths:M,heights:R,lineWidths:K}}function B(L,p,M,R,K,G,J,q,ut,ht,_t){L.save(),1!==M&&(L.globalAlpha*=M),p&&L.setTransform.apply(L,p),R.contextInstructions?(L.translate(ut,ht),L.scale(_t[0],_t[1]),function k(L,p){const M=L.contextInstructions;for(let R=0,K=M.length;R{"use strict";r.d(gt,{Z:()=>h});var _=r(3430),g=r(8326),Q=r(8110),H=r(4890),j=r(9543),N=r(2768),w=r(142),S=r(4850);const h=class v extends Q.Z{constructor(u,s,f,i){super(),this.tolerance=u,this.maxExtent=s,this.pixelRatio=i,this.maxLineWidth=0,this.resolution=f,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_=null,this.bufferedMaxExtent_=null,this.instructions=[],this.coordinates=[],this.tmpCoordinate_=[],this.hitDetectionInstructions=[],this.state={}}applyPixelRatio(u){const s=this.pixelRatio;return 1==s?u:u.map(function(f){return f*s})}appendFlatPointCoordinates(u,s){const f=this.getBufferedMaxExtent(),i=this.tmpCoordinate_,l=this.coordinates;let m=l.length;for(let e=0,P=u.length;ee&&(this.instructions.push([_.ZP.CUSTOM,e,x,u,f,S.Ml]),this.hitDetectionInstructions.push([_.ZP.CUSTOM,e,x,u,i||f,S.Ml]));break;case"Point":P=u.getFlatCoordinates(),this.coordinates.push(P[0],P[1]),x=this.coordinates.length,this.instructions.push([_.ZP.CUSTOM,e,x,u,f]),this.hitDetectionInstructions.push([_.ZP.CUSTOM,e,x,u,i||f])}this.endGeometry(s)}beginGeometry(u,s){this.beginGeometryInstruction1_=[_.ZP.BEGIN_GEOMETRY,s,0,u],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[_.ZP.BEGIN_GEOMETRY,s,0,u],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)}finish(){return{instructions:this.instructions,hitDetectionInstructions:this.hitDetectionInstructions,coordinates:this.coordinates}}reverseHitDetectionInstructions(){const u=this.hitDetectionInstructions;let s;u.reverse();const f=u.length;let i,l,m=-1;for(s=0;sthis.maxLineWidth&&(this.maxLineWidth=f.lineWidth,this.bufferedMaxExtent_=null)}else f.strokeStyle=void 0,f.lineCap=void 0,f.lineDash=null,f.lineDashOffset=void 0,f.lineJoin=void 0,f.lineWidth=void 0,f.miterLimit=void 0}createFill(u){const s=u.fillStyle,f=[_.ZP.SET_FILL_STYLE,s];return"string"!=typeof s&&f.push(!0),f}applyStroke(u){this.instructions.push(this.createStroke(u))}createStroke(u){return[_.ZP.SET_STROKE_STYLE,u.strokeStyle,u.lineWidth*this.pixelRatio,u.lineCap,u.lineJoin,u.miterLimit,this.applyPixelRatio(u.lineDash),u.lineDashOffset*this.pixelRatio]}updateFillStyle(u,s){const f=u.fillStyle;("string"!=typeof f||u.currentFillStyle!=f)&&(void 0!==f&&this.instructions.push(s.call(this,u)),u.currentFillStyle=f)}updateStrokeStyle(u,s){const f=u.strokeStyle,i=u.lineCap,l=u.lineDash,m=u.lineDashOffset,e=u.lineJoin,P=u.lineWidth,x=u.miterLimit;(u.currentStrokeStyle!=f||u.currentLineCap!=i||l!=u.currentLineDash&&!(0,w.fS)(u.currentLineDash,l)||u.currentLineDashOffset!=m||u.currentLineJoin!=e||u.currentLineWidth!=P||u.currentMiterLimit!=x)&&(void 0!==f&&s.call(this,u),u.currentStrokeStyle=f,u.currentLineCap=i,u.currentLineDash=l,u.currentLineDashOffset=m,u.currentLineJoin=e,u.currentLineWidth=P,u.currentMiterLimit=x)}endGeometry(u){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;const s=[_.ZP.END_GEOMETRY,u];this.instructions.push(s),this.hitDetectionInstructions.push(s)}getBufferedMaxExtent(){return!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=(0,j.d9)(this.maxExtent),this.maxLineWidth>0)&&(0,j.f3)(this.bufferedMaxExtent_,this.resolution*(this.maxLineWidth+1)/2,this.bufferedMaxExtent_),this.bufferedMaxExtent_}}},7599:(Vt,gt,r)=>{"use strict";r.d(gt,{Z:()=>f});var _=r(1211),g=r(3430);var j=r(2768);var S=r(1757);const h=class v extends _.Z{constructor(l,m,e,P){super(l,m,e,P)}drawFlatCoordinatess_(l,m,e,P){const x=this.state,T=void 0!==x.fillStyle,U=void 0!==x.strokeStyle,D=e.length;this.instructions.push(g.$O),this.hitDetectionInstructions.push(g.$O);for(let C=0;C{"use strict";r.d(gt,{Z:()=>dt});var _=r(3430),g=r(8840),Q=r(7139),H=r(9543),j=r(2768),N=r(4331),w=r(3904);function S(B,k,L,p,M,R,K,G,J,q,ut,ht){let _t=B[k],Tt=B[k+1],Lt=0,Ht=0,$t=0,ae=0;function Qt(){Lt=_t,Ht=Tt,_t=B[k+=p],Tt=B[k+1],ae+=$t,$t=Math.sqrt((_t-Lt)*(_t-Lt)+(Tt-Ht)*(Tt-Ht))}do{Qt()}while(kYt[2]}else Te=Ce>Bt;const he=Math.PI,Mt=[],Dt=Ze+p===k;let Kt;if($t=0,ae=xt,_t=B[k=Ze],Tt=B[k+1],Dt)return Qt(),Kt=Math.atan2(Tt-Ht,_t-Lt),Te&&(Kt+=Kt>0?-he:he),Mt[0]=[(Bt+Ce)/2,(ie+xe)/2,(Nt-R)/2,Kt,M],Mt;for(let Yt=0,Jt=(M=M.replace(/\n/g," ")).length;Yt0?-he:he),void 0!==Kt){let y=ye-Kt;if(y+=y>he?-2*he:y<-he?2*he:0,Math.abs(y)>K)return null}Kt=ye;const Pe=Yt;let ze=0;for(;Yt0&&B.push("\n",""),B.push(k,""),B}const T=class x{constructor(k,L,p,M){this.overlaps=p,this.pixelRatio=L,this.resolution=k,this.instructions=M.instructions,this.coordinates=M.coordinates,this.coordinateCache_={},this.renderedTransform_=(0,Q.Ue)(),this.hitDetectionInstructions=M.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=M.fillStates||{},this.strokeStates=M.strokeStates||{},this.textStates=M.textStates||{},this.widths_={},this.labels_={}}createLabel(k,L,p,M){const R=k+L+p+M;if(this.labels_[R])return this.labels_[R];const K=M?this.strokeStates[M]:null,G=p?this.fillStates[p]:null,J=this.textStates[L],q=this.pixelRatio,ut=[J.scale[0]*q,J.scale[1]*q],ht=Array.isArray(k),_t=J.justify?g.I[J.justify]:e(Array.isArray(k)?k[0]:k,J.textAlign||j.PH),Tt=M&&K.lineWidth?K.lineWidth:0,Lt=ht?k:k.split("\n").reduce(P,[]),{width:Ht,height:$t,widths:ae,heights:Qt,lineWidths:_e}=(0,j.Zw)(J,Lt),Ce=Ht+Tt,xe=[],Ze=(Ce+2)*ut[0],xt=($t+Tt)*ut[1],Nt={width:Ze<0?Math.floor(Ze):Math.ceil(Ze),height:xt<0?Math.floor(xt):Math.ceil(xt),contextInstructions:xe};(1!=ut[0]||1!=ut[1])&&xe.push("scale",ut),M&&(xe.push("strokeStyle",K.strokeStyle),xe.push("lineWidth",Tt),xe.push("lineCap",K.lineCap),xe.push("lineJoin",K.lineJoin),xe.push("miterLimit",K.miterLimit),xe.push("setLineDash",[K.lineDash]),xe.push("lineDashOffset",K.lineDashOffset)),p&&xe.push("fillStyle",G.fillStyle),xe.push("textBaseline","middle"),xe.push("textAlign","center");const Bt=.5-_t;let ie=_t*Ce+Bt*Tt;const Te=[],he=[];let Jt,Mt=0,Dt=0,Kt=0,Yt=0;for(let ye=0,Pe=Lt.length;yek?k-q:R,Ce=K+ut>L?L-ut:K,xe=Lt[3]+_e*_t[0]+Lt[1],Ze=Lt[0]+Ce*_t[1]+Lt[2],xt=ae-Lt[3],Nt=Qt-Lt[0];let Bt;return(Ht||0!==ht)&&(u[0]=xt,i[0]=xt,u[1]=Nt,s[1]=Nt,s[0]=xt+xe,f[0]=s[0],f[1]=Nt+Ze,i[1]=f[1]),0!==ht?(Bt=(0,Q.qC)((0,Q.Ue)(),p,M,1,1,ht,-p,-M),(0,Q.nn)(Bt,u),(0,Q.nn)(Bt,s),(0,Q.nn)(Bt,f),(0,Q.nn)(Bt,i),(0,H.T9)(Math.min(u[0],s[0],f[0],i[0]),Math.min(u[1],s[1],f[1],i[1]),Math.max(u[0],s[0],f[0],i[0]),Math.max(u[1],s[1],f[1],i[1]),c)):(0,H.T9)(Math.min(xt,xt+xe),Math.min(Nt,Nt+Ze),Math.max(xt,xt+xe),Math.max(Nt,Nt+Ze),c),Tt&&(ae=Math.round(ae),Qt=Math.round(Qt)),{drawImageX:ae,drawImageY:Qt,drawImageW:_e,drawImageH:Ce,originX:q,originY:ut,declutterBox:{minX:c[0],minY:c[1],maxX:c[2],maxY:c[3],value:$t},canvasTransform:Bt,scale:_t}}replayImageOrLabel_(k,L,p,M,R,K,G){const q=M.declutterBox,ut=k.canvas,ht=G?G[2]*M.scale[0]/2:0;return q.minX-ht<=ut.width/L&&q.maxX+ht>=0&&q.minY-ht<=ut.height/L&&q.maxY+ht>=0&&(!(!K&&!G)&&this.replayTextBackground_(k,u,s,f,i,K,G),(0,j._f)(k,M.canvasTransform,R,p,M.originX,M.originY,M.drawImageW,M.drawImageH,M.drawImageX,M.drawImageY,M.scale)),!0}fill_(k){if(this.alignFill_){const L=(0,Q.nn)(this.renderedTransform_,[0,0]),p=512*this.pixelRatio;k.save(),k.translate(L[0]%p,L[1]%p),k.rotate(this.viewRotation_)}k.fill(),this.alignFill_&&k.restore()}setStrokeStyle_(k,L){k.strokeStyle=L[1],k.lineWidth=L[2],k.lineCap=L[3],k.lineJoin=L[4],k.miterLimit=L[5],k.lineDashOffset=L[7],k.setLineDash(L[6])}drawLabelWithPointPlacement_(k,L,p,M){const R=this.textStates[L],K=this.createLabel(k,L,M,p),G=this.strokeStates[p],J=this.pixelRatio,q=e(Array.isArray(k)?k[0]:k,R.textAlign||j.PH),ut=g.I[R.textBaseline||j.ru],ht=G&&G.lineWidth?G.lineWidth:0;return{label:K,anchorX:q*(K.width/J-2*R.scale[0])+2*(.5-q)*ht,anchorY:ut*K.height/J+2*(.5-ut)*ht}}execute_(k,L,p,M,R,K,G,J){let q;this.pixelCoordinates_&&(0,v.fS)(p,this.renderedTransform_)?q=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),q=(0,w.vT)(this.coordinates,0,this.coordinates.length,2,p,this.pixelCoordinates_),(0,Q.lk)(this.renderedTransform_,p));let ut=0;const ht=M.length;let Tt,Lt,Ht,$t,ae,Qt,_e,Ce,xe,Ze,xt,Nt,_t=0,Bt=0,ie=0,Te=null,he=null;const Mt=this.coordinateCache_,Dt=this.viewRotation_,Kt=Math.round(1e12*Math.atan2(-p[1],p[0]))/1e12,Yt={context:k,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:Dt},Jt=this.instructions!=M||this.overlaps?0:200;let ye,Pe,ze,He;for(;utJt&&(this.fill_(k),Bt=0),ie>Jt&&(k.stroke(),ie=0),!Bt&&!ie&&(k.beginPath(),$t=NaN,ae=NaN),++ut;break;case _.ZP.CIRCLE:_t=Zt[1];const y=q[_t],z=q[_t+1],vt=q[_t+2]-y,Pt=q[_t+3]-z,kt=Math.sqrt(vt*vt+Pt*Pt);k.moveTo(y+kt,z),k.arc(y,z,kt,0,2*Math.PI,!0),++ut;break;case _.ZP.CLOSE_PATH:k.closePath(),++ut;break;case _.ZP.CUSTOM:_t=Zt[1],Tt=Zt[2];const ee=Zt[4],re=6==Zt.length?Zt[5]:void 0;Yt.geometry=Zt[3],Yt.feature=ye,ut in Mt||(Mt[ut]=[]);const we=Mt[ut];re?re(q,_t,Tt,2,we):(we[0]=q[_t],we[1]=q[_t+1],we.length=2),ee(we,Yt),++ut;break;case _.ZP.DRAW_IMAGE:_t=Zt[1],Tt=Zt[2],Ce=Zt[3],Lt=Zt[4],Ht=Zt[5];let ge=Zt[6];const oe=Zt[7],Xe=Zt[8],oi=Zt[9],Qe=Zt[10];let $e=Zt[11];const Je=Zt[12];let ri=Zt[13];const _i=Zt[14],ui=Zt[15];if(!Ce&&Zt.length>=20){xe=Zt[19],Ze=Zt[20],xt=Zt[21],Nt=Zt[22];const Oi=this.drawLabelWithPointPlacement_(xe,Ze,xt,Nt);Ce=Oi.label,Zt[3]=Ce,Lt=(Oi.anchorX-Zt[23])*this.pixelRatio,Zt[4]=Lt,Ht=(Oi.anchorY-Zt[24])*this.pixelRatio,Zt[5]=Ht,ge=Ce.height,Zt[6]=ge,ri=Ce.width,Zt[13]=ri}let di,ot,rt,St;Zt.length>25&&(di=Zt[25]),Zt.length>17?(ot=Zt[16],rt=Zt[17],St=Zt[18]):(ot=j.oB,rt=!1,St=!1),Qe&&Kt?$e+=Dt:!Qe&&!Kt&&($e-=Dt);let bt=0;for(;_tL)break;let J=p[G];J||(J=[],p[G]=J),J.push(4*((B+R)*k+(B+K))+3),R>0&&J.push(4*((B-R)*k+(B+K))+3),K>0&&(J.push(4*((B+R)*k+(B-K))+3),R>0&&J.push(4*((B-R)*k+(B-K))+3))}const M=[];for(let R=0,K=p.length;R0){if(!K||"Image"!==Tt&&"Text"!==Tt||K.includes(xe)){const ie=(_t[Nt]-3)/4,Te=M-ie%G,he=M-(ie/G|0),Mt=R(xe,Ze,Te*Te+he*he);if(Mt)return Mt}ut.clearRect(0,0,G,G);break}}const Ht=Object.keys(this.executorsByZIndex_).map(Number);let $t,ae,Qt,_e,Ce;for(Ht.sort(v.j2),$t=Ht.length-1;$t>=0;--$t){const xe=Ht[$t].toString();for(Qt=this.executorsByZIndex_[xe],ae=C.length-1;ae>=0;--ae)if(Tt=C[ae],_e=Qt[Tt],void 0!==_e&&(Ce=_e.executeHitDetection(ut,J,p,Lt,ht),Ce))return Ce}}getClipCoords(k){const L=this.maxExtent_;if(!L)return null;const p=L[0],M=L[1],R=L[2],K=L[3],G=[p,M,p,K,R,K,R,M];return(0,w.vT)(G,0,8,2,k,G),G}isEmpty(){return(0,D.x)(this.executorsByZIndex_)}execute(k,L,p,M,R,K,G){const J=Object.keys(this.executorsByZIndex_).map(Number);let q,ut,ht,_t,Tt,Lt;for(J.sort(v.j2),this.maxExtent_&&(k.save(),this.clip(k,p)),K=K||C,G&&J.reverse(),q=0,ut=J.length;q{"use strict";r.d(gt,{Z:()=>c});var _=r(8110),g=r(4890),Q=r(7139),H=r(2768),j=r(142),N=r(9543),w=r(4331),S=r(3904),v=r(1790);const c=class h extends _.Z{constructor(s,f,i,l,m,e,P){super(),this.context_=s,this.pixelRatio_=f,this.extent_=i,this.transform_=l,this.transformRotation_=l?(0,w.FH)(Math.atan2(l[1],l[0]),10):0,this.viewRotation_=m,this.squaredTolerance_=e,this.userTransform_=P,this.contextFillState_=null,this.contextStrokeState_=null,this.contextTextState_=null,this.fillState_=null,this.strokeState_=null,this.image_=null,this.imageAnchorX_=0,this.imageAnchorY_=0,this.imageHeight_=0,this.imageOpacity_=0,this.imageOriginX_=0,this.imageOriginY_=0,this.imageRotateWithView_=!1,this.imageRotation_=0,this.imageScale_=[0,0],this.imageWidth_=0,this.text_="",this.textOffsetX_=0,this.textOffsetY_=0,this.textRotateWithView_=!1,this.textRotation_=0,this.textScale_=[0,0],this.textFillState_=null,this.textStrokeState_=null,this.textState_=null,this.pixelCoordinates_=[],this.tmpLocalTransform_=(0,Q.Ue)()}drawImages_(s,f,i,l){if(!this.image_)return;const m=(0,S.vT)(s,f,i,l,this.transform_,this.pixelCoordinates_),e=this.context_,P=this.tmpLocalTransform_,x=e.globalAlpha;1!=this.imageOpacity_&&(e.globalAlpha=x*this.imageOpacity_);let T=this.imageRotation_;0===this.transformRotation_&&(T-=this.viewRotation_),this.imageRotateWithView_&&(T+=this.viewRotation_);for(let U=0,D=m.length;UD*this.pixelRatio_),lineDashOffset:(e||H.He)*this.pixelRatio_,lineJoin:void 0!==P?P:H.rc,lineWidth:(void 0!==x?x:H.yC)*this.pixelRatio_,miterLimit:void 0!==T?T:H.V4,strokeStyle:(0,g.y)(i||H.Tx)}}else this.strokeState_=null}setImageStyle(s){let f;if(!s||!(f=s.getSize()))return void(this.image_=null);const i=s.getPixelRatio(this.pixelRatio_),l=s.getAnchor(),m=s.getOrigin();this.image_=s.getImage(this.pixelRatio_),this.imageAnchorX_=l[0]*i,this.imageAnchorY_=l[1]*i,this.imageHeight_=f[1]*i,this.imageOpacity_=s.getOpacity(),this.imageOriginX_=m[0],this.imageOriginY_=m[1],this.imageRotateWithView_=s.getRotateWithView(),this.imageRotation_=s.getRotation();const e=s.getScaleArray();this.imageScale_=[e[0]*this.pixelRatio_/i,e[1]*this.pixelRatio_/i],this.imageWidth_=f[0]*i}setTextStyle(s){if(s){const f=s.getFill();if(f){const O=f.getColor();this.textFillState_={fillStyle:(0,g.y)(O||H.bL)}}else this.textFillState_=null;const i=s.getStroke();if(i){const O=i.getColor(),X=i.getLineCap(),$=i.getLineDash(),dt=i.getLineDashOffset(),B=i.getLineJoin(),k=i.getWidth(),L=i.getMiterLimit();this.textStrokeState_={lineCap:void 0!==X?X:H.mb,lineDash:$||H.X9,lineDashOffset:dt||H.He,lineJoin:void 0!==B?B:H.rc,lineWidth:void 0!==k?k:H.yC,miterLimit:void 0!==L?L:H.V4,strokeStyle:(0,g.y)(O||H.Tx)}}else this.textStrokeState_=null;const l=s.getFont(),m=s.getOffsetX(),e=s.getOffsetY(),P=s.getRotateWithView(),x=s.getRotation(),T=s.getScaleArray(),U=s.getText(),D=s.getTextAlign(),C=s.getTextBaseline();this.textState_={font:void 0!==l?l:H.Df,textAlign:void 0!==D?D:H.PH,textBaseline:void 0!==C?C:H.ru},this.text_=void 0!==U?Array.isArray(U)?U.reduce((O,X,$)=>O+($%2?" ":X),""):U:"",this.textOffsetX_=void 0!==m?this.pixelRatio_*m:0,this.textOffsetY_=void 0!==e?this.pixelRatio_*e:0,this.textRotateWithView_=void 0!==P&&P,this.textRotation_=void 0!==x?x:0,this.textScale_=[this.pixelRatio_*T[0],this.pixelRatio_*T[1]]}else this.text_=""}}},3430:(Vt,gt,r)=>{"use strict";r.d(gt,{$O:()=>H,Yc:()=>Q,ZP:()=>N,gO:()=>g,s3:()=>j});const _={BEGIN_GEOMETRY:0,BEGIN_PATH:1,CIRCLE:2,CLOSE_PATH:3,CUSTOM:4,DRAW_CHARS:5,DRAW_IMAGE:6,END_GEOMETRY:7,FILL:8,MOVE_TO_LINE_TO:9,SET_FILL_STYLE:10,SET_STROKE_STYLE:11,STROKE:12},g=[_.FILL],Q=[_.STROKE],H=[_.BEGIN_PATH],j=[_.CLOSE_PATH],N=_},8840:(Vt,gt,r)=>{"use strict";r.d(gt,{I:()=>h,Z:()=>u});var _=r(1211),g=r(3430),Q=r(4890),H=r(2768),j=r(513),N=r(9543),w=r(4331);function S(s,f,i,l,m){const e=[];let P=i,x=0,T=f.slice(i,2);for(;x=s){const $=(s-x+X)/X,dt=(0,w.t7)(U,C,$),B=(0,w.t7)(D,O,$);T.push(dt,B),e.push(T),T=[dt,B],x==s&&(P+=m),x=0}else if(x0&&e.push(T),e}function v(s,f,i,l,m){let D,C,O,X,$,dt,B,k,L,p,e=i,P=i,x=0,T=0,U=i;for(C=i;Cs&&(T>x&&(x=T,e=U,P=C),T=0,U=C-m)),O=X,B=L,k=p),$=M,dt=R}return T+=X,T>x?[U,C]:[e,P]}const h={left:0,end:0,center:.5,right:1,start:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1},u=class c extends _.Z{constructor(f,i,l,m){super(f,i,l,m),this.labels_=null,this.text_="",this.textOffsetX_=0,this.textOffsetY_=0,this.textRotateWithView_=void 0,this.textRotation_=0,this.textFillState_=null,this.fillStates={},this.textStrokeState_=null,this.strokeStates={},this.textState_={},this.textStates={},this.textKey_="",this.fillKey_="",this.strokeKey_="",this.declutterImageWithText_=void 0}finish(){const f=super.finish();return f.textStates=this.textStates,f.fillStates=this.fillStates,f.strokeStates=this.strokeStates,f}drawText(f,i){const e=this.textState_;if(""===this.text_||!e||!this.textFillState_&&!this.textStrokeState_)return;const P=this.coordinates;let x=P.length;const T=f.getType();let U=null,D=f.getStride();if("line"!==e.placement||"LineString"!=T&&"MultiLineString"!=T&&"Polygon"!=T&&"MultiPolygon"!=T){let C=e.overflow?null:[];switch(T){case"Point":case"MultiPoint":U=f.getFlatCoordinates();break;case"LineString":U=f.getFlatMidpoint();break;case"Circle":U=f.getCenter();break;case"MultiLineString":U=f.getFlatMidpoints(),D=2;break;case"Polygon":U=f.getFlatInteriorPoint(),e.overflow||C.push(U[2]/this.resolution),D=3;break;case"MultiPolygon":const B=f.getFlatInteriorPoints();U=[];for(let k=0,L=B.length;k{const p=P[2*(B+L)]===U[L*D]&&P[2*(B+L)+1]===U[L*D+1];return p||--B,p})}this.saveTextStates_(),(e.backgroundFill||e.backgroundStroke)&&(this.setFillStrokeStyle(e.backgroundFill,e.backgroundStroke),e.backgroundFill&&(this.updateFillStyle(this.state,this.createFill),this.hitDetectionInstructions.push(this.createFill(this.state))),e.backgroundStroke&&(this.updateStrokeStyle(this.state,this.applyStroke),this.hitDetectionInstructions.push(this.createStroke(this.state)))),this.beginGeometry(f,i);let X=e.padding;if(X!=H.oB&&(e.scale[0]<0||e.scale[1]<0)){let B=e.padding[0],k=e.padding[1],L=e.padding[2],p=e.padding[3];e.scale[0]<0&&(k=-k,p=-p),e.scale[1]<0&&(B=-B,L=-L),X=[B,k,L,p]}const $=this.pixelRatio;this.instructions.push([g.ZP.DRAW_IMAGE,x,O,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[1,1],NaN,void 0,this.declutterImageWithText_,X==H.oB?H.oB:X.map(function(B){return B*$}),!!e.backgroundFill,!!e.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,C]);const dt=1/$;this.hitDetectionInstructions.push([g.ZP.DRAW_IMAGE,x,O,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[dt,dt],NaN,void 0,this.declutterImageWithText_,X,!!e.backgroundFill,!!e.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,C]),this.endGeometry(i)}else{if(!(0,N.kK)(this.getBufferedMaxExtent(),f.getExtent()))return;let C;if(U=f.getFlatCoordinates(),"LineString"==T)C=[U.length];else if("MultiLineString"==T)C=f.getEnds();else if("Polygon"==T)C=f.getEnds().slice(0,1);else if("MultiPolygon"==T){const dt=f.getEndss();C=[];for(let B=0,k=dt.length;B{"use strict";r.d(gt,{TU:()=>S,UN:()=>w,ix:()=>v});var _=r(3455),g=r(5999),Q=r(142),H=r(4331),j=r(3842),N=r(9543);const w=.5;function S(h,c,u,s,f,i,l){const P=(0,j.E4)(h[0]*w,h[1]*w);P.imageSmoothingEnabled=!1;const x=P.canvas,T=new _.Z(P,w,f,null,l),U=u.length,D=Math.floor(16777215/U),C={};for(let X=1;X<=U;++X){const $=u[X-1],dt=$.getStyleFunction()||s;if(!s)continue;let B=dt($,i);if(!B)continue;Array.isArray(B)||(B=[B]);const L=(X*D).toString(16).padStart(7,"#00000");for(let p=0,M=B.length;p{"use strict";r.d(gt,{Z:()=>N});var _=r(3044),g=r(1501),Q=r(8975),H=r(513);const N=class j extends Q.Z{constructor(S){super(),this.ready=!0,this.boundHandleImageChange_=this.handleImageChange_.bind(this),this.layer_=S,this.declutterExecutorGroup=null}getFeatures(S){return(0,H.O3)()}getData(S){return null}prepareFrame(S){return(0,H.O3)()}renderFrame(S,v){return(0,H.O3)()}loadedTileCallback(S,v,h){S[v]||(S[v]={}),S[v][h.tileCoord.toString()]=h}createLoadedTileFinder(S,v,h){return(c,u)=>{const s=this.loadedTileCallback.bind(this,h,c);return S.forEachLoadedTile(v,c,u,s)}}forEachFeatureAtCoordinate(S,v,h,c,u){}getLayer(){return this.layer_}handleFontsChanged(){}handleImageChange_(S){S.target.getState()===g.Z.LOADED&&this.renderIfReadyAndVisible()}loadImage(S){let v=S.getState();return v!=g.Z.LOADED&&v!=g.Z.ERROR&&S.addEventListener(_.Z.CHANGE,this.boundHandleImageChange_),v==g.Z.IDLE&&(S.load(),v=S.getState()),v==g.Z.LOADED}renderIfReadyAndVisible(){const S=this.getLayer();S&&S.getVisible()&&"ready"===S.getSourceState()&&S.changed()}disposeInternal(){delete this.layer_,super.disposeInternal()}}},8915:(Vt,gt,r)=>{"use strict";r.d(gt,{Z:()=>S});var _=r(6691),g=r(1501),Q=r(9500),H=r(7139),j=r(9543),N=r(9015);const S=class w extends _.Z{constructor(h){super(h),this.image_=null}getImage(){return this.image_?this.image_.getImage():null}prepareFrame(h){const c=h.layerStatesArray[h.layerIndex],u=h.pixelRatio,s=h.viewState,f=s.resolution,i=this.getLayer().getSource(),l=h.viewHints;let m=h.extent;if(void 0!==c.extent&&(m=(0,j.Ed)(m,(0,N.dY)(c.extent,s.projection))),!l[Q.Z.ANIMATING]&&!l[Q.Z.INTERACTING]&&!(0,j.xb)(m))if(i){const P=i.getImage(m,f,u,s.projection);P&&(this.loadImage(P)?this.image_=P:P.getState()===g.Z.EMPTY&&(this.image_=null))}else this.image_=null;return!!this.image_}getData(h){const c=this.frameState;if(!c)return null;const u=this.getLayer(),s=(0,H.nn)(c.pixelToCoordinateTransform,h.slice()),f=u.getExtent();if(f&&!(0,j.b8)(f,s))return null;const i=this.image_.getExtent(),l=this.getImage(),m=(0,j.dz)(i),e=Math.floor(l.width*((s[0]-i[0])/m));if(e<0||e>=l.width)return null;const P=(0,j.Cr)(i),x=Math.floor(l.height*((i[3]-s[1])/P));return x<0||x>=l.height?null:this.getImageData(l,e,x)}renderFrame(h,c){const u=this.image_,s=u.getExtent(),f=u.getResolution(),i=u.getPixelRatio(),l=h.layerStatesArray[h.layerIndex],m=h.pixelRatio,e=h.viewState,P=e.center,T=m*f/(e.resolution*i),U=h.extent,D=e.resolution,C=e.rotation,O=Math.round((0,j.dz)(U)/D*m),X=Math.round((0,j.Cr)(U)/D*m);(0,H.qC)(this.pixelTransform,h.size[0]/2,h.size[1]/2,1/m,1/m,C,-O/2,-X/2),(0,H.nb)(this.inversePixelTransform,this.pixelTransform);const $=(0,H.BB)(this.pixelTransform);this.useContainer(c,$,this.getBackground(h));const dt=this.context,B=dt.canvas;B.width!=O||B.height!=X?(B.width=O,B.height=X):this.containerReused||dt.clearRect(0,0,O,X);let k=!1,L=!0;if(l.extent){const G=(0,N.dY)(l.extent,e.projection);L=(0,j.kK)(G,h.extent),k=L&&!(0,j.r4)(G,h.extent),k&&this.clipUnrotated(dt,h,G)}const p=this.getImage(),M=(0,H.qC)(this.tempTransform,O/2,X/2,T,T,0,i*(s[0]-P[0])/f,i*(P[1]-s[3])/f);this.renderedResolution=f*m/i;const R=p.width*M[0],K=p.height*M[3];if(this.getLayer().getSource().getInterpolate()||(dt.imageSmoothingEnabled=!1),this.preRender(dt,h),L&&R>=.5&&K>=.5){const G=M[4],J=M[5],q=l.opacity;let ut;1!==q&&(ut=dt.globalAlpha,dt.globalAlpha=q),dt.drawImage(p,0,0,+p.width,+p.height,G,J,R,K),1!==q&&(dt.globalAlpha=ut)}return this.postRender(dt,h),k&&dt.restore(),dt.imageSmoothingEnabled=!0,$!==B.style.transform&&(B.style.transform=$),this.container}}},6691:(Vt,gt,r)=>{"use strict";r.d(gt,{Z:()=>s,r:()=>v});var _=r(6555),g=r(9683),Q=r(8779),H=r(7139),j=r(866),N=r(3842),w=r(142),S=r(9543);const v=[];let h=null;const s=class u extends _.Z{constructor(i){super(i),this.container=null,this.tempTransform=(0,H.Ue)(),this.pixelTransform=(0,H.Ue)(),this.inversePixelTransform=(0,H.Ue)(),this.context=null,this.containerReused=!1,this.pixelContext_=null,this.frameState=null}getImageData(i,l,m){let e;h||function c(){h=(0,N.E4)(1,1,void 0,{willReadFrequently:!0})}(),h.clearRect(0,0,1,1);try{h.drawImage(i,l,m,1,1,0,0,1,1),e=h.getImageData(0,0,1,1).data}catch{return h=null,null}return e}getBackground(i){let m=this.getLayer().getBackground();return"function"==typeof m&&(m=m(i.viewState.resolution)),m||void 0}useContainer(i,l,m){const e=this.getLayer().getClassName();let P,x;if(i&&i.className===e&&(!m||i&&i.style.backgroundColor&&(0,w.fS)((0,j._2)(i.style.backgroundColor),(0,j._2)(m)))){const T=i.firstElementChild;T instanceof HTMLCanvasElement&&(x=T.getContext("2d"))}if(x&&x.canvas.style.transform===l?(this.container=i,this.context=x,this.containerReused=!0):this.containerReused&&(this.container=null,this.context=null,this.containerReused=!1),!this.container){P=document.createElement("div"),P.className=e;let T=P.style;T.position="absolute",T.width="100%",T.height="100%",x=(0,N.E4)();const U=x.canvas;P.appendChild(U),T=U.style,T.position="absolute",T.left="0",T.transformOrigin="top left",this.container=P,this.context=x}!this.containerReused&&m&&!this.container.style.backgroundColor&&(this.container.style.backgroundColor=m)}clipUnrotated(i,l,m){const e=(0,S.rL)(m),P=(0,S.Xv)(m),x=(0,S.w$)(m),T=(0,S.hC)(m);(0,H.nn)(l.coordinateToPixelTransform,e),(0,H.nn)(l.coordinateToPixelTransform,P),(0,H.nn)(l.coordinateToPixelTransform,x),(0,H.nn)(l.coordinateToPixelTransform,T);const U=this.inversePixelTransform;(0,H.nn)(U,e),(0,H.nn)(U,P),(0,H.nn)(U,x),(0,H.nn)(U,T),i.save(),i.beginPath(),i.moveTo(Math.round(e[0]),Math.round(e[1])),i.lineTo(Math.round(P[0]),Math.round(P[1])),i.lineTo(Math.round(x[0]),Math.round(x[1])),i.lineTo(Math.round(T[0]),Math.round(T[1])),i.clip()}dispatchRenderEvent_(i,l,m){const e=this.getLayer();if(e.hasListener(i)){const P=new g.Z(i,this.inversePixelTransform,m,l);e.dispatchEvent(P)}}preRender(i,l){this.frameState=l,this.dispatchRenderEvent_(Q.Z.PRERENDER,i,l)}postRender(i,l){this.dispatchRenderEvent_(Q.Z.POSTRENDER,i,l)}getRenderTransform(i,l,m,e,P,x,T){const C=e/l;return(0,H.qC)(this.tempTransform,P/2,x/2,C,-C,-m,-i[0]+T,-i[1])}disposeInternal(){delete this.frameState,super.disposeInternal()}}},6257:(Vt,gt,r)=>{"use strict";r.d(gt,{Z:()=>s});var _=r(6691),g=r(8879),Q=r(4353),H=r(828),j=r(4700),N=r(7139),w=r(142),S=r(9543),v=r(9015),h=r(513),c=r(931);const s=class u extends _.Z{constructor(i){super(i),this.extentChanged=!0,this.renderedExtent_=null,this.renderedProjection=null,this.renderedTiles=[],this.newTiles_=!1,this.tmpExtent=(0,S.lJ)(),this.tmpTileRange_=new H.Z(0,0,0,0)}isDrawableTile(i){const l=this.getLayer(),m=i.getState(),e=l.getUseInterimTilesOnError();return m==j.Z.LOADED||m==j.Z.EMPTY||m==j.Z.ERROR&&!e}getTile(i,l,m,e){const P=e.pixelRatio,x=e.viewState.projection,T=this.getLayer();let D=T.getSource().getTile(i,l,m,P,x);return D.getState()==j.Z.ERROR&&T.getUseInterimTilesOnError()&&T.getPreload()>0&&(this.newTiles_=!0),this.isDrawableTile(D)||(D=D.getInterimTile()),D}getData(i){const l=this.frameState;if(!l)return null;const m=this.getLayer(),e=(0,N.nn)(l.pixelToCoordinateTransform,i.slice()),P=m.getExtent();if(P&&!(0,S.b8)(P,e))return null;const x=l.pixelRatio,T=l.viewState.projection,U=l.viewState,D=m.getRenderSource(),C=D.getTileGridForProjection(U.projection),O=D.getTilePixelRatio(l.pixelRatio);for(let X=C.getZForResolution(U.resolution);X>=C.getMinZoom();--X){const $=C.getTileCoordForCoordAndZ(e,X),dt=D.getTile(X,$[1],$[2],x,T);if(!(dt instanceof g.Z||dt instanceof Q.Z)||dt instanceof Q.Z&&dt.getState()===j.Z.EMPTY)return null;if(dt.getState()!==j.Z.LOADED)continue;const B=C.getOrigin(X),k=(0,c.Pq)(C.getTileSize(X)),L=C.getResolution(X),p=Math.floor(O*((e[0]-B[0])/L-$[1]*k[0])),M=Math.floor(O*((B[1]-e[1])/L-$[2]*k[1])),R=Math.round(O*D.getGutterForProjection(U.projection));return this.getImageData(dt.getImage(),p+R,M+R)}return null}loadedTileCallback(i,l,m){return!!this.isDrawableTile(m)&&super.loadedTileCallback(i,l,m)}prepareFrame(i){return!!this.getLayer().getSource()}renderFrame(i,l){const m=i.layerStatesArray[i.layerIndex],e=i.viewState,P=e.projection,x=e.resolution,T=e.center,U=e.rotation,D=i.pixelRatio,C=this.getLayer(),O=C.getSource(),X=O.getRevision(),$=O.getTileGridForProjection(P),dt=$.getZForResolution(x,O.zDirection),B=$.getResolution(dt);let k=i.extent;const L=i.viewState.resolution,p=O.getTilePixelRatio(D),M=Math.round((0,S.dz)(k)/L*D),R=Math.round((0,S.Cr)(k)/L*D),K=m.extent&&(0,v.dY)(m.extent,P);K&&(k=(0,S.Ed)(k,(0,v.dY)(m.extent,P)));const G=B*M/2/p,J=B*R/2/p,q=[T[0]-G,T[1]-J,T[0]+G,T[1]+J],ut=$.getTileRangeForExtentAndZ(k,dt),ht={};ht[dt]={};const _t=this.createLoadedTileFinder(O,P,ht),Tt=this.tmpExtent,Lt=this.tmpTileRange_;this.newTiles_=!1;const Ht=U?(0,S.dY)(e.center,L,U,i.size):void 0;for(let Nt=ut.minX;Nt<=ut.maxX;++Nt)for(let Bt=ut.minY;Bt<=ut.maxY;++Bt){if(U&&!$.tileCoordIntersectsViewport([dt,Nt,Bt],Ht))continue;const ie=this.getTile(dt,Nt,Bt,i);if(this.isDrawableTile(ie)){const Mt=(0,h.sq)(this);if(ie.getState()==j.Z.LOADED){ht[dt][ie.tileCoord.toString()]=ie;let Dt=ie.inTransition(Mt);Dt&&1!==m.opacity&&(ie.endTransition(Mt),Dt=!1),!this.newTiles_&&(Dt||!this.renderedTiles.includes(ie))&&(this.newTiles_=!0)}if(1===ie.getAlpha(Mt,i.time))continue}const Te=$.getTileCoordChildTileRange(ie.tileCoord,Lt,Tt);let he=!1;Te&&(he=_t(dt+1,Te)),he||$.forEachTileCoordParentTileRange(ie.tileCoord,_t,Lt,Tt)}const $t=B/x*D/p;(0,N.qC)(this.pixelTransform,i.size[0]/2,i.size[1]/2,1/D,1/D,U,-M/2,-R/2);const ae=(0,N.BB)(this.pixelTransform);this.useContainer(l,ae,this.getBackground(i));const Qt=this.context,_e=Qt.canvas;(0,N.nb)(this.inversePixelTransform,this.pixelTransform),(0,N.qC)(this.tempTransform,M/2,R/2,$t,$t,0,-M/2,-R/2),_e.width!=M||_e.height!=R?(_e.width=M,_e.height=R):this.containerReused||Qt.clearRect(0,0,M,R),K&&this.clipUnrotated(Qt,i,K),O.getInterpolate()||(Qt.imageSmoothingEnabled=!1),this.preRender(Qt,i),this.renderedTiles.length=0;let xe,Ze,xt,Ce=Object.keys(ht).map(Number);Ce.sort(w.j2),1!==m.opacity||this.containerReused&&!O.getOpaque(i.viewState.projection)?(xe=[],Ze=[]):Ce=Ce.reverse();for(let Nt=Ce.length-1;Nt>=0;--Nt){const Bt=Ce[Nt],ie=O.getTilePixelSize(Bt,D,P),he=$.getResolution(Bt)/B,Mt=ie[0]*he*$t,Dt=ie[1]*he*$t,Kt=$.getTileCoordForCoordAndZ((0,S.rL)(q),Bt),Yt=$.getTileCoordExtent(Kt),Jt=(0,N.nn)(this.tempTransform,[p*(Yt[0]-q[0])/B,p*(q[3]-Yt[3])/B]),ye=p*O.getGutterForProjection(P),Pe=ht[Bt];for(const ze in Pe){const He=Pe[ze],Zt=He.tileCoord,Et=Kt[1]-Zt[1],y=Math.round(Jt[0]-(Et-1)*Mt),z=Kt[2]-Zt[2],st=Math.round(Jt[1]-(z-1)*Dt),it=Math.round(Jt[0]-Et*Mt),vt=Math.round(Jt[1]-z*Dt),Pt=y-it,kt=st-vt,zt=dt===Bt,ee=zt&&1!==He.getAlpha((0,h.sq)(this),i.time);let re=!1;if(!ee)if(xe){xt=[it,vt,it+Pt,vt,it+Pt,vt+kt,it,vt+kt];for(let we=0,ge=xe.length;we{"use strict";r.d(gt,{Z:()=>i});var _=r(7599),g=r(6691),Q=r(1015),H=r(9500),j=r(7713),N=r(7139),w=r(9543),S=r(3842),v=r(7707),h=r(142),c=r(9015),u=r(513),s=r(5415);const i=class f extends g.Z{constructor(m){super(m),this.boundHandleStyleImageChange_=this.handleStyleImageChange_.bind(this),this.hitDetectionImageData_=null,this.renderedFeatures_=null,this.renderedRevision_=-1,this.renderedResolution_=NaN,this.renderedExtent_=(0,w.lJ)(),this.wrappedRenderedExtent_=(0,w.lJ)(),this.renderedCenter_=null,this.renderedProjection_=null,this.renderedRenderOrder_=null,this.replayGroup_=null,this.replayGroupChanged=!0,this.declutterExecutorGroup=null,this.clipping=!0,this.compositionContext_=null,this.opacity_=1}renderWorlds(m,e,P){const x=e.extent,T=e.viewState,U=T.center,D=T.resolution,C=T.projection,O=T.rotation,X=C.getExtent(),$=this.getLayer().getSource(),dt=e.pixelRatio,B=e.viewHints,k=!(B[H.Z.ANIMATING]||B[H.Z.INTERACTING]),L=this.compositionContext_,p=Math.round(e.size[0]*dt),M=Math.round(e.size[1]*dt),R=$.getWrapX()&&C.canWrapX(),K=R?(0,w.dz)(X):null,G=R?Math.ceil((x[2]-X[2])/K)+1:1;let J=R?Math.floor((x[0]-X[0])/K):0;do{const q=this.getRenderTransform(U,D,O,dt,p,M,J*K);m.execute(L,1,q,O,k,void 0,P)}while(++J{if(!this.hitDetectionImageData_&&!this.animatingOrInteracting_){const P=[this.context.canvas.width,this.context.canvas.height];(0,N.nn)(this.pixelTransform,P);const x=this.renderedCenter_,T=this.renderedResolution_,U=this.renderedRotation_,D=this.renderedProjection_,C=this.wrappedRenderedExtent_,O=this.getLayer(),X=[],$=P[0]*j.UN,dt=P[1]*j.UN;X.push(this.getRenderTransform(x,T,U,j.UN,$,dt,0).slice());const B=O.getSource(),k=D.getExtent();if(B.getWrapX()&&D.canWrapX()&&!(0,w.r4)(k,C)){let L=C[0];const p=(0,w.dz)(k);let R,M=0;for(;Lk[2];)++M,R=p*M,X.push(this.getRenderTransform(x,T,U,j.UN,$,dt,R).slice()),L-=p}this.hitDetectionImageData_=(0,j.TU)(P,X,this.renderedFeatures_,O.getStyleFunction(),C,T,U)}e((0,j.ix)(m,this.renderedFeatures_,this.hitDetectionImageData_))})}forEachFeatureAtCoordinate(m,e,P,x,T){if(!this.replayGroup_)return;const U=e.viewState.resolution,D=e.viewState.rotation,C=this.getLayer(),O={},X=function(B,k,L){const p=(0,u.sq)(B),M=O[p];if(M){if(!0!==M&&L$=B.forEachFeatureAtCoordinate(m,U,D,P,X,B===this.declutterExecutorGroup&&e.declutterTree?e.declutterTree.all().map(k=>k.value):null)),$}handleFontsChanged(){const m=this.getLayer();m.getVisible()&&this.replayGroup_&&m.changed()}handleStyleImageChange_(m){this.renderIfReadyAndVisible()}prepareFrame(m){const e=this.getLayer(),P=e.getSource();if(!P)return!1;const x=m.viewHints[H.Z.ANIMATING],T=m.viewHints[H.Z.INTERACTING],U=e.getUpdateWhileAnimating(),D=e.getUpdateWhileInteracting();if(this.ready&&!U&&x||!D&&T)return this.animatingOrInteracting_=!0,!0;this.animatingOrInteracting_=!1;const C=m.extent,O=m.viewState,X=O.projection,$=O.resolution,dt=m.pixelRatio,B=e.getRevision(),k=e.getRenderBuffer();let L=e.getRenderOrder();void 0===L&&(L=v.eR);const p=O.center.slice(),M=(0,w.f3)(C,k*$),R=M.slice(),K=[M.slice()],G=X.getExtent();if(P.getWrapX()&&X.canWrapX()&&!(0,w.r4)(G,m.extent)){const _e=(0,w.dz)(G),Ce=Math.max((0,w.dz)(M)/2,_e);M[0]=G[0]-Ce,M[2]=G[2]+Ce,(0,s.Cf)(p,X);const xe=(0,w.Cf)(K[0],X);xe[0]G[0]&&xe[2]>G[2]&&K.push([xe[0]-_e,xe[1],xe[2]-_e,xe[3]])}if(this.ready&&this.renderedResolution_==$&&this.renderedRevision_==B&&this.renderedRenderOrder_==L&&(0,w.r4)(this.wrappedRenderedExtent_,M))return(0,h.fS)(this.renderedExtent_,R)||(this.hitDetectionImageData_=null,this.renderedExtent_=R),this.renderedCenter_=p,this.replayGroupChanged=!1,!0;this.replayGroup_=null;const J=new _.Z((0,v.Qz)($,dt),M,$,dt);let q;this.getLayer().getDeclutter()&&(q=new _.Z((0,v.Qz)($,dt),M,$,dt));const ut=(0,c.Cs)();let ht;if(ut){for(let _e=0,Ce=K.length;_e{let Ce;const xe=_e.getStyleFunction()||e.getStyleFunction();if(xe&&(Ce=xe(_e,$)),Ce){const Ze=this.renderFeature(_e,_t,Ce,J,ht,q);Tt=Tt&&!Ze}},Ht=(0,c.Fj)(M,X),$t=P.getFeaturesInExtent(Ht);L&&$t.sort(L);for(let _e=0,Ce=$t.length;_e{"use strict";r.d(gt,{Pn:()=>v,Qz:()=>w,eR:()=>j,se:()=>N});var _=r(1501),g=r(513);const H={Point:function l(P,x,T,U,D){const C=T.getImage(),O=T.getText();let X;if(C){if(C.getImageState()!=_.Z.LOADED)return;let $=P;if(D){const B=C.getDeclutterMode();if("none"!==B)if($=D,"obstacle"===B){const k=P.getBuilder(T.getZIndex(),"Image");k.setImageStyle(C,X),k.drawPoint(x,U)}else O&&O.getText()&&(X={})}const dt=$.getBuilder(T.getZIndex(),"Image");dt.setImageStyle(C,X),dt.drawPoint(x,U)}if(O&&O.getText()){let $=P;D&&($=D);const dt=$.getBuilder(T.getZIndex(),"Text");dt.setTextStyle(O,X),dt.drawText(x,U)}},LineString:function s(P,x,T,U,D){const C=T.getStroke();if(C){const X=P.getBuilder(T.getZIndex(),"LineString");X.setFillStrokeStyle(null,C),X.drawLineString(x,U)}const O=T.getText();if(O&&O.getText()){const X=(D||P).getBuilder(T.getZIndex(),"Text");X.setTextStyle(O),X.drawText(x,U)}},Polygon:function e(P,x,T,U,D){const C=T.getFill(),O=T.getStroke();if(C||O){const $=P.getBuilder(T.getZIndex(),"Polygon");$.setFillStrokeStyle(C,O),$.drawPolygon(x,U)}const X=T.getText();if(X&&X.getText()){const $=(D||P).getBuilder(T.getZIndex(),"Text");$.setTextStyle(X),$.drawText(x,U)}},MultiPoint:function m(P,x,T,U,D){const C=T.getImage(),O=T.getText();let X;if(C){if(C.getImageState()!=_.Z.LOADED)return;let $=P;if(D){const B=C.getDeclutterMode();if("none"!==B)if($=D,"obstacle"===B){const k=P.getBuilder(T.getZIndex(),"Image");k.setImageStyle(C,X),k.drawMultiPoint(x,U)}else O&&O.getText()&&(X={})}const dt=$.getBuilder(T.getZIndex(),"Image");dt.setImageStyle(C,X),dt.drawMultiPoint(x,U)}if(O&&O.getText()){let $=P;D&&($=D);const dt=$.getBuilder(T.getZIndex(),"Text");dt.setTextStyle(O,X),dt.drawText(x,U)}},MultiLineString:function f(P,x,T,U,D){const C=T.getStroke();if(C){const X=P.getBuilder(T.getZIndex(),"LineString");X.setFillStrokeStyle(null,C),X.drawMultiLineString(x,U)}const O=T.getText();if(O&&O.getText()){const X=(D||P).getBuilder(T.getZIndex(),"Text");X.setTextStyle(O),X.drawText(x,U)}},MultiPolygon:function i(P,x,T,U,D){const C=T.getFill(),O=T.getStroke();if(O||C){const $=P.getBuilder(T.getZIndex(),"Polygon");$.setFillStrokeStyle(C,O),$.drawMultiPolygon(x,U)}const X=T.getText();if(X&&X.getText()){const $=(D||P).getBuilder(T.getZIndex(),"Text");$.setTextStyle(X),$.drawText(x,U)}},GeometryCollection:function u(P,x,T,U,D){const C=x.getGeometriesArray();let O,X;for(O=0,X=C.length;O{"use strict";r.d(gt,{Co:()=>c,aA:()=>h,rX:()=>N,sY:()=>u});var _=r(9543),g=r(3842),Q=r(9015),H=r(4331);let j;const N=[];function w(s,f,i,l,m){s.beginPath(),s.moveTo(0,0),s.lineTo(f,i),s.lineTo(l,m),s.closePath(),s.save(),s.clip(),s.fillRect(0,0,Math.max(f,l)+1,Math.max(i,m)),s.restore()}function S(s,f){return Math.abs(s[4*f]-210)>2||Math.abs(s[4*f+3]-191.25)>2}function h(s,f,i,l){const m=(0,Q.vs)(i,f,s);let e=(0,Q._Q)(f,l,i);const P=f.getMetersPerUnit();void 0!==P&&(e*=P);const x=s.getMetersPerUnit();void 0!==x&&(e/=x);const T=s.getExtent();if(!T||(0,_.b8)(T,m)){const U=(0,Q._Q)(s,e,m)/e;isFinite(U)&&U>0&&(e/=U)}return e}function c(s,f,i,l){const m=(0,_.qg)(i);let e=h(s,f,m,l);return(!isFinite(e)||e<=0)&&(0,_.H6)(i,function(P){return e=h(s,f,P,l),isFinite(e)&&e>0}),e}function u(s,f,i,l,m,e,P,x,T,U,D,C){const O=(0,g.E4)(Math.round(i*s),Math.round(i*f),N);if(C||(O.imageSmoothingEnabled=!1),0===T.length)return O.canvas;function X(M){return Math.round(M*i)/i}O.scale(i,i),O.globalCompositeOperation="lighter";const $=(0,_.lJ)();T.forEach(function(M,R,K){(0,_.l7)($,M.extent)});const dt=(0,_.dz)($),B=(0,_.Cr)($),k=(0,g.E4)(Math.round(i*dt/l),Math.round(i*B/l),N);C||(k.imageSmoothingEnabled=!1);const L=i/l;T.forEach(function(M,R,K){const G=M.extent[0]-$[0],J=-(M.extent[3]-$[3]),q=(0,_.dz)(M.extent),ut=(0,_.Cr)(M.extent);M.image.width>0&&M.image.height>0&&k.drawImage(M.image,U,U,M.image.width-2*U,M.image.height-2*U,G*L,J*L,q*L,ut*L)});const p=(0,_.rL)(P);return x.getTriangles().forEach(function(M,R,K){const G=M.source,J=M.target;let q=G[0][0],ut=G[0][1],ht=G[1][0],_t=G[1][1],Tt=G[2][0],Lt=G[2][1];const Ht=X((J[0][0]-p[0])/e),$t=X(-(J[0][1]-p[1])/e),ae=X((J[1][0]-p[0])/e),Qt=X(-(J[1][1]-p[1])/e),_e=X((J[2][0]-p[0])/e),Ce=X(-(J[2][1]-p[1])/e),xe=q,Ze=ut;q=0,ut=0,ht-=xe,_t-=Ze,Tt-=xe,Lt-=Ze;const Nt=(0,H.SV)([[ht,_t,0,0,ae-Ht],[Tt,Lt,0,0,_e-Ht],[0,0,ht,_t,Qt-$t],[0,0,Tt,Lt,Ce-$t]]);if(Nt){if(O.save(),O.beginPath(),function v(){if(void 0===j){const s=(0,g.E4)(6,6,N);s.globalCompositeOperation="lighter",s.fillStyle="rgba(210, 0, 0, 0.75)",w(s,4,5,4,0),w(s,4,5,0,5);const f=s.getImageData(0,0,3,3).data;j=S(f,0)||S(f,4)||S(f,8),(0,g.jy)(s),N.push(s.canvas)}return j}()||!C){O.moveTo(ae,Qt);const Bt=4,ie=Ht-ae,Te=$t-Qt;for(let he=0;he{"use strict";r.d(gt,{Z:()=>u});var _=r(3094),g=r(3044),Q=r(8786),H=r(4700),j=r(6887),N=r(5114),w=r(4331),S=r(9543),v=r(2716),h=r(3842);const u=class c extends Q.Z{constructor(f,i,l,m,e,P,x,T,U,D,C,O){super(e,H.Z.IDLE,{interpolate:!!O}),this.renderEdges_=void 0!==C&&C,this.pixelRatio_=x,this.gutter_=T,this.canvas_=null,this.sourceTileGrid_=i,this.targetTileGrid_=m,this.wrappedTileCoord_=P||e,this.sourceTiles_=[],this.sourcesListenerKeys_=null,this.sourceZ_=0;const X=m.getTileCoordExtent(this.wrappedTileCoord_),$=this.targetTileGrid_.getExtent();let dt=this.sourceTileGrid_.getExtent();const B=$?(0,S.Ed)(X,$):X;if(0===(0,S.bg)(B))return void(this.state=H.Z.EMPTY);const k=f.getExtent();k&&(dt=dt?(0,S.Ed)(dt,k):k);const L=m.getResolution(this.wrappedTileCoord_[0]),p=(0,N.Co)(f,l,B,L);if(!isFinite(p)||p<=0)return void(this.state=H.Z.EMPTY);if(this.triangulation_=new j.Z(f,l,B,dt,p*(void 0!==D?D:_.m),L),0===this.triangulation_.getTriangles().length)return void(this.state=H.Z.EMPTY);this.sourceZ_=i.getZForResolution(p);let R=this.triangulation_.calculateSourceExtent();if(dt&&(f.canWrapX()?(R[1]=(0,w.uZ)(R[1],dt[1],dt[3]),R[3]=(0,w.uZ)(R[3],dt[1],dt[3])):R=(0,S.Ed)(R,dt)),(0,S.bg)(R)){const K=i.getTileRangeForExtentAndZ(R,this.sourceZ_);for(let G=K.minX;G<=K.maxX;G++)for(let J=K.minY;J<=K.maxY;J++){const q=U(this.sourceZ_,G,J,x);q&&this.sourceTiles_.push(q)}0===this.sourceTiles_.length&&(this.state=H.Z.EMPTY)}else this.state=H.Z.EMPTY}getImage(){return this.canvas_}reproject_(){const f=[];if(this.sourceTiles_.forEach(i=>{i&&i.getState()==H.Z.LOADED&&f.push({extent:this.sourceTileGrid_.getTileCoordExtent(i.tileCoord),image:i.getImage()})}),this.sourceTiles_.length=0,0===f.length)this.state=H.Z.ERROR;else{const i=this.wrappedTileCoord_[0],l=this.targetTileGrid_.getTileSize(i),m="number"==typeof l?l:l[0],e="number"==typeof l?l:l[1],P=this.targetTileGrid_.getResolution(i),x=this.sourceTileGrid_.getResolution(this.sourceZ_),T=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=(0,N.sY)(m,e,this.pixelRatio_,x,this.sourceTileGrid_.getExtent(),P,T,this.triangulation_,f,this.gutter_,this.renderEdges_,this.interpolate),this.state=H.Z.LOADED}this.changed()}load(){if(this.state==H.Z.IDLE){this.state=H.Z.LOADING,this.changed();let f=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach(i=>{const l=i.getState();if(l==H.Z.IDLE||l==H.Z.LOADING){f++;const m=(0,v.oL)(i,g.Z.CHANGE,function(e){const P=i.getState();(P==H.Z.LOADED||P==H.Z.ERROR||P==H.Z.EMPTY)&&((0,v.bN)(m),f--,0===f&&(this.unlistenSources_(),this.reproject_()))},this);this.sourcesListenerKeys_.push(m)}}),0===f?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach(function(i,l,m){i.getState()==H.Z.IDLE&&i.load()})}}unlistenSources_(){this.sourcesListenerKeys_.forEach(v.bN),this.sourcesListenerKeys_=null}release(){this.canvas_&&((0,h.jy)(this.canvas_.getContext("2d")),N.rX.push(this.canvas_),this.canvas_=null),super.release()}}},6887:(Vt,gt,r)=>{"use strict";r.d(gt,{Z:()=>w});var _=r(9543),g=r(9015),Q=r(4331);const w=class N{constructor(v,h,c,u,s,f){this.sourceProj_=v,this.targetProj_=h;let i={};const l=(0,g.Ck)(this.targetProj_,this.sourceProj_);this.transformInv_=function(X){const $=X[0]+"/"+X[1];return i[$]||(i[$]=l(X)),i[$]},this.maxSourceExtent_=u,this.errorThresholdSquared_=s*s,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!u&&!!this.sourceProj_.getExtent()&&(0,_.dz)(u)==(0,_.dz)(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?(0,_.dz)(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?(0,_.dz)(this.targetProj_.getExtent()):null;const m=(0,_.rL)(c),e=(0,_.Xv)(c),P=(0,_.w$)(c),x=(0,_.hC)(c),T=this.transformInv_(m),U=this.transformInv_(e),D=this.transformInv_(P),C=this.transformInv_(x),O=10+(f?Math.max(0,Math.ceil(Math.log2((0,_.bg)(c)/(f*f*256*256)))):0);if(this.addQuad_(m,e,P,x,T,U,D,C,O),this.wrapsXInSource_){let X=1/0;this.triangles_.forEach(function($,dt,B){X=Math.min(X,$.source[0][0],$.source[1][0],$.source[2][0])}),this.triangles_.forEach($=>{if(Math.max($.source[0][0],$.source[1][0],$.source[2][0])-X>this.sourceWorldWidth_/2){const dt=[[$.source[0][0],$.source[0][1]],[$.source[1][0],$.source[1][1]],[$.source[2][0],$.source[2][1]]];dt[0][0]-X>this.sourceWorldWidth_/2&&(dt[0][0]-=this.sourceWorldWidth_),dt[1][0]-X>this.sourceWorldWidth_/2&&(dt[1][0]-=this.sourceWorldWidth_),dt[2][0]-X>this.sourceWorldWidth_/2&&(dt[2][0]-=this.sourceWorldWidth_);const B=Math.min(dt[0][0],dt[1][0],dt[2][0]);Math.max(dt[0][0],dt[1][0],dt[2][0])-B.5&&P<1;let U=!1;if(m>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){const C=(0,_.hI)([v,h,c,u]);U=(0,_.dz)(C)/this.targetWorldWidth_>.25||U}!T&&this.sourceProj_.isGlobal()&&P&&(U=P>.25||U)}if(!U&&this.maxSourceExtent_&&isFinite(e[0])&&isFinite(e[1])&&isFinite(e[2])&&isFinite(e[3])&&!(0,_.kK)(e,this.maxSourceExtent_))return;let D=0;if(!(U||isFinite(s[0])&&isFinite(s[1])&&isFinite(f[0])&&isFinite(f[1])&&isFinite(i[0])&&isFinite(i[1])&&isFinite(l[0])&&isFinite(l[1])))if(m>0)U=!0;else if(D=(isFinite(s[0])&&isFinite(s[1])?0:8)+(isFinite(f[0])&&isFinite(f[1])?0:4)+(isFinite(i[0])&&isFinite(i[1])?0:2)+(isFinite(l[0])&&isFinite(l[1])?0:1),1!=D&&2!=D&&4!=D&&8!=D)return;if(m>0){if(!U){const O=this.transformInv_([(v[0]+c[0])/2,(v[1]+c[1])/2]);let X;X=T?((0,Q.$W)(s[0],x)+(0,Q.$W)(i[0],x))/2-(0,Q.$W)(O[0],x):(s[0]+i[0])/2-O[0];const $=(s[1]+i[1])/2-O[1];U=X*X+$*$>this.errorThresholdSquared_}if(U){if(Math.abs(v[0]-c[0])<=Math.abs(v[1]-c[1])){const C=[(h[0]+c[0])/2,(h[1]+c[1])/2],O=this.transformInv_(C),X=[(u[0]+v[0])/2,(u[1]+v[1])/2],$=this.transformInv_(X);this.addQuad_(v,h,C,X,s,f,O,$,m-1),this.addQuad_(X,C,c,u,$,O,i,l,m-1)}else{const C=[(v[0]+h[0])/2,(v[1]+h[1])/2],O=this.transformInv_(C),X=[(c[0]+u[0])/2,(c[1]+u[1])/2],$=this.transformInv_(X);this.addQuad_(v,C,X,u,s,O,$,l,m-1),this.addQuad_(C,h,c,X,O,f,i,$,m-1)}return}}if(T){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}0==(11&D)&&this.addTriangle_(v,c,u,s,i,l),0==(14&D)&&this.addTriangle_(v,c,h,s,i,f),D&&(0==(13&D)&&this.addTriangle_(h,u,v,f,l,s),0==(7&D)&&this.addTriangle_(h,u,c,f,l,i))}calculateSourceExtent(){const v=(0,_.lJ)();return this.triangles_.forEach(function(h,c,u){const s=h.source;(0,_.Wj)(v,s[0]),(0,_.Wj)(v,s[1]),(0,_.Wj)(v,s[2])}),v}getTriangles(){return this.triangles_}}},3094:(Vt,gt,r)=>{"use strict";r.d(gt,{m:()=>_});const _=.5},7011:(Vt,gt,r)=>{"use strict";r.d(gt,{Gw:()=>j,YP:()=>Q,gE:()=>H,h$:()=>g});var _=r(4331);function g(N){if(void 0!==N)return 0}function Q(N){if(void 0!==N)return N}function H(N){const w=2*Math.PI/N;return function(S,v){return v?S:void 0!==S?S=Math.floor(S/w+.5)*w:void 0}}function j(N){return N=N||(0,_.Yr)(5),function(w,S){return S?w:void 0!==w?Math.abs(w)<=N?0:w:void 0}}},931:(Vt,gt,r)=>{"use strict";function _(j,N,w){return void 0===w&&(w=[0,0]),w[0]=j[0]+2*N,w[1]=j[1]+2*N,w}function g(j){return j[0]>0&&j[1]>0}function Q(j,N,w){return void 0===w&&(w=[0,0]),w[0]=j[0]*N+.5|0,w[1]=j[1]*N+.5|0,w}function H(j,N){return Array.isArray(j)?j:(void 0===N?N=[j,j]:(N[0]=j,N[1]=j),N)}r.d(gt,{Pq:()=>H,bA:()=>Q,f3:()=>_,py:()=>g})},2663:(Vt,gt,r)=>{"use strict";r.d(gt,{Z:()=>h});var _=r(3044),g=r(3413),Q=r(7026),H=r(3149),j=r(5415),N=r(992),w=r(9543),S=r(513);const h=class v extends H.Z{constructor(u){super({attributions:u.attributions,wrapX:u.wrapX}),this.resolution=void 0,this.distance=void 0!==u.distance?u.distance:20,this.minDistance=u.minDistance||0,this.interpolationRatio=0,this.features=[],this.geometryFunction=u.geometryFunction||function(s){const f=s.getGeometry();return(0,N.h)("Point"==f.getType(),10),f},this.createCustomCluster_=u.createCluster,this.source=null,this.boundRefresh_=this.refresh.bind(this),this.updateDistance(this.distance,this.minDistance),this.setSource(u.source||null)}clear(u){this.features.length=0,super.clear(u)}getDistance(){return this.distance}getSource(){return this.source}loadFeatures(u,s,f){this.source.loadFeatures(u,s,f),s!==this.resolution&&(this.resolution=s,this.refresh())}setDistance(u){this.updateDistance(u,this.minDistance)}setMinDistance(u){this.updateDistance(this.distance,u)}getMinDistance(){return this.minDistance}setSource(u){this.source&&this.source.removeEventListener(_.Z.CHANGE,this.boundRefresh_),this.source=u,u&&u.addEventListener(_.Z.CHANGE,this.boundRefresh_),this.refresh()}refresh(){this.clear(),this.cluster(),this.addFeatures(this.features)}updateDistance(u,s){const f=0===u?0:Math.min(s,u)/u,i=u!==this.distance||this.interpolationRatio!==f;this.distance=u,this.minDistance=s,this.interpolationRatio=f,i&&this.refresh()}cluster(){if(void 0===this.resolution||!this.source)return;const u=(0,w.lJ)(),s=this.distance*this.resolution,f=this.source.getFeatures(),i={};for(let l=0,m=f.length;l=0;--e){const P=this.geometryFunction(u[e]);P?(0,j.IH)(f,P.getCoordinates()):u.splice(e,1)}(0,j.bA)(f,1/u.length);const i=(0,w.qg)(s),l=this.interpolationRatio,m=new Q.Z([f[0]*(1-l)+i[0]*l,f[1]*(1-l)+i[1]*l]);return this.createCustomCluster_?this.createCustomCluster_(m,u):new g.Z({geometry:m,features:u})}}},9375:(Vt,gt,r)=>{"use strict";r.d(gt,{ZP:()=>x,r6:()=>P});var _=r(3615),g=r(1501),Q=r(3094),H=r(3044),j=r(1649),N=r(6887),w=r(5114),S=r(9543),v=r(2716);const c=class h extends j.Z{constructor(U,D,C,O,X,$,dt){const B=U.getExtent(),k=D.getExtent(),L=k?(0,S.Ed)(C,k):C,p=(0,S.qg)(L),M=(0,w.aA)(U,D,p,O),K=new N.Z(U,D,L,B,M*Q.m,O),J=$(K.calculateSourceExtent(),M,X),q=J?g.Z.IDLE:g.Z.EMPTY,ut=J?J.getPixelRatio():1;super(C,O,ut,q),this.targetProj_=D,this.maxSourceExtent_=B,this.triangulation_=K,this.targetResolution_=O,this.targetExtent_=C,this.sourceImage_=J,this.sourcePixelRatio_=ut,this.interpolate_=dt,this.canvas_=null,this.sourceListenerKey_=null}disposeInternal(){this.state==g.Z.LOADING&&this.unlistenSource_(),super.disposeInternal()}getImage(){return this.canvas_}getProjection(){return this.targetProj_}reproject_(){const U=this.sourceImage_.getState();if(U==g.Z.LOADED){const D=(0,S.dz)(this.targetExtent_)/this.targetResolution_,C=(0,S.Cr)(this.targetExtent_)/this.targetResolution_;this.canvas_=(0,w.sY)(D,C,this.sourcePixelRatio_,this.sourceImage_.getResolution(),this.maxSourceExtent_,this.targetResolution_,this.targetExtent_,this.triangulation_,[{extent:this.sourceImage_.getExtent(),image:this.sourceImage_.getImage()}],0,void 0,this.interpolate_)}this.state=U,this.changed()}load(){if(this.state==g.Z.IDLE){this.state=g.Z.LOADING,this.changed();const U=this.sourceImage_.getState();U==g.Z.LOADED||U==g.Z.ERROR?this.reproject_():(this.sourceListenerKey_=(0,v.oL)(this.sourceImage_,H.Z.CHANGE,function(D){const C=this.sourceImage_.getState();(C==g.Z.LOADED||C==g.Z.ERROR)&&(this.unlistenSource_(),this.reproject_())},this),this.sourceImage_.load())}}unlistenSource_(){(0,v.bN)(this.sourceListenerKey_),this.sourceListenerKey_=null}};var u=r(2673),s=r(513),f=r(9015),i=r(142);class m extends _.ZP{constructor(U,D){super(U),this.image=D}}function P(T,U){T.getImage().src=U}const x=class e extends u.Z{constructor(U){super({attributions:U.attributions,projection:U.projection,state:U.state,interpolate:void 0===U.interpolate||U.interpolate}),this.resolutions_=void 0!==U.resolutions?U.resolutions:null,this.reprojectedImage_=null,this.reprojectedRevision_=0}getResolutions(){return this.resolutions_}setResolutions(U){this.resolutions_=U}findNearestResolution(U){const D=this.getResolutions();return D&&(U=D[(0,i.h7)(D,U,0)]),U}getImage(U,D,C,O){const X=this.getProjection();if(!X||!O||(0,f.OP)(X,O))return X&&(O=X),this.getImageInternal(U,D,C,O);if(this.reprojectedImage_){if(this.reprojectedRevision_==this.getRevision()&&(0,f.OP)(this.reprojectedImage_.getProjection(),O)&&this.reprojectedImage_.getResolution()==D&&(0,S.fS)(this.reprojectedImage_.getExtent(),U))return this.reprojectedImage_;this.reprojectedImage_.dispose(),this.reprojectedImage_=null}return this.reprojectedImage_=new c(X,O,U,D,C,($,dt,B)=>this.getImageInternal($,dt,B,X),this.getInterpolate()),this.reprojectedRevision_=this.getRevision(),this.reprojectedImage_}getImageInternal(U,D,C,O){return(0,s.O3)()}handleImageChange(U){const D=U.target;let C;switch(D.getState()){case g.Z.LOADING:this.loading=!0,C="imageloadstart";break;case g.Z.LOADED:this.loading=!1,C="imageloadend";break;case g.Z.ERROR:this.loading=!1,C="imageloaderror";break;default:return}this.hasListener(C)&&this.dispatchEvent(new m(C,D))}}},6819:(Vt,gt,r)=>{"use strict";r.d(gt,{Z:()=>l});var _=r(3044),g=r(9375),Q=r(1309),H=r(4910),j=r(6941),N=r(992),w=r(5114),S=r(4331),v=r(7531),h=r(9543),c=r(3842),u=r(9015);const f=[101,101],l=class i extends g.ZP{constructor(e){super({attributions:(e=e||{}).attributions,interpolate:e.interpolate,projection:e.projection,resolutions:e.resolutions}),this.context_=(0,c.E4)(1,1),this.crossOrigin_=void 0!==e.crossOrigin?e.crossOrigin:null,this.url_=e.url,this.imageLoadFunction_=void 0!==e.imageLoadFunction?e.imageLoadFunction:g.r6,this.params_=Object.assign({},e.params),this.v13_=!0,this.updateV13_(),this.serverType_=e.serverType,this.hidpi_=void 0===e.hidpi||e.hidpi,this.image_=null,this.imageSize_=[0,0],this.renderedRevision_=0,this.ratio_=void 0!==e.ratio?e.ratio:1.5}getFeatureInfoUrl(e,P,x,T){if(void 0===this.url_)return;const U=(0,u.U2)(x),D=this.getProjection();D&&D!==U&&(P=(0,w.aA)(D,U,e,P),e=(0,u.vs)(e,U,D));const C=(0,h.p8)(e,P,0,f),O={SERVICE:"WMS",VERSION:H.e,REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.params_.LAYERS};Object.assign(O,this.params_,T);const X=(0,S.GW)((e[0]-C[0])/P,4),$=(0,S.GW)((C[3]-e[1])/P,4);return O[this.v13_?"I":"X"]=X,O[this.v13_?"J":"Y"]=$,this.getRequestUrl_(C,f,1,D||U,O)}getLegendUrl(e,P){if(void 0===this.url_)return;const x={SERVICE:"WMS",VERSION:H.e,REQUEST:"GetLegendGraphic",FORMAT:"image/png"};if(void 0===P||void 0===P.LAYER){const T=this.params_.LAYERS;if(Array.isArray(T)&&1!==T.length)return;x.LAYER=T}if(void 0!==e){const T=this.getProjection()?this.getProjection().getMetersPerUnit():1;x.SCALE=e*T/28e-5}return Object.assign(x,P),(0,j.B)(this.url_,x)}getParams(){return this.params_}getImageInternal(e,P,x,T){if(void 0===this.url_)return null;P=this.findNearestResolution(P),1!=x&&(!this.hidpi_||void 0===this.serverType_)&&(x=1);const U=P/x,D=(0,h.qg)(e),C=(0,S.mD)((0,h.dz)(e)/U,4),O=(0,S.mD)((0,h.Cr)(e)/U,4),X=(0,h.p8)(D,U,0,[C,O]),$=(0,S.mD)(this.ratio_*(0,h.dz)(e)/U,4),dt=(0,S.mD)(this.ratio_*(0,h.Cr)(e)/U,4),B=(0,h.p8)(D,U,0,[$,dt]),k=this.image_;if(k&&this.renderedRevision_==this.getRevision()&&k.getResolution()==P&&k.getPixelRatio()==x&&(0,h.r4)(k.getExtent(),X))return k;const L={SERVICE:"WMS",VERSION:H.e,REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0};Object.assign(L,this.params_),this.imageSize_[0]=(0,S.NM)((0,h.dz)(B)/U,4),this.imageSize_[1]=(0,S.NM)((0,h.Cr)(B)/U,4);const p=this.getRequestUrl_(B,this.imageSize_,x,T,L);return this.image_=new Q.Z(B,P,x,p,this.crossOrigin_,this.imageLoadFunction_,this.context_),this.renderedRevision_=this.getRevision(),this.image_.addEventListener(_.Z.CHANGE,this.handleImageChange.bind(this)),this.image_}getImageLoadFunction(){return this.imageLoadFunction_}getRequestUrl_(e,P,x,T,U){if((0,N.h)(void 0!==this.url_,9),U[this.v13_?"CRS":"SRS"]=T.getCode(),"STYLES"in this.params_||(U.STYLES=""),1!=x)switch(this.serverType_){case"geoserver":const O=90*x+.5|0;"FORMAT_OPTIONS"in U?U.FORMAT_OPTIONS+=";dpi:"+O:U.FORMAT_OPTIONS="dpi:"+O;break;case"mapserver":U.MAP_RESOLUTION=90*x;break;case"carmentaserver":case"qgis":U.DPI=90*x;break;default:(0,N.h)(!1,8)}U.WIDTH=P[0],U.HEIGHT=P[1];const D=T.getAxisOrientation();let C;return C=this.v13_&&"ne"==D.substr(0,2)?[e[1],e[0],e[3],e[2]]:e,U.BBOX=C.join(","),(0,j.B)(this.url_,U)}getUrl(){return this.url_}setImageLoadFunction(e){this.image_=null,this.imageLoadFunction_=e,this.changed()}setUrl(e){e!=this.url_&&(this.url_=e,this.image_=null,this.changed())}updateParams(e){Object.assign(this.params_,e),this.updateV13_(),this.image_=null,this.changed()}updateV13_(){this.v13_=(0,v.n)(this.params_.VERSION||H.e,"1.3")>=0}}},7274:(Vt,gt,r)=>{"use strict";r.d(gt,{Z:()=>H});var _=r(6290);const H=class Q extends _.Z{constructor(N){let w;w=void 0!==(N=N||{}).attributions?N.attributions:['© OpenStreetMap contributors.'],super({attributions:w,attributionsCollapsible:!1,cacheSize:N.cacheSize,crossOrigin:void 0!==N.crossOrigin?N.crossOrigin:"anonymous",interpolate:N.interpolate,maxZoom:void 0!==N.maxZoom?N.maxZoom:19,opaque:void 0===N.opaque||N.opaque,reprojectionErrorThreshold:N.reprojectionErrorThreshold,tileLoadFunction:N.tileLoadFunction,transition:N.transition,url:void 0!==N.url?N.url:"https://tile.openstreetmap.org/{z}/{x}/{y}.png",wrapX:N.wrapX,zDirection:N.zDirection})}}},524:(Vt,gt,r)=>{"use strict";r.d(gt,{ZP:()=>k});var _=r(6450),g=r(3615),Q=r(3044),H=r(443),j=r(6906),N=r(9375),w=r(2673),S=r(993),v=r(2988),h=r(6027),c=r(3842),u=r(7139),s=r(9543),f=r(513);let l,i=!0;try{new ImageData(10,10)}catch{i=!1}function e(L){let p=!0;try{new ImageData(10,10)}catch{p=!1}function M(R,K,G){return p?new ImageData(R,K,G):{data:R,width:K,height:G}}return function(R){const K=R.buffers,G=R.meta,q=R.width,ut=R.height,ht=K.length,_t=K[0].byteLength;if(R.imageOps){const $t=new Array(ht);for(let Qt=0;Qt"u"?"data:text/javascript;base64,"+Buffer.from(R.join("\n"),"binary").toString("base64"):URL.createObjectURL(new Blob(R,{type:"text/javascript"})));return K.addEventListener("message",p),K}class T extends _.Z{constructor(p){let M;super(),this._imageOps=!!p.imageOps,M=0===p.threads?0:this._imageOps?1:p.threads||1;const R=new Array(M);if(M)for(let K=0;Kthis._maxQueueLength;)this._queue.shift().callback(null,null)}_dispatch(){if(this._running||0===this._queue.length)return;const p=this._queue.shift();this._job=p;const M=p.inputs[0].width,R=p.inputs[0].height,K=p.inputs.map(function(ut){return ut.data.buffer}),G=this._workers.length;if(this._running=G,1===G)return void this._workers[0].postMessage({buffers:K,meta:p.meta,imageOps:this._imageOps,width:M,height:R},K);const q=4*Math.ceil(p.inputs[0].data.length/4/G);for(let ut=0;ut{"use strict";r.d(gt,{Z:()=>j});var _=r(4115),g=r(9015);function H(N){return N?Array.isArray(N)?function(w){return N}:"function"==typeof N?N:function(w){return[N]}:null}const j=class Q extends _.Z{constructor(w){super(),this.projection=(0,g.U2)(w.projection),this.attributions_=H(w.attributions),this.attributionsCollapsible_=void 0===w.attributionsCollapsible||w.attributionsCollapsible,this.loading=!1,this.state_=void 0!==w.state?w.state:"ready",this.wrapX_=void 0!==w.wrapX&&w.wrapX,this.interpolate_=!!w.interpolate,this.viewResolver=null,this.viewRejector=null;const S=this;this.viewPromise_=new Promise(function(v,h){S.viewResolver=v,S.viewRejector=h})}getAttributions(){return this.attributions_}getAttributionsCollapsible(){return this.attributionsCollapsible_}getProjection(){return this.projection}getResolutions(w){return null}getView(){return this.viewPromise_}getState(){return this.state_}getWrapX(){return this.wrapX_}getInterpolate(){return this.interpolate_}refresh(){this.changed()}setAttributions(w){this.attributions_=H(w),this.changed()}setState(w){this.state_=w,this.changed()}}},6027:(Vt,gt,r)=>{"use strict";r.d(gt,{Z:()=>s,s:()=>u});var _=r(3615),g=r(2673),Q=r(7450),H=r(4700),j=r(513),N=r(992),w=r(9015),S=r(5474),v=r(2705),h=r(931);class u extends _.ZP{constructor(i,l){super(i),this.tile=l}}const s=class c extends g.Z{constructor(i){super({attributions:i.attributions,attributionsCollapsible:i.attributionsCollapsible,projection:i.projection,state:i.state,wrapX:i.wrapX,interpolate:i.interpolate}),this.opaque_=void 0!==i.opaque&&i.opaque,this.tilePixelRatio_=void 0!==i.tilePixelRatio?i.tilePixelRatio:1,this.tileGrid=void 0!==i.tileGrid?i.tileGrid:null,this.tileGrid&&(0,h.Pq)(this.tileGrid.getTileSize(this.tileGrid.getMinZoom()),[256,256]),this.tileCache=new Q.Z(i.cacheSize||0),this.tmpSize=[0,0],this.key_=i.key||"",this.tileOptions={transition:i.transition,interpolate:i.interpolate},this.zDirection=i.zDirection?i.zDirection:0}canExpireCache(){return this.tileCache.canExpireCache()}expireCache(i,l){const m=this.getTileCacheForProjection(i);m&&m.expireCache(l)}forEachLoadedTile(i,l,m,e){const P=this.getTileCacheForProjection(i);if(!P)return!1;let T,U,D,x=!0;for(let C=m.minX;C<=m.maxX;++C)for(let O=m.minY;O<=m.maxY;++O)U=(0,S.lg)(l,C,O),D=!1,P.containsKey(U)&&(T=P.get(U),D=T.getState()===H.Z.LOADED,D&&(D=!1!==e(T))),D||(x=!1);return x}getGutterForProjection(i){return 0}getKey(){return this.key_}setKey(i){this.key_!==i&&(this.key_=i,this.changed())}getOpaque(i){return this.opaque_}getResolutions(i){const l=i?this.getTileGridForProjection(i):this.tileGrid;return l?l.getResolutions():null}getTile(i,l,m,e,P){return(0,j.O3)()}getTileGrid(){return this.tileGrid}getTileGridForProjection(i){return this.tileGrid?this.tileGrid:(0,v.X$)(i)}getTileCacheForProjection(i){const l=this.getProjection();return(0,N.h)(null===l||(0,w.OP)(l,i),68),this.tileCache}getTilePixelRatio(i){return this.tilePixelRatio_}getTilePixelSize(i,l,m){const e=this.getTileGridForProjection(m),P=this.getTilePixelRatio(l),x=(0,h.Pq)(e.getTileSize(i),this.tmpSize);return 1==P?x:(0,h.bA)(x,P,this.tmpSize)}getTileCoordForTileUrlFunction(i,l){l=void 0!==l?l:this.getProjection();const m=this.getTileGridForProjection(l);return this.getWrapX()&&l.isGlobal()&&(i=(0,v.Cf)(m,i,l)),(0,S.tE)(i,m)?i:null}clear(){this.tileCache.clear()}refresh(){this.clear(),super.refresh()}updateCacheSize(i,l){const m=this.getTileCacheForProjection(l);i>m.highWaterMark&&(m.highWaterMark=i)}useTile(i,l,m,e){}}},3242:(Vt,gt,r)=>{"use strict";r.d(gt,{Z:()=>s});var _=r(3044),g=r(8879),Q=r(4353),H=r(7450),j=r(4700),N=r(886),w=r(9015),S=r(5474),v=r(2705),h=r(513);function u(f,i){f.getImage().src=i}const s=class c extends N.Z{constructor(i){super({attributions:i.attributions,cacheSize:i.cacheSize,opaque:i.opaque,projection:i.projection,state:i.state,tileGrid:i.tileGrid,tileLoadFunction:i.tileLoadFunction?i.tileLoadFunction:u,tilePixelRatio:i.tilePixelRatio,tileUrlFunction:i.tileUrlFunction,url:i.url,urls:i.urls,wrapX:i.wrapX,transition:i.transition,interpolate:void 0===i.interpolate||i.interpolate,key:i.key,attributionsCollapsible:i.attributionsCollapsible,zDirection:i.zDirection}),this.crossOrigin=void 0!==i.crossOrigin?i.crossOrigin:null,this.tileClass=void 0!==i.tileClass?i.tileClass:g.Z,this.tileCacheForProjection={},this.tileGridForProjection={},this.reprojectionErrorThreshold_=i.reprojectionErrorThreshold,this.renderReprojectionEdges_=!1}canExpireCache(){if(this.tileCache.canExpireCache())return!0;for(const i in this.tileCacheForProjection)if(this.tileCacheForProjection[i].canExpireCache())return!0;return!1}expireCache(i,l){const m=this.getTileCacheForProjection(i);this.tileCache.expireCache(this.tileCache==m?l:{});for(const e in this.tileCacheForProjection){const P=this.tileCacheForProjection[e];P.expireCache(P==m?l:{})}}getGutterForProjection(i){return this.getProjection()&&i&&!(0,w.OP)(this.getProjection(),i)?0:this.getGutter()}getGutter(){return 0}getKey(){let i=super.getKey();return this.getInterpolate()||(i+=":disable-interpolation"),i}getOpaque(i){return!(this.getProjection()&&i&&!(0,w.OP)(this.getProjection(),i))&&super.getOpaque(i)}getTileGridForProjection(i){const l=this.getProjection();if(this.tileGrid&&(!l||(0,w.OP)(l,i)))return this.tileGrid;const m=(0,h.sq)(i);return m in this.tileGridForProjection||(this.tileGridForProjection[m]=(0,v.X$)(i)),this.tileGridForProjection[m]}getTileCacheForProjection(i){const l=this.getProjection();if(!l||(0,w.OP)(l,i))return this.tileCache;const m=(0,h.sq)(i);return m in this.tileCacheForProjection||(this.tileCacheForProjection[m]=new H.Z(this.tileCache.highWaterMark)),this.tileCacheForProjection[m]}createTile_(i,l,m,e,P,x){const T=[i,l,m],U=this.getTileCoordForTileUrlFunction(T,P),D=U?this.tileUrlFunction(U,e,P):void 0,C=new this.tileClass(T,void 0!==D?j.Z.IDLE:j.Z.EMPTY,void 0!==D?D:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return C.key=x,C.addEventListener(_.Z.CHANGE,this.handleTileChange.bind(this)),C}getTile(i,l,m,e,P){const x=this.getProjection();if(!x||!P||(0,w.OP)(x,P))return this.getTileInternal(i,l,m,e,x||P);const T=this.getTileCacheForProjection(P),U=[i,l,m];let D;const C=(0,S.km)(U);T.containsKey(C)&&(D=T.get(C));const O=this.getKey();if(D&&D.key==O)return D;const X=this.getTileGridForProjection(x),$=this.getTileGridForProjection(P),dt=this.getTileCoordForTileUrlFunction(U,P),B=new Q.Z(x,X,P,$,U,dt,this.getTilePixelRatio(e),this.getGutter(),(k,L,p,M)=>this.getTileInternal(k,L,p,M,x),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.getInterpolate());return B.key=O,D?(B.interimTile=D,B.refreshInterimChain(),T.replace(C,B)):T.set(C,B),B}getTileInternal(i,l,m,e,P){let x=null;const T=(0,S.lg)(i,l,m),U=this.getKey();if(this.tileCache.containsKey(T)){if(x=this.tileCache.get(T),x.key!=U){const D=x;x=this.createTile_(i,l,m,e,P,U),x.interimTile=D.getState()==j.Z.IDLE?D.interimTile:D,x.refreshInterimChain(),this.tileCache.replace(T,x)}}else x=this.createTile_(i,l,m,e,P,U),this.tileCache.set(T,x);return x}setRenderReprojectionEdges(i){if(this.renderReprojectionEdges_!=i){this.renderReprojectionEdges_=i;for(const l in this.tileCacheForProjection)this.tileCacheForProjection[l].clear();this.changed()}}setTileGridForProjection(i,l){const m=(0,w.U2)(i);if(m){const e=(0,h.sq)(m);e in this.tileGridForProjection||(this.tileGridForProjection[e]=l)}}clear(){super.clear();for(const i in this.tileCacheForProjection)this.tileCacheForProjection[i].clear()}}},3298:(Vt,gt,r)=>{"use strict";r.d(gt,{Z:()=>s});var _=r(3242),g=r(4910),Q=r(6941),H=r(992),j=r(9543),N=r(931),w=r(5114),S=r(7531),v=r(9015),h=r(4331),c=r(5474);const s=class u extends _.Z{constructor(i){i=i||{};const l=Object.assign({},i.params);super({attributions:i.attributions,attributionsCollapsible:i.attributionsCollapsible,cacheSize:i.cacheSize,crossOrigin:i.crossOrigin,interpolate:i.interpolate,opaque:!(!("TRANSPARENT"in l)||l.TRANSPARENT),projection:i.projection,reprojectionErrorThreshold:i.reprojectionErrorThreshold,tileClass:i.tileClass,tileGrid:i.tileGrid,tileLoadFunction:i.tileLoadFunction,url:i.url,urls:i.urls,wrapX:void 0===i.wrapX||i.wrapX,transition:i.transition,zDirection:i.zDirection}),this.gutter_=void 0!==i.gutter?i.gutter:0,this.params_=l,this.v13_=!0,this.serverType_=i.serverType,this.hidpi_=void 0===i.hidpi||i.hidpi,this.tmpExtent_=(0,j.lJ)(),this.updateV13_(),this.setKey(this.getKeyForParams_())}getFeatureInfoUrl(i,l,m,e){const P=(0,v.U2)(m),x=this.getProjection();let T=this.getTileGrid();T||(T=this.getTileGridForProjection(P));const U=T.getZForResolution(l,this.zDirection),D=T.getTileCoordForCoordAndZ(i,U);if(T.getResolutions().length<=D[0])return;let C=T.getResolution(D[0]),O=T.getTileCoordExtent(D,this.tmpExtent_),X=(0,N.Pq)(T.getTileSize(D[0]),this.tmpSize);const $=this.gutter_;0!==$&&(X=(0,N.f3)(X,$,this.tmpSize),O=(0,j.f3)(O,C*$,O)),x&&x!==P&&(C=(0,w.aA)(x,P,i,C),O=(0,v.$A)(O,P,x),i=(0,v.vs)(i,P,x));const dt={SERVICE:"WMS",VERSION:g.e,REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.params_.LAYERS};Object.assign(dt,this.params_,e);const B=Math.floor((i[0]-O[0])/C),k=Math.floor((O[3]-i[1])/C);return dt[this.v13_?"I":"X"]=B,dt[this.v13_?"J":"Y"]=k,this.getRequestUrl_(D,X,O,1,x||P,dt)}getLegendUrl(i,l){if(void 0===this.urls[0])return;const m={SERVICE:"WMS",VERSION:g.e,REQUEST:"GetLegendGraphic",FORMAT:"image/png"};if(void 0===l||void 0===l.LAYER){const e=this.params_.LAYERS;if(Array.isArray(e)&&1!==e.length)return;m.LAYER=e}if(void 0!==i){const e=this.getProjection()?this.getProjection().getMetersPerUnit():1;m.SCALE=i*e/28e-5}return Object.assign(m,l),(0,Q.B)(this.urls[0],m)}getGutter(){return this.gutter_}getParams(){return this.params_}getRequestUrl_(i,l,m,e,P,x){const T=this.urls;if(!T)return;if(x.WIDTH=l[0],x.HEIGHT=l[1],x[this.v13_?"CRS":"SRS"]=P.getCode(),"STYLES"in this.params_||(x.STYLES=""),1!=e)switch(this.serverType_){case"geoserver":const O=90*e+.5|0;"FORMAT_OPTIONS"in x?x.FORMAT_OPTIONS+=";dpi:"+O:x.FORMAT_OPTIONS="dpi:"+O;break;case"mapserver":x.MAP_RESOLUTION=90*e;break;case"carmentaserver":case"qgis":x.DPI=90*e;break;default:(0,H.h)(!1,52)}const U=P.getAxisOrientation(),D=m;if(this.v13_&&"ne"==U.substr(0,2)){let O;O=m[0],D[0]=m[1],D[1]=O,O=m[2],D[2]=m[3],D[3]=O}let C;return x.BBOX=D.join(","),C=1==T.length?T[0]:T[(0,h.$W)((0,c.vp)(i),T.length)],(0,Q.B)(C,x)}getTilePixelRatio(i){return this.hidpi_&&void 0!==this.serverType_?i:1}getKeyForParams_(){let i=0;const l=[];for(const m in this.params_)l[i++]=m+"-"+this.params_[m];return l.join("/")}updateParams(i){Object.assign(this.params_,i),this.updateV13_(),this.setKey(this.getKeyForParams_())}updateV13_(){this.v13_=(0,S.n)(this.params_.VERSION||g.e,"1.3")>=0}tileUrlFunction(i,l,m){let e=this.getTileGrid();if(e||(e=this.getTileGridForProjection(m)),e.getResolutions().length<=i[0])return;1!=l&&(!this.hidpi_||void 0===this.serverType_)&&(l=1);const P=e.getResolution(i[0]);let x=e.getTileCoordExtent(i,this.tmpExtent_),T=(0,N.Pq)(e.getTileSize(i[0]),this.tmpSize);const U=this.gutter_;0!==U&&(T=(0,N.f3)(T,U,this.tmpSize),x=(0,j.f3)(x,P*U,x)),1!=l&&(T=(0,N.bA)(T,l,this.tmpSize));const D={SERVICE:"WMS",VERSION:g.e,REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0};return Object.assign(D,this.params_),this.getRequestUrl_(i,T,x,l,m,D)}}},886:(Vt,gt,r)=>{"use strict";r.d(gt,{Z:()=>S});var g=r(6027),Q=r(4700),H=r(5809),j=r(5474),N=r(513);class w extends g.Z{constructor(h){super({attributions:h.attributions,cacheSize:h.cacheSize,opaque:h.opaque,projection:h.projection,state:h.state,tileGrid:h.tileGrid,tilePixelRatio:h.tilePixelRatio,wrapX:h.wrapX,transition:h.transition,interpolate:h.interpolate,key:h.key,attributionsCollapsible:h.attributionsCollapsible,zDirection:h.zDirection}),this.generateTileUrlFunction_=this.tileUrlFunction===w.prototype.tileUrlFunction,this.tileLoadFunction=h.tileLoadFunction,h.tileUrlFunction&&(this.tileUrlFunction=h.tileUrlFunction),this.urls=null,h.urls?this.setUrls(h.urls):h.url&&this.setUrl(h.url),this.tileLoadingKeys_={}}getTileLoadFunction(){return this.tileLoadFunction}getTileUrlFunction(){return Object.getPrototypeOf(this).tileUrlFunction===this.tileUrlFunction?this.tileUrlFunction.bind(this):this.tileUrlFunction}getUrls(){return this.urls}handleTileChange(h){const c=h.target,u=(0,N.sq)(c),s=c.getState();let f;s==Q.Z.LOADING?(this.tileLoadingKeys_[u]=!0,f="tileloadstart"):u in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[u],f=s==Q.Z.ERROR?"tileloaderror":s==Q.Z.LOADED?"tileloadend":void 0),null!=f&&this.dispatchEvent(new g.s(f,c))}setTileLoadFunction(h){this.tileCache.clear(),this.tileLoadFunction=h,this.changed()}setTileUrlFunction(h,c){this.tileUrlFunction=h,this.tileCache.pruneExceptNewestZ(),typeof c<"u"?this.setKey(c):this.changed()}setUrl(h){const c=(0,H.Gk)(h);this.urls=c,this.setUrls(c)}setUrls(h){this.urls=h;const c=h.join("\n");this.generateTileUrlFunction_?this.setTileUrlFunction((0,H.uR)(h,this.tileGrid),c):this.setKey(c)}tileUrlFunction(h,c,u){}useTile(h,c,u){const s=(0,j.lg)(h,c,u);this.tileCache.containsKey(s)&&this.tileCache.get(s)}}const S=w},3149:(Vt,gt,r)=>{"use strict";r.d(gt,{Z:()=>U});var _=r(9573),g=r(448),Q=r(3615),H=r(3044),j=r(8296),N=r(3036),w=r(9543),S=r(513),v=r(9306);const c=class h{constructor(C){this.rbush_=new N(C),this.items_={}}insert(C,O){const X={minX:C[0],minY:C[1],maxX:C[2],maxY:C[3],value:O};this.rbush_.insert(X),this.items_[(0,S.sq)(O)]=X}load(C,O){const X=new Array(O.length);for(let $=0,dt=O.length;${O||(O=!0,this.addFeature(X.element),O=!1)}),C.addEventListener(g.Z.REMOVE,X=>{O||(O=!0,this.removeFeature(X.element),O=!1)}),this.featuresCollection_=C}clear(C){if(C){for(const X in this.featureChangeKeys_)this.featureChangeKeys_[X].forEach(e.bN);this.featuresCollection_||(this.featureChangeKeys_={},this.idIndex_={},this.uidIndex_={})}else if(this.featuresRtree_){this.featuresRtree_.forEach($=>{this.removeFeatureInternal($)});for(const $ in this.nullGeometryFeatures_)this.removeFeatureInternal(this.nullGeometryFeatures_[$])}this.featuresCollection_&&this.featuresCollection_.clear(),this.featuresRtree_&&this.featuresRtree_.clear(),this.nullGeometryFeatures_={};const O=new x(s.Z.CLEAR);this.dispatchEvent(O),this.changed()}forEachFeature(C){if(this.featuresRtree_)return this.featuresRtree_.forEach(C);this.featuresCollection_&&this.featuresCollection_.forEach(C)}forEachFeatureAtCoordinateDirect(C,O){return this.forEachFeatureInExtent([C[0],C[1],C[0],C[1]],function($){if($.getGeometry().intersectsCoordinate(C))return O($)})}forEachFeatureInExtent(C,O){if(this.featuresRtree_)return this.featuresRtree_.forEachInExtent(C,O);this.featuresCollection_&&this.featuresCollection_.forEach(O)}forEachFeatureIntersectingExtent(C,O){return this.forEachFeatureInExtent(C,function(X){if(X.getGeometry().intersectsExtent(C)){const dt=O(X);if(dt)return dt}})}getFeaturesCollection(){return this.featuresCollection_}getFeatures(){let C;return this.featuresCollection_?C=this.featuresCollection_.getArray().slice(0):this.featuresRtree_&&(C=this.featuresRtree_.getAll(),(0,v.x)(this.nullGeometryFeatures_)||(0,m.l7)(C,Object.values(this.nullGeometryFeatures_))),C}getFeaturesAtCoordinate(C){const O=[];return this.forEachFeatureAtCoordinateDirect(C,function(X){O.push(X)}),O}getFeaturesInExtent(C,O){if(this.featuresRtree_){if(!(O&&O.canWrapX()&&this.getWrapX()))return this.featuresRtree_.getInExtent(C);const $=(0,w.MV)(C,O);return[].concat(...$.map(dt=>this.featuresRtree_.getInExtent(dt)))}return this.featuresCollection_?this.featuresCollection_.getArray().slice(0):[]}getClosestFeatureToCoordinate(C,O){const X=C[0],$=C[1];let dt=null;const B=[NaN,NaN];let k=1/0;const L=[-1/0,-1/0,1/0,1/0];return O=O||f.uX,this.featuresRtree_.forEachInExtent(L,function(p){if(O(p)){const M=p.getGeometry(),R=k;if(k=M.closestPointXY(X,$,B,k),k{--this.loadingExtentsCount_,this.dispatchEvent(new x(s.Z.FEATURESLOADEND,void 0,M))},()=>{--this.loadingExtentsCount_,this.dispatchEvent(new x(s.Z.FEATURESLOADERROR))}),$.insert(L,{extent:L.slice()}))}this.loading=!(this.loader_.length<4)&&this.loadingExtentsCount_>0}refresh(){this.clear(!0),this.loadedExtentsRtree_.clear(),super.refresh()}removeLoadedExtent(C){const O=this.loadedExtentsRtree_;let X;O.forEachInExtent(C,function($){if((0,w.fS)($.extent,C))return X=$,!0}),X&&O.remove(X)}removeFeature(C){if(!C)return;const O=(0,S.sq)(C);O in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[O]:this.featuresRtree_&&this.featuresRtree_.remove(C),this.removeFeatureInternal(C)&&this.changed()}removeFeatureInternal(C){const O=(0,S.sq)(C),X=this.featureChangeKeys_[O];if(!X)return;X.forEach(e.bN),delete this.featureChangeKeys_[O];const $=C.getId();return void 0!==$&&delete this.idIndex_[$.toString()],delete this.uidIndex_[O],this.dispatchEvent(new x(s.Z.REMOVEFEATURE,C)),C}removeFromIdIndex_(C){let O=!1;for(const X in this.idIndex_)if(this.idIndex_[X]===C){delete this.idIndex_[X],O=!0;break}return O}setLoader(C){this.loader_=C}setUrl(C){(0,l.h)(this.format_,7),this.url_=C,this.setLoader((0,P.Be)(C,this.format_))}}},8051:(Vt,gt,r)=>{"use strict";r.d(gt,{Z:()=>_});const _={ADDFEATURE:"addfeature",CHANGEFEATURE:"changefeature",CLEAR:"clear",REMOVEFEATURE:"removefeature",FEATURESLOADSTART:"featuresloadstart",FEATURESLOADEND:"featuresloadend",FEATURESLOADERROR:"featuresloaderror"}},978:(Vt,gt,r)=>{"use strict";r.d(gt,{Z:()=>U,I:()=>D});var _=r(3044),g=r(8786),Q=r(4700);const j=class H extends g.Z{constructor(O,X,$,dt,B,k){super(O,X,k),this.extent=null,this.format_=dt,this.features_=null,this.projection=null,this.tileLoadFunction_=B,this.url_=$,this.key=$}getFormat(){return this.format_}getFeatures(){return this.features_}load(){this.state==Q.Z.IDLE&&(this.setState(Q.Z.LOADING),this.tileLoadFunction_(this,this.url_),this.loader_&&this.loader_(this.extent,this.resolution,this.projection))}onLoad(O,X){this.setFeatures(O)}onError(){this.setState(Q.Z.ERROR)}setFeatures(O){this.features_=O,this.setState(Q.Z.LOADED)}setLoader(O){this.loader_=O}};var N=r(7450),w=r(1053),S=r(886),v=r(3842),h=r(513);const c=[],s=class u extends g.Z{constructor(O,X,$,dt){super(O,X,{transition:0}),this.context_={},this.executorGroups={},this.declutterExecutorGroups={},this.loadingSourceTiles=0,this.hitDetectionImageData={},this.replayState_={},this.sourceTiles=[],this.errorTileKeys={},this.getSourceTiles=dt.bind(void 0,this),this.wrappedTileCoord=$}getContext(O){const X=(0,h.sq)(O);return X in this.context_||(this.context_[X]=(0,v.E4)(1,1,c)),this.context_[X]}hasContext(O){return(0,h.sq)(O)in this.context_}getImage(O){return this.hasContext(O)?this.getContext(O).canvas:null}getReplayState(O){const X=(0,h.sq)(O);return X in this.replayState_||(this.replayState_[X]={dirty:!1,renderedRenderOrder:null,renderedResolution:NaN,renderedRevision:-1,renderedTileResolution:NaN,renderedTileRevision:-1,renderedTileZ:-1}),this.replayState_[X]}load(){this.getSourceTiles()}release(){for(const O in this.context_){const X=this.context_[O];(0,v.jy)(X),c.push(X.canvas),delete this.context_[O]}super.release()}};var f=r(2258),i=r(9543),l=r(2705),m=r(5474),e=r(9306),P=r(75),x=r(931);const U=class T extends S.Z{constructor(O){const X=O.projection||"EPSG:3857",$=O.extent||(0,l.Tl)(X),dt=O.tileGrid||(0,l.dl)({extent:$,maxResolution:O.maxResolution,maxZoom:void 0!==O.maxZoom?O.maxZoom:22,minZoom:O.minZoom,tileSize:O.tileSize||512});super({attributions:O.attributions,attributionsCollapsible:O.attributionsCollapsible,cacheSize:O.cacheSize,interpolate:!0,opaque:!1,projection:X,state:O.state,tileGrid:dt,tileLoadFunction:O.tileLoadFunction?O.tileLoadFunction:D,tileUrlFunction:O.tileUrlFunction,url:O.url,urls:O.urls,wrapX:void 0===O.wrapX||O.wrapX,transition:O.transition,zDirection:void 0===O.zDirection?1:O.zDirection}),this.format_=O.format?O.format:null,this.sourceTileCache=new N.Z(this.tileCache.highWaterMark),this.overlaps_=O.overlaps??!0,this.tileClass=O.tileClass?O.tileClass:j,this.tileGrids_={}}getFeaturesInExtent(O){const X=[],$=this.tileCache;if(0===$.getCount())return X;const dt=(0,m.Ul)($.peekFirstKey())[0],B=this.tileGrid;return $.forEach(function(k){if(k.tileCoord[0]!==dt||k.getState()!==Q.Z.LOADED)return;const L=k.getSourceTiles();for(let p=0,M=L.length;p{const L=(0,m.MY)(k),p=$.peek(L);if(p){const M=p.sourceTiles;for(let R=0,K=M.length;R{const J=this.tileUrlFunction(G,O,X),q=this.sourceTileCache.containsKey(J)?this.sourceTileCache.get(J):new this.tileClass(G,J?Q.Z.IDLE:Q.Z.EMPTY,J,this.format_,this.tileLoadFunction);$.sourceTiles.push(q);const ut=q.getState();if(ut{this.handleTileChange(_t);const Tt=q.getState();if(Tt===Q.Z.LOADED||Tt===Q.Z.ERROR){const Lt=q.getKey();Lt in $.errorTileKeys?q.getState()===Q.Z.LOADED&&delete $.errorTileKeys[Lt]:$.loadingSourceTiles--,Tt===Q.Z.ERROR?$.errorTileKeys[Lt]=!0:q.removeEventListener(_.Z.CHANGE,ht),0===$.loadingSourceTiles&&$.setState((0,e.x)($.errorTileKeys)?Q.Z.LOADED:Q.Z.ERROR)}};q.addEventListener(_.Z.CHANGE,ht),$.loadingSourceTiles++}ut===Q.Z.IDLE&&(q.extent=M.getTileCoordExtent(G),q.projection=X,q.resolution=M.getResolution(G[0]),this.sourceTileCache.set(J,q),q.load())}),$.loadingSourceTiles||$.setState($.sourceTiles.some(G=>G.getState()===Q.Z.ERROR)?Q.Z.ERROR:Q.Z.LOADED)}return $.sourceTiles}getTile(O,X,$,dt,B){const k=(0,m.lg)(O,X,$),L=this.getKey();let p;if(this.tileCache.containsKey(k)&&(p=this.tileCache.get(k),p.key===L))return p;const M=[O,X,$];let R=this.getTileCoordForTileUrlFunction(M,B);const K=this.getTileGrid().getExtent(),G=this.getTileGridForProjection(B);if(R&&K){const ut=G.getTileCoordExtent(R);(0,i.f3)(ut,-G.getResolution(O),ut),(0,i.kK)(K,ut)||(R=null)}let J=!0;if(null!==R){const ut=this.tileGrid,ht=G.getResolution(O),_t=ut.getZForResolution(ht,1),Tt=G.getTileCoordExtent(R);(0,i.f3)(Tt,-ht,Tt),ut.forEachTileCoord(Tt,_t,Lt=>{J=J&&!this.tileUrlFunction(Lt,dt,B)})}const q=new s(M,J?Q.Z.EMPTY:Q.Z.IDLE,R,this.getSourceTiles.bind(this,dt,B));return q.key=L,p?(q.interimTile=p,q.refreshInterimChain(),this.tileCache.replace(k,q)):this.tileCache.set(k,q),q}getTileGridForProjection(O){const X=O.getCode();let $=this.tileGrids_[X];if(!$){const dt=this.tileGrid,B=dt.getResolutions().slice(),k=B.map(function(M,R){return dt.getOrigin(R)}),L=B.map(function(M,R){return dt.getTileSize(R)}),p=f.e+1;for(let M=B.length;M{"use strict";r.d(gt,{Z:()=>H});var _=r(3242),g=r(2705);const H=class Q extends _.Z{constructor(N){const w=void 0!==(N=N||{}).projection?N.projection:"EPSG:3857",S=void 0!==N.tileGrid?N.tileGrid:(0,g.dl)({extent:(0,g.Tl)(w),maxResolution:N.maxResolution,maxZoom:N.maxZoom,minZoom:N.minZoom,tileSize:N.tileSize});super({attributions:N.attributions,cacheSize:N.cacheSize,crossOrigin:N.crossOrigin,interpolate:N.interpolate,opaque:N.opaque,projection:w,reprojectionErrorThreshold:N.reprojectionErrorThreshold,tileGrid:S,tileLoadFunction:N.tileLoadFunction,tilePixelRatio:N.tilePixelRatio,tileUrlFunction:N.tileUrlFunction,url:N.url,urls:N.urls,wrapX:void 0===N.wrapX||N.wrapX,transition:N.transition,attributionsCollapsible:N.attributionsCollapsible,zDirection:N.zDirection}),this.gutter_=void 0!==N.gutter?N.gutter:0}getGutter(){return this.gutter_}}},4910:(Vt,gt,r)=>{"use strict";r.d(gt,{e:()=>_});const _="1.3.0"},7531:(Vt,gt,r)=>{"use strict";function _(Q,H,j){const N=void 0!==j?Q.toFixed(j):""+Q;let w=N.indexOf(".");return w=-1===w?N.length:w,w>H?N:new Array(1+H-w).join("0")+N}function g(Q,H){const j=(""+Q).split("."),N=(""+H).split(".");for(let w=0;wv)return 1;if(v>S)return-1}return 0}r.d(gt,{n:()=>g,v:()=>_})},795:(Vt,gt,r)=>{"use strict";r.d(gt,{Z:()=>Q});var _=r(2682);class g extends _.Z{constructor(j){super({points:1/0,fill:(j=j||{radius:5}).fill,radius:j.radius,stroke:j.stroke,scale:void 0!==j.scale?j.scale:1,rotation:void 0!==j.rotation?j.rotation:0,rotateWithView:void 0!==j.rotateWithView&&j.rotateWithView,displacement:void 0!==j.displacement?j.displacement:[0,0],declutterMode:j.declutterMode})}clone(){const j=this.getScale(),N=new g({fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,radius:this.getRadius(),scale:Array.isArray(j)?j.slice():j,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return N.setOpacity(this.getOpacity()),N}setRadius(j){this.radius_=j,this.render()}}const Q=g},694:(Vt,gt,r)=>{"use strict";r.d(gt,{Z:()=>g});class _{constructor(H){this.color_=void 0!==(H=H||{}).color?H.color:null}clone(){const H=this.getColor();return new _({color:Array.isArray(H)?H.slice():H||void 0})}getColor(){return this.color_}setColor(H){this.color_=H}}const g=_},5999:(Vt,gt,r)=>{"use strict";r.d(gt,{Z:()=>l});var _=r(3044),g=r(1501),Q=r(7182),H=r(866),j=r(992),N=r(1398),w=r(3842),S=r(9118),v=r(1309);let h=null;class c extends N.Z{constructor(e,P,x,T,U,D){super(),this.hitDetectionImage_=null,this.image_=e,this.crossOrigin_=T,this.canvas_={},this.color_=D,this.unlisten_=null,this.imageState_=U,this.size_=x,this.src_=P}initializeImage_(){this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)}isTainted_(){if(void 0===this.tainted_&&this.imageState_===g.Z.LOADED){h||(h=(0,w.E4)(1,1,void 0,{willReadFrequently:!0})),h.drawImage(this.image_,0,0);try{h.getImageData(0,0,1,1),this.tainted_=!1}catch{h=null,this.tainted_=!0}}return!0===this.tainted_}dispatchChangeEvent_(){this.dispatchEvent(_.Z.CHANGE)}handleImageError_(){this.imageState_=g.Z.ERROR,this.unlistenImage_(),this.dispatchChangeEvent_()}handleImageLoad_(){this.imageState_=g.Z.LOADED,this.size_?(this.image_.width=this.size_[0],this.image_.height=this.size_[1]):this.size_=[this.image_.width,this.image_.height],this.unlistenImage_(),this.dispatchChangeEvent_()}getImage(e){return this.image_||this.initializeImage_(),this.replaceColor_(e),this.canvas_[e]?this.canvas_[e]:this.image_}getPixelRatio(e){return this.replaceColor_(e),this.canvas_[e]?e:1}getImageState(){return this.imageState_}getHitDetectionImage(){if(this.image_||this.initializeImage_(),!this.hitDetectionImage_)if(this.isTainted_()){const e=this.size_[0],P=this.size_[1],x=(0,w.E4)(e,P);x.fillRect(0,0,e,P),this.hitDetectionImage_=x.canvas}else this.hitDetectionImage_=this.image_;return this.hitDetectionImage_}getSize(){return this.size_}getSrc(){return this.src_}load(){if(this.imageState_===g.Z.IDLE){this.image_||this.initializeImage_(),this.imageState_=g.Z.LOADING;try{this.image_.src=this.src_}catch{this.handleImageError_()}this.unlisten_=(0,v.K)(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this))}}replaceColor_(e){if(!this.color_||this.canvas_[e]||this.imageState_!==g.Z.LOADED)return;const P=this.image_,x=document.createElement("canvas");x.width=Math.ceil(P.width*e),x.height=Math.ceil(P.height*e);const T=x.getContext("2d");T.scale(e,e),T.drawImage(P,0,0),T.globalCompositeOperation="multiply",T.fillStyle=(0,H.XC)(this.color_),T.fillRect(0,0,x.width/e,x.height/e),T.globalCompositeOperation="destination-in",T.drawImage(P,0,0),this.canvas_[e]=x}unlistenImage_(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)}}var f=r(513);class i extends Q.Z{constructor(e){super({opacity:void 0!==(e=e||{}).opacity?e.opacity:1,rotation:void 0!==e.rotation?e.rotation:0,scale:void 0!==e.scale?e.scale:1,displacement:void 0!==e.displacement?e.displacement:[0,0],rotateWithView:void 0!==e.rotateWithView&&e.rotateWithView,declutterMode:e.declutterMode}),this.anchor_=void 0!==e.anchor?e.anchor:[.5,.5],this.normalizedAnchor_=null,this.anchorOrigin_=void 0!==e.anchorOrigin?e.anchorOrigin:"top-left",this.anchorXUnits_=void 0!==e.anchorXUnits?e.anchorXUnits:"fraction",this.anchorYUnits_=void 0!==e.anchorYUnits?e.anchorYUnits:"fraction",this.crossOrigin_=void 0!==e.crossOrigin?e.crossOrigin:null;const D=void 0!==e.img?e.img:null;this.imgSize_=e.imgSize;let C=e.src;(0,j.h)(!(void 0!==C&&D),4),(0,j.h)(!D||D&&this.imgSize_,5),(void 0===C||0===C.length)&&D&&(C=D.src||(0,f.sq)(D)),(0,j.h)(void 0!==C&&C.length>0,6),(0,j.h)(!((void 0!==e.width||void 0!==e.height)&&void 0!==e.scale),69);const O=void 0!==e.src?g.Z.IDLE:g.Z.LOADED;if(this.color_=void 0!==e.color?(0,H._2)(e.color):null,this.iconImage_=function u(m,e,P,x,T,U){let D=S.c.get(e,x,U);return D||(D=new c(m,e,P,x,T,U),S.c.set(e,x,U,D)),D}(D,C,void 0!==this.imgSize_?this.imgSize_:null,this.crossOrigin_,O,this.color_),this.offset_=void 0!==e.offset?e.offset:[0,0],this.offsetOrigin_=void 0!==e.offsetOrigin?e.offsetOrigin:"top-left",this.origin_=null,this.size_=void 0!==e.size?e.size:null,this.width_=e.width,this.height_=e.height,void 0!==this.width_||void 0!==this.height_){const X=this.getImage(1),$=()=>{this.updateScaleFromWidthAndHeight(this.width_,this.height_)};X.width>0?this.updateScaleFromWidthAndHeight(this.width_,this.height_):X.addEventListener("load",$)}}clone(){let e=this.getScale();return e=Array.isArray(e)?e.slice():e,(void 0!==this.width_||void 0!==this.height_)&&(e=void 0),new i({anchor:this.anchor_.slice(),anchorOrigin:this.anchorOrigin_,anchorXUnits:this.anchorXUnits_,anchorYUnits:this.anchorYUnits_,color:this.color_&&this.color_.slice?this.color_.slice():this.color_||void 0,crossOrigin:this.crossOrigin_,imgSize:this.imgSize_,offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,opacity:this.getOpacity(),rotateWithView:this.getRotateWithView(),rotation:this.getRotation(),scale:e,size:null!==this.size_?this.size_.slice():void 0,src:this.getSrc(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode(),width:this.width_,height:this.height_})}updateScaleFromWidthAndHeight(e,P){const x=this.getImage(1);super.setScale(void 0!==e&&void 0!==P?[e/x.width,P/x.height]:void 0!==e?[e/x.width,e/x.width]:void 0!==P?[P/x.height,P/x.height]:[1,1])}getAnchor(){let e=this.normalizedAnchor_;if(!e){e=this.anchor_;const T=this.getSize();if("fraction"==this.anchorXUnits_||"fraction"==this.anchorYUnits_){if(!T)return null;e=this.anchor_.slice(),"fraction"==this.anchorXUnits_&&(e[0]*=T[0]),"fraction"==this.anchorYUnits_&&(e[1]*=T[1])}if("top-left"!=this.anchorOrigin_){if(!T)return null;e===this.anchor_&&(e=this.anchor_.slice()),("top-right"==this.anchorOrigin_||"bottom-right"==this.anchorOrigin_)&&(e[0]=-e[0]+T[0]),("bottom-left"==this.anchorOrigin_||"bottom-right"==this.anchorOrigin_)&&(e[1]=-e[1]+T[1])}this.normalizedAnchor_=e}const P=this.getDisplacement(),x=this.getScaleArray();return[e[0]-P[0]/x[0],e[1]+P[1]/x[1]]}setAnchor(e){this.anchor_=e,this.normalizedAnchor_=null}getColor(){return this.color_}getImage(e){return this.iconImage_.getImage(e)}getPixelRatio(e){return this.iconImage_.getPixelRatio(e)}getImageSize(){return this.iconImage_.getSize()}getImageState(){return this.iconImage_.getImageState()}getHitDetectionImage(){return this.iconImage_.getHitDetectionImage()}getOrigin(){if(this.origin_)return this.origin_;let e=this.offset_;if("top-left"!=this.offsetOrigin_){const P=this.getSize(),x=this.iconImage_.getSize();if(!P||!x)return null;e=e.slice(),("top-right"==this.offsetOrigin_||"bottom-right"==this.offsetOrigin_)&&(e[0]=x[0]-P[0]-e[0]),("bottom-left"==this.offsetOrigin_||"bottom-right"==this.offsetOrigin_)&&(e[1]=x[1]-P[1]-e[1])}return this.origin_=e,this.origin_}getSrc(){return this.iconImage_.getSrc()}getSize(){return this.size_?this.size_:this.iconImage_.getSize()}getWidth(){return this.width_}getHeight(){return this.height_}setWidth(e){this.width_=e,this.updateScaleFromWidthAndHeight(e,this.height_)}setHeight(e){this.height_=e,this.updateScaleFromWidthAndHeight(this.width_,e)}setScale(e){super.setScale(e);const P=this.getImage(1);if(P){const x=Array.isArray(e)?e[0]:e;void 0!==x&&(this.width_=x*P.width);const T=Array.isArray(e)?e[1]:e;void 0!==T&&(this.height_=T*P.height)}}listenImageChange(e){this.iconImage_.addEventListener(_.Z.CHANGE,e)}load(){this.iconImage_.load()}unlistenImageChange(e){this.iconImage_.removeEventListener(_.Z.CHANGE,e)}}const l=i},9118:(Vt,gt,r)=>{"use strict";r.d(gt,{c:()=>j});var _=r(866);function Q(N,w,S){return w+":"+N+":"+(S?(0,_.XC)(S):"null")}const j=new class g{constructor(){this.cache_={},this.cacheSize_=0,this.maxCacheSize_=32}clear(){this.cache_={},this.cacheSize_=0}canExpireCache(){return this.cacheSize_>this.maxCacheSize_}expire(){if(this.canExpireCache()){let w=0;for(const S in this.cache_){const v=this.cache_[S];0==(3&w++)&&!v.hasListener()&&(delete this.cache_[S],--this.cacheSize_)}}}get(w,S,v){const h=Q(w,S,v);return h in this.cache_?this.cache_[h]:null}set(w,S,v,h){const c=Q(w,S,v);this.cache_[c]=h,++this.cacheSize_}setSize(w){this.maxCacheSize_=w,this.expire()}}},7182:(Vt,gt,r)=>{"use strict";r.d(gt,{Z:()=>H});var _=r(513),g=r(931);class Q{constructor(N){this.opacity_=N.opacity,this.rotateWithView_=N.rotateWithView,this.rotation_=N.rotation,this.scale_=N.scale,this.scaleArray_=(0,g.Pq)(N.scale),this.displacement_=N.displacement,this.declutterMode_=N.declutterMode}clone(){const N=this.getScale();return new Q({opacity:this.getOpacity(),scale:Array.isArray(N)?N.slice():N,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getOpacity(){return this.opacity_}getRotateWithView(){return this.rotateWithView_}getRotation(){return this.rotation_}getScale(){return this.scale_}getScaleArray(){return this.scaleArray_}getDisplacement(){return this.displacement_}getDeclutterMode(){return this.declutterMode_}getAnchor(){return(0,_.O3)()}getImage(N){return(0,_.O3)()}getHitDetectionImage(){return(0,_.O3)()}getPixelRatio(N){return 1}getImageState(){return(0,_.O3)()}getImageSize(){return(0,_.O3)()}getOrigin(){return(0,_.O3)()}getSize(){return(0,_.O3)()}setDisplacement(N){this.displacement_=N}setOpacity(N){this.opacity_=N}setRotateWithView(N){this.rotateWithView_=N}setRotation(N){this.rotation_=N}setScale(N){this.scale_=N,this.scaleArray_=(0,g.Pq)(N)}listenImageChange(N){(0,_.O3)()}load(){(0,_.O3)()}unlistenImageChange(N){(0,_.O3)()}}const H=Q},2682:(Vt,gt,r)=>{"use strict";r.d(gt,{Z:()=>S});var _=r(1501),g=r(7182),Q=r(866),H=r(4890),j=r(3842),N=r(2768);class w extends g.Z{constructor(h){super({opacity:1,rotateWithView:void 0!==h.rotateWithView&&h.rotateWithView,rotation:void 0!==h.rotation?h.rotation:0,scale:void 0!==h.scale?h.scale:1,displacement:void 0!==h.displacement?h.displacement:[0,0],declutterMode:h.declutterMode}),this.canvas_=void 0,this.hitDetectionCanvas_=null,this.fill_=void 0!==h.fill?h.fill:null,this.origin_=[0,0],this.points_=h.points,this.radius_=void 0!==h.radius?h.radius:h.radius1,this.radius2_=h.radius2,this.angle_=void 0!==h.angle?h.angle:0,this.stroke_=void 0!==h.stroke?h.stroke:null,this.size_=null,this.renderOptions_=null,this.render()}clone(){const h=this.getScale(),c=new w({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(h)?h.slice():h,displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return c.setOpacity(this.getOpacity()),c}getAnchor(){const h=this.size_;if(!h)return null;const c=this.getDisplacement(),u=this.getScaleArray();return[h[0]/2-c[0]/u[0],h[1]/2+c[1]/u[1]]}getAngle(){return this.angle_}getFill(){return this.fill_}setFill(h){this.fill_=h,this.render()}getHitDetectionImage(){return this.hitDetectionCanvas_||this.createHitDetectionCanvas_(this.renderOptions_),this.hitDetectionCanvas_}getImage(h){let c=this.canvas_[h];if(!c){const u=this.renderOptions_,s=(0,j.E4)(u.size*h,u.size*h);this.draw_(u,s,h),c=s.canvas,this.canvas_[h]=c}return c}getPixelRatio(h){return h}getImageSize(){return this.size_}getImageState(){return _.Z.LOADED}getOrigin(){return this.origin_}getPoints(){return this.points_}getRadius(){return this.radius_}getRadius2(){return this.radius2_}getSize(){return this.size_}getStroke(){return this.stroke_}setStroke(h){this.stroke_=h,this.render()}listenImageChange(h){}load(){}unlistenImageChange(h){}calculateLineJoinSize_(h,c,u){if(0===c||this.points_===1/0||"bevel"!==h&&"miter"!==h)return c;let s=this.radius_,f=void 0===this.radius2_?s:this.radius2_;if(s{"use strict";r.d(gt,{Z:()=>g});class _{constructor(H){this.color_=void 0!==(H=H||{}).color?H.color:null,this.lineCap_=H.lineCap,this.lineDash_=void 0!==H.lineDash?H.lineDash:null,this.lineDashOffset_=H.lineDashOffset,this.lineJoin_=H.lineJoin,this.miterLimit_=H.miterLimit,this.width_=H.width}clone(){const H=this.getColor();return new _({color:Array.isArray(H)?H.slice():H||void 0,lineCap:this.getLineCap(),lineDash:this.getLineDash()?this.getLineDash().slice():void 0,lineDashOffset:this.getLineDashOffset(),lineJoin:this.getLineJoin(),miterLimit:this.getMiterLimit(),width:this.getWidth()})}getColor(){return this.color_}getLineCap(){return this.lineCap_}getLineDash(){return this.lineDash_}getLineDashOffset(){return this.lineDashOffset_}getLineJoin(){return this.lineJoin_}getMiterLimit(){return this.miterLimit_}getWidth(){return this.width_}setColor(H){this.color_=H}setLineCap(H){this.lineCap_=H}setLineDash(H){this.lineDash_=H}setLineDashOffset(H){this.lineDashOffset_=H}setLineJoin(H){this.lineJoin_=H}setMiterLimit(H){this.miterLimit_=H}setWidth(H){this.width_=H}}const g=_},1786:(Vt,gt,r)=>{"use strict";r.d(gt,{J$:()=>N,ZP:()=>c,yF:()=>S});var _=r(795),g=r(694),Q=r(5253),H=r(992);class j{constructor(s){s=s||{},this.geometry_=null,this.geometryFunction_=h,void 0!==s.geometry&&this.setGeometry(s.geometry),this.fill_=void 0!==s.fill?s.fill:null,this.image_=void 0!==s.image?s.image:null,this.renderer_=void 0!==s.renderer?s.renderer:null,this.hitDetectionRenderer_=void 0!==s.hitDetectionRenderer?s.hitDetectionRenderer:null,this.stroke_=void 0!==s.stroke?s.stroke:null,this.text_=void 0!==s.text?s.text:null,this.zIndex_=s.zIndex}clone(){let s=this.getGeometry();return s&&"object"==typeof s&&(s=s.clone()),new j({geometry:s,fill:this.getFill()?this.getFill().clone():void 0,image:this.getImage()?this.getImage().clone():void 0,renderer:this.getRenderer(),stroke:this.getStroke()?this.getStroke().clone():void 0,text:this.getText()?this.getText().clone():void 0,zIndex:this.getZIndex()})}getRenderer(){return this.renderer_}setRenderer(s){this.renderer_=s}setHitDetectionRenderer(s){this.hitDetectionRenderer_=s}getHitDetectionRenderer(){return this.hitDetectionRenderer_}getGeometry(){return this.geometry_}getGeometryFunction(){return this.geometryFunction_}getFill(){return this.fill_}setFill(s){this.fill_=s}getImage(){return this.image_}setImage(s){this.image_=s}getStroke(){return this.stroke_}setStroke(s){this.stroke_=s}getText(){return this.text_}setText(s){this.text_=s}getZIndex(){return this.zIndex_}setGeometry(s){"function"==typeof s?this.geometryFunction_=s:"string"==typeof s?this.geometryFunction_=function(f){return f.get(s)}:s?void 0!==s&&(this.geometryFunction_=function(){return s}):this.geometryFunction_=h,this.geometry_=s}setZIndex(s){this.zIndex_=s}}function N(u){let s;if("function"==typeof u)s=u;else{let f;Array.isArray(u)?f=u:((0,H.h)("function"==typeof u.getZIndex,41),f=[u]),s=function(){return f}}return s}let w=null;function S(u,s){if(!w){const f=new g.Z({color:"rgba(255,255,255,0.4)"}),i=new Q.Z({color:"#3399CC",width:1.25});w=[new j({image:new _.Z({fill:f,stroke:i,radius:5}),fill:f,stroke:i})]}return w}function h(u){return u.getGeometry()}const c=j},8185:(Vt,gt,r)=>{"use strict";r.d(gt,{Z:()=>j});var _=r(694),g=r(931);class H{constructor(w){this.font_=(w=w||{}).font,this.rotation_=w.rotation,this.rotateWithView_=w.rotateWithView,this.scale_=w.scale,this.scaleArray_=(0,g.Pq)(void 0!==w.scale?w.scale:1),this.text_=w.text,this.textAlign_=w.textAlign,this.justify_=w.justify,this.repeat_=w.repeat,this.textBaseline_=w.textBaseline,this.fill_=void 0!==w.fill?w.fill:new _.Z({color:"#333"}),this.maxAngle_=void 0!==w.maxAngle?w.maxAngle:Math.PI/4,this.placement_=void 0!==w.placement?w.placement:"point",this.overflow_=!!w.overflow,this.stroke_=void 0!==w.stroke?w.stroke:null,this.offsetX_=void 0!==w.offsetX?w.offsetX:0,this.offsetY_=void 0!==w.offsetY?w.offsetY:0,this.backgroundFill_=w.backgroundFill?w.backgroundFill:null,this.backgroundStroke_=w.backgroundStroke?w.backgroundStroke:null,this.padding_=void 0===w.padding?null:w.padding}clone(){const w=this.getScale();return new H({font:this.getFont(),placement:this.getPlacement(),repeat:this.getRepeat(),maxAngle:this.getMaxAngle(),overflow:this.getOverflow(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(w)?w.slice():w,text:this.getText(),textAlign:this.getTextAlign(),justify:this.getJustify(),textBaseline:this.getTextBaseline(),fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,offsetX:this.getOffsetX(),offsetY:this.getOffsetY(),backgroundFill:this.getBackgroundFill()?this.getBackgroundFill().clone():void 0,backgroundStroke:this.getBackgroundStroke()?this.getBackgroundStroke().clone():void 0,padding:this.getPadding()||void 0})}getOverflow(){return this.overflow_}getFont(){return this.font_}getMaxAngle(){return this.maxAngle_}getPlacement(){return this.placement_}getRepeat(){return this.repeat_}getOffsetX(){return this.offsetX_}getOffsetY(){return this.offsetY_}getFill(){return this.fill_}getRotateWithView(){return this.rotateWithView_}getRotation(){return this.rotation_}getScale(){return this.scale_}getScaleArray(){return this.scaleArray_}getStroke(){return this.stroke_}getText(){return this.text_}getTextAlign(){return this.textAlign_}getJustify(){return this.justify_}getTextBaseline(){return this.textBaseline_}getBackgroundFill(){return this.backgroundFill_}getBackgroundStroke(){return this.backgroundStroke_}getPadding(){return this.padding_}setOverflow(w){this.overflow_=w}setFont(w){this.font_=w}setMaxAngle(w){this.maxAngle_=w}setOffsetX(w){this.offsetX_=w}setOffsetY(w){this.offsetY_=w}setPlacement(w){this.placement_=w}setRepeat(w){this.repeat_=w}setRotateWithView(w){this.rotateWithView_=w}setFill(w){this.fill_=w}setRotation(w){this.rotation_=w}setScale(w){this.scale_=w,this.scaleArray_=(0,g.Pq)(void 0!==w?w:1)}setStroke(w){this.stroke_=w}setText(w){this.text_=w}setTextAlign(w){this.textAlign_=w}setJustify(w){this.justify_=w}setTextBaseline(w){this.textBaseline_=w}setBackgroundFill(w){this.backgroundFill_=w}setBackgroundStroke(w){this.backgroundStroke_=w}setPadding(w){this.padding_=w}}const j=H},5474:(Vt,gt,r)=>{"use strict";function _(S,v,h,c){return void 0!==c?(c[0]=S,c[1]=v,c[2]=h,c):[S,v,h]}function g(S,v,h){return S+"/"+v+"/"+h}function Q(S){return g(S[0],S[1],S[2])}function H(S){const[v,h,c]=S.substring(S.lastIndexOf("/")+1,S.length).split(",").map(Number);return g(v,h,c)}function j(S){return S.split("/").map(Number)}function N(S){return(S[1]<h||h>v.getMaxZoom())return!1;const s=v.getFullTileRange(h);return!s||s.containsXY(c,u)}r.d(gt,{MY:()=>H,T9:()=>_,Ul:()=>j,km:()=>Q,lg:()=>g,tE:()=>w,vp:()=>N})},2705:(Vt,gt,r)=>{"use strict";r.d(gt,{Cf:()=>w,Tl:()=>u,X$:()=>N,dl:()=>v});var _=r(1053),g=r(2258),Q=r(9015),H=r(9543),j=r(931);function N(s){let f=s.getDefaultTileGrid();return f||(f=function c(s,f,i,l){return function S(s,f,i,l){l=void 0!==l?l:"top-left";const m=h(s,f,i);return new _.Z({extent:s,origin:(0,H.g0)(s,l),resolutions:m,tileSize:i})}(u(s),f,i,l)}(s),s.setDefaultTileGrid(f)),f}function w(s,f,i){const l=f[0],m=s.getTileCoordCenter(f),e=u(i);if(!(0,H.b8)(e,m)){const P=(0,H.dz)(e),x=Math.ceil((e[0]-m[0])/P);return m[0]+=P*x,s.getTileCoordForCoordAndZ(m,l)}return f}function v(s){const f=s||{},i=f.extent||(0,Q.U2)("EPSG:3857").getExtent(),l={extent:i,minZoom:f.minZoom,tileSize:f.tileSize,resolutions:h(i,f.maxZoom,f.tileSize,f.maxResolution)};return new _.Z(l)}function h(s,f,i,l){f=void 0!==f?f:g.e,i=(0,j.Pq)(void 0!==i?i:g.S);const m=(0,H.Cr)(s),e=(0,H.dz)(s);l=l>0?l:Math.max(e/i[0],m/i[1]);const P=f+1,x=new Array(P);for(let T=0;T{"use strict";r.d(gt,{Z:()=>s});var _=r(828),g=r(2258),Q=r(992),H=r(4331),j=r(9543),N=r(5474),w=r(4429),S=r(142),v=r(931);const h=[0,0,0],s=class u{constructor(i){let l;if(this.minZoom=void 0!==i.minZoom?i.minZoom:0,this.resolutions_=i.resolutions,(0,Q.h)((0,S.pT)(this.resolutions_,function(e,P){return P-e},!0),17),!i.origins)for(let e=0,P=this.resolutions_.length-1;e=this.minZoom;){if(2===this.zoomFactor_?(x=Math.floor(x/2),T=Math.floor(T/2),P=(0,_.T)(x,x,T,T,m)):P=this.getTileRangeForExtentAndZ(U,D,m),l(D,P))return!0;--D}return!1}getExtent(){return this.extent_}getMaxZoom(){return this.maxZoom}getMinZoom(){return this.minZoom}getOrigin(i){return this.origin_?this.origin_:this.origins_[i]}getResolution(i){return this.resolutions_[i]}getResolutions(){return this.resolutions_}getTileCoordChildTileRange(i,l,m){if(i[0]this.maxZoom||l{"use strict";r.d(gt,{S:()=>g,e:()=>_});const _=42,g=256},5809:(Vt,gt,r)=>{"use strict";r.d(gt,{Gk:()=>S,Un:()=>N,uR:()=>j});var _=r(992),g=r(4331),Q=r(5474);function H(v,h){const c=/\{z\}/g,u=/\{x\}/g,s=/\{y\}/g,f=/\{-y\}/g;return function(i,l,m){if(i)return v.replace(c,i[0].toString()).replace(u,i[1].toString()).replace(s,i[2].toString()).replace(f,function(){const P=h.getFullTileRange(i[0]);return(0,_.h)(P,55),(P.getHeight()-i[2]-1).toString()})}}function j(v,h){const c=v.length,u=new Array(c);for(let s=0;s{"use strict";r.d(gt,{BB:()=>x,Iu:()=>s,Jp:()=>N,U1:()=>h,Ue:()=>H,bA:()=>c,lk:()=>S,mc:()=>j,n3:()=>u,nb:()=>m,nn:()=>v,qC:()=>f});var _=r(5063),g=r(992);const Q=new Array(6);function H(){return[1,0,0,1,0,0]}function j(T){return w(T,1,0,0,1,0,0)}function N(T,U){const D=T[0],C=T[1],O=T[2],X=T[3],$=T[4],dt=T[5],B=U[0],k=U[1],L=U[2],p=U[3],M=U[4],R=U[5];return T[0]=D*B+O*k,T[1]=C*B+X*k,T[2]=D*L+O*p,T[3]=C*L+X*p,T[4]=D*M+O*R+$,T[5]=C*M+X*R+dt,T}function w(T,U,D,C,O,X,$){return T[0]=U,T[1]=D,T[2]=C,T[3]=O,T[4]=X,T[5]=$,T}function S(T,U){return T[0]=U[0],T[1]=U[1],T[2]=U[2],T[3]=U[3],T[4]=U[4],T[5]=U[5],T}function v(T,U){const D=U[0],C=U[1];return U[0]=T[0]*D+T[2]*C+T[4],U[1]=T[1]*D+T[3]*C+T[5],U}function h(T,U){const D=Math.cos(U),C=Math.sin(U);return N(T,w(Q,D,C,-C,D,0,0))}function c(T,U,D){return N(T,w(Q,U,0,0,D,0,0))}function u(T,U,D){return w(T,U,0,0,D,0,0)}function s(T,U,D){return N(T,w(Q,1,0,0,1,U,D))}function f(T,U,D,C,O,X,$,dt){const B=Math.sin(X),k=Math.cos(X);return T[0]=C*k,T[1]=O*B,T[2]=-C*B,T[3]=O*k,T[4]=$*C*k-dt*C*B+U,T[5]=$*O*B+dt*O*k+D,T}function m(T,U){const D=function e(T){return T[0]*T[3]-T[1]*T[2]}(U);(0,g.h)(0!==D,32);const C=U[0],O=U[1],X=U[2],$=U[3],dt=U[4],B=U[5];return T[0]=$/D,T[1]=-O/D,T[2]=-X/D,T[3]=C/D,T[4]=(X*B-$*dt)/D,T[5]=-(C*B-O*dt)/D,T}let P;function x(T){const U="matrix("+T.join(", ")+")";if(_.Id)return U;const D=P||(P=document.createElement("div"));return D.style.transform=U,D.style.transform}},6941:(Vt,gt,r)=>{"use strict";function _(g,Q){const H=[];Object.keys(Q).forEach(function(N){null!=Q[N]&&H.push(N+"="+encodeURIComponent(Q[N]))});const j=H.join("&");return g=g.replace(/[?&]$/,""),(g+=g.includes("?")?"&":"?")+j}r.d(gt,{B:()=>_})},513:(Vt,gt,r)=>{"use strict";function _(){throw new Error("Unimplemented abstract method.")}r.d(gt,{O3:()=>_,sq:()=>Q});let g=0;function Q(j){return j.ol_uid||(j.ol_uid=String(++g))}},8809:(Vt,gt,r)=>{"use strict";r.d(gt,{A4:()=>f,C5:()=>P,Ei:()=>h,G3:()=>l,Me:()=>B,O:()=>T,Pr:()=>s,Qc:()=>S,RA:()=>e,T3:()=>x,Ve:()=>H,ZL:()=>D,c:()=>Q,fJ:()=>g,hg:()=>m,ke:()=>u,pc:()=>v,qk:()=>N,xc:()=>X,z:()=>c});var _=r(142);const g="http://www.w3.org/2001/XMLSchema-instance";function Q(k,L){return B().createElementNS(k,L)}function H(k,L){return j(k,L,[]).join("")}function j(k,L,p){if(k.nodeType==Node.CDATA_SECTION_NODE||k.nodeType==Node.TEXT_NODE)p.push(L?String(k.nodeValue).replace(/(\r\n|\r|\n)/g,""):k.nodeValue);else{let M;for(M=k.firstChild;M;M=M.nextSibling)j(M,L,p)}return p}function N(k){return"documentElement"in k}function S(k){return(new DOMParser).parseFromString(k,"application/xml")}function v(k,L){return function(p,M){const R=k.call(void 0!==L?L:this,p,M);void 0!==R&&(0,_.l7)(M[M.length-1],R)}}function h(k,L){return function(p,M){const R=k.call(void 0!==L?L:this,p,M);void 0!==R&&M[M.length-1].push(R)}}function c(k,L){return function(p,M){const R=k.call(void 0!==L?L:this,p,M);void 0!==R&&(M[M.length-1]=R)}}function u(k,L,p){return function(M,R){const K=k.call(void 0!==p?p:this,M,R);if(void 0!==K){const G=R[R.length-1],J=void 0!==L?L:M.localName;let q;J in G?q=G[J]:(q=[],G[J]=q),q.push(K)}}}function s(k,L,p){return function(M,R){const K=k.call(void 0!==p?p:this,M,R);void 0!==K&&(R[R.length-1][void 0!==L?L:M.localName]=K)}}function f(k,L){return function(p,M,R){k.call(void 0!==L?L:this,p,M,R),R[R.length-1].node.appendChild(p)}}function l(k,L){return function(p,M,R){let J=k;return void 0===J&&(J=R),Q(void 0!==L?L:M[M.length-1].node.namespaceURI,J)}}const m=l();function e(k,L){const p=L.length,M=new Array(p);for(let R=0;R{var ka=function(){"use strict";var nr,qe=/\s*/g,en=/^\s*|\s*$/g,c=/\s+/;function ut(Me){if(!Me||!Me.length)return 0;for(var Te=0,tt=0;Te{"use strict";St.r(pa),St.d(pa,{RouteExampleMaplibreModule:()=>z,RouteExampleMaplibreRoutingModule:()=>A});var ka=St(8692),qe=St(5548),en=St(790),c=St(6012);const ut_layerID="ukis:layerID";function Bt(x,T){const I=x.getBounds();return[I.getSouth(),I.getWest(),I.getNorth(),I.getEast()]}function ar(x,T){const I=x.getStyle().layers;let L=I;if(T){const R=T.toLowerCase();L=I.filter(B=>B.metadata?.["ukis:filtertype"]?.toLowerCase()===R)}return L}function Zi(x,T){const L=ar(x,T).filter(R=>R.metadata?.[ut_layerID]).map(R=>R.metadata?.[ut_layerID]);return[...new Set(L)]}function nr(x,T){const L=ar(x).filter(F=>{if(F.metadata?.[ut_layerID]===T)return!0}),R=x.getStyle().sources,B=L.reduce((F,H)=>{let ee;ee="source"in H&&"string"==typeof H.source?H.source:H.id;const ae=R[ee];return ae&&(F[ee]=ae),F},{});return{layers:L,sources:B}}function Gi(x,T){let I=[],L=T.length,R=L;for(;R--;){const F=x[R];if(T[R]!==F.id){const H={layerId:F.id,beforeId:null},ee=R+1;(ee=1?L[0].id:null,I.length>1)I.reverse(),I.forEach((R,B)=>{0===B?T.beforeId?x.moveLayer(R.id,T.beforeId):x.moveLayer(R.id):x.moveLayer(R.id,I[B-1].id)});else if(1===I.length){const R=I[0];T.beforeId?x.moveLayer(R.id,T.beforeId):x.moveLayer(R.id)}}}function tt(x,T){const I=Object.getOwnPropertyNames(x),L=Object.getOwnPropertyNames(T);if(I.length!==L.length)return!1;if((x instanceof Date&&T instanceof Date||x instanceof Boolean&&T instanceof Boolean||x instanceof Number&&T instanceof Number||x instanceof String&&T instanceof String)&&x.toString()!==T.toString())return!1;for(const R of I){const B=x[R],F=T[R];if(Array.isArray(B)&&Array.isArray(F)){if(B.length!==F.length||B.map((ee,ae)=>`${ee}`!=`${F[ae]}`).includes(!0))return!1}else if(("object"!=typeof B||"object"!=typeof F||!tt(B,F))&&B!==F)return!1}return!0}function di(x){const T={};return T["ukis:filtertype"]=x.filtertype,T[ut_layerID]=x.id,T}function sr(x){const T={};return T["ukis:filtertype"]=x?.metadata["ukis:filtertype"],T[ut_layerID]=x?.metadata[ut_layerID],T}function Ai(x){const I=x.params;let L=`${x.url}?bbox={bbox-epsg-3857}&format=${I?.FORMAT||"image/png"}&service=WMS&version=${I?.VERSION||"1.1.1"}&request=GetMap&srs=EPSG:3857&transparent=${I?.TRANSPARENT||"true"}&width=${x.tileSize||256}&height=${x.tileSize||256}&layers=${I?.LAYERS}`;return I.STYLES&&(L+=`&styles=${I.STYLES}`),L}function Mi(x){const I=x.params;return`${x.url}?layer=${I?.layer}&style=${I.style}&tilematrixset=${I.matrixSetOptions?.matrixSet}&service=WTMS&version=${I?.version||"1.0.0"}&request=GetTile&TileMatrix=EPSG:3857:{z}&TileCol={x}&TileRow={y}&format=${I?.format||"image/png"}`}function nt(x,T,I){const L={};return L[x.id]=T,{sources:L,layers:I}}function st(x){const I=[qe.Aq,qe.MR,qe.$6,qe.CY,qe.Sw,qe.ED,qe.KF,qe.R6,qe.jn].includes(x.type);return I||console.warn(`layer of type ${x.type} is not supported!`),I}function Ue(x){const T={},I={};return x instanceof qe.DJ?(T.type="vector","geojson"===x.type||"wfs"===x.type?(T.type="geojson",T.data=x.data||{type:"FeatureCollection",features:[]}):"kml"===x.type&&(T.type="kml",T.data=x.data||{type:"FeatureCollection",features:[]}),("kml"===T.type||"geojson"===T.type)&&(x.data?T.data=x.data:x.url&&(T.data=x.url),x.cluster&&(T.cluster=!0,"boolean"!=typeof x.cluster&&((x.cluster?.clusterRadius||x.cluster.distance)&&(T.clusterRadius=x.cluster.clusterRadius|x.cluster.distance),x.cluster?.clusterMaxZoom&&(T.clusterMaxZoom=x.cluster.clusterMaxZoom),x.cluster?.clusterMinPoints&&(T.clusterMinPoints=x.cluster.clusterMinPoints),x.cluster?.clusterProperties&&(T.clusterProperties=x.cluster.clusterProperties)))),x.bbox&&"vector"===T.type&&(T.bounds=x.bbox)):x instanceof qe.YY&&(T.type="raster",x.bbox&&"raster"===T.type&&(T.bounds=x.bbox)),x.attribution&&(T.attribution=x.attribution),"raster"===T.type&&x instanceof qe.YY&&(T.tileSize=x.tileSize?x.tileSize:256),I.id=x.id,I.type="raster",I.source=x.id,I.paint={"raster-opacity":x.opacity},I.layout={visibility:x.visible?"visible":"none"},I.metadata=di(x),(x.maxZoom||0===x.maxZoom)&&(I.maxzoom=x.maxZoom),(x.minZoom||0===x.minZoom)&&(I.minzoom=x.minZoom),{source:T,layer:I}}function Lt(x){const{source:T,layer:I}=Ue(x);return T.tiles=x.subdomains?x.subdomains.map(L=>x.url.replace("{s}",L)):[x.url],T.scheme="xyz",nt(x,T,[I])}function Ot(x){const{source:T}=Ue(x);let I=[];return"object"==typeof x.data?"Feature"===x.data.type?I=[Le(x.data,x)]:"FeatureCollection"===x.data.type&&(I=x.data&&x.data.features.length?x.data.features.map((L,R)=>Le(L,x,R)):function pt(x){const T="rgba(255,255,255,0.4)",I="#3399CC";return[{type:"Feature",geometry:{type:"Polygon",coordinates:[]},properties:{fill:T,stroke:I}},{type:"Feature",geometry:{type:"LineString",coordinates:[]},properties:{fill:T,stroke:I}},{type:"Feature",geometry:{type:"Point",coordinates:[]},properties:{fill:T,stroke:I}}].map((R,B)=>Le(R,x,B))}(x)):I=[{type:"Feature",geometry:{type:"Polygon"}},{type:"Feature",geometry:{type:"LineString"}},{type:"Feature",geometry:{type:"Point"}}].map(R=>Le(R,x)),nt(x,T,I)}function Le(x,T,I){let L={};const R={fill:{color:x?.properties?.fill||"rgba(255,255,255,0.4)"},stroke:{color:x?.properties?.stroke||"#3399CC",width:1.25},circle:{radius:5}};switch(x.geometry.type){case"Polygon":L={id:`${T.id}:fill`,type:"fill",source:T.id,paint:{"fill-opacity":T.opacity,"fill-color":R.fill.color},layout:{visibility:T.visible?"visible":"none"},metadata:{},filter:["==","$type","Polygon"]},L.metadata["ukis:filtertype"]=T.filtertype,L.metadata[ut_layerID]=T.id;break;case"LineString":L={id:`${T.id}:line`,type:"line",source:T.id,paint:{"line-opacity":T.opacity,"line-color":R.stroke.color,"line-width":R.stroke.width},layout:{"line-join":"round","line-cap":"round",visibility:T.visible?"visible":"none"},metadata:{},filter:["in","$type","LineString","Polygon"]},L.metadata["ukis:filtertype"]=T.filtertype,L.metadata[ut_layerID]=T.id;break;case"Point":L={id:`${T.id}:circle`,type:"circle",source:T.id,paint:{"circle-opacity":T.opacity,"circle-stroke-opacity":T.opacity,"circle-stroke-color":R.stroke.color,"circle-color":R.fill.color,"circle-radius":R.circle.radius,"circle-stroke-width":R.stroke.width},layout:{visibility:T.visible?"visible":"none"},metadata:{},filter:["==","$type","Point"]},L.metadata["ukis:filtertype"]=T.filtertype,L.metadata[ut_layerID]=T.id}return"number"==typeof I&&(L.id+=`:${I}`),(T.maxZoom||0===T.maxZoom)&&(L.maxzoom=T.maxZoom),(T.minZoom||0===T.minZoom)&&(L.minzoom=T.minZoom),L}function je(x){let T;switch(x.type){case qe.Aq:T=Lt(x);break;case qe.MR:T=function vt(x){const{source:T,layer:I}=Ue(x);return T.tiles=x.subdomains?x.subdomains.map(L=>(x.url=x.url.replace("{s}",L),Ai(x))):[Ai(x)],nt(x,T,[I])}(x);break;case qe.$6:T=function Ct(x){const{source:T,layer:I}=Ue(x);return T.tiles=[Mi(x)],nt(x,T,[I])}(x);break;case qe.CY:T=function ai(x){let T;if(x instanceof qe.YY)T=Lt(x);else if(x instanceof qe.DJ){const I=x?.options?.style;I.layers.forEach(L=>{L.metadata=Object.assign(L.metadata||{},di(x)),L.layout?L.layout.visibility="none":L.layout={visibility:"none"}}),T=I}return T}(x);break;case qe.Sw:T=Ot(x);break;case qe.R6:T=function Q(x){const{sources:T,layers:I}=Ot(x),L=T[x.id];return L.type="kml",nt(x,L,I)}(x);break;case qe.KF:T=function ft(x){let T=null;return x.url&&(T=0===x.url.indexOf("http://")||0===x.url.indexOf("https://")?new URL(x.url):new URL(x.url,window.location.origin),T.searchParams.set("srsname","EPSG:4326"),x.url=T.toString()),Ot(x)}(x);break;case qe.ED:T=function Ut(x){x.custom_layer?.version&&x.custom_layer?.sources&&x.custom_layer?.layers||console.error("custom_layer is not a StyleSpecification");const I=x.custom_layer,L=I.sources;return Object.keys(L).forEach(B=>{const F=L[B];!F.attribution&&x.attribution&&(F.attribution=x.attribution)}),I.layers.forEach(B=>{B.id=`${B.id}:${x.id}`,B.metadata=Object.assign(B.metadata||{},di(x)),B.metadata?.["ukis:ignore-visibility"]||(B.layout||(B.layout={}),B.layout.visibility=x.visible?"visible":"none");const H=B.paint?function Xt(x){let T=x;"symbol"===x&&(T="icon");let I=`${T}-opacity`;return"circle"===x&&(I="circle-stroke-opacity"),"hillshade"===x&&(I="hillshade-exaggeration"),I}(B.type):null,ee=B.metadata?.["ukis:ignore-opacity"];H&&!ee&&(B.paint||(B.paint={}),B.paint[H]=x.opacity)}),I}(x);break;case qe.jn:T=function mi(x){if(x instanceof qe.WQ){const T=x.layers.map(R=>{if(R.visible=x.visible,R.opacity=x.opacity,!(R instanceof qe.WQ))return je(R)}),I={},L=[];return T.forEach(R=>{R.layers.forEach(B=>{B.id=`${B.id}:${x.id}`,B.metadata=Object.assign(B.metadata||{},di(x)),L.push(B)}),Object.keys(R.sources).forEach(B=>{I[B]=R.sources[B]})}),{sources:I,layers:L}}console.log("layer is not of type StackedLayer!",x)}(x)}return T}function it(x,T,I){const L=x.getStyle().sources[T.id];if(L){const B=ar(x).filter(ae=>{if("background"!==ae.type)return ae.source===T.id}),H=je(T).sources[T.id];!tt(H,L)&&(B.forEach(ae=>{x.removeLayer(ae.id)}),x.removeSource(T.id),console.log("update source",H),x.addSource(T.id,H),B.forEach(ae=>{x.addLayer(ae),console.log("update layer for source",ae.id)}))}}var Ri=St(6215),we=St(4537);let zi=(()=>{class x{constructor(){this.FILTER_TYPE_KEY="filtertype",this.ID_KEY="id",this.TITLE_KEY="title",this.WebMercator="EPSG:3857",this.WGS84="EPSG:4326",this.map=new Ri.X(null),this.createLayer=je,this.layerIsSupported=st}setUkisLayers(I,L,R){const B=L.toLowerCase(),F=[];if(I.length<1&&"baselayers"!==B||I.forEach(H=>{const ee=this.createLayer(H);if(ee)if("version"in ee){const ae=ee.layers.map(Se=>R.getLayer(Se.id)).filter(Se=>Se);ae.length||F.push(ee),ae.length&&ae.forEach(Se=>this.updateMlLayer(Se,H,R))}else if("sources"in ee&&"layers"in ee){const ae=ee.layers.map(Se=>R.getLayer(Se.id)).filter(Se=>Se);ae.length||F.push(ee),ae.length&&ae.forEach(Se=>this.updateMlLayer(Se,H,R))}}),F.length>0){this.setLayers(F,R);const H={filtertype:B,layers:F};return R.style.stylesheet.metadata[`ukis:${L}IDs`]=I.map(ee=>ee.id),H}return null}getLayers(I,L){const B=L.getStyle().layers.filter(H=>H.metadata["ukis:filtertype"]===I),F=B.map(H=>L.getLayer(H.id));return{layerSpecifications:B,styleLayers:F}}getLayersForId(I,L,R){const F=this.getLayers(L,R).layerSpecifications.filter(H=>H.metadata[ut_layerID]===I);if(F.length){const H=F.map(ee=>R.getLayer(ee.id));return{layerSpecifications:F,styleLayers:H}}return null}setLayers(I,L){return I.forEach(R=>{"sources"in R&&"layers"in R&&R.layers.forEach(B=>{let F;if("background"!==B.type){if(F="object"==typeof B.source?B.id:B.source,!L.getSource(F)){const ee=R.sources[F];ee?L.addSource(F,ee):console.log("Source was not found in the LayerSourceSpecification!")}L.addLayer(B)}else L.addLayer(B)})}),I}updateMlLayer(I,L,R){I.metadata["ukis:ignore-visibility"]||function lt(x,T,I,L){let R;R="string"==typeof T?x.getLayer(T):T,R&&"visible"===R.visibility!==I&&x.setLayoutProperty(R.id,"visibility",I?"visible":"none")}(R,I,L.visible),I.metadata["ukis:ignore-opacity"]||function hi(x,T,I,L){let R;if(R="string"==typeof T?x.getLayer(T):T,R){let B=R.type;"symbol"===R.type&&(B="icon");let F=`${B}-opacity`;"circle"===R.type&&(F="circle-stroke-opacity"),"hillshade"===R.type&&(F="hillshade-exaggeration"),R.getPaintProperty(F)!==I&&x.setPaintProperty(R.id,F,I)}}(R,I,L.opacity),this.updateLayerParamsAndSource(R,I,L)}updateLayerParamsAndSource(I,L,R){"wms"!==R.type&&"wmts"!==R.type&&"tms"!==R.type&&"wfs"!==R.type&&"geojson"!==R.type||(I.getSource(L.source),it(I,R))}}return x.\u0275fac=function(I){return new(I||x)},x.\u0275prov=we.Yz7({token:x,factory:x.\u0275fac,providedIn:"root"}),x})();var yr=St(9765),dt=St(7460),Dr=St(9796),_r=St(4591),fe=St(6666);function Wt(...x){let T=null;return"function"==typeof x[x.length-1]&&(T=x.pop()),1===x.length&&(0,Dr.k)(x[0])&&(x=x[0].slice()),I=>I.lift.call((0,fe.D)([I,...x]),new _r.Ms(T))}var Wi=St(7167),or=St.n(Wi);const de=["mapDiv"],We={};let Ke=(()=>{class x{constructor(I,L){this.ngZone=I,this.mapSvc=L,this.subs=[],this.mapCreated=new yr.xQ,this.mapSize=[0,0],this.initialMapStateSet=!1,this.initialMapState=null,this.mapOnMoveend=R=>{const B=this.map.getZoom(),F=this.map.getCenter(),H=Bt(this.map),ae=new en.U5(B,{lat:F.lat,lon:F.lng},{notifier:"map"},H);this.mapStateSvc.setMapState(ae)}}ngOnInit(){this.layersSvc||console.error("provide a LayersService as Input to ukis-map-leaflet"),this.mapStateSvc||console.error("provide a MapStateService as Input to ukis-map-leaflet"),this.subscribeToMapState(),this.subscribeToLayers()}ngAfterViewInit(){this.initMap(),this.subscribeToMapEvents()}ngAfterViewChecked(){this.updateMapSize()}ngOnDestroy(){this.map&&this.map.off("moveend",this.mapOnMoveend)}initMap(){this.map=new c.Map({container:this.mapDivView.nativeElement,style:{version:8,name:"Merged Style Specifications",metadata:{},sources:{},sprite:"https://openmaptiles.github.io/positron-gl-style/sprite",glyphs:"http://fonts.openmaptiles.org/{fontstack}/{range}.pbf",layers:[]}}),this.addCustomSources(),this.setControls(),this.layersSvc||console.log("there is no layersSvc as defined!"),this.mapStateSvc||console.log("there is no mapStateSvc as defined!"),this.map.once("load",()=>{this.mapCreated.next(!0),this.mapSvc.map.next(this.map)})}addCustomSources(){We.kml||(this.addKmlSourceType(),We.kml=!0)}addKmlSourceType(){const I={type:"FeatureCollection",features:[]};this.map.addSourceType("kml",class L extends c.GeoJSONSource{constructor(B,{data:F,...H},ee,ae){super(B,Object.assign(H,{data:I}),ee,ae),this.id=B,this.type="geojson",this._options.data=F,this._preSetData(F)}setData(B){return this._preSetData(B),super.setData(this._data),this}_preSetData(B){if("string"==typeof B&&B.includes(".kml")){var F=new XMLHttpRequest;F.open("GET",B),F.responseType="text",F.addEventListener("load",()=>this.setData(F.response)),F.send()}else if(B.includes("{R&&console.log(R,B)})}setControls(){this.map.setMaxPitch(75);const I=new c.NavigationControl({showCompass:!0,showZoom:!0,visualizePitch:!0});this.map.addControl(I,"top-left");const L=new c.ScaleControl({unit:"metric"});this.map.addControl(L,"bottom-left")}subscribeToMapEvents(){this.map.on("moveend",this.mapOnMoveend)}updateMapSize(){const I=this.getMapDiv();I&&(I.width===this.mapSize[0]&&I.height===this.mapSize[1]?!this.initialMapStateSet&&this.initialMapState&&(this.setMapState(this.initialMapState),this.initialMapStateSet=!0):this.ngZone.runOutsideAngular(()=>{this.map.resize();const L=this.map.getContainer();this.mapSize=[L.clientWidth,L.clientHeight]}))}setMapState(I){this.initialMapState||(this.initialMapState=I);const L=this.mapStateSvc.getLastAction().getValue();"user"===I.options.notifier&&this.map&&("setExtent"===L?function re(x,T,I,L){const R=new c.LngLatBounds([T[0],T[1]],[T[2],T[3]]);x.fitBounds(R),Bt(x)}(this.map,I.extent):"setState"===L&&(function Ir(x,T,I){x.setZoom(T)}(this.map,I.zoom),function Be(x,T,I){const L=new c.LngLat(T[0],T[1]);x.setCenter(L),function Ge(x,T){const I=x.getCenter()}(x)}(this.map,[I.center.lon,I.center.lat])))}getMapDiv(){return this.mapDivView&&this.mapDivView.nativeElement?{width:this.mapDivView.nativeElement.offsetWidth,height:this.mapDivView.nativeElement.offsetHeight}:null}subscribeToMapState(){if(this.mapStateSvc){const I=this.mapStateSvc.getMapState().subscribe(L=>this.setMapState(L));this.subs.push(I)}}subscribeToLayers(){if(this.layersSvc){const I=this.mapCreated.asObservable().pipe((0,dt.g)(0),Wt(this.layersSvc.getBaseLayers())).subscribe(B=>this.addUpdateBaseLayers(B[1].filter(F=>this.mapSvc.layerIsSupported(F))));this.subs.push(I);const L=this.mapCreated.asObservable().pipe((0,dt.g)(0),Wt(this.layersSvc.getLayers())).subscribe(B=>this.addUpdateLayers(B[1].filter(F=>this.mapSvc.layerIsSupported(F)),"layers"));this.subs.push(L);const R=this.mapCreated.asObservable().pipe((0,dt.g)(0),Wt(this.layersSvc.getOverlays())).subscribe(B=>this.addUpdateLayers(B[1].filter(F=>this.mapSvc.layerIsSupported(F)),"overlays"));this.subs.push(R)}}addUpdateBaseLayers(I){const L="baselayers",R=I.filter(F=>F.visible),B=Zi(this.map,L);I.length!==B.length?(0===R.length?I[0].visible=!0:R.length>1&&(I.forEach(F=>F.visible=!1),I[0].visible=!0),this.mapSvc.setUkisLayers(I,L,this.map)):this.updateLayers(I,B,L)}addUpdateLayers(I,L){const R=Zi(this.map,L);if(I.length!==R.length){const B=I.map(H=>H.id),F=R.filter(H=>-1===B.indexOf(H));(function Ci(x,T){const I={layers:[],sources:{}};let L=[];const R=ar(x);Array.isArray(T)?L=T:L.push(T),L.forEach(F=>{const H=nr(x,F);I.layers.push(...H.layers),I.sources=H.sources}),I.layers.forEach(F=>{x.getLayer(F.id)&&x.removeLayer(F.id)});const B=R.filter(F=>!I.layers.map(H=>H.id).includes(F.id)).map(F=>F?.source).filter((F,H,ee)=>ee.indexOf(F)===H&&F);Object.keys(I.sources).forEach(F=>{x.getSource(F)&&!B.includes(F)&&x.removeSource(F)})})(this.map,F),this.mapSvc.setUkisLayers(I,L,this.map)}else this.updateLayers(I,R,L)}updateLayers(I,L,R){!function Me(x,T,I,L){const R=Gi(T,I),B=R.length;if(B)for(let F=0;F=1&&0===Gi(T,Zi(x,L)).length)break;Te(x,H)}}(this.map,I,L,R);for(const B of I)ar(this.map).filter(H=>sr(H)[ut_layerID]===B.id).map(H=>this.map.getLayer(H.id)).filter(H=>H).forEach(H=>{this.mapSvc.updateMlLayer(H,B,this.map)})}}return x.\u0275fac=function(I){return new(I||x)(we.Y36(we.R0b),we.Y36(zi))},x.\u0275cmp=we.Xpm({type:x,selectors:[["ukis-map-maplibre"]],viewQuery:function(I,L){if(1&I&&we.Gf(de,5),2&I){let R;we.iGM(R=we.CRH())&&(L.mapDivView=R.first)}},inputs:{layersSvc:"layersSvc",mapStateSvc:["mapState","mapStateSvc"]},decls:2,vars:0,consts:[[1,"map"],["mapDiv",""]],template:function(I,L){1&I&&we._UZ(0,"div",0,1)},styles:[":root{--ukis-popup-bg-color: rgb(238, 238, 238);--ukis-drop-shadow: drop-shadow(0 1px 4px rgba(0, 0, 0, .2));--ukis-gl-bbox-bg-color: rgba(255, 255, 255, .4);--ukis-gl-bbox-border-color: rgba(87, 87, 87, .4);--ukis-gl-overviewmap-left: .5em;--ukis-gl-overviewmap-bottom: 3em;--ukis-gl-control-bg-color: rgba(87, 87, 87, .6);--ukis-gl-control-border-color: rgba(87, 87, 87, .4)}.map{width:100%;height:100%;position:relative}.maplibregl-control-container .maplibregl-ctrl-group button{background-color:var(--ukis-gl-control-bg-color);color:#fff;border-radius:2px}.maplibregl-control-container .maplibregl-ctrl-group button:focus{background-color:var(--ukis-gl-control-bg-color)}.maplibregl-control-container .maplibregl-ctrl-group button:hover{background-color:var(--ukis-gl-control-border-color)}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px #ffffffcf}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8h-8z'/%3E%3Cpath fill='%23000' d='m10.5 16 4 8 4-8h-8z'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23fff' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E\")}.maplibregl-ctrl-scale{box-shadow:0 0 0 2px #ffffff4d;background:var(--ukis-gl-control-bg-color);line-height:1.575em;padding:1px;border:1px solid #666666;color:#fff;text-align:center}\n"],encapsulation:2}),x})(),Ht=(()=>{class x{}return x.\u0275fac=function(I){return new(I||x)},x.\u0275mod=we.oAB({type:x}),x.\u0275inj=we.cJS({providers:[zi],imports:[ka.ez]}),x})();var Pi=St(4074),Fe=St(4969);const ki=JSON.parse('{"ug":[{"id":"place_suburb","type":"symbol","metadata":{"mapbox:group":"101da9f13b64a08fa4b6ac1168e89e5f"},"source":"planet_eoc","source-layer":"place","minzoom":9,"maxzoom":15,"filter":["all",["==","$type","Point"],["==","class","suburb"]],"layout":{"text-anchor":"center","text-field":"{name:latin}\\n{name:nonlatin}","text-font":["Metropolis Regular","Noto Sans Regular"],"text-justify":"center","text-offset":[0.5,0],"text-size":10,"text-transform":"uppercase","visibility":"visible"},"paint":{"text-color":"rgb(117, 129, 145)","text-halo-blur":1,"text-halo-color":"rgb(242,243,240)","text-halo-width":1}},{"id":"place_village","type":"symbol","metadata":{"mapbox:group":"101da9f13b64a08fa4b6ac1168e89e5f"},"source":"planet_eoc","source-layer":"place","minzoom":11,"maxzoom":24,"filter":["all",["==","$type","Point"],["==","class","village"]],"layout":{"icon-size":0.4,"text-anchor":"left","text-field":"{name:latin}\\n{name:nonlatin}","text-font":["Metropolis Regular","Noto Sans Regular"],"text-justify":"left","text-offset":[0.5,0.2],"text-size":10,"text-transform":"uppercase","visibility":"visible"},"paint":{"icon-opacity":0.7,"text-color":"rgb(117, 129, 145)","text-halo-blur":1,"text-halo-color":"rgb(242,243,240)","text-halo-width":1}},{"id":"place_town","type":"symbol","metadata":{"mapbox:group":"101da9f13b64a08fa4b6ac1168e89e5f"},"source":"planet_eoc","source-layer":"place","minzoom":9,"maxzoom":15,"filter":["all",["==","$type","Point"],["==","class","town"]],"layout":{"icon-image":{"base":1,"stops":[[0,"circle-11"],[8,""]]},"icon-size":0.4,"text-anchor":{"base":1,"stops":[[0,"left"],[8,"center"]]},"text-field":"{name:latin}\\n{name:nonlatin}","text-font":["Metropolis Regular","Noto Sans Regular"],"text-justify":"left","text-offset":[0.5,0.2],"text-size":10,"text-transform":"uppercase","visibility":"visible"},"paint":{"icon-opacity":0.7,"text-color":"rgb(117, 129, 145)","text-halo-blur":1,"text-halo-color":"rgb(242,243,240)","text-halo-width":1}},{"id":"place_city","type":"symbol","metadata":{"mapbox:group":"101da9f13b64a08fa4b6ac1168e89e5f"},"source":"planet_eoc","source-layer":"place","minzoom":7,"maxzoom":14,"filter":["all",["==","$type","Point"],["all",["!=","capital",2],["==","class","city"],[">","rank",3]]],"layout":{"icon-image":{"base":1,"stops":[[0,"circle-11"],[8,""]]},"icon-size":0.4,"text-anchor":{"base":1,"stops":[[0,"left"],[8,"center"]]},"text-field":"{name:latin}\\n{name:nonlatin}","text-font":["Metropolis Regular","Noto Sans Regular"],"text-justify":"left","text-offset":[0.5,0.2],"text-size":10,"text-transform":"uppercase","visibility":"visible"},"paint":{"icon-opacity":0.7,"text-color":"rgb(117, 129, 145)","text-halo-blur":1,"text-halo-color":"rgb(242,243,240)","text-halo-width":1}},{"id":"place_capital","type":"symbol","metadata":{"mapbox:group":"101da9f13b64a08fa4b6ac1168e89e5f"},"source":"planet_eoc","source-layer":"place","minzoom":3,"maxzoom":12,"filter":["all",["==","$type","Point"],["all",["==","capital",2],["==","class","city"]]],"layout":{"icon-image":{"base":1,"stops":[[0,"circle-11"],[8,""]]},"text-anchor":{"base":1,"stops":[[0,"left"],[8,"center"]]},"text-field":"{name:latin}\\n{name:nonlatin}","text-font":["Metropolis Regular","Noto Sans Regular"],"text-justify":"left","text-offset":[0.5,0.2],"text-transform":"uppercase","visibility":"visible","text-size":14,"icon-size":0},"paint":{"icon-opacity":0.7,"text-color":"rgb(117, 129, 145)","text-halo-blur":1,"text-halo-color":"rgb(242,243,240)","text-halo-width":1}},{"id":"place_city_large","type":"symbol","metadata":{"mapbox:group":"101da9f13b64a08fa4b6ac1168e89e5f"},"source":"planet_eoc","source-layer":"place","minzoom":4,"maxzoom":12,"filter":["all",["==","$type","Point"],["all",["!=","capital",2],["<=","rank",3],["==","class","city"]]],"layout":{"icon-image":{"base":1,"stops":[[0,"circle-11"],[8,""]]},"icon-size":0.4,"text-anchor":{"base":1,"stops":[[0,"left"],[8,"center"]]},"text-field":"{name:latin}\\n{name:nonlatin}","text-font":["Metropolis Regular","Noto Sans Regular"],"text-justify":"left","text-offset":[0.5,0.2],"text-size":14,"text-transform":"uppercase","visibility":"visible"},"paint":{"icon-opacity":0.7,"text-color":"rgb(117, 129, 145)","text-halo-blur":1,"text-halo-color":"rgb(242,243,240)","text-halo-width":1}},{"id":"place_state","type":"symbol","metadata":{"mapbox:group":"101da9f13b64a08fa4b6ac1168e89e5f"},"source":"planet_eoc","source-layer":"place","maxzoom":12,"filter":["all",["==","$type","Point"],["==","class","state"]],"layout":{"text-field":"{name:latin}\\n{name:nonlatin}","text-font":["Metropolis Regular","Noto Sans Regular"],"text-size":10,"text-transform":"uppercase","visibility":"visible"},"paint":{"text-color":"rgb(113, 129, 144)","text-halo-blur":1,"text-halo-color":"rgb(242,243,240)","text-halo-width":1}},{"id":"place_country_other","type":"symbol","metadata":{"mapbox:group":"101da9f13b64a08fa4b6ac1168e89e5f"},"source":"planet_eoc","source-layer":"place","maxzoom":8,"filter":["all",["==","$type","Point"],["==","class","country"],["!has","iso_a2"]],"layout":{"text-field":"{name:latin}","text-font":["Metropolis Light Italic","Noto Sans Italic"],"text-size":{"base":1,"stops":[[0,9],[6,11]]},"text-transform":"uppercase","visibility":"visible"},"paint":{"text-color":{"base":1,"stops":[[3,"rgb(157,169,177)"],[4,"rgb(153, 153, 153)"]]},"text-halo-color":"rgba(236,236,234,0.7)","text-halo-width":1.4}},{"id":"place_country_minor","type":"symbol","metadata":{"mapbox:group":"101da9f13b64a08fa4b6ac1168e89e5f"},"source":"planet_eoc","source-layer":"place","maxzoom":8,"filter":["all",["==","$type","Point"],["==","class","country"],[">=","rank",2],["has","iso_a2"]],"layout":{"text-field":"{name:latin}","text-font":["Metropolis Regular","Noto Sans Regular"],"text-size":{"base":1,"stops":[[0,10],[6,12]]},"text-transform":"uppercase","visibility":"visible"},"paint":{"text-color":{"base":1,"stops":[[3,"rgb(157,169,177)"],[4,"rgb(153, 153, 153)"]]},"text-halo-color":"rgba(236,236,234,0.7)","text-halo-width":1.4}},{"id":"place_country_major","type":"symbol","metadata":{"mapbox:group":"101da9f13b64a08fa4b6ac1168e89e5f"},"source":"planet_eoc","source-layer":"place","maxzoom":6,"filter":["all",["==","$type","Point"],["<=","rank",1],["==","class","country"],["has","iso_a2"]],"layout":{"text-anchor":"center","text-field":"{name:latin}","text-font":["Metropolis Regular","Noto Sans Regular"],"text-size":{"base":1.4,"stops":[[0,10],[3,12],[4,14]]},"text-transform":"uppercase","visibility":"visible"},"paint":{"text-color":{"base":1,"stops":[[3,"rgb(157,169,177)"],[4,"rgb(153, 153, 153)"]]},"text-halo-color":"rgba(236,236,234,0.7)","text-halo-width":1.4}}]}'),Bi=JSON.parse('{"type":"FeatureCollection","features":[{"type":"Feature","properties":{"name":"Poly 1"},"geometry":{"type":"Polygon","coordinates":[[[28.037109375,31.353636941500987],[42.01171875,31.353636941500987],[42.01171875,41.44272637767212],[28.037109375,41.44272637767212],[28.037109375,31.353636941500987]]]}},{"type":"Feature","properties":{"name":"Poly 2"},"geometry":{"type":"Polygon","coordinates":[[[24.521484375,19.89072302399691],[28.652343749999996,18.729501999072138],[38.67187499999999,17.22475820662464],[44.736328125,30.90222470517144],[36.5625,31.052933985705163],[25.224609375,31.27855085894653],[24.521484375,19.89072302399691]]]}},{"type":"Feature","properties":{"name":"Line 1"},"geometry":{"type":"LineString","coordinates":[[19.6875,17.5602465032949],[25.400390625,11.350796722383672],[30.761718749999996,14.689881366618762],[39.814453125,10.746969318460001]]}},{"type":"Feature","properties":{"name":"Point 1"},"geometry":{"type":"Point","coordinates":[29.794921874999996,8.146242825034385]}}]}');var bi=St(6799),Hi=St(408),Rr=St(580);let fi=(()=>{class x{constructor(I,L,R){this.layerSvc=I,this.mapStateSvc=L,this.mapSvc=R,this.class="content-container",this.subs=[]}ngOnInit(){this.addBaselayers(),this.setMapState(),this.setTerrain(),this.addlayers(),this.addOverlays()}ngOnDestroy(){this.subs.map(I=>I.unsubscribe())}setMapState(){this.mapStateSvc.setMapState({zoom:11,center:{lat:47.41449812198263,lon:11.7455863952639}})}setTerrain(){const I=this.mapSvc.map.subscribe(L=>{if(L){L.addSource("terrainSource",{type:"raster-dem",encoding:"terrarium",tiles:["https://s3.amazonaws.com/elevation-tiles-prod/terrarium/{z}/{x}/{y}.png"],tileSize:256,attribution:'\xa9 AWS Terrain Tiles',minzoom:3});const R=1;L.setTerrain({source:"terrainSource",exaggeration:R}),L.setBearing(-20),L.setPitch(60),L.setMaxPitch(80),L.addControl(new c.TerrainControl({source:"terrainSource",exaggeration:R}),"top-left")}});this.subs.push(I)}addBaselayers(){Fe.layers.forEach(L=>{L?.layout?.["text-font"]&&(L.layout["text-font"]=L.layout["text-font"].filter(R=>"Noto Sans Regular"!==R&&"Noto Sans Italic"!==R))}),[new Pi.gY({visible:!1}),new Pi.Kl({visible:!0}),new Pi.um({visible:!1}),new qe.DJ({name:"Transparenter Hintergrund",id:"blank_1",type:"geojson",visible:!1,data:{type:"FeatureCollection",features:[]}}),new qe.DJ({name:"Open Map Styles",id:"planet_eoc_vector_tiles",attribution:'\xa9 OpenMapTiles \xa9 OpenStreetMap contributors',description:'EOC-Geoservice TMS-Service, Vector Tiles with OpenMapTiles and customised positron Style.',type:"tms",url:"https://{s}.tiles.geoservice.dlr.de/service/tms/1.0.0/planet_eoc@EPSG%3A900913@pbf/{z}/{x}/{y}.pbf?flipy=true",subdomains:["a","b","c","d"],options:{style:Fe,styleSource:"planet_eoc"},visible:!1})].map(L=>this.layerSvc.addLayer(L,"Baselayers"))}addlayers(){const I=new qe.TI({name:"EOC Basemap",displayName:"EOC Basemap",id:"eoc_basemap",visible:!1,type:"wms",removable:!1,params:{LAYERS:"eoc:basemap",FORMAT:"image/png",TRANSPARENT:!0},url:"https://tiles.geoservice.dlr.de/service/wms",attribution:'©, DLR',continuousWorld:!1,legendImg:"https://tiles.geoservice.dlr.de/service/wmts?layer=eoc%3Abasemap&style=_empty&tilematrixset=EPSG%3A3857&Service=WMTS&Request=GetTile&Version=1.0.0&Format=image%2Fpng&TileMatrix=EPSG%3A3857%3A5&TileCol=18&TileRow=11",description:"This is the basemap for DLR Service Portals",opacity:1}),L=new qe.YY({name:"OpenStreetMap",displayName:"OpenStreetMap",id:"osm_2",visible:!1,type:"xyz",url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",subdomains:["a","b","c"],attribution:'©, OpenStreetMap contributors',continuousWorld:!1,legendImg:"https://a.tile.openstreetmap.org/3/4/3.png",description:"OpenStreetMap z-x-y Tiles",opacity:1}),R=new qe.RC({name:"EOC Litemap Tile",displayName:"EOC Litemap Tile",id:"eoc_litemap_tile",visible:!1,type:"wmts",removable:!1,params:{layer:"eoc:litemap",format:"image/png",style:"_empty",matrixSetOptions:{matrixSet:"EPSG:3857",tileMatrixPrefix:"EPSG:3857"}},url:"https://tiles.geoservice.dlr.de/service/wmts",attribution:'©, DLR',continuousWorld:!1,legendImg:"https://tiles.geoservice.dlr.de/service/wmts?layer=eoc%3Alitemap&style=_empty&tilematrixset=EPSG%3A3857&Service=WMTS&Request=GetTile&Version=1.0.0&Format=image%2Fpng&TileMatrix=EPSG%3A3857%3A5&TileCol=18&TileRow=11",description:"EOC Litemap as web map tile service",opacity:1}),B=new Pi.HF,F=new qe.TI({name:"MODIS EU Daily",id:"MODIS_EU_DAILY",visible:!1,type:"wms",removable:!1,params:{LAYERS:"MODIS_EU_DAILY",FORMAT:"image/png",TRANSPARENT:!0},url:"https://geoservice.dlr.de/eoc/imagery/wms",attribution:'©, DLR',continuousWorld:!1,legendImg:"https://geoservice.dlr.de/eoc/imagery/wms?service=WMS&version=1.3.0&request=GetLegendGraphic&format=image%2Fpng&width=20&height=20&layer=MODIS_EU_DAILY",opacity:1}),H=new qe.TI({name:"Sentinel-2 Europe",id:"sentinel2Europe",visible:!1,type:"wms",removable:!1,params:{LAYERS:"rgb",FORMAT:"image/png",TRANSPARENT:!0},url:"https://sgx.geodatenzentrum.de/wms_sen2europe",attribution:'©, Europ\xe4ische Union - BKG',continuousWorld:!1,legendImg:"https://sgx.geodatenzentrum.de/wms_sen2europe?service=WMS&version=1.3.0&request=GetLegendGraphic&format=image%2Fpng&width=20&height=20&layer=rgb",opacity:1}),ee=new qe.TI({name:"mosaic_hillshade",id:"gmted2010_dsc075_mosaic_hillshade",visible:!0,type:"wms",removable:!1,params:{LAYERS:"gmted2010_dsc075_mosaic_hillshade",FORMAT:"image/png",TRANSPARENT:!0},url:"https://geoservice.dlr.de/eoc/basemap/wms",attribution:'©, DLR',continuousWorld:!1,legendImg:"https://geoservice.dlr.de/eoc/basemap/wms?service=WMS&version=1.3.0&request=GetLegendGraphic&format=image%2Fpng&width=20&height=20&layer=gmted%3Agmted2010_dsc075_mosaic_hillshade",opacity:.5}),ae=new qe.AO({id:"waterway-planet_eoc",name:"waterway",visible:!0,removable:!0,custom_layer:{version:8,sources:{"waterway-planet_eoc":{type:"vector",__Comment:"The url to the tilejson is not public available so we use the tiles array to skip the request, to make use of the tms service. See https://github.com/openlayers/ol-mapbox-style/blob/v8.2.1/src/util.js#L109",url:"",tiles:["https://a.tiles.geoservice.dlr.de/service/tms/1.0.0/planet_eoc@EPSG%3A900913@pbf/{z}/{x}/{y}.pbf?flipy=true","https://b.tiles.geoservice.dlr.de/service/tms/1.0.0/planet_eoc@EPSG%3A900913@pbf/{z}/{x}/{y}.pbf?flipy=true","https://c.tiles.geoservice.dlr.de/service/tms/1.0.0/planet_eoc@EPSG%3A900913@pbf/{z}/{x}/{y}.pbf?flipy=true","https://d.tiles.geoservice.dlr.de/service/tms/1.0.0/planet_eoc@EPSG%3A900913@pbf/{z}/{x}/{y}.pbf?flipy=true"]}},layers:[{id:"water",type:"fill",source:"waterway-planet_eoc","source-layer":"water",filter:["all",["==","$type","Polygon"],["!=","brunnel","tunnel"]],layout:{visibility:"visible"},paint:{"fill-antialias":!0,"fill-color":"hsl(198, 100%, 28%)"}},{id:"waterway",type:"line",source:"waterway-planet_eoc","source-layer":"waterway",filter:["==","$type","LineString"],layout:{visibility:"visible"},paint:{"line-color":"hsl(198, 100%, 28%)"},metadata:{"ukis:ignore-visibility":!0}},{id:"water_name",type:"symbol",source:"waterway-planet_eoc","source-layer":"water_name",filter:["==","$type","LineString"],layout:{"symbol-placement":"line","symbol-spacing":500,"text-field":"{name:latin}\n{name:nonlatin}","text-font":["Metropolis Medium Italic"],"text-rotation-alignment":"map","text-size":12},paint:{"text-color":"rgb(157,169,177)","text-halo-blur":1,"text-halo-color":"rgb(242,243,240)","text-halo-width":1}}]}}),Se=new qe.AO({id:"hillshade_raster_dem",name:"hillshade raster dem",visible:!1,removable:!0,attribution:'\xa9 AWS Terrain Tiles',custom_layer:{version:8,sources:{hillshadeSource:{type:"raster-dem",encoding:"terrarium",tileSize:512,tiles:["https://s3.amazonaws.com/elevation-tiles-prod/terrarium/{z}/{x}/{y}.png"],minzoom:3}},layers:[{id:"hills",type:"hillshade",source:"hillshadeSource",layout:{visibility:"visible"},paint:{"hillshade-shadow-color":"#473B24"}}]}}),Ce=(new qe.AO({id:"geoserverCountries",name:"geoserverCountries",visible:!1,removable:!0,custom_layer:{version:8,sources:{geoserverCountries:{type:"vector",tiles:["http://localhost:8080/geoserver/gwc/service/tms/1.0.0/ne%3Acountries@EPSG%3A900913@pbf/{z}/{x}/{y}.pbf?flipy=true"],tileSize:512}},layers:[{id:"geoserverCountries",type:"fill",source:"geoserverCountries","source-layer":"countries",filter:["all",["!=","NAME","Germany"]],layout:{visibility:"visible"},paint:{"fill-antialias":!0,"fill-color":"hsl(198, 100%, 28%)"}},{id:"geoserverCountriesLine",type:"line",source:"geoserverCountries","source-layer":"countries",filter:["all",["==","NAME","Germany"]],layout:{visibility:"visible"},paint:{"line-color":"hsl(25, 100%, 50%)"}}]}}),new qe.DJ({id:"geojson_test",name:"GeoJSON Vector Layer",attribution:"\xa9 DLR GeoJSON",type:"geojson",data:Bi,bbox:[5.461,8.631,53.931,42.193],visible:!1})),Re=new qe.DJ({id:"WfsLayer",name:"Coastline (WFS)",type:"wfs",visible:!1,url:"https://geoservice.dlr.de/eoc/basemap/wfs?service=WFS&request=GetFeature&outputFormat=application/json&version=1.1.0&srsname=EPSG:4326&typenames=ne:ne_50m_coastline"}),Xe=new qe.DJ({id:"ID-ukis-kml",name:"TimeZones (KML)",type:"kml",data:"assets/kml/TimeZones.kml",visible:!1}),ct=new qe.TI({type:"wms",id:"S2_L3A_WASP_FRC_P1M",url:"https://{s}.geoservice.dlr.de/eoc/imagery/wms",name:"Sentinel-2 L3A FRC (WASP)",visible:!1,subdomains:["a","b","c","d"],filtertype:"Layers",attribution:'© DLR Contains modified Copernicus Sentinel Data [2020]',params:{LAYERS:"S2_L3A_WASP_FRC_P1M",VERSION:"1.1.0",FORMAT:"image/png"},expanded:{tab:"settings"},bbox:[2.183,47.076,8.206,49.287],styles:[{default:!0,legendURL:"https://geoservice.dlr.de/eoc/imagery/wms?service=WMS&request=GetLegendGraphic&format=image/png&width=20&height=20&layer=land:S2_L3A_WASP_FRC_P1M",name:"s2-ndvi",title:"NDVI"},{default:!1,legendURL:"https://geoservice.dlr.de/eoc/imagery/wms?service=WMS&request=GetLegendGraphic&format=image/png&width=20&height=20&layer=land:S2_L3A_WASP_FRC_P1M",name:"s2-infrared",title:"Infrared (8,4,3)"},{default:!1,legendURL:"https://geoservice.dlr.de/eoc/imagery/wms?service=WMS&request=GetLegendGraphic&format=image/png&width=20&height=20&layer=land:S2_L3A_WASP_FRC_P1M",name:"s2-l3a-wasp-frc",title:"Style for L3A MAJA/WASP Ground Reflectances"}]}),_t=new qe.WQ({id:"stackedLayer_id",name:"EocLiteMap And Overlay",description:"merged/stacked Layers EOC Lite with Overlay",layers:[R,B],visible:!1});[new qe.ex({id:"group_1",name:"Raster Group",visible:!1,layers:[I,L,F,H],description:"This is a group with multiple raster layers",expanded:{tab:"description"},actions:[{title:"download",icon:"download-cloud",action:ni=>{console.log(ni)}}]}),Se,ee,ae,Re,Xe,Ce,_t,ct].map(ni=>{ni instanceof qe.mh?this.layerSvc.addLayer(ni,"Layers"):this.layerSvc.addLayerGroup(ni,"Layers")})}addOverlays(){const I=new qe.TI({name:"EOC Liteoverlay",displayName:"EOC Liteoverlay",id:"eoc_Liteoverlay",visible:!1,type:"wms",removable:!1,params:{LAYERS:"eoc:liteoverlay",FORMAT:"image/png",TRANSPARENT:!0},url:"https://tiles.geoservice.dlr.de/service/wms",attribution:'©, DLR',continuousWorld:!1,legendImg:"https://tiles.geoservice.dlr.de/service/wmts?layer=eoc%3Aliteoverlay&style=_empty&tilematrixset=EPSG%3A3857&Service=WMTS&Request=GetTile&Version=1.0.0&Format=image%2Fpng&TileMatrix=EPSG%3A3857%3A5&TileCol=18&TileRow=11",description:"This is the liteoverlay provided for EOC Service Portals",opacity:1}),L=new qe.TI({name:"Geonames cities",displayName:"Geonames cities",id:"gn_cities",visible:!1,type:"wms",removable:!1,params:{LAYERS:"gn:cities",FORMAT:"image/png",TRANSPARENT:!0},url:"https://geoservice.dlr.de/eoc/basemap/wms",attribution:'©, DLR',continuousWorld:!1,legendImg:"https://geoservice.dlr.de/eoc/basemap/wms?service=WMS&version=1.3.0&request=GetLegendGraphic&format=image%2Fpng&width=20&height=20&layer=gn%3Acities",opacity:1}),R=new qe.TI({name:"admin 0 countries",displayName:"admin 0 countries",id:"ne_10m_admin_0_countries",visible:!1,type:"wms",removable:!1,params:{LAYERS:"ne:ne_10m_admin_0_countries",FORMAT:"image/png",TRANSPARENT:!0},url:"https://geoservice.dlr.de/eoc/basemap/wms",attribution:'©, DLR',continuousWorld:!1,legendImg:"https://geoservice.dlr.de/eoc/basemap/wms?service=WMS&version=1.3.0&request=GetLegendGraphic&format=image%2Fpng&width=20&height=20&layer=ne%3Ane_10m_admin_0_countries",opacity:1});ki.ug.forEach(H=>{H.source="place-labels-planet_eoc",H?.layout?.["text-font"]&&(H.layout["text-font"]=H.layout["text-font"].filter(ee=>"Noto Sans Regular"!==ee&&"Noto Sans Italic"!==ee))}),[I,L,R,new qe.AO({id:"place-labels-planet_eoc",name:"Place Labels",visible:!0,removable:!0,custom_layer:{version:8,sources:{"place-labels-planet_eoc":{type:"vector",__Comment:"The url to the tilejson is not public available so we use the tiles array to skip the request, to make use of the tms service. See https://github.com/openlayers/ol-mapbox-style/blob/v8.2.1/src/util.js#L109",url:"",tiles:["https://a.tiles.geoservice.dlr.de/service/tms/1.0.0/planet_eoc@EPSG%3A900913@pbf/{z}/{x}/{y}.pbf?flipy=true","https://b.tiles.geoservice.dlr.de/service/tms/1.0.0/planet_eoc@EPSG%3A900913@pbf/{z}/{x}/{y}.pbf?flipy=true","https://c.tiles.geoservice.dlr.de/service/tms/1.0.0/planet_eoc@EPSG%3A900913@pbf/{z}/{x}/{y}.pbf?flipy=true","https://d.tiles.geoservice.dlr.de/service/tms/1.0.0/planet_eoc@EPSG%3A900913@pbf/{z}/{x}/{y}.pbf?flipy=true"]}},layers:ki.ug}})].map(H=>this.layerSvc.addLayer(H,"Overlays"))}subscribeToMapState(){const I=this.mapStateSvc.getMapState().subscribe(L=>{console.log({zoom:L.zoom.toString(),center:`${L.center.lat},${L.center.lon}`})});this.subs.push(I)}updateLayer(){const I=this.layerSvc.getLayerOrGroupById("geojson_test");I.data={type:"FeatureCollection",features:[{type:"Feature",properties:{},geometry:{coordinates:[[[11.771870735772268,47.49013323424285],[11.771870735772268,47.44101685032831],[11.85227430395085,47.44101685032831],[11.85227430395085,47.49013323424285],[11.771870735772268,47.49013323424285]]],type:"Polygon"}}]},this.layerSvc.updateLayer(I)}}return x.\u0275fac=function(I){return new(I||x)(we.Y36(qe.KD),we.Y36(en.I3),we.Y36(zi))},x.\u0275cmp=we.Xpm({type:x,selectors:[["app-route-example-maplibre"]],hostVars:2,hostBindings:function(I,L){2&I&&we.Tol(L.class)},features:[we._Bn([qe.KD,en.I3,zi])],decls:24,vars:14,consts:[[1,"content-area","map-view"],[3,"mapState","layersSvc"],[1,"right",3,"clrVerticalNavCollapsible"],[1,"layers",3,"clrVerticalNavGroupExpanded"],["shape","world","title","Overlays","clrVerticalNavIcon",""],[1,"padding","title-ellipsis"],[3,"layersSvc","mapStateSvc","layerfilter"],["shape","layers","clrVerticalNavIcon","","title","layers"],[3,"layersSvc","mapStateSvc"],["shape","world","title","Baselayers","clrVerticalNavIcon",""],["shape","cog","title","Actions","clrVerticalNavIcon",""],[1,"btn","btn-primary",3,"click"]],template:function(I,L){1&I&&(we.TgZ(0,"section",0),we._UZ(1,"ukis-map-maplibre",1),we.qZA(),we.TgZ(2,"clr-vertical-nav",2)(3,"clr-vertical-nav-group",3),we._UZ(4,"clr-icon",4),we._uU(5," Overlays "),we.TgZ(6,"clr-vertical-nav-group-children",5),we._UZ(7,"ukis-layer-control",6),we.qZA()(),we.TgZ(8,"clr-vertical-nav-group",3),we._UZ(9,"clr-icon",7),we._uU(10," Layers "),we.TgZ(11,"clr-vertical-nav-group-children",5),we._UZ(12,"ukis-layer-control",8),we.qZA()(),we.TgZ(13,"clr-vertical-nav-group",3),we._UZ(14,"clr-icon",9),we._uU(15," Baselayers "),we.TgZ(16,"clr-vertical-nav-group-children",5),we._UZ(17,"ukis-base-layer-control",8),we.qZA()(),we.TgZ(18,"clr-vertical-nav-group",3),we._UZ(19,"clr-icon",10),we._uU(20," Actions "),we.TgZ(21,"clr-vertical-nav-group-children",5)(22,"button",11),we.NdJ("click",function(){return L.updateLayer()}),we._uU(23,"update Geojson Layer"),we.qZA()()()()),2&I&&(we.xp6(1),we.Q6J("mapState",L.mapStateSvc)("layersSvc",L.layerSvc),we.xp6(1),we.Q6J("clrVerticalNavCollapsible",!0),we.xp6(1),we.Q6J("clrVerticalNavGroupExpanded",!0),we.xp6(4),we.Q6J("layersSvc",L.layerSvc)("mapStateSvc",L.mapStateSvc)("layerfilter","Overlays"),we.xp6(1),we.Q6J("clrVerticalNavGroupExpanded",!0),we.xp6(4),we.Q6J("layersSvc",L.layerSvc)("mapStateSvc",L.mapStateSvc),we.xp6(1),we.Q6J("clrVerticalNavGroupExpanded",!0),we.xp6(4),we.Q6J("layersSvc",L.layerSvc)("mapStateSvc",L.mapStateSvc),we.xp6(1),we.Q6J("clrVerticalNavGroupExpanded",!0))},dependencies:[bi.qvL,bi.fzC,bi.A0B,bi.d6G,bi.ogR,Hi.E,Rr.l,Ke],styles:[".maplibregl-map{-webkit-tap-highlight-color:rgb(0 0 0/0);font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:-webkit-full-screen{height:100%;width:100%}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px #0000001a}@media (-ms-high-contrast:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (-ms-high-contrast:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}.maplibregl-ctrl button:not(:disabled):hover{background-color:#0000000d}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E\")}@media (-ms-high-contrast:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E\")}}@media (-ms-high-contrast:black-on-white){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E\")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E\")}@media (-ms-high-contrast:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E\")}}@media (-ms-high-contrast:black-on-white){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E\")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8h-8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8h-8z'/%3E%3C/svg%3E\")}@media (-ms-high-contrast:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8h-8z'/%3E%3Cpath fill='%23999' d='m10.5 16 4 8 4-8h-8z'/%3E%3C/svg%3E\")}}@media (-ms-high-contrast:black-on-white){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8h-8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8h-8z'/%3E%3C/svg%3E\")}}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1 9-9z'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (-ms-high-contrast:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1 9-9z'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3C/svg%3E\")}}@media (-ms-high-contrast:black-on-white){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1 9-9z'/%3E%3C/svg%3E\")}}@keyframes maplibregl-spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.255 1.255 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.255 1.255 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5.11 5.11 0 0 1 .314-.787l.009-.016a4.623 4.623 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.548 4.548 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4.314.319.566.676.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.416 2.416 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.448 2.448 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675c.211.2.381.43.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.76 4.76 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.407 3.407 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.255 1.255 0 0 1 .689 1.004 4.73 4.73 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528 0 .343-.02.694-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.815 5.815 0 0 1-.548-2.512c0-.286.017-.567.053-.843a1.255 1.255 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.778 4.778 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.47 4.47 0 0 1-1.935-.424 1.252 1.252 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.402 2.402 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.703 4.703 0 0 1-1.782 1.884 4.767 4.767 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.47 4.47 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a4.983 4.983 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.255 1.255 0 0 1-1.115.676h-.098a1.255 1.255 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15c.329-.237.574-.499.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267c-.088-.22-.264-.438-.526-.658l-.032-.028a3.16 3.16 0 0 0-.668-.428l-.27-.12a3.293 3.293 0 0 0-1.235-.23c-.757 0-1.415.163-1.974.493a3.36 3.36 0 0 0-1.3 1.382c-.297.593-.444 1.284-.444 2.074 0 .8.17 1.503.51 2.107a3.795 3.795 0 0 0 1.382 1.381 3.883 3.883 0 0 0 1.893.477c.53 0 1.015-.11 1.455-.33zm-2.789-5.38c-.384.45-.575 1.038-.575 1.762 0 .735.186 1.332.559 1.794.384.45.933.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.17 2.17 0 0 0 .468-.29l.178-.161a2.163 2.163 0 0 0 .397-.561c.163-.333.244-.717.244-1.15v-.115c0-.472-.098-.894-.296-1.267l-.043-.077a2.211 2.211 0 0 0-.633-.709l-.13-.086-.047-.028a2.099 2.099 0 0 0-1.073-.285c-.702 0-1.244.231-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.958.958 0 0 0-.353-.389.851.851 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.626 2.626 0 0 0 .331.423c.213.22.464.402.755.548l.173.074c.433.17.93.255 1.49.255.68 0 1.295-.165 1.844-.493a3.447 3.447 0 0 0 1.316-1.4c.329-.603.493-1.299.493-2.089 0-1.273-.33-2.243-.988-2.913-.658-.68-1.52-1.02-2.584-1.02-.598 0-1.124.115-1.575.347a2.807 2.807 0 0 0-.415.262l-.199.166a3.35 3.35 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138c.137.193.297.36.48.5l.155.11.053.034c.34.197.713.297 1.119.297.714 0 1.262-.225 1.645-.675.385-.46.576-1.048.576-1.762 0-.746-.192-1.338-.576-1.777-.372-.45-.92-.675-1.645-.675-.29 0-.569.053-.835.16a2.366 2.366 0 0 0-.284.136 1.99 1.99 0 0 0-.363.254 2.237 2.237 0 0 0-.46.569l-.082.162a2.56 2.56 0 0 0-.213 1.072v.115c0 .471.098.894.296 1.267l.135.211zm.964-.818a1.11 1.11 0 0 0 .367.385.937.937 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a.995.995 0 0 0-.503.135l-.012.007a.859.859 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.43 1.43 0 0 0 .14.66zm15.7-6.222c.232-.23.346-.516.346-.856a1.053 1.053 0 0 0-.345-.79 1.175 1.175 0 0 0-.84-.329c-.34 0-.625.11-.855.33a1.053 1.053 0 0 0-.346.79c0 .34.115.625.346.855.23.23.516.346.856.346.34 0 .62-.115.839-.346zm4.337 9.314.033-1.332c.128.269.324.518.59.747l.098.081a3.727 3.727 0 0 0 .316.224l.223.122a3.21 3.21 0 0 0 1.44.322 3.785 3.785 0 0 0 1.875-.477 3.52 3.52 0 0 0 1.382-1.366c.352-.593.526-1.29.526-2.09 0-.79-.147-1.48-.444-2.073a3.235 3.235 0 0 0-1.283-1.399c-.549-.34-1.195-.51-1.942-.51a3.476 3.476 0 0 0-1.527.344l-.086.043-.165.09a3.412 3.412 0 0 0-.33.214c-.288.21-.507.446-.656.707a1.893 1.893 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.482 2.482 0 0 0 .566.7c.078.065.159.125.245.18l.144.08a2.105 2.105 0 0 0 .975.232c.713 0 1.262-.225 1.645-.675.384-.46.576-1.053.576-1.778 0-.734-.192-1.327-.576-1.777-.373-.46-.921-.692-1.645-.692a2.18 2.18 0 0 0-1.015.235c-.147.075-.285.17-.415.282l-.15.142a2.086 2.086 0 0 0-.42.594c-.149.32-.223.685-.223 1.1v.115c0 .47.097.89.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.868.868 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.13 1.13 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013c.23-.087.472-.134.724-.14l.069-.002c.329 0 .542.033.642.099l.247-1.794c-.13-.066-.37-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2.086 2.086 0 0 0-.411.148 2.18 2.18 0 0 0-.4.249 2.482 2.482 0 0 0-.485.499 2.659 2.659 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884c0-.364.053-.678.159-.943a1.49 1.49 0 0 1 .466-.636 2.52 2.52 0 0 1 .399-.253 2.19 2.19 0 0 1 .224-.099zm9.784 2.656.05-.922c0-1.162-.285-2.062-.856-2.698-.559-.647-1.42-.97-2.584-.97-.746 0-1.415.163-2.007.493a3.462 3.462 0 0 0-1.4 1.382c-.329.604-.493 1.306-.493 2.106 0 .714.143 1.371.428 1.975.285.593.73 1.07 1.332 1.432.604.351 1.355.526 2.255.526.649 0 1.204-.062 1.668-.185l.044-.012.135-.04c.409-.122.736-.263.984-.421l-.542-1.267c-.2.108-.415.199-.642.274l-.297.087c-.34.088-.773.131-1.3.131-.636 0-1.135-.147-1.497-.444a1.573 1.573 0 0 1-.192-.193c-.244-.294-.415-.705-.512-1.234l-.004-.021h5.43zm-5.427-1.256-.003.022h3.752v-.138c-.007-.485-.104-.857-.288-1.118a1.056 1.056 0 0 0-.156-.176c-.307-.285-.746-.428-1.316-.428-.657 0-1.155.202-1.494.604-.253.3-.417.712-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81c-.68 0-1.311-.16-1.893-.478a3.795 3.795 0 0 1-1.381-1.382c-.34-.604-.51-1.306-.51-2.106 0-.79.147-1.482.444-2.074a3.364 3.364 0 0 1 1.3-1.382c.559-.33 1.217-.494 1.974-.494a3.293 3.293 0 0 1 1.234.231 3.341 3.341 0 0 1 .97.575c.264.22.44.439.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332c-.186.395-.526.746-1.02 1.053a3.167 3.167 0 0 1-1.662.444zm.296-1.482c.626 0 1.152-.214 1.58-.642.428-.44.642-1.01.642-1.711v-.115c0-.472-.098-.894-.296-1.267a2.211 2.211 0 0 0-.807-.872 2.098 2.098 0 0 0-1.119-.313c-.702 0-1.245.231-1.629.692-.384.45-.575 1.037-.575 1.76 0 .736.186 1.333.559 1.795.384.45.933.675 1.645.675zm6.521-6.237h1.711v1.4c.604-1.065 1.547-1.597 2.83-1.597 1.064 0 1.926.34 2.584 1.02.659.67.988 1.641.988 2.914 0 .79-.164 1.487-.493 2.09a3.456 3.456 0 0 1-1.316 1.399 3.51 3.51 0 0 1-1.844.493c-.636 0-1.19-.11-1.662-.329a2.665 2.665 0 0 1-1.086-.97l.017 5.134h-1.728V9.242zm4.048 6.22c.714 0 1.262-.224 1.645-.674.385-.46.576-1.048.576-1.762 0-.746-.192-1.338-.576-1.777-.372-.45-.92-.675-1.645-.675-.395 0-.768.098-1.12.296-.34.187-.613.46-.822.823-.197.351-.296.763-.296 1.234v.115c0 .472.098.894.296 1.267.209.362.483.647.823.855.34.197.713.297 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.159 1.159 0 0 1-.856-.346 1.165 1.165 0 0 1-.346-.856 1.053 1.053 0 0 1 .346-.79c.23-.219.516-.329.856-.329.329 0 .609.11.839.33a1.053 1.053 0 0 1 .345.79 1.159 1.159 0 0 1-.345.855c-.22.23-.5.346-.84.346zm7.875 9.133a3.167 3.167 0 0 1-1.662-.444c-.482-.307-.817-.658-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283c.186-.438.548-.812 1.086-1.119a3.486 3.486 0 0 1 1.778-.477c.746 0 1.393.17 1.942.51a3.235 3.235 0 0 1 1.283 1.4c.297.592.444 1.282.444 2.072 0 .8-.175 1.498-.526 2.09a3.52 3.52 0 0 1-1.382 1.366 3.785 3.785 0 0 1-1.876.477zm-.296-1.481c.713 0 1.26-.225 1.645-.675.384-.46.577-1.053.577-1.778 0-.734-.193-1.327-.577-1.776-.373-.46-.921-.692-1.645-.692a2.115 2.115 0 0 0-1.58.659c-.428.428-.642.992-.642 1.694v.115c0 .473.098.895.296 1.267a2.385 2.385 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481c.176-.505.46-.91.856-1.217a2.14 2.14 0 0 1 1.349-.46c.351 0 .593.032.724.098l-.247 1.794c-.099-.066-.313-.099-.642-.099-.516 0-.988.164-1.416.494-.417.329-.626.855-.626 1.58v3.883h-1.777V9.242zm9.534 7.718c-.9 0-1.651-.175-2.255-.526-.603-.362-1.047-.84-1.332-1.432a4.567 4.567 0 0 1-.428-1.975c0-.8.164-1.502.493-2.106a3.462 3.462 0 0 1 1.4-1.382c.592-.33 1.262-.494 2.007-.494 1.163 0 2.024.324 2.584.97.57.637.856 1.537.856 2.7 0 .296-.017.603-.05.92h-5.43c.12.67.356 1.153.708 1.45.362.296.86.443 1.497.443.526 0 .96-.044 1.3-.131a4.123 4.123 0 0 0 .938-.362l.542 1.267c-.274.175-.647.329-1.119.46-.472.132-1.042.197-1.711.197zm1.596-4.558c.01-.68-.137-1.158-.444-1.432-.307-.285-.746-.428-1.316-.428-1.152 0-1.815.62-1.991 1.86h3.752z'/%3E%3Cg fill-rule='evenodd' stroke-width='1.036'%3E%3Cpath fill='%23000' fill-opacity='.4' d='m8.166 16.146-.002.002a1.54 1.54 0 0 1-2.009 0l-.002-.002-.043-.034-.002-.002-.199-.162H4.377a.657.657 0 0 0-.659.659v1.84a.657.657 0 0 0 .659.659h5.565a.657.657 0 0 0 .659-.659v-1.84a.657.657 0 0 0-.659-.659H8.411l-.202.164zm-1.121-.905a.29.29 0 0 0 .113.023.286.286 0 0 0 .189-.07l.077-.063c.634-.508 4.672-3.743 4.672-7.575 0-2.55-2.215-4.625-4.938-4.625S2.221 5.006 2.221 7.556c0 3.225 2.86 6.027 4.144 7.137h.004l.04.038.484.4.077.063a.628.628 0 0 0 .074.047zm-2.52-.548a16.898 16.898 0 0 1-1.183-1.315C2.187 11.942.967 9.897.967 7.555c0-3.319 2.855-5.88 6.192-5.88 3.338 0 6.193 2.561 6.193 5.881 0 2.34-1.22 4.387-2.376 5.822a16.898 16.898 0 0 1-1.182 1.315h.15a1.912 1.912 0 0 1 1.914 1.914v1.84a1.912 1.912 0 0 1-1.914 1.914H4.377a1.912 1.912 0 0 1-1.914-1.914v-1.84a1.912 1.912 0 0 1 1.914-1.914zm3.82-6.935c0 .692-.55 1.222-1.187 1.222s-1.185-.529-1.185-1.222.548-1.222 1.185-1.222c.638 0 1.186.529 1.186 1.222zm-1.186 2.477c1.348 0 2.442-1.11 2.442-2.478S8.507 5.28 7.159 5.28 4.72 6.39 4.72 7.758s1.092 2.477 2.44 2.477zm2.048 7.71H5.114v-.838h4.093z'/%3E%3Cpath fill='%23e1e3e9' d='M2.222 7.555c0-2.55 2.214-4.625 4.937-4.625 2.723 0 4.938 2.075 4.938 4.625 0 3.832-4.038 7.068-4.672 7.575l-.077.063a.286.286 0 0 1-.189.07.286.286 0 0 1-.188-.07l-.077-.063c-.634-.507-4.672-3.743-4.672-7.575zm4.937 2.68c1.348 0 2.442-1.11 2.442-2.478S8.507 5.28 7.159 5.28 4.72 6.39 4.72 7.758s1.092 2.477 2.44 2.477z'/%3E%3Cpath fill='%23fff' d='M4.377 15.948a.657.657 0 0 0-.659.659v1.84a.657.657 0 0 0 .659.659h5.565a.657.657 0 0 0 .659-.659v-1.84a.657.657 0 0 0-.659-.659zm4.83 1.16H5.114v.838h4.093z'/%3E%3C/g%3E%3C/svg%3E\");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (-ms-high-contrast:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.255 1.255 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.255 1.255 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5.11 5.11 0 0 1 .314-.787l.009-.016a4.623 4.623 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.548 4.548 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4.314.319.566.676.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.416 2.416 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.448 2.448 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675c.211.2.381.43.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.76 4.76 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.407 3.407 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.255 1.255 0 0 1 .689 1.004 4.73 4.73 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528 0 .343-.02.694-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.815 5.815 0 0 1-.548-2.512c0-.286.017-.567.053-.843a1.255 1.255 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.778 4.778 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.47 4.47 0 0 1-1.935-.424 1.252 1.252 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.402 2.402 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.703 4.703 0 0 1-1.782 1.884 4.767 4.767 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.47 4.47 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a4.983 4.983 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.255 1.255 0 0 1-1.115.676h-.098a1.255 1.255 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15c.329-.237.574-.499.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267c-.088-.22-.264-.438-.526-.658l-.032-.028a3.16 3.16 0 0 0-.668-.428l-.27-.12a3.293 3.293 0 0 0-1.235-.23c-.757 0-1.415.163-1.974.493a3.36 3.36 0 0 0-1.3 1.382c-.297.593-.444 1.284-.444 2.074 0 .8.17 1.503.51 2.107a3.795 3.795 0 0 0 1.382 1.381 3.883 3.883 0 0 0 1.893.477c.53 0 1.015-.11 1.455-.33zm-2.789-5.38c-.384.45-.575 1.038-.575 1.762 0 .735.186 1.332.559 1.794.384.45.933.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.17 2.17 0 0 0 .468-.29l.178-.161a2.163 2.163 0 0 0 .397-.561c.163-.333.244-.717.244-1.15v-.115c0-.472-.098-.894-.296-1.267l-.043-.077a2.211 2.211 0 0 0-.633-.709l-.13-.086-.047-.028a2.099 2.099 0 0 0-1.073-.285c-.702 0-1.244.231-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.958.958 0 0 0-.353-.389.851.851 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.626 2.626 0 0 0 .331.423c.213.22.464.402.755.548l.173.074c.433.17.93.255 1.49.255.68 0 1.295-.165 1.844-.493a3.447 3.447 0 0 0 1.316-1.4c.329-.603.493-1.299.493-2.089 0-1.273-.33-2.243-.988-2.913-.658-.68-1.52-1.02-2.584-1.02-.598 0-1.124.115-1.575.347a2.807 2.807 0 0 0-.415.262l-.199.166a3.35 3.35 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138c.137.193.297.36.48.5l.155.11.053.034c.34.197.713.297 1.119.297.714 0 1.262-.225 1.645-.675.385-.46.576-1.048.576-1.762 0-.746-.192-1.338-.576-1.777-.372-.45-.92-.675-1.645-.675-.29 0-.569.053-.835.16a2.366 2.366 0 0 0-.284.136 1.99 1.99 0 0 0-.363.254 2.237 2.237 0 0 0-.46.569l-.082.162a2.56 2.56 0 0 0-.213 1.072v.115c0 .471.098.894.296 1.267l.135.211zm.964-.818a1.11 1.11 0 0 0 .367.385.937.937 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a.995.995 0 0 0-.503.135l-.012.007a.859.859 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.43 1.43 0 0 0 .14.66zm15.7-6.222c.232-.23.346-.516.346-.856a1.053 1.053 0 0 0-.345-.79 1.175 1.175 0 0 0-.84-.329c-.34 0-.625.11-.855.33a1.053 1.053 0 0 0-.346.79c0 .34.115.625.346.855.23.23.516.346.856.346.34 0 .62-.115.839-.346zm4.337 9.314.033-1.332c.128.269.324.518.59.747l.098.081a3.727 3.727 0 0 0 .316.224l.223.122a3.21 3.21 0 0 0 1.44.322 3.785 3.785 0 0 0 1.875-.477 3.52 3.52 0 0 0 1.382-1.366c.352-.593.526-1.29.526-2.09 0-.79-.147-1.48-.444-2.073a3.235 3.235 0 0 0-1.283-1.399c-.549-.34-1.195-.51-1.942-.51a3.476 3.476 0 0 0-1.527.344l-.086.043-.165.09a3.412 3.412 0 0 0-.33.214c-.288.21-.507.446-.656.707a1.893 1.893 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.482 2.482 0 0 0 .566.7c.078.065.159.125.245.18l.144.08a2.105 2.105 0 0 0 .975.232c.713 0 1.262-.225 1.645-.675.384-.46.576-1.053.576-1.778 0-.734-.192-1.327-.576-1.777-.373-.46-.921-.692-1.645-.692a2.18 2.18 0 0 0-1.015.235c-.147.075-.285.17-.415.282l-.15.142a2.086 2.086 0 0 0-.42.594c-.149.32-.223.685-.223 1.1v.115c0 .47.097.89.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.868.868 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.13 1.13 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013c.23-.087.472-.134.724-.14l.069-.002c.329 0 .542.033.642.099l.247-1.794c-.13-.066-.37-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2.086 2.086 0 0 0-.411.148 2.18 2.18 0 0 0-.4.249 2.482 2.482 0 0 0-.485.499 2.659 2.659 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884c0-.364.053-.678.159-.943a1.49 1.49 0 0 1 .466-.636 2.52 2.52 0 0 1 .399-.253 2.19 2.19 0 0 1 .224-.099zm9.784 2.656.05-.922c0-1.162-.285-2.062-.856-2.698-.559-.647-1.42-.97-2.584-.97-.746 0-1.415.163-2.007.493a3.462 3.462 0 0 0-1.4 1.382c-.329.604-.493 1.306-.493 2.106 0 .714.143 1.371.428 1.975.285.593.73 1.07 1.332 1.432.604.351 1.355.526 2.255.526.649 0 1.204-.062 1.668-.185l.044-.012.135-.04c.409-.122.736-.263.984-.421l-.542-1.267c-.2.108-.415.199-.642.274l-.297.087c-.34.088-.773.131-1.3.131-.636 0-1.135-.147-1.497-.444a1.573 1.573 0 0 1-.192-.193c-.244-.294-.415-.705-.512-1.234l-.004-.021h5.43zm-5.427-1.256-.003.022h3.752v-.138c-.007-.485-.104-.857-.288-1.118a1.056 1.056 0 0 0-.156-.176c-.307-.285-.746-.428-1.316-.428-.657 0-1.155.202-1.494.604-.253.3-.417.712-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81c-.68 0-1.311-.16-1.893-.478a3.795 3.795 0 0 1-1.381-1.382c-.34-.604-.51-1.306-.51-2.106 0-.79.147-1.482.444-2.074a3.364 3.364 0 0 1 1.3-1.382c.559-.33 1.217-.494 1.974-.494a3.293 3.293 0 0 1 1.234.231 3.341 3.341 0 0 1 .97.575c.264.22.44.439.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332c-.186.395-.526.746-1.02 1.053a3.167 3.167 0 0 1-1.662.444zm.296-1.482c.626 0 1.152-.214 1.58-.642.428-.44.642-1.01.642-1.711v-.115c0-.472-.098-.894-.296-1.267a2.211 2.211 0 0 0-.807-.872 2.098 2.098 0 0 0-1.119-.313c-.702 0-1.245.231-1.629.692-.384.45-.575 1.037-.575 1.76 0 .736.186 1.333.559 1.795.384.45.933.675 1.645.675zm6.521-6.237h1.711v1.4c.604-1.065 1.547-1.597 2.83-1.597 1.064 0 1.926.34 2.584 1.02.659.67.988 1.641.988 2.914 0 .79-.164 1.487-.493 2.09a3.456 3.456 0 0 1-1.316 1.399 3.51 3.51 0 0 1-1.844.493c-.636 0-1.19-.11-1.662-.329a2.665 2.665 0 0 1-1.086-.97l.017 5.134h-1.728V9.242zm4.048 6.22c.714 0 1.262-.224 1.645-.674.385-.46.576-1.048.576-1.762 0-.746-.192-1.338-.576-1.777-.372-.45-.92-.675-1.645-.675-.395 0-.768.098-1.12.296-.34.187-.613.46-.822.823-.197.351-.296.763-.296 1.234v.115c0 .472.098.894.296 1.267.209.362.483.647.823.855.34.197.713.297 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.159 1.159 0 0 1-.856-.346 1.165 1.165 0 0 1-.346-.856 1.053 1.053 0 0 1 .346-.79c.23-.219.516-.329.856-.329.329 0 .609.11.839.33a1.053 1.053 0 0 1 .345.79 1.159 1.159 0 0 1-.345.855c-.22.23-.5.346-.84.346zm7.875 9.133a3.167 3.167 0 0 1-1.662-.444c-.482-.307-.817-.658-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283c.186-.438.548-.812 1.086-1.119a3.486 3.486 0 0 1 1.778-.477c.746 0 1.393.17 1.942.51a3.235 3.235 0 0 1 1.283 1.4c.297.592.444 1.282.444 2.072 0 .8-.175 1.498-.526 2.09a3.52 3.52 0 0 1-1.382 1.366 3.785 3.785 0 0 1-1.876.477zm-.296-1.481c.713 0 1.26-.225 1.645-.675.384-.46.577-1.053.577-1.778 0-.734-.193-1.327-.577-1.776-.373-.46-.921-.692-1.645-.692a2.115 2.115 0 0 0-1.58.659c-.428.428-.642.992-.642 1.694v.115c0 .473.098.895.296 1.267a2.385 2.385 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481c.176-.505.46-.91.856-1.217a2.14 2.14 0 0 1 1.349-.46c.351 0 .593.032.724.098l-.247 1.794c-.099-.066-.313-.099-.642-.099-.516 0-.988.164-1.416.494-.417.329-.626.855-.626 1.58v3.883h-1.777V9.242zm9.534 7.718c-.9 0-1.651-.175-2.255-.526-.603-.362-1.047-.84-1.332-1.432a4.567 4.567 0 0 1-.428-1.975c0-.8.164-1.502.493-2.106a3.462 3.462 0 0 1 1.4-1.382c.592-.33 1.262-.494 2.007-.494 1.163 0 2.024.324 2.584.97.57.637.856 1.537.856 2.7 0 .296-.017.603-.05.92h-5.43c.12.67.356 1.153.708 1.45.362.296.86.443 1.497.443.526 0 .96-.044 1.3-.131a4.123 4.123 0 0 0 .938-.362l.542 1.267c-.274.175-.647.329-1.119.46-.472.132-1.042.197-1.711.197zm1.596-4.558c.01-.68-.137-1.158-.444-1.432-.307-.285-.746-.428-1.316-.428-1.152 0-1.815.62-1.991 1.86h3.752z'/%3E%3Cg fill-rule='evenodd' stroke-width='1.036'%3E%3Cpath fill='%23000' fill-opacity='.4' d='m8.166 16.146-.002.002a1.54 1.54 0 0 1-2.009 0l-.002-.002-.043-.034-.002-.002-.199-.162H4.377a.657.657 0 0 0-.659.659v1.84a.657.657 0 0 0 .659.659h5.565a.657.657 0 0 0 .659-.659v-1.84a.657.657 0 0 0-.659-.659H8.411l-.202.164zm-1.121-.905a.29.29 0 0 0 .113.023.286.286 0 0 0 .189-.07l.077-.063c.634-.508 4.672-3.743 4.672-7.575 0-2.55-2.215-4.625-4.938-4.625S2.221 5.006 2.221 7.556c0 3.225 2.86 6.027 4.144 7.137h.004l.04.038.484.4.077.063a.628.628 0 0 0 .074.047zm-2.52-.548a16.898 16.898 0 0 1-1.183-1.315C2.187 11.942.967 9.897.967 7.555c0-3.319 2.855-5.88 6.192-5.88 3.338 0 6.193 2.561 6.193 5.881 0 2.34-1.22 4.387-2.376 5.822a16.898 16.898 0 0 1-1.182 1.315h.15a1.912 1.912 0 0 1 1.914 1.914v1.84a1.912 1.912 0 0 1-1.914 1.914H4.377a1.912 1.912 0 0 1-1.914-1.914v-1.84a1.912 1.912 0 0 1 1.914-1.914zm3.82-6.935c0 .692-.55 1.222-1.187 1.222s-1.185-.529-1.185-1.222.548-1.222 1.185-1.222c.638 0 1.186.529 1.186 1.222zm-1.186 2.477c1.348 0 2.442-1.11 2.442-2.478S8.507 5.28 7.159 5.28 4.72 6.39 4.72 7.758s1.092 2.477 2.44 2.477zm2.048 7.71H5.114v-.838h4.093z'/%3E%3Cpath fill='%23e1e3e9' d='M2.222 7.555c0-2.55 2.214-4.625 4.937-4.625 2.723 0 4.938 2.075 4.938 4.625 0 3.832-4.038 7.068-4.672 7.575l-.077.063a.286.286 0 0 1-.189.07.286.286 0 0 1-.188-.07l-.077-.063c-.634-.507-4.672-3.743-4.672-7.575zm4.937 2.68c1.348 0 2.442-1.11 2.442-2.478S8.507 5.28 7.159 5.28 4.72 6.39 4.72 7.758s1.092 2.477 2.44 2.477z'/%3E%3Cpath fill='%23fff' d='M4.377 15.948a.657.657 0 0 0-.659.659v1.84a.657.657 0 0 0 .659.659h5.565a.657.657 0 0 0 .659-.659v-1.84a.657.657 0 0 0-.659-.659zm4.83 1.16H5.114v.838h4.093z'/%3E%3C/g%3E%3C/svg%3E\")}}@media (-ms-high-contrast:black-on-white){a.maplibregl-ctrl-logo{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.255 1.255 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.255 1.255 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5.11 5.11 0 0 1 .314-.787l.009-.016a4.623 4.623 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.548 4.548 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4.314.319.566.676.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.416 2.416 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.448 2.448 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675c.211.2.381.43.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.76 4.76 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.407 3.407 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.255 1.255 0 0 1 .689 1.004 4.73 4.73 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528 0 .343-.02.694-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.815 5.815 0 0 1-.548-2.512c0-.286.017-.567.053-.843a1.255 1.255 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.778 4.778 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.47 4.47 0 0 1-1.935-.424 1.252 1.252 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.402 2.402 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.703 4.703 0 0 1-1.782 1.884 4.767 4.767 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.47 4.47 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a4.983 4.983 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.255 1.255 0 0 1-1.115.676h-.098a1.255 1.255 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15c.329-.237.574-.499.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267c-.088-.22-.264-.438-.526-.658l-.032-.028a3.16 3.16 0 0 0-.668-.428l-.27-.12a3.293 3.293 0 0 0-1.235-.23c-.757 0-1.415.163-1.974.493a3.36 3.36 0 0 0-1.3 1.382c-.297.593-.444 1.284-.444 2.074 0 .8.17 1.503.51 2.107a3.795 3.795 0 0 0 1.382 1.381 3.883 3.883 0 0 0 1.893.477c.53 0 1.015-.11 1.455-.33zm-2.789-5.38c-.384.45-.575 1.038-.575 1.762 0 .735.186 1.332.559 1.794.384.45.933.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.17 2.17 0 0 0 .468-.29l.178-.161a2.163 2.163 0 0 0 .397-.561c.163-.333.244-.717.244-1.15v-.115c0-.472-.098-.894-.296-1.267l-.043-.077a2.211 2.211 0 0 0-.633-.709l-.13-.086-.047-.028a2.099 2.099 0 0 0-1.073-.285c-.702 0-1.244.231-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.958.958 0 0 0-.353-.389.851.851 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.626 2.626 0 0 0 .331.423c.213.22.464.402.755.548l.173.074c.433.17.93.255 1.49.255.68 0 1.295-.165 1.844-.493a3.447 3.447 0 0 0 1.316-1.4c.329-.603.493-1.299.493-2.089 0-1.273-.33-2.243-.988-2.913-.658-.68-1.52-1.02-2.584-1.02-.598 0-1.124.115-1.575.347a2.807 2.807 0 0 0-.415.262l-.199.166a3.35 3.35 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138c.137.193.297.36.48.5l.155.11.053.034c.34.197.713.297 1.119.297.714 0 1.262-.225 1.645-.675.385-.46.576-1.048.576-1.762 0-.746-.192-1.338-.576-1.777-.372-.45-.92-.675-1.645-.675-.29 0-.569.053-.835.16a2.366 2.366 0 0 0-.284.136 1.99 1.99 0 0 0-.363.254 2.237 2.237 0 0 0-.46.569l-.082.162a2.56 2.56 0 0 0-.213 1.072v.115c0 .471.098.894.296 1.267l.135.211zm.964-.818a1.11 1.11 0 0 0 .367.385.937.937 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a.995.995 0 0 0-.503.135l-.012.007a.859.859 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.43 1.43 0 0 0 .14.66zm15.7-6.222c.232-.23.346-.516.346-.856a1.053 1.053 0 0 0-.345-.79 1.175 1.175 0 0 0-.84-.329c-.34 0-.625.11-.855.33a1.053 1.053 0 0 0-.346.79c0 .34.115.625.346.855.23.23.516.346.856.346.34 0 .62-.115.839-.346zm4.337 9.314.033-1.332c.128.269.324.518.59.747l.098.081a3.727 3.727 0 0 0 .316.224l.223.122a3.21 3.21 0 0 0 1.44.322 3.785 3.785 0 0 0 1.875-.477 3.52 3.52 0 0 0 1.382-1.366c.352-.593.526-1.29.526-2.09 0-.79-.147-1.48-.444-2.073a3.235 3.235 0 0 0-1.283-1.399c-.549-.34-1.195-.51-1.942-.51a3.476 3.476 0 0 0-1.527.344l-.086.043-.165.09a3.412 3.412 0 0 0-.33.214c-.288.21-.507.446-.656.707a1.893 1.893 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.482 2.482 0 0 0 .566.7c.078.065.159.125.245.18l.144.08a2.105 2.105 0 0 0 .975.232c.713 0 1.262-.225 1.645-.675.384-.46.576-1.053.576-1.778 0-.734-.192-1.327-.576-1.777-.373-.46-.921-.692-1.645-.692a2.18 2.18 0 0 0-1.015.235c-.147.075-.285.17-.415.282l-.15.142a2.086 2.086 0 0 0-.42.594c-.149.32-.223.685-.223 1.1v.115c0 .47.097.89.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.868.868 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.13 1.13 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013c.23-.087.472-.134.724-.14l.069-.002c.329 0 .542.033.642.099l.247-1.794c-.13-.066-.37-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2.086 2.086 0 0 0-.411.148 2.18 2.18 0 0 0-.4.249 2.482 2.482 0 0 0-.485.499 2.659 2.659 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884c0-.364.053-.678.159-.943a1.49 1.49 0 0 1 .466-.636 2.52 2.52 0 0 1 .399-.253 2.19 2.19 0 0 1 .224-.099zm9.784 2.656.05-.922c0-1.162-.285-2.062-.856-2.698-.559-.647-1.42-.97-2.584-.97-.746 0-1.415.163-2.007.493a3.462 3.462 0 0 0-1.4 1.382c-.329.604-.493 1.306-.493 2.106 0 .714.143 1.371.428 1.975.285.593.73 1.07 1.332 1.432.604.351 1.355.526 2.255.526.649 0 1.204-.062 1.668-.185l.044-.012.135-.04c.409-.122.736-.263.984-.421l-.542-1.267c-.2.108-.415.199-.642.274l-.297.087c-.34.088-.773.131-1.3.131-.636 0-1.135-.147-1.497-.444a1.573 1.573 0 0 1-.192-.193c-.244-.294-.415-.705-.512-1.234l-.004-.021h5.43zm-5.427-1.256-.003.022h3.752v-.138c-.007-.485-.104-.857-.288-1.118a1.056 1.056 0 0 0-.156-.176c-.307-.285-.746-.428-1.316-.428-.657 0-1.155.202-1.494.604-.253.3-.417.712-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81c-.68 0-1.311-.16-1.893-.478a3.795 3.795 0 0 1-1.381-1.382c-.34-.604-.51-1.306-.51-2.106 0-.79.147-1.482.444-2.074a3.364 3.364 0 0 1 1.3-1.382c.559-.33 1.217-.494 1.974-.494a3.293 3.293 0 0 1 1.234.231 3.341 3.341 0 0 1 .97.575c.264.22.44.439.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332c-.186.395-.526.746-1.02 1.053a3.167 3.167 0 0 1-1.662.444zm.296-1.482c.626 0 1.152-.214 1.58-.642.428-.44.642-1.01.642-1.711v-.115c0-.472-.098-.894-.296-1.267a2.211 2.211 0 0 0-.807-.872 2.098 2.098 0 0 0-1.119-.313c-.702 0-1.245.231-1.629.692-.384.45-.575 1.037-.575 1.76 0 .736.186 1.333.559 1.795.384.45.933.675 1.645.675zm6.521-6.237h1.711v1.4c.604-1.065 1.547-1.597 2.83-1.597 1.064 0 1.926.34 2.584 1.02.659.67.988 1.641.988 2.914 0 .79-.164 1.487-.493 2.09a3.456 3.456 0 0 1-1.316 1.399 3.51 3.51 0 0 1-1.844.493c-.636 0-1.19-.11-1.662-.329a2.665 2.665 0 0 1-1.086-.97l.017 5.134h-1.728V9.242zm4.048 6.22c.714 0 1.262-.224 1.645-.674.385-.46.576-1.048.576-1.762 0-.746-.192-1.338-.576-1.777-.372-.45-.92-.675-1.645-.675-.395 0-.768.098-1.12.296-.34.187-.613.46-.822.823-.197.351-.296.763-.296 1.234v.115c0 .472.098.894.296 1.267.209.362.483.647.823.855.34.197.713.297 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.159 1.159 0 0 1-.856-.346 1.165 1.165 0 0 1-.346-.856 1.053 1.053 0 0 1 .346-.79c.23-.219.516-.329.856-.329.329 0 .609.11.839.33a1.053 1.053 0 0 1 .345.79 1.159 1.159 0 0 1-.345.855c-.22.23-.5.346-.84.346zm7.875 9.133a3.167 3.167 0 0 1-1.662-.444c-.482-.307-.817-.658-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283c.186-.438.548-.812 1.086-1.119a3.486 3.486 0 0 1 1.778-.477c.746 0 1.393.17 1.942.51a3.235 3.235 0 0 1 1.283 1.4c.297.592.444 1.282.444 2.072 0 .8-.175 1.498-.526 2.09a3.52 3.52 0 0 1-1.382 1.366 3.785 3.785 0 0 1-1.876.477zm-.296-1.481c.713 0 1.26-.225 1.645-.675.384-.46.577-1.053.577-1.778 0-.734-.193-1.327-.577-1.776-.373-.46-.921-.692-1.645-.692a2.115 2.115 0 0 0-1.58.659c-.428.428-.642.992-.642 1.694v.115c0 .473.098.895.296 1.267a2.385 2.385 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481c.176-.505.46-.91.856-1.217a2.14 2.14 0 0 1 1.349-.46c.351 0 .593.032.724.098l-.247 1.794c-.099-.066-.313-.099-.642-.099-.516 0-.988.164-1.416.494-.417.329-.626.855-.626 1.58v3.883h-1.777V9.242zm9.534 7.718c-.9 0-1.651-.175-2.255-.526-.603-.362-1.047-.84-1.332-1.432a4.567 4.567 0 0 1-.428-1.975c0-.8.164-1.502.493-2.106a3.462 3.462 0 0 1 1.4-1.382c.592-.33 1.262-.494 2.007-.494 1.163 0 2.024.324 2.584.97.57.637.856 1.537.856 2.7 0 .296-.017.603-.05.92h-5.43c.12.67.356 1.153.708 1.45.362.296.86.443 1.497.443.526 0 .96-.044 1.3-.131a4.123 4.123 0 0 0 .938-.362l.542 1.267c-.274.175-.647.329-1.119.46-.472.132-1.042.197-1.711.197zm1.596-4.558c.01-.68-.137-1.158-.444-1.432-.307-.285-.746-.428-1.316-.428-1.152 0-1.815.62-1.991 1.86h3.752z'/%3E%3Cg fill-rule='evenodd' stroke-width='1.036'%3E%3Cpath fill='%23000' fill-opacity='.4' d='m8.166 16.146-.002.002a1.54 1.54 0 0 1-2.009 0l-.002-.002-.043-.034-.002-.002-.199-.162H4.377a.657.657 0 0 0-.659.659v1.84a.657.657 0 0 0 .659.659h5.565a.657.657 0 0 0 .659-.659v-1.84a.657.657 0 0 0-.659-.659H8.411l-.202.164zm-1.121-.905a.29.29 0 0 0 .113.023.286.286 0 0 0 .189-.07l.077-.063c.634-.508 4.672-3.743 4.672-7.575 0-2.55-2.215-4.625-4.938-4.625S2.221 5.006 2.221 7.556c0 3.225 2.86 6.027 4.144 7.137h.004l.04.038.484.4.077.063a.628.628 0 0 0 .074.047zm-2.52-.548a16.898 16.898 0 0 1-1.183-1.315C2.187 11.942.967 9.897.967 7.555c0-3.319 2.855-5.88 6.192-5.88 3.338 0 6.193 2.561 6.193 5.881 0 2.34-1.22 4.387-2.376 5.822a16.898 16.898 0 0 1-1.182 1.315h.15a1.912 1.912 0 0 1 1.914 1.914v1.84a1.912 1.912 0 0 1-1.914 1.914H4.377a1.912 1.912 0 0 1-1.914-1.914v-1.84a1.912 1.912 0 0 1 1.914-1.914zm3.82-6.935c0 .692-.55 1.222-1.187 1.222s-1.185-.529-1.185-1.222.548-1.222 1.185-1.222c.638 0 1.186.529 1.186 1.222zm-1.186 2.477c1.348 0 2.442-1.11 2.442-2.478S8.507 5.28 7.159 5.28 4.72 6.39 4.72 7.758s1.092 2.477 2.44 2.477zm2.048 7.71H5.114v-.838h4.093z'/%3E%3Cpath fill='%23e1e3e9' d='M2.222 7.555c0-2.55 2.214-4.625 4.937-4.625 2.723 0 4.938 2.075 4.938 4.625 0 3.832-4.038 7.068-4.672 7.575l-.077.063a.286.286 0 0 1-.189.07.286.286 0 0 1-.188-.07l-.077-.063c-.634-.507-4.672-3.743-4.672-7.575zm4.937 2.68c1.348 0 2.442-1.11 2.442-2.478S8.507 5.28 7.159 5.28 4.72 6.39 4.72 7.758s1.092 2.477 2.44 2.477z'/%3E%3Cpath fill='%23fff' d='M4.377 15.948a.657.657 0 0 0-.659.659v1.84a.657.657 0 0 0 .659.659h5.565a.657.657 0 0 0 .659-.659v-1.84a.657.657 0 0 0-.659-.659zm4.83 1.16H5.114v.838h4.093z'/%3E%3C/g%3E%3C/svg%3E\")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:#ffffff80;margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:#ffffff80;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E\");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:#0000000d}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (-ms-high-contrast:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E\")}}@media screen and (-ms-high-contrast:black-on-white){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E\")}}.maplibregl-ctrl-attrib a{color:#000000bf;text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:#ffffffbf;border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:#0000000d}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px #0000001a;padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:\"\";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px #00000059;box-sizing:border-box;content:\"\";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:rgba(0,0,0,.4);color:#fff;display:flex;font-size:1.4em;inset:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(max-width: 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}\n"],encapsulation:2}),x})();var Tt=St(5508),ea=St(7223),xr=St(8808);const $=[{path:"",component:fi}];let A=(()=>{class x{}return x.\u0275fac=function(I){return new(I||x)},x.\u0275mod=we.oAB({type:x}),x.\u0275inj=we.cJS({imports:[ea.Bz.forChild($),ea.Bz]}),x})(),z=(()=>{class x{}return x.\u0275fac=function(I){return new(I||x)},x.\u0275mod=we.oAB({type:x}),x.\u0275inj=we.cJS({imports:[ka.ez,xr.q,A,bi.K6A,Tt.cE,Ht]}),x})()},692:()=>{},6012:function(uo){uo.exports=function(){"use strict";var pa,St,ka;function qe(c,ut){if(pa)if(St){var re="var sharedChunk = {}; ("+pa+")(sharedChunk); ("+St+")(sharedChunk);",Bt={};pa(Bt),ka=ut(Bt),typeof window<"u"&&(ka.workerUrl=window.URL.createObjectURL(new Blob([re],{type:"text/javascript"})))}else St=ut;else pa=ut}return qe(0,function(c){function ut(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var re=Bt;function Bt(i,e){this.x=i,this.y=e}Bt.prototype={clone:function(){return new Bt(this.x,this.y)},add:function(i){return this.clone()._add(i)},sub:function(i){return this.clone()._sub(i)},multByPoint:function(i){return this.clone()._multByPoint(i)},divByPoint:function(i){return this.clone()._divByPoint(i)},mult:function(i){return this.clone()._mult(i)},div:function(i){return this.clone()._div(i)},rotate:function(i){return this.clone()._rotate(i)},rotateAround:function(i,e){return this.clone()._rotateAround(i,e)},matMult:function(i){return this.clone()._matMult(i)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(i){return this.x===i.x&&this.y===i.y},dist:function(i){return Math.sqrt(this.distSqr(i))},distSqr:function(i){var e=i.x-this.x,r=i.y-this.y;return e*e+r*r},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(i){return Math.atan2(this.y-i.y,this.x-i.x)},angleWith:function(i){return this.angleWithSep(i.x,i.y)},angleWithSep:function(i,e){return Math.atan2(this.x*e-this.y*i,this.x*i+this.y*e)},_matMult:function(i){var e=i[2]*this.x+i[3]*this.y;return this.x=i[0]*this.x+i[1]*this.y,this.y=e,this},_add:function(i){return this.x+=i.x,this.y+=i.y,this},_sub:function(i){return this.x-=i.x,this.y-=i.y,this},_mult:function(i){return this.x*=i,this.y*=i,this},_div:function(i){return this.x/=i,this.y/=i,this},_multByPoint:function(i){return this.x*=i.x,this.y*=i.y,this},_divByPoint:function(i){return this.x/=i.x,this.y/=i.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var i=this.y;return this.y=this.x,this.x=-i,this},_rotate:function(i){var e=Math.cos(i),r=Math.sin(i),n=r*this.x+e*this.y;return this.x=e*this.x-r*this.y,this.y=n,this},_rotateAround:function(i,e){var r=Math.cos(i),n=Math.sin(i),o=e.y+n*(this.x-e.x)+r*(this.y-e.y);return this.x=e.x+r*(this.x-e.x)-n*(this.y-e.y),this.y=o,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},Bt.convert=function(i){return i instanceof Bt?i:Array.isArray(i)?new Bt(i[0],i[1]):i};var Be=ut(re),Ge=Ir;function Ir(i,e,r,n){this.cx=3*i,this.bx=3*(r-i)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*e,this.by=3*(n-e)-this.cy,this.ay=1-this.cy-this.by,this.p1x=i,this.p1y=e,this.p2x=r,this.p2y=n}Ir.prototype={sampleCurveX:function(i){return((this.ax*i+this.bx)*i+this.cx)*i},sampleCurveY:function(i){return((this.ay*i+this.by)*i+this.cy)*i},sampleCurveDerivativeX:function(i){return(3*this.ax*i+2*this.bx)*i+this.cx},solveCurveX:function(i,e){if(void 0===e&&(e=1e-6),i<0)return 0;if(i>1)return 1;for(var r=i,n=0;n<8;n++){var o=this.sampleCurveX(r)-i;if(Math.abs(o)o?d=r:m=r,r=.5*(m-d)+d;return r},solve:function(i,e){return this.sampleCurveY(this.solveCurveX(i,e))}};var Vr=ut(Ge);function lt(i,e,r,n){const o=new Vr(i,e,r,n);return function(u){return o.solve(u)}}const hi=lt(.25,.1,.25,1);function Et(i,e,r){return Math.min(r,Math.max(e,i))}function Nr(i,e,r){const n=r-e,o=((i-e)%n+n)%n+e;return o===e?r:o}function Xt(i,...e){for(const r of e)for(const n in r)i[n]=r[n];return i}let ar=1;function Zi(i,e,r){const n={};for(const o in i)n[o]=e.call(r||this,i[o],o,i);return n}function nr(i,e,r){const n={};for(const o in i)e.call(r||this,i[o],o,i)&&(n[o]=i[o]);return n}function Ci(i){return Array.isArray(i)?i.map(Ci):"object"==typeof i&&i?Zi(i,Ci):i}const Gi={};function Me(i){Gi[i]||(typeof console<"u"&&console.warn(i),Gi[i]=!0)}function Te(i,e,r){return(r.y-i.y)*(e.x-i.x)>(e.y-i.y)*(r.x-i.x)}function tt(i){let e=0;for(let r,n,o=0,u=i.length,d=u-1;ocancelAnimationFrame(e)}},getImageData(i,e=0){return this.getImageCanvasContext(i).getImageData(-e,-e,i.width+2*e,i.height+2*e)},getImageCanvasContext(i){const e=window.document.createElement("canvas"),r=e.getContext("2d",{willReadFrequently:!0});if(!r)throw new Error("failed to create canvas 2d context");return e.width=i.width,e.height=i.height,r.drawImage(i,0,0,i.width,i.height),r},resolveURL:i=>(di||(di=document.createElement("a")),di.href=i,di.href),hardwareConcurrency:typeof navigator<"u"&&navigator.hardwareConcurrency||4,get prefersReducedMotion(){return!!matchMedia&&(null==Di&&(Di=matchMedia("(prefers-reduced-motion: reduce)")),Di.matches)}},Ai={MAX_PARALLEL_IMAGE_REQUESTS:16,MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:8,MAX_TILE_CACHE_ZOOM_LEVELS:5,REGISTERED_PROTOCOLS:{},WORKER_URL:""};class Mi extends Error{constructor(e,r,n,o){super(`AJAXError: ${r} (${e}): ${n}`),this.status=e,this.statusText=r,this.url=n,this.body=o}}const nt=xt()?()=>self.worker&&self.worker.referrer:()=>("blob:"===window.location.protocol?window.parent:window).location.href,st=i=>Ai.REGISTERED_PROTOCOLS[i.substring(0,i.indexOf("://"))];function Ue(i,e){const r=new AbortController,n=new Request(i.url,{method:i.method||"GET",body:i.body,credentials:i.credentials,headers:i.headers,cache:i.cache,referrer:nt(),signal:r.signal});let o=!1,u=!1;return"json"===i.type&&n.headers.set("Accept","application/json"),u||fetch(n).then(d=>{return d.ok?(m=d,void("arrayBuffer"===i.type||"image"===i.type?m.arrayBuffer():"json"===i.type?m.json():m.text()).then(y=>{u||(o=!0,e(null,y,m.headers.get("Cache-Control"),m.headers.get("Expires")))}).catch(y=>{u||e(new Error(y.message))})):d.blob().then(m=>e(new Mi(d.status,d.statusText,i.url,m)));var m}).catch(d=>{20!==d.code&&e(new Error(d.message))}),{cancel:()=>{u=!0,o||r.abort()}}}const vt=function(i,e){if(/:\/\//.test(i.url)&&!/^https?:|^file:/.test(i.url)){if(xt()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",i,e);if(!xt())return(st(i.url)||Ue)(i,e)}if(!(/^file:/.test(r=i.url)||/^file:/.test(nt())&&!/^\w+:/.test(r))){if(fetch&&Request&&AbortController&&Object.prototype.hasOwnProperty.call(Request.prototype,"signal"))return Ue(i,e);if(xt()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",i,e,void 0,!0)}var r;return function(n,o){const u=new XMLHttpRequest;u.open(n.method||"GET",n.url,!0),"arrayBuffer"!==n.type&&"image"!==n.type||(u.responseType="arraybuffer");for(const d in n.headers)u.setRequestHeader(d,n.headers[d]);return"json"===n.type&&(u.responseType="text",u.setRequestHeader("Accept","application/json")),u.withCredentials="include"===n.credentials,u.onerror=()=>{o(new Error(u.statusText))},u.onload=()=>{if((u.status>=200&&u.status<300||0===u.status)&&null!==u.response){let d=u.response;if("json"===n.type)try{d=JSON.parse(u.response)}catch(m){return o(m)}o(null,d,u.getResponseHeader("Cache-Control"),u.getResponseHeader("Expires"))}else{const d=new Blob([u.response],{type:u.getResponseHeader("Content-Type")});o(new Mi(u.status,u.statusText,n.url,d))}},u.send(n.body),{cancel:()=>u.abort()}}(i,e)},Lt=function(i,e){return vt(Xt(i,{type:"arrayBuffer"}),e)};function Ct(i){if(!i||i.indexOf("://")<=0||0===i.indexOf("data:image/")||0===i.indexOf("blob:"))return!0;const e=new URL(i),r=window.location;return e.protocol===r.protocol&&e.host===r.host}function ai(i,e,r){r[i]&&-1!==r[i].indexOf(e)||(r[i]=r[i]||[],r[i].push(e))}function Ot(i,e,r){if(r&&r[i]){const n=r[i].indexOf(e);-1!==n&&r[i].splice(n,1)}}class Le{constructor(e,r={}){Xt(this,r),this.type=e}}class pt extends Le{constructor(e,r={}){super("error",Xt({error:e},r))}}class ft{on(e,r){return this._listeners=this._listeners||{},ai(e,r,this._listeners),this}off(e,r){return Ot(e,r,this._listeners),Ot(e,r,this._oneTimeListeners),this}once(e,r){return r?(this._oneTimeListeners=this._oneTimeListeners||{},ai(e,r,this._oneTimeListeners),this):new Promise(n=>this.once(e,n))}fire(e,r){"string"==typeof e&&(e=new Le(e,r||{}));const n=e.type;if(this.listens(n)){e.target=this;const o=this._listeners&&this._listeners[n]?this._listeners[n].slice():[];for(const m of o)m.call(this,e);const u=this._oneTimeListeners&&this._oneTimeListeners[n]?this._oneTimeListeners[n].slice():[];for(const m of u)Ot(n,m,this._oneTimeListeners),m.call(this,e);const d=this._eventedParent;d&&(Xt(e,"function"==typeof this._eventedParentData?this._eventedParentData():this._eventedParentData),d.fire(e))}else e instanceof pt&&console.error(e.error);return this}listens(e){return this._listeners&&this._listeners[e]&&this._listeners[e].length>0||this._oneTimeListeners&&this._oneTimeListeners[e]&&this._oneTimeListeners[e].length>0||this._eventedParent&&this._eventedParent.listens(e)}setEventedParent(e,r){return this._eventedParent=e,this._eventedParentData=r,this}}var Q={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},terrain:{type:"terrain"},sources:{required:!0,type:"sources"},sprite:{type:"sprite"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{required:!0,type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image",{"!":"icon-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"padding",default:[2],units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},"viewport-glyph":{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-variable-anchor-offset":{type:"variableAnchorOffsetCollection",requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field",{"!":"text-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},terrain:{source:{type:"string",required:!0},exaggeration:{type:"number",minimum:0,default:1}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}};const Ut=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function mi(i,e){const r={};for(const n in i)"ref"!==n&&(r[n]=i[n]);return Ut.forEach(n=>{n in e&&(r[n]=e[n])}),r}function je(i,e){if(Array.isArray(i)){if(!Array.isArray(e)||i.length!==e.length)return!1;for(let r=0;r`:"value"===i.itemType.kind?"array":`array<${e}>`}return i.kind}const ea=[or,de,We,Ke,Ht,Bi,Pi,fi(Fe),bi,Hi,Rr];function xr(i,e){if("error"===e.kind)return null;if("array"===i.kind){if("array"===e.kind&&(0===e.N&&"value"===e.itemType.kind||!xr(i.itemType,e.itemType))&&("number"!=typeof i.N||i.N===e.N))return null}else{if(i.kind===e.kind)return null;if("value"===i.kind)for(const r of ea)if(!xr(r,e))return null}return`Expected ${Tt(i)} but found ${Tt(e)} instead.`}function $(i,e){return e.some(r=>r.kind===i.kind)}function A(i,e){return e.some(r=>"null"===r?null===i:"array"===r?Array.isArray(i):"object"===r?i&&!Array.isArray(i)&&"object"==typeof i:r===typeof i)}function z(i,e){return"array"===i.kind&&"array"===e.kind?i.itemType.kind===e.itemType.kind&&"number"==typeof i.N:i.kind===e.kind}const x=.96422,T=.82521,I=4/29,L=6/29,R=3*L*L,F=Math.PI/180,H=180/Math.PI;function ee(i){return(i%=360)<0&&(i+=360),i}function ae([i,e,r,n]){let o,u;const d=He((.2225045*(i=Se(i))+.7168786*(e=Se(e))+.0606169*(r=Se(r)))/1);i===e&&e===r?o=u=d:(o=He((.4360747*i+.3850649*e+.1430804*r)/x),u=He((.0139322*i+.0971045*e+.7141733*r)/T));const m=116*d-16;return[m<0?0:m,500*(o-d),200*(d-u),n]}function Se(i){return i<=.04045?i/12.92:Math.pow((i+.055)/1.055,2.4)}function He(i){return i>.008856451679035631?Math.pow(i,1/3):i/R+I}function Ce([i,e,r,n]){let o=(i+16)/116,u=isNaN(e)?o:o+e/500,d=isNaN(r)?o:o-r/200;return o=1*Xe(o),u=x*Xe(u),d=T*Xe(d),[Re(3.1338561*u-1.6168667*o-.4906146*d),Re(-.9787684*u+1.9161415*o+.033454*d),Re(.0719453*u-.2289914*o+1.4052427*d),n]}function Re(i){return(i=i<=.00304?12.92*i:1.055*Math.pow(i,1/2.4)-.055)<0?0:i>1?1:i}function Xe(i){return i>L?i*i*i:R*(i-I)}function ct(i){return parseInt(i.padEnd(2,i),16)/255}function _t(i,e){return Qe(e?i/100:i,0,1)}function Qe(i,e,r){return Math.min(Math.max(e,i),r)}function ht(i){return!i.some(Number.isNaN)}const ni={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};class Ze{constructor(e,r,n,o=1,u=!0){this.r=e,this.g=r,this.b=n,this.a=o,u||(this.r*=o,this.g*=o,this.b*=o,o||this.overwriteGetter("rgb",[e,r,n,o]))}static parse(e){if(e instanceof Ze)return e;if("string"!=typeof e)return;const r=function(n){if("transparent"===(n=n.toLowerCase().trim()))return[0,0,0,0];const o=ni[n];if(o){const[d,m,y]=o;return[d/255,m/255,y/255,1]}if(n.startsWith("#")&&/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/.test(n)){const d=n.length<6?1:2;let m=1;return[ct(n.slice(m,m+=d)),ct(n.slice(m,m+=d)),ct(n.slice(m,m+=d)),ct(n.slice(m,m+d)||"ff")]}if(n.startsWith("rgb")){const d=n.match(/^rgba?\(\s*([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(d){const[m,y,v,S,C,M,k,D,N,G,q,Y]=d,X=[S||" ",k||" ",G].join("");if(" "===X||" /"===X||",,"===X||",,,"===X){const J=[v,M,N].join(""),ie="%%%"===J?100:""===J?255:0;if(ie){const le=[Qe(+y/ie,0,1),Qe(+C/ie,0,1),Qe(+D/ie,0,1),q?_t(+q,Y):1];if(ht(le))return le}}return}}const u=n.match(/^hsla?\(\s*([\de.+-]+)(?:deg)?(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(u){const[d,m,y,v,S,C,M,k,D]=u,N=[y||" ",S||" ",M].join("");if(" "===N||" /"===N||",,"===N||",,,"===N){const G=[+m,Qe(+v,0,100),Qe(+C,0,100),k?_t(+k,D):1];if(ht(G))return function([q,Y,X,J]){function ie(le){const be=(le+q/30)%12,Pe=Y*Math.min(X,1-X);return X-Pe*Math.max(-1,Math.min(be-3,9-be,1))}return q=ee(q),Y/=100,X/=100,[ie(0),ie(8),ie(4),J]}(G)}}}(e);return r?new Ze(...r,!1):void 0}get rgb(){const{r:e,g:r,b:n,a:o}=this,u=o||1/0;return this.overwriteGetter("rgb",[e/u,r/u,n/u,o])}get hcl(){return this.overwriteGetter("hcl",function(e){const[r,n,o,u]=ae(e),d=Math.sqrt(n*n+o*o);return[Math.round(1e4*d)?ee(Math.atan2(o,n)*H):NaN,d,r,u]}(this.rgb))}get lab(){return this.overwriteGetter("lab",ae(this.rgb))}overwriteGetter(e,r){return Object.defineProperty(this,e,{value:r}),r}toString(){const[e,r,n,o]=this.rgb;return`rgba(${[e,r,n].map(u=>Math.round(255*u)).join(",")},${o})`}}Ze.black=new Ze(0,0,0,1),Ze.white=new Ze(1,1,1,1),Ze.transparent=new Ze(0,0,0,0),Ze.red=new Ze(1,0,0,1);class si{constructor(e,r,n){this.sensitivity=e?r?"variant":"case":r?"accent":"base",this.locale=n,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(e,r){return this.collator.compare(e,r)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class Li{constructor(e,r,n,o,u){this.text=e,this.image=r,this.scale=n,this.fontStack=o,this.textColor=u}}class Kt{constructor(e){this.sections=e}static fromString(e){return new Kt([new Li(e,null,null,null,null)])}isEmpty(){return 0===this.sections.length||!this.sections.some(e=>0!==e.text.length||e.image&&0!==e.image.name.length)}static factory(e){return e instanceof Kt?e:Kt.fromString(e)}toString(){return 0===this.sections.length?"":this.sections.map(e=>e.text).join("")}}class lr{constructor(e){this.values=e.slice()}static parse(e){if(e instanceof lr)return e;if("number"==typeof e)return new lr([e,e,e,e]);if(Array.isArray(e)&&!(e.length<1||e.length>4)){for(const r of e)if("number"!=typeof r)return;switch(e.length){case 1:e=[e[0],e[0],e[0],e[0]];break;case 2:e=[e[0],e[1],e[0],e[1]];break;case 3:e=[e[0],e[1],e[2],e[1]]}return new lr(e)}}toString(){return JSON.stringify(this.values)}}const fl=new Set(["center","left","right","top","bottom","top-left","top-right","bottom-left","bottom-right"]);class Fi{constructor(e){this.values=e.slice()}static parse(e){if(e instanceof Fi)return e;if(Array.isArray(e)&&!(e.length<1)&&e.length%2==0){for(let r=0;r=0&&i<=255&&"number"==typeof e&&e>=0&&e<=255&&"number"==typeof r&&r>=0&&r<=255?void 0===n||"number"==typeof n&&n>=0&&n<=1?null:`Invalid rgba value [${[i,e,r,n].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${("number"==typeof n?[i,e,r,n]:[i,e,r]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function Sn(i){if(null===i||"string"==typeof i||"boolean"==typeof i||"number"==typeof i||i instanceof Ze||i instanceof si||i instanceof Kt||i instanceof lr||i instanceof Fi||i instanceof vr)return!0;if(Array.isArray(i)){for(const e of i)if(!Sn(e))return!1;return!0}if("object"==typeof i){for(const e in i)if(!Sn(i[e]))return!1;return!0}return!1}function Yt(i){if(null===i)return or;if("string"==typeof i)return We;if("boolean"==typeof i)return Ke;if("number"==typeof i)return de;if(i instanceof Ze)return Ht;if(i instanceof si)return ki;if(i instanceof Kt)return Bi;if(i instanceof lr)return bi;if(i instanceof Fi)return Rr;if(i instanceof vr)return Hi;if(Array.isArray(i)){const e=i.length;let r;for(const n of i){const o=Yt(n);if(r){if(r===o)continue;r=Fe;break}r=o}return fi(r||Fe,e)}return Pi}function ta(i){const e=typeof i;return null===i?"":"string"===e||"number"===e||"boolean"===e?String(i):i instanceof Ze||i instanceof Kt||i instanceof lr||i instanceof Fi||i instanceof vr?i.toString():JSON.stringify(i)}class da{constructor(e,r){this.type=e,this.value=r}static parse(e,r){if(2!==e.length)return r.error(`'literal' expression requires exactly one argument, but found ${e.length-1} instead.`);if(!Sn(e[1]))return r.error("invalid value");const n=e[1];let o=Yt(n);const u=r.expectedType;return"array"!==o.kind||0!==o.N||!u||"array"!==u.kind||"number"==typeof u.N&&0!==u.N||(o=u),new da(o,n)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}}class Jt{constructor(e){this.name="ExpressionEvaluationError",this.message=e}toJSON(){return this.message}}const En={string:We,number:de,boolean:Ke,object:Pi};class Oi{constructor(e,r){this.type=e,this.args=r}static parse(e,r){if(e.length<2)return r.error("Expected at least one argument.");let n,o=1;const u=e[0];if("array"===u){let m,y;if(e.length>2){const v=e[1];if("string"!=typeof v||!(v in En)||"object"===v)return r.error('The item type argument of "array" must be one of string, number, boolean',1);m=En[v],o++}else m=Fe;if(e.length>3){if(null!==e[2]&&("number"!=typeof e[2]||e[2]<0||e[2]!==Math.floor(e[2])))return r.error('The length argument to "array" must be a positive integer literal',2);y=e[2],o++}n=fi(m,y)}else{if(!En[u])throw new Error(`Types doesn't contain name = ${u}`);n=En[u]}const d=[];for(;oe.outputDefined())}}const Tn={"to-boolean":Ke,"to-color":Ht,"to-number":de,"to-string":We};class Br{constructor(e,r){this.type=e,this.args=r}static parse(e,r){if(e.length<2)return r.error("Expected at least one argument.");const n=e[0];if(!Tn[n])throw new Error(`Can't parse ${n} as it is not part of the known types`);if(("to-boolean"===n||"to-string"===n)&&2!==e.length)return r.error("Expected one argument.");const o=Tn[n],u=[];for(let d=1;d4?`Invalid rbga value ${JSON.stringify(r)}: expected an array containing either three or four numeric values.`:po(r[0],r[1],r[2],r[3]),!n))return new Ze(r[0]/255,r[1]/255,r[2]/255,r[3])}throw new Jt(n||`Could not parse color from value '${"string"==typeof r?r:JSON.stringify(r)}'`)}case"padding":{let r;for(const n of this.args){r=n.evaluate(e);const o=lr.parse(r);if(o)return o}throw new Jt(`Could not parse padding from value '${"string"==typeof r?r:JSON.stringify(r)}'`)}case"variableAnchorOffsetCollection":{let r;for(const n of this.args){r=n.evaluate(e);const o=Fi.parse(r);if(o)return o}throw new Jt(`Could not parse variableAnchorOffsetCollection from value '${"string"==typeof r?r:JSON.stringify(r)}'`)}case"number":{let r=null;for(const n of this.args){if(r=n.evaluate(e),null===r)return 0;const o=Number(r);if(!isNaN(o))return o}throw new Jt(`Could not convert ${JSON.stringify(r)} to number.`)}case"formatted":return Kt.fromString(ta(this.args[0].evaluate(e)));case"resolvedImage":return vr.fromString(ta(this.args[0].evaluate(e)));default:return ta(this.args[0].evaluate(e))}}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}}const tn=["Unknown","Point","LineString","Polygon"];class bt{constructor(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null}id(){return this.feature&&"id"in this.feature?this.feature.id:null}geometryType(){return this.feature?"number"==typeof this.feature.type?tn[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}parseColor(e){let r=this._parseColorCache[e];return r||(r=this._parseColorCache[e]=Ze.parse(e)),r}}class In{constructor(e,r,n=[],o,u=new Wi,d=[]){this.registry=e,this.path=n,this.key=n.map(m=>`[${m}]`).join(""),this.scope=u,this.errors=d,this.expectedType=o,this._isConstant=r}parse(e,r,n,o,u={}){return r?this.concat(r,n,o)._parse(e,u):this._parse(e,u)}_parse(e,r){function n(o,u,d){return"assert"===d?new Oi(u,[o]):"coerce"===d?new Br(u,[o]):o}if(null!==e&&"string"!=typeof e&&"boolean"!=typeof e&&"number"!=typeof e||(e=["literal",e]),Array.isArray(e)){if(0===e.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');const o=e[0];if("string"!=typeof o)return this.error(`Expression name must be a string, but found ${typeof o} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;const u=this.registry[o];if(u){let d=u.parse(e,this);if(!d)return null;if(this.expectedType){const m=this.expectedType,y=d.type;if("string"!==m.kind&&"number"!==m.kind&&"boolean"!==m.kind&&"object"!==m.kind&&"array"!==m.kind||"value"!==y.kind)if("color"!==m.kind&&"formatted"!==m.kind&&"resolvedImage"!==m.kind||"value"!==y.kind&&"string"!==y.kind)if("padding"!==m.kind||"value"!==y.kind&&"number"!==y.kind&&"array"!==y.kind)if("variableAnchorOffsetCollection"!==m.kind||"value"!==y.kind&&"array"!==y.kind){if(this.checkSubtype(m,y))return null}else d=n(d,m,r.typeAnnotation||"coerce");else d=n(d,m,r.typeAnnotation||"coerce");else d=n(d,m,r.typeAnnotation||"coerce");else d=n(d,m,r.typeAnnotation||"assert")}if(!(d instanceof da)&&"resolvedImage"!==d.type.kind&&this._isConstant(d)){const m=new bt;try{d=new da(d.type,d.evaluate(m))}catch(y){return this.error(y.message),null}}return d}return this.error(`Unknown expression "${o}". If you wanted a literal array, use ["literal", [...]].`,0)}return this.error(void 0===e?"'undefined' value invalid. Use null instead.":"object"==typeof e?'Bare objects invalid. Use ["literal", {...}] instead.':`Expected an array, but found ${typeof e} instead.`)}concat(e,r,n){const o="number"==typeof e?this.path.concat(e):this.path,u=n?this.scope.concat(n):this.scope;return new In(this.registry,this._isConstant,o,r||null,u,this.errors)}error(e,...r){const n=`${this.key}${r.map(o=>`[${o}]`).join("")}`;this.errors.push(new Wt(n,e))}checkSubtype(e,r){const n=xr(e,r);return n&&this.error(n),n}}class La{constructor(e,r,n){this.type=ki,this.locale=n,this.caseSensitive=e,this.diacriticSensitive=r}static parse(e,r){if(2!==e.length)return r.error("Expected one argument.");const n=e[1];if("object"!=typeof n||Array.isArray(n))return r.error("Collator options argument must be an object.");const o=r.parse(void 0!==n["case-sensitive"]&&n["case-sensitive"],1,Ke);if(!o)return null;const u=r.parse(void 0!==n["diacritic-sensitive"]&&n["diacritic-sensitive"],1,Ke);if(!u)return null;let d=null;return n.locale&&(d=r.parse(n.locale,1,We),!d)?null:new La(o,u,d)}evaluate(e){return new si(this.caseSensitive.evaluate(e),this.diacriticSensitive.evaluate(e),this.locale?this.locale.evaluate(e):null)}eachChild(e){e(this.caseSensitive),e(this.diacriticSensitive),this.locale&&e(this.locale)}outputDefined(){return!1}}const ia=8192;function Cn(i,e){i[0]=Math.min(i[0],e[0]),i[1]=Math.min(i[1],e[1]),i[2]=Math.max(i[2],e[0]),i[3]=Math.max(i[3],e[1])}function rn(i,e){return!(i[0]<=e[0]||i[2]>=e[2]||i[1]<=e[1]||i[3]>=e[3])}function gl(i,e){const r=(180+i[0])/360,n=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+i[1]*Math.PI/360)))/360,o=Math.pow(2,e.z);return[Math.round(r*o*ia),Math.round(n*o*ia)]}function mo(i,e,r){const n=i[0]-e[0],o=i[1]-e[1],u=i[0]-r[0],d=i[1]-r[1];return n*d-u*o==0&&n*u<=0&&o*d<=0}function An(i,e){let r=!1;for(let d=0,m=e.length;d(n=i)[1]!=(u=y[v+1])[1]>n[1]&&n[0]<(u[0]-o[0])*(n[1]-o[1])/(u[1]-o[1])+o[0]&&(r=!r)}}var n,o,u;return r}function yl(i,e){for(let r=0;r0&&m<0||d<0&&m>0}function _l(i,e,r){for(const v of r)for(let S=0;Sr[2]){const o=.5*n;let u=i[0]-r[0]>o?-n:r[0]-i[0]>o?n:0;0===u&&(u=i[0]-r[2]>o?-n:r[2]-i[0]>o?n:0),i[0]+=u}Cn(e,i)}function zn(i,e,r,n){const o=Math.pow(2,n.z)*ia,u=[n.x*ia,n.y*ia],d=[];for(const m of i)for(const y of m){const v=[y.x+u[0],y.y+u[1]];xo(v,e,r,o),d.push(v)}return d}function vo(i,e,r,n){const o=Math.pow(2,n.z)*ia,u=[n.x*ia,n.y*ia],d=[];for(const y of i){const v=[];for(const S of y){const C=[S.x+u[0],S.y+u[1]];Cn(e,C),v.push(C)}d.push(v)}if(e[2]-e[0]<=o/2){(m=e)[0]=m[1]=1/0,m[2]=m[3]=-1/0;for(const y of d)for(const v of y)xo(v,e,r,o)}var m;return d}class ma{constructor(e,r){this.type=Ke,this.geojson=e,this.geometries=r}static parse(e,r){if(2!==e.length)return r.error(`'within' expression requires exactly one argument, but found ${e.length-1} instead.`);if(Sn(e[1])){const n=e[1];if("FeatureCollection"===n.type)for(let o=0;o!Array.isArray(v)||v.length===e.length-1);let y=null;for(const[v,S]of m){y=new In(r.registry,an,r.path,null,r.scope);const C=[];let M=!1;for(let k=1;k{return M=C,Array.isArray(M)?`(${M.map(Tt).join(", ")})`:`(${Tt(M.type)}...)`;var M}).join(" | "),S=[];for(let C=1;C{r=e?r&&an(n):r&&n instanceof da}),!!r&&kn(i)&&sn(i,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}function kn(i){if(i instanceof cr&&("get"===i.name&&1===i.args.length||"feature-state"===i.name||"has"===i.name&&1===i.args.length||"properties"===i.name||"geometry-type"===i.name||"id"===i.name||/^filter-/.test(i.name))||i instanceof ma)return!1;let e=!0;return i.eachChild(r=>{e&&!kn(r)&&(e=!1)}),e}function nn(i){if(i instanceof cr&&"feature-state"===i.name)return!1;let e=!0;return i.eachChild(r=>{e&&!nn(r)&&(e=!1)}),e}function sn(i,e){if(i instanceof cr&&e.indexOf(i.name)>=0)return!1;let r=!0;return i.eachChild(n=>{r&&!sn(n,e)&&(r=!1)}),r}function on(i,e){const r=i.length-1;let n,o,u=0,d=r,m=0;for(;u<=d;)if(m=Math.floor((u+d)/2),n=i[m],o=i[m+1],n<=e){if(m===r||ee))throw new Jt("Input is not a number.");d=m-1}return 0}class ln{constructor(e,r,n){this.type=e,this.input=r,this.labels=[],this.outputs=[];for(const[o,u]of n)this.labels.push(o),this.outputs.push(u)}static parse(e,r){if(e.length-1<4)return r.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!=0)return r.error("Expected an even number of arguments.");const n=r.parse(e[1],1,de);if(!n)return null;const o=[];let u=null;r.expectedType&&"value"!==r.expectedType.kind&&(u=r.expectedType);for(let d=1;d=m)return r.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',v);const C=r.parse(y,S,u);if(!C)return null;u=u||C.type,o.push([m,C])}return new ln(u,n,o)}evaluate(e){const r=this.labels,n=this.outputs;if(1===r.length)return n[0].evaluate(e);const o=this.input.evaluate(e);if(o<=r[0])return n[0].evaluate(e);const u=r.length;return o>=r[u-1]?n[u-1].evaluate(e):n[on(r,o)].evaluate(e)}eachChild(e){e(this.input);for(const r of this.outputs)e(r)}outputDefined(){return this.outputs.every(e=>e.outputDefined())}}function fa(i,e,r){return i+r*(e-i)}function Ln(i,e,r){return i.map((n,o)=>fa(n,e[o],r))}const hr={number:fa,color:function(i,e,r,n="rgb"){switch(n){case"rgb":{const[o,u,d,m]=Ln(i.rgb,e.rgb,r);return new Ze(o,u,d,m,!1)}case"hcl":{const[o,u,d,m]=i.hcl,[y,v,S,C]=e.hcl;let M,k;if(isNaN(o)||isNaN(y))isNaN(o)?isNaN(y)?M=NaN:(M=y,1!==d&&0!==d||(k=v)):(M=o,1!==S&&0!==S||(k=u));else{let Y=y-o;y>o&&Y>180?Y-=360:y180&&(Y+=360),M=o+r*Y}const[D,N,G,q]=function([Y,X,J,ie]){return Y=isNaN(Y)?0:Y*F,Ce([J,Math.cos(Y)*X,Math.sin(Y)*X,ie])}([M,k??fa(u,v,r),fa(d,S,r),fa(m,C,r)]);return new Ze(D,N,G,q,!1)}case"lab":{const[o,u,d,m]=Ce(Ln(i.lab,e.lab,r));return new Ze(o,u,d,m,!1)}}},array:Ln,padding:function(i,e,r){return new lr(Ln(i.values,e.values,r))},variableAnchorOffsetCollection:function(i,e,r){const n=i.values,o=e.values;if(n.length!==o.length)throw new Jt(`Cannot interpolate values of different length. from: ${i.toString()}, to: ${e.toString()}`);const u=[];for(let d=0;d"number"!=typeof S||S<0||S>1))return r.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);o={name:"cubic-bezier",controlPoints:v}}}if(e.length-1<4)return r.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!=0)return r.error("Expected an even number of arguments.");if(u=r.parse(u,2,de),!u)return null;const m=[];let y=null;"interpolate-hcl"===n||"interpolate-lab"===n?y=Ht:r.expectedType&&"value"!==r.expectedType.kind&&(y=r.expectedType);for(let v=0;v=S)return r.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',M);const D=r.parse(C,k,y);if(!D)return null;y=y||D.type,m.push([S,D])}return z(y,de)||z(y,Ht)||z(y,bi)||z(y,Rr)||z(y,fi(de))?new ur(y,n,o,u,m):r.error(`Type ${Tt(y)} is not interpolatable.`)}evaluate(e){const r=this.labels,n=this.outputs;if(1===r.length)return n[0].evaluate(e);const o=this.input.evaluate(e);if(o<=r[0])return n[0].evaluate(e);const u=r.length;if(o>=r[u-1])return n[u-1].evaluate(e);const d=on(r,o),m=ur.interpolationFactor(this.interpolation,o,r[d],r[d+1]),y=n[d].evaluate(e),v=n[d+1].evaluate(e);switch(this.operator){case"interpolate":return hr[this.type.kind](y,v,m);case"interpolate-hcl":return hr.color(y,v,m,"hcl");case"interpolate-lab":return hr.color(y,v,m,"lab")}}eachChild(e){e(this.input);for(const r of this.outputs)e(r)}outputDefined(){return this.outputs.every(e=>e.outputDefined())}}function fs(i,e,r,n){const o=n-r,u=i-r;return 0===o?0:1===e?u/o:(Math.pow(e,u)-1)/(Math.pow(e,o)-1)}class Dn{constructor(e,r){this.type=e,this.args=r}static parse(e,r){if(e.length<2)return r.error("Expectected at least one argument.");let n=null;const o=r.expectedType;o&&"value"!==o.kind&&(n=o);const u=[];for(const m of e.slice(1)){const y=r.parse(m,1+u.length,n,void 0,{typeAnnotation:"omit"});if(!y)return null;n=n||y.type,u.push(y)}if(!n)throw new Error("No output type");const d=o&&u.some(m=>xr(o,m.type));return new Dn(d?Fe:n,u)}evaluate(e){let r,n=null,o=0;for(const u of this.args)if(o++,n=u.evaluate(e),n&&n instanceof vr&&!n.available&&(r||(r=n.name),n=null,o===this.args.length&&(n=r)),null!==n)break;return n}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}}class Da{constructor(e,r){this.type=r.type,this.bindings=[].concat(e),this.result=r}evaluate(e){return this.result.evaluate(e)}eachChild(e){for(const r of this.bindings)e(r[1]);e(this.result)}static parse(e,r){if(e.length<4)return r.error(`Expected at least 3 arguments, but found ${e.length-1} instead.`);const n=[];for(let u=1;u=n.length)throw new Jt(`Array index out of bounds: ${r} > ${n.length-1}.`);if(r!==Math.floor(r))throw new Jt(`Array index must be an integer, but found ${r} instead.`);return n[r]}eachChild(e){e(this.index),e(this.input)}outputDefined(){return!1}}class mt{constructor(e,r){this.type=Ke,this.needle=e,this.haystack=r}static parse(e,r){if(3!==e.length)return r.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const n=r.parse(e[1],1,Fe),o=r.parse(e[2],2,Fe);return n&&o?$(n.type,[Ke,We,de,or,Fe])?new mt(n,o):r.error(`Expected first argument to be of type boolean, string, number or null, but found ${Tt(n.type)} instead`):null}evaluate(e){const r=this.needle.evaluate(e),n=this.haystack.evaluate(e);if(!n)return!1;if(!A(r,["boolean","string","number","null"]))throw new Jt(`Expected first argument to be of type boolean, string, number or null, but found ${Tt(Yt(r))} instead.`);if(!A(n,["string","array"]))throw new Jt(`Expected second argument to be of type array or string, but found ${Tt(Yt(n))} instead.`);return n.indexOf(r)>=0}eachChild(e){e(this.needle),e(this.haystack)}outputDefined(){return!0}}class Rn{constructor(e,r,n){this.type=de,this.needle=e,this.haystack=r,this.fromIndex=n}static parse(e,r){if(e.length<=2||e.length>=5)return r.error(`Expected 3 or 4 arguments, but found ${e.length-1} instead.`);const n=r.parse(e[1],1,Fe),o=r.parse(e[2],2,Fe);if(!n||!o)return null;if(!$(n.type,[Ke,We,de,or,Fe]))return r.error(`Expected first argument to be of type boolean, string, number or null, but found ${Tt(n.type)} instead`);if(4===e.length){const u=r.parse(e[3],3,de);return u?new Rn(n,o,u):null}return new Rn(n,o)}evaluate(e){const r=this.needle.evaluate(e),n=this.haystack.evaluate(e);if(!A(r,["boolean","string","number","null"]))throw new Jt(`Expected first argument to be of type boolean, string, number or null, but found ${Tt(Yt(r))} instead.`);if(!A(n,["string","array"]))throw new Jt(`Expected second argument to be of type array or string, but found ${Tt(Yt(n))} instead.`);if(this.fromIndex){const o=this.fromIndex.evaluate(e);return n.indexOf(r,o)}return n.indexOf(r)}eachChild(e){e(this.needle),e(this.haystack),this.fromIndex&&e(this.fromIndex)}outputDefined(){return!1}}class gs{constructor(e,r,n,o,u,d){this.inputType=e,this.type=r,this.input=n,this.cases=o,this.outputs=u,this.otherwise=d}static parse(e,r){if(e.length<5)return r.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if(e.length%2!=1)return r.error("Expected an even number of arguments.");let n,o;r.expectedType&&"value"!==r.expectedType.kind&&(o=r.expectedType);const u={},d=[];for(let v=2;vNumber.MAX_SAFE_INTEGER)return M.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if("number"==typeof D&&Math.floor(D)!==D)return M.error("Numeric branch labels must be integer values.");if(n){if(M.checkSubtype(n,Yt(D)))return null}else n=Yt(D);if(void 0!==u[String(D)])return M.error("Branch labels must be unique.");u[String(D)]=d.length}const k=r.parse(C,v,o);if(!k)return null;o=o||k.type,d.push(k)}const m=r.parse(e[1],1,Fe);if(!m)return null;const y=r.parse(e[e.length-1],e.length-1,o);return y?"value"!==m.type.kind&&r.concat(1).checkSubtype(n,m.type)?null:new gs(n,o,m,u,d,y):null}evaluate(e){const r=this.input.evaluate(e);return(Yt(r)===this.inputType&&this.outputs[this.cases[r]]||this.otherwise).evaluate(e)}eachChild(e){e(this.input),this.outputs.forEach(e),e(this.otherwise)}outputDefined(){return this.outputs.every(e=>e.outputDefined())&&this.otherwise.outputDefined()}}class ys{constructor(e,r,n){this.type=e,this.branches=r,this.otherwise=n}static parse(e,r){if(e.length<4)return r.error(`Expected at least 3 arguments, but found only ${e.length-1}.`);if(e.length%2!=0)return r.error("Expected an odd number of arguments.");let n;r.expectedType&&"value"!==r.expectedType.kind&&(n=r.expectedType);const o=[];for(let d=1;dr.outputDefined())&&this.otherwise.outputDefined()}}class Bn{constructor(e,r,n,o){this.type=e,this.input=r,this.beginIndex=n,this.endIndex=o}static parse(e,r){if(e.length<=2||e.length>=5)return r.error(`Expected 3 or 4 arguments, but found ${e.length-1} instead.`);const n=r.parse(e[1],1,Fe),o=r.parse(e[2],2,de);if(!n||!o)return null;if(!$(n.type,[fi(Fe),We,Fe]))return r.error(`Expected first argument to be of type array or string, but found ${Tt(n.type)} instead`);if(4===e.length){const u=r.parse(e[3],3,de);return u?new Bn(n.type,n,o,u):null}return new Bn(n.type,n,o)}evaluate(e){const r=this.input.evaluate(e),n=this.beginIndex.evaluate(e);if(!A(r,["string","array"]))throw new Jt(`Expected first argument to be of type array or string, but found ${Tt(Yt(r))} instead.`);if(this.endIndex){const o=this.endIndex.evaluate(e);return r.slice(n,o)}return r.slice(n)}eachChild(e){e(this.input),e(this.beginIndex),this.endIndex&&e(this.endIndex)}outputDefined(){return!1}}function bo(i,e){return"=="===i||"!="===i?"boolean"===e.kind||"string"===e.kind||"number"===e.kind||"null"===e.kind||"value"===e.kind:"string"===e.kind||"number"===e.kind||"value"===e.kind}function wo(i,e,r,n){return 0===n.compare(e,r)}function Ba(i,e,r){const n="=="!==i&&"!="!==i;return class tu{constructor(u,d,m){this.type=Ke,this.lhs=u,this.rhs=d,this.collator=m,this.hasUntypedArgument="value"===u.type.kind||"value"===d.type.kind}static parse(u,d){if(3!==u.length&&4!==u.length)return d.error("Expected two or three arguments.");const m=u[0];let y=d.parse(u[1],1,Fe);if(!y)return null;if(!bo(m,y.type))return d.concat(1).error(`"${m}" comparisons are not supported for type '${Tt(y.type)}'.`);let v=d.parse(u[2],2,Fe);if(!v)return null;if(!bo(m,v.type))return d.concat(2).error(`"${m}" comparisons are not supported for type '${Tt(v.type)}'.`);if(y.type.kind!==v.type.kind&&"value"!==y.type.kind&&"value"!==v.type.kind)return d.error(`Cannot compare types '${Tt(y.type)}' and '${Tt(v.type)}'.`);n&&("value"===y.type.kind&&"value"!==v.type.kind?y=new Oi(v.type,[y]):"value"!==y.type.kind&&"value"===v.type.kind&&(v=new Oi(y.type,[v])));let S=null;if(4===u.length){if("string"!==y.type.kind&&"string"!==v.type.kind&&"value"!==y.type.kind&&"value"!==v.type.kind)return d.error("Cannot use collator to compare non-string types.");if(S=d.parse(u[3],3,ki),!S)return null}return new tu(y,v,S)}evaluate(u){const d=this.lhs.evaluate(u),m=this.rhs.evaluate(u);if(n&&this.hasUntypedArgument){const y=Yt(d),v=Yt(m);if(y.kind!==v.kind||"string"!==y.kind&&"number"!==y.kind)throw new Jt(`Expected arguments for "${i}" to be (string, string) or (number, number), but found (${y.kind}, ${v.kind}) instead.`)}if(this.collator&&!n&&this.hasUntypedArgument){const y=Yt(d),v=Yt(m);if("string"!==y.kind||"string"!==v.kind)return e(u,d,m)}return this.collator?r(u,d,m,this.collator.evaluate(u)):e(u,d,m)}eachChild(u){u(this.lhs),u(this.rhs),this.collator&&u(this.collator)}outputDefined(){return!0}}}const xl=Ba("==",function(i,e,r){return e===r},wo),vl=Ba("!=",function(i,e,r){return e!==r},function(i,e,r,n){return!wo(0,e,r,n)}),bl=Ba("<",function(i,e,r){return e",function(i,e,r){return e>r},function(i,e,r,n){return n.compare(e,r)>0}),Sl=Ba("<=",function(i,e,r){return e<=r},function(i,e,r,n){return n.compare(e,r)<=0}),El=Ba(">=",function(i,e,r){return e>=r},function(i,e,r,n){return n.compare(e,r)>=0});class _s{constructor(e,r,n,o,u){this.type=We,this.number=e,this.locale=r,this.currency=n,this.minFractionDigits=o,this.maxFractionDigits=u}static parse(e,r){if(3!==e.length)return r.error("Expected two arguments.");const n=r.parse(e[1],1,de);if(!n)return null;const o=e[2];if("object"!=typeof o||Array.isArray(o))return r.error("NumberFormat options argument must be an object.");let u=null;if(o.locale&&(u=r.parse(o.locale,1,We),!u))return null;let d=null;if(o.currency&&(d=r.parse(o.currency,1,We),!d))return null;let m=null;if(o["min-fraction-digits"]&&(m=r.parse(o["min-fraction-digits"],1,de),!m))return null;let y=null;return o["max-fraction-digits"]&&(y=r.parse(o["max-fraction-digits"],1,de),!y)?null:new _s(n,u,d,m,y)}evaluate(e){return new Intl.NumberFormat(this.locale?this.locale.evaluate(e):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(e):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(e):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(e):void 0}).format(this.number.evaluate(e))}eachChild(e){e(this.number),this.locale&&e(this.locale),this.currency&&e(this.currency),this.minFractionDigits&&e(this.minFractionDigits),this.maxFractionDigits&&e(this.maxFractionDigits)}outputDefined(){return!1}}class Fn{constructor(e){this.type=Bi,this.sections=e}static parse(e,r){if(e.length<2)return r.error("Expected at least one argument.");const n=e[1];if(!Array.isArray(n)&&"object"==typeof n)return r.error("First argument must be an image or text section.");const o=[];let u=!1;for(let d=1;d<=e.length-1;++d){const m=e[d];if(u&&"object"==typeof m&&!Array.isArray(m)){u=!1;let y=null;if(m["font-scale"]&&(y=r.parse(m["font-scale"],1,de),!y))return null;let v=null;if(m["text-font"]&&(v=r.parse(m["text-font"],1,fi(We)),!v))return null;let S=null;if(m["text-color"]&&(S=r.parse(m["text-color"],1,Ht),!S))return null;const C=o[o.length-1];C.scale=y,C.font=v,C.textColor=S}else{const y=r.parse(e[d],1,Fe);if(!y)return null;const v=y.type.kind;if("string"!==v&&"value"!==v&&"null"!==v&&"resolvedImage"!==v)return r.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");u=!0,o.push({content:y,scale:null,font:null,textColor:null})}}return new Fn(o)}evaluate(e){return new Kt(this.sections.map(r=>{const n=r.content.evaluate(e);return Yt(n)===Hi?new Li("",n,null,null,null):new Li(ta(n),null,r.scale?r.scale.evaluate(e):null,r.font?r.font.evaluate(e).join(","):null,r.textColor?r.textColor.evaluate(e):null)}))}eachChild(e){for(const r of this.sections)e(r.content),r.scale&&e(r.scale),r.font&&e(r.font),r.textColor&&e(r.textColor)}outputDefined(){return!1}}class xs{constructor(e){this.type=Hi,this.input=e}static parse(e,r){if(2!==e.length)return r.error("Expected two arguments.");const n=r.parse(e[1],1,We);return n?new xs(n):r.error("No image name provided.")}evaluate(e){const r=this.input.evaluate(e),n=vr.fromString(r);return n&&e.availableImages&&(n.available=e.availableImages.indexOf(r)>-1),n}eachChild(e){e(this.input)}outputDefined(){return!1}}class vs{constructor(e){this.type=de,this.input=e}static parse(e,r){if(2!==e.length)return r.error(`Expected 1 argument, but found ${e.length-1} instead.`);const n=r.parse(e[1],1);return n?"array"!==n.type.kind&&"string"!==n.type.kind&&"value"!==n.type.kind?r.error(`Expected argument of type string or array, but found ${Tt(n.type)} instead.`):new vs(n):null}evaluate(e){const r=this.input.evaluate(e);if("string"==typeof r||Array.isArray(r))return r.length;throw new Jt(`Expected value to be of type string or array, but found ${Tt(Yt(r))} instead.`)}eachChild(e){e(this.input)}outputDefined(){return!1}}const Fa={"==":xl,"!=":vl,">":wl,"<":bl,">=":El,"<=":Sl,array:Oi,at:Ra,boolean:Oi,case:ys,coalesce:Dn,collator:La,format:Fn,image:xs,in:mt,"index-of":Rn,interpolate:ur,"interpolate-hcl":ur,"interpolate-lab":ur,length:vs,let:Da,literal:da,match:gs,number:Oi,"number-format":_s,object:Oi,slice:Bn,step:ln,string:Oi,"to-boolean":Br,"to-color":Br,"to-number":Br,"to-string":Br,var:Pn,within:ma};function So(i,[e,r,n,o]){e=e.evaluate(i),r=r.evaluate(i),n=n.evaluate(i);const u=o?o.evaluate(i):1,d=po(e,r,n,u);if(d)throw new Jt(d);return new Ze(e/255,r/255,n/255,u,!1)}function Eo(i,e){return i in e}function bs(i,e){const r=e[i];return void 0===r?null:r}function ga(i){return{type:i}}function To(i){return{result:"success",value:i}}function Oa(i){return{result:"error",value:i}}function Ua(i){return"data-driven"===i["property-type"]||"cross-faded-data-driven"===i["property-type"]}function Io(i){return!!i.expression&&i.expression.parameters.indexOf("zoom")>-1}function ws(i){return!!i.expression&&i.expression.interpolated}function yt(i){return i instanceof Number?"number":i instanceof String?"string":i instanceof Boolean?"boolean":Array.isArray(i)?"array":null===i?"null":typeof i}function On(i){return"object"==typeof i&&null!==i&&!Array.isArray(i)}function Tl(i){return i}function Co(i,e){const r="color"===e.type,n=i.stops&&"object"==typeof i.stops[0][0],o=n||!(n||void 0!==i.property),u=i.type||(ws(e)?"exponential":"interval");if(r||"padding"===e.type){const S=r?Ze.parse:lr.parse;(i=vi({},i)).stops&&(i.stops=i.stops.map(C=>[C[0],S(C[1])])),i.default=S(i.default?i.default:e.default)}if(i.colorSpace&&"rgb"!==(d=i.colorSpace)&&"hcl"!==d&&"lab"!==d)throw new Error(`Unknown color space: "${i.colorSpace}"`);var d;let m,y,v;if("exponential"===u)m=Ao;else if("interval"===u)m=Cl;else if("categorical"===u){m=Il,y=Object.create(null);for(const S of i.stops)y[S[0]]=S[1];v=typeof i.stops[0][0]}else{if("identity"!==u)throw new Error(`Unknown function type "${u}"`);m=Al}if(n){const S={},C=[];for(let D=0;DD[0]),evaluate:({zoom:D},N)=>Ao({stops:M,base:i.base},e,D).evaluate(D,N)}}if(o){const S="exponential"===u?{name:"exponential",base:void 0!==i.base?i.base:1}:null;return{kind:"camera",interpolationType:S,interpolationFactor:ur.interpolationFactor.bind(void 0,S),zoomStops:i.stops.map(C=>C[0]),evaluate:({zoom:C})=>m(i,e,C,y,v)}}return{kind:"source",evaluate(S,C){const M=C&&C.properties?C.properties[i.property]:void 0;return void 0===M?ya(i.default,e.default):m(i,e,M,y,v)}}}function ya(i,e,r){return void 0!==i?i:void 0!==e?e:void 0!==r?r:void 0}function Il(i,e,r,n,o){return ya(typeof r===o?n[r]:void 0,i.default,e.default)}function Cl(i,e,r){if("number"!==yt(r))return ya(i.default,e.default);const n=i.stops.length;if(1===n||r<=i.stops[0][0])return i.stops[0][1];if(r>=i.stops[n-1][0])return i.stops[n-1][1];const o=on(i.stops.map(u=>u[0]),r);return i.stops[o][1]}function Ao(i,e,r){const n=void 0!==i.base?i.base:1;if("number"!==yt(r))return ya(i.default,e.default);const o=i.stops.length;if(1===o||r<=i.stops[0][0])return i.stops[0][1];if(r>=i.stops[o-1][0])return i.stops[o-1][1];const u=on(i.stops.map(S=>S[0]),r),d=function(S,C,M,k){const D=k-M,N=S-M;return 0===D?0:1===C?N/D:(Math.pow(C,N)-1)/(Math.pow(C,D)-1)}(r,n,i.stops[u][0],i.stops[u+1][0]),m=i.stops[u][1],y=i.stops[u+1][1],v=hr[e.type]||Tl;return"function"==typeof m.evaluate?{evaluate(...S){const C=m.evaluate.apply(void 0,S),M=y.evaluate.apply(void 0,S);if(void 0!==C&&void 0!==M)return v(C,M,d,i.colorSpace)}}:v(m,y,d,i.colorSpace)}function Al(i,e,r){switch(e.type){case"color":r=Ze.parse(r);break;case"formatted":r=Kt.fromString(r.toString());break;case"resolvedImage":r=vr.fromString(r.toString());break;case"padding":r=lr.parse(r);break;default:yt(r)===e.type||"enum"===e.type&&e.values[r]||(r=void 0)}return ya(r,i.default,e.default)}cr.register(Fa,{error:[{kind:"error"},[We],(i,[e])=>{throw new Jt(e.evaluate(i))}],typeof:[We,[Fe],(i,[e])=>Tt(Yt(e.evaluate(i)))],"to-rgba":[fi(de,4),[Ht],(i,[e])=>{const[r,n,o,u]=e.evaluate(i).rgb;return[255*r,255*n,255*o,u]}],rgb:[Ht,[de,de,de],So],rgba:[Ht,[de,de,de,de],So],has:{type:Ke,overloads:[[[We],(i,[e])=>Eo(e.evaluate(i),i.properties())],[[We,Pi],(i,[e,r])=>Eo(e.evaluate(i),r.evaluate(i))]]},get:{type:Fe,overloads:[[[We],(i,[e])=>bs(e.evaluate(i),i.properties())],[[We,Pi],(i,[e,r])=>bs(e.evaluate(i),r.evaluate(i))]]},"feature-state":[Fe,[We],(i,[e])=>bs(e.evaluate(i),i.featureState||{})],properties:[Pi,[],i=>i.properties()],"geometry-type":[We,[],i=>i.geometryType()],id:[Fe,[],i=>i.id()],zoom:[de,[],i=>i.globals.zoom],"heatmap-density":[de,[],i=>i.globals.heatmapDensity||0],"line-progress":[de,[],i=>i.globals.lineProgress||0],accumulated:[Fe,[],i=>void 0===i.globals.accumulated?null:i.globals.accumulated],"+":[de,ga(de),(i,e)=>{let r=0;for(const n of e)r+=n.evaluate(i);return r}],"*":[de,ga(de),(i,e)=>{let r=1;for(const n of e)r*=n.evaluate(i);return r}],"-":{type:de,overloads:[[[de,de],(i,[e,r])=>e.evaluate(i)-r.evaluate(i)],[[de],(i,[e])=>-e.evaluate(i)]]},"/":[de,[de,de],(i,[e,r])=>e.evaluate(i)/r.evaluate(i)],"%":[de,[de,de],(i,[e,r])=>e.evaluate(i)%r.evaluate(i)],ln2:[de,[],()=>Math.LN2],pi:[de,[],()=>Math.PI],e:[de,[],()=>Math.E],"^":[de,[de,de],(i,[e,r])=>Math.pow(e.evaluate(i),r.evaluate(i))],sqrt:[de,[de],(i,[e])=>Math.sqrt(e.evaluate(i))],log10:[de,[de],(i,[e])=>Math.log(e.evaluate(i))/Math.LN10],ln:[de,[de],(i,[e])=>Math.log(e.evaluate(i))],log2:[de,[de],(i,[e])=>Math.log(e.evaluate(i))/Math.LN2],sin:[de,[de],(i,[e])=>Math.sin(e.evaluate(i))],cos:[de,[de],(i,[e])=>Math.cos(e.evaluate(i))],tan:[de,[de],(i,[e])=>Math.tan(e.evaluate(i))],asin:[de,[de],(i,[e])=>Math.asin(e.evaluate(i))],acos:[de,[de],(i,[e])=>Math.acos(e.evaluate(i))],atan:[de,[de],(i,[e])=>Math.atan(e.evaluate(i))],min:[de,ga(de),(i,e)=>Math.min(...e.map(r=>r.evaluate(i)))],max:[de,ga(de),(i,e)=>Math.max(...e.map(r=>r.evaluate(i)))],abs:[de,[de],(i,[e])=>Math.abs(e.evaluate(i))],round:[de,[de],(i,[e])=>{const r=e.evaluate(i);return r<0?-Math.round(-r):Math.round(r)}],floor:[de,[de],(i,[e])=>Math.floor(e.evaluate(i))],ceil:[de,[de],(i,[e])=>Math.ceil(e.evaluate(i))],"filter-==":[Ke,[We,Fe],(i,[e,r])=>i.properties()[e.value]===r.value],"filter-id-==":[Ke,[Fe],(i,[e])=>i.id()===e.value],"filter-type-==":[Ke,[We],(i,[e])=>i.geometryType()===e.value],"filter-<":[Ke,[We,Fe],(i,[e,r])=>{const n=i.properties()[e.value],o=r.value;return typeof n==typeof o&&n{const r=i.id(),n=e.value;return typeof r==typeof n&&r":[Ke,[We,Fe],(i,[e,r])=>{const n=i.properties()[e.value],o=r.value;return typeof n==typeof o&&n>o}],"filter-id->":[Ke,[Fe],(i,[e])=>{const r=i.id(),n=e.value;return typeof r==typeof n&&r>n}],"filter-<=":[Ke,[We,Fe],(i,[e,r])=>{const n=i.properties()[e.value],o=r.value;return typeof n==typeof o&&n<=o}],"filter-id-<=":[Ke,[Fe],(i,[e])=>{const r=i.id(),n=e.value;return typeof r==typeof n&&r<=n}],"filter->=":[Ke,[We,Fe],(i,[e,r])=>{const n=i.properties()[e.value],o=r.value;return typeof n==typeof o&&n>=o}],"filter-id->=":[Ke,[Fe],(i,[e])=>{const r=i.id(),n=e.value;return typeof r==typeof n&&r>=n}],"filter-has":[Ke,[Fe],(i,[e])=>e.value in i.properties()],"filter-has-id":[Ke,[],i=>null!==i.id()&&void 0!==i.id()],"filter-type-in":[Ke,[fi(We)],(i,[e])=>e.value.indexOf(i.geometryType())>=0],"filter-id-in":[Ke,[fi(Fe)],(i,[e])=>e.value.indexOf(i.id())>=0],"filter-in-small":[Ke,[We,fi(Fe)],(i,[e,r])=>r.value.indexOf(i.properties()[e.value])>=0],"filter-in-large":[Ke,[We,fi(Fe)],(i,[e,r])=>function(n,o,u,d){for(;u<=d;){const m=u+d>>1;if(o[m]===n)return!0;o[m]>n?d=m-1:u=m+1}return!1}(i.properties()[e.value],r.value,0,r.value.length-1)],all:{type:Ke,overloads:[[[Ke,Ke],(i,[e,r])=>e.evaluate(i)&&r.evaluate(i)],[ga(Ke),(i,e)=>{for(const r of e)if(!r.evaluate(i))return!1;return!0}]]},any:{type:Ke,overloads:[[[Ke,Ke],(i,[e,r])=>e.evaluate(i)||r.evaluate(i)],[ga(Ke),(i,e)=>{for(const r of e)if(r.evaluate(i))return!0;return!1}]]},"!":[Ke,[Ke],(i,[e])=>!e.evaluate(i)],"is-supported-script":[Ke,[We],(i,[e])=>{const r=i.globals&&i.globals.isSupportedScript;return!r||r(e.evaluate(i))}],upcase:[We,[We],(i,[e])=>e.evaluate(i).toUpperCase()],downcase:[We,[We],(i,[e])=>e.evaluate(i).toLowerCase()],concat:[We,ga(Fe),(i,e)=>e.map(r=>ta(r.evaluate(i))).join("")],"resolved-locale":[We,[ki],(i,[e])=>e.evaluate(i).resolvedLocale()]});class Vt{constructor(e,r){var n;this.expression=e,this._warningHistory={},this._evaluator=new bt,this._defaultValue=r?"color"===(n=r).type&&On(n.default)?new Ze(0,0,0,0):"color"===n.type?Ze.parse(n.default)||null:"padding"===n.type?lr.parse(n.default)||null:"variableAnchorOffsetCollection"===n.type?Fi.parse(n.default)||null:void 0===n.default?null:n.default:null,this._enumValues=r&&"enum"===r.type?r.values:null}evaluateWithoutErrorHandling(e,r,n,o,u,d){return this._evaluator.globals=e,this._evaluator.feature=r,this._evaluator.featureState=n,this._evaluator.canonical=o,this._evaluator.availableImages=u||null,this._evaluator.formattedSection=d,this.expression.evaluate(this._evaluator)}evaluate(e,r,n,o,u,d){this._evaluator.globals=e,this._evaluator.feature=r||null,this._evaluator.featureState=n||null,this._evaluator.canonical=o,this._evaluator.availableImages=u||null,this._evaluator.formattedSection=d||null;try{const m=this.expression.evaluate(this._evaluator);if(null==m||"number"==typeof m&&m!=m)return this._defaultValue;if(this._enumValues&&!(m in this._enumValues))throw new Jt(`Expected value to be one of ${Object.keys(this._enumValues).map(y=>JSON.stringify(y)).join(", ")}, but found ${JSON.stringify(m)} instead.`);return m}catch(m){return this._warningHistory[m.message]||(this._warningHistory[m.message]=!0,typeof console<"u"&&console.warn(m.message)),this._defaultValue}}}function Un(i){return Array.isArray(i)&&i.length>0&&"string"==typeof i[0]&&i[0]in Fa}function rt(i,e){const r=new In(Fa,an,[],e?function(o){const u={color:Ht,string:We,number:de,enum:We,boolean:Ke,formatted:Bi,padding:bi,resolvedImage:Hi,variableAnchorOffsetCollection:Rr};return"array"===o.type?fi(u[o.value]||Fe,o.length):u[o.type]}(e):void 0),n=r.parse(i,void 0,void 0,void 0,e&&"string"===e.type?{typeAnnotation:"coerce"}:void 0);return n?To(new Vt(n,e)):Oa(r.errors)}class cn{constructor(e,r){this.kind=e,this._styleExpression=r,this.isStateDependent="constant"!==e&&!nn(r.expression)}evaluateWithoutErrorHandling(e,r,n,o,u,d){return this._styleExpression.evaluateWithoutErrorHandling(e,r,n,o,u,d)}evaluate(e,r,n,o,u,d){return this._styleExpression.evaluate(e,r,n,o,u,d)}}class zt{constructor(e,r,n,o){this.kind=e,this.zoomStops=n,this._styleExpression=r,this.isStateDependent="camera"!==e&&!nn(r.expression),this.interpolationType=o}evaluateWithoutErrorHandling(e,r,n,o,u,d){return this._styleExpression.evaluateWithoutErrorHandling(e,r,n,o,u,d)}evaluate(e,r,n,o,u,d){return this._styleExpression.evaluate(e,r,n,o,u,d)}interpolationFactor(e,r,n){return this.interpolationType?ur.interpolationFactor(this.interpolationType,e,r,n):0}}function Pt(i,e){const r=rt(i,e);if("error"===r.result)return r;const n=r.value.expression,o=kn(n);if(!o&&!Ua(e))return Oa([new Wt("","data expressions not supported")]);const u=sn(n,["zoom"]);if(!u&&!Io(e))return Oa([new Wt("","zoom expressions not supported")]);const d=hn(n);return d||u?d instanceof Wt?Oa([d]):d instanceof ur&&!ws(e)?Oa([new Wt("",'"interpolate" expressions cannot be used with this property')]):To(d?new zt(o?"camera":"composite",r.value,d.labels,d instanceof ur?d.interpolation:void 0):new cn(o?"constant":"source",r.value)):Oa([new Wt("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')])}class _a{constructor(e,r){this._parameters=e,this._specification=r,vi(this,Co(this._parameters,this._specification))}static deserialize(e){return new _a(e._parameters,e._specification)}static serialize(e){return{_parameters:e._parameters,_specification:e._specification}}}function hn(i){let e=null;if(i instanceof Da)e=hn(i.result);else if(i instanceof Dn){for(const r of i.args)if(e=hn(r),e)break}else(i instanceof ln||i instanceof ur)&&i.input instanceof cr&&"zoom"===i.input.name&&(e=i);return e instanceof Wt||i.eachChild(r=>{const n=hn(r);n instanceof Wt?e=n:!e&&n?e=new Wt("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):e&&n&&e!==n&&(e=new Wt("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),e}function Ss(i){if(!0===i||!1===i)return!0;if(!Array.isArray(i)||0===i.length)return!1;switch(i[0]){case"has":return i.length>=2&&"$id"!==i[1]&&"$type"!==i[1];case"in":return i.length>=3&&("string"!=typeof i[1]||Array.isArray(i[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return 3!==i.length||Array.isArray(i[1])||Array.isArray(i[2]);case"any":case"all":for(const e of i.slice(1))if(!Ss(e)&&"boolean"!=typeof e)return!1;return!0;default:return!0}}const Ml={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};function Es(i){if(null==i)return{filter:()=>!0,needGeometry:!1};Ss(i)||(i=un(i));const e=rt(i,Ml);if("error"===e.result)throw new Error(e.value.map(r=>`${r.key}: ${r.message}`).join(", "));return{filter:(r,n,o)=>e.value.evaluate(r,n,{},o),needGeometry:Ts(i)}}function zl(i,e){return ie?1:0}function Ts(i){if(!Array.isArray(i))return!1;if("within"===i[0])return!0;for(let e=1;e"===e||"<="===e||">="===e?Vn(i[1],i[2],e):"any"===e?(r=i.slice(1),["any"].concat(r.map(un))):"all"===e?["all"].concat(i.slice(1).map(un)):"none"===e?["all"].concat(i.slice(1).map(un).map($n)):"in"===e?Is(i[1],i.slice(2)):"!in"===e?$n(Is(i[1],i.slice(2))):"has"===e?Nn(i[1]):"!has"===e?$n(Nn(i[1])):"within"!==e||i;var r}function Vn(i,e,r){switch(i){case"$type":return[`filter-type-${r}`,e];case"$id":return[`filter-id-${r}`,e];default:return[`filter-${r}`,i,e]}}function Is(i,e){if(0===e.length)return!1;switch(i){case"$type":return["filter-type-in",["literal",e]];case"$id":return["filter-id-in",["literal",e]];default:return e.length>200&&!e.some(r=>typeof r!=typeof e[0])?["filter-in-large",i,["literal",e.sort(zl)]]:["filter-in-small",i,["literal",e]]}}function Nn(i){switch(i){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",i]}}function $n(i){return["!",i]}function Cs(i){const e=typeof i;if("number"===e||"boolean"===e||"string"===e||null==i)return JSON.stringify(i);if(Array.isArray(i)){let o="[";for(const u of i)o+=`${Cs(u)},`;return`${o}]`}const r=Object.keys(i).sort();let n="{";for(let o=0;on.maximum?[new fe(e,r,`${r} is greater than the maximum value ${n.maximum}`)]:[]}function Ms(i){const e=i.valueSpec,r=Qt(i.value.type);let n,o,u,d={};const m="categorical"!==r&&void 0===i.value.property,y=!m,v="array"===yt(i.value.stops)&&"array"===yt(i.value.stops[0])&&"object"===yt(i.value.stops[0][0]),S=br({key:i.key,value:i.value,valueSpec:i.styleSpec.function,validateSpec:i.validateSpec,style:i.style,styleSpec:i.styleSpec,objectElementValidators:{stops:function(k){if("identity"===r)return[new fe(k.key,k.value,'identity function may not have a "stops" property')];let D=[];const N=k.value;return D=D.concat(As({key:k.key,value:N,valueSpec:k.valueSpec,validateSpec:k.validateSpec,style:k.style,styleSpec:k.styleSpec,arrayElementValidator:C})),"array"===yt(N)&&0===N.length&&D.push(new fe(k.key,N,"array must have at least one stop")),D},default:function(k){return k.validateSpec({key:k.key,value:k.value,valueSpec:e,validateSpec:k.validateSpec,style:k.style,styleSpec:k.styleSpec})}}});return"identity"===r&&m&&S.push(new fe(i.key,i.value,'missing required property "property"')),"identity"===r||i.value.stops||S.push(new fe(i.key,i.value,'missing required property "stops"')),"exponential"===r&&i.valueSpec.expression&&!ws(i.valueSpec)&&S.push(new fe(i.key,i.value,"exponential functions not supported")),i.styleSpec.$version>=8&&(y&&!Ua(i.valueSpec)?S.push(new fe(i.key,i.value,"property functions not supported")):m&&!Io(i.valueSpec)&&S.push(new fe(i.key,i.value,"zoom functions not supported"))),"categorical"!==r&&!v||void 0!==i.value.property||S.push(new fe(i.key,i.value,'"property" property is required')),S;function C(k){let D=[];const N=k.value,G=k.key;if("array"!==yt(N))return[new fe(G,N,`array expected, ${yt(N)} found`)];if(2!==N.length)return[new fe(G,N,`array length 2 expected, length ${N.length} found`)];if(v){if("object"!==yt(N[0]))return[new fe(G,N,`object expected, ${yt(N[0])} found`)];if(void 0===N[0].zoom)return[new fe(G,N,"object stop key must have zoom")];if(void 0===N[0].value)return[new fe(G,N,"object stop key must have value")];if(u&&u>Qt(N[0].zoom))return[new fe(G,N[0].zoom,"stop zoom values must appear in ascending order")];Qt(N[0].zoom)!==u&&(u=Qt(N[0].zoom),o=void 0,d={}),D=D.concat(br({key:`${G}[0]`,value:N[0],valueSpec:{zoom:{}},validateSpec:k.validateSpec,style:k.style,styleSpec:k.styleSpec,objectElementValidators:{zoom:Zn,value:M}}))}else D=D.concat(M({key:`${G}[0]`,value:N[0],valueSpec:{},validateSpec:k.validateSpec,style:k.style,styleSpec:k.styleSpec},N));return Un(xa(N[1]))?D.concat([new fe(`${G}[1]`,N[1],"expressions are not allowed in function stops.")]):D.concat(k.validateSpec({key:`${G}[1]`,value:N[1],valueSpec:e,validateSpec:k.validateSpec,style:k.style,styleSpec:k.styleSpec}))}function M(k,D){const N=yt(k.value),G=Qt(k.value),q=null!==k.value?k.value:D;if(n){if(N!==n)return[new fe(k.key,q,`${N} stop domain type must match previous stop domain type ${n}`)]}else n=N;if("number"!==N&&"string"!==N&&"boolean"!==N)return[new fe(k.key,q,"stop domain value must be a number, string, or boolean")];if("number"!==N&&"categorical"!==r){let Y=`number expected, ${N} found`;return Ua(e)&&void 0===r&&(Y+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new fe(k.key,q,Y)]}return"categorical"!==r||"number"!==N||isFinite(G)&&Math.floor(G)===G?"categorical"!==r&&"number"===N&&void 0!==o&&Gnew fe(`${i.key}${n.key}`,i.value,n.message));const r=e.value.expression||e.value._styleExpression.expression;if("property"===i.expressionContext&&"text-font"===i.propertyKey&&!r.outputDefined())return[new fe(i.key,i.value,`Invalid data expression for "${i.propertyKey}". Output values must be contained as literals within the expression.`)];if("property"===i.expressionContext&&"layout"===i.propertyType&&!nn(r))return[new fe(i.key,i.value,'"feature-state" data expressions are not supported with layout properties.')];if("filter"===i.expressionContext&&!nn(r))return[new fe(i.key,i.value,'"feature-state" data expressions are not supported with filters.')];if(i.expressionContext&&0===i.expressionContext.indexOf("cluster")){if(!sn(r,["zoom","feature-state"]))return[new fe(i.key,i.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if("cluster-initial"===i.expressionContext&&!kn(r))return[new fe(i.key,i.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function pn(i){const e=i.key,r=i.value,n=i.valueSpec,o=[];return Array.isArray(n.values)?-1===n.values.indexOf(Qt(r))&&o.push(new fe(e,r,`expected one of [${n.values.join(", ")}], ${JSON.stringify(r)} found`)):-1===Object.keys(n.values).indexOf(Qt(r))&&o.push(new fe(e,r,`expected one of [${Object.keys(n.values).join(", ")}], ${JSON.stringify(r)} found`)),o}function Gn(i){return Ss(xa(i.value))?$r(vi({},i,{expressionContext:"filter",valueSpec:{value:"boolean"}})):zo(i)}function zo(i){const e=i.value,r=i.key;if("array"!==yt(e))return[new fe(r,e,`array expected, ${yt(e)} found`)];const n=i.styleSpec;let o,u=[];if(e.length<1)return[new fe(r,e,"filter array must have at least 1 element")];switch(u=u.concat(pn({key:`${r}[0]`,value:e[0],valueSpec:n.filter_operator,style:i.style,styleSpec:i.styleSpec})),Qt(e[0])){case"<":case"<=":case">":case">=":e.length>=2&&"$type"===Qt(e[1])&&u.push(new fe(r,e,`"$type" cannot be use with operator "${e[0]}"`));case"==":case"!=":3!==e.length&&u.push(new fe(r,e,`filter array for operator "${e[0]}" must have 3 elements`));case"in":case"!in":e.length>=2&&(o=yt(e[1]),"string"!==o&&u.push(new fe(`${r}[1]`,e[1],`string expected, ${o} found`)));for(let d=2;d{v in r&&e.push(new fe(n,r[v],`"${v}" is prohibited for ref layers`))}),o.layers.forEach(v=>{Qt(v.id)===m&&(y=v)}),y?y.ref?e.push(new fe(n,r.ref,"ref cannot reference another ref layer")):d=Qt(y.type):e.push(new fe(n,r.ref,`ref layer "${m}" not found`))}else if("background"!==d)if(r.source){const y=o.sources&&o.sources[r.source],v=y&&Qt(y.type);y?"vector"===v&&"raster"===d?e.push(new fe(n,r.source,`layer "${r.id}" requires a raster source`)):"raster"===v&&"raster"!==d?e.push(new fe(n,r.source,`layer "${r.id}" requires a vector source`)):"vector"!==v||r["source-layer"]?"raster-dem"===v&&"hillshade"!==d?e.push(new fe(n,r.source,"raster-dem source can only be used with layer type 'hillshade'.")):"line"!==d||!r.paint||!r.paint["line-gradient"]||"geojson"===v&&y.lineMetrics||e.push(new fe(n,r,`layer "${r.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):e.push(new fe(n,r,`layer "${r.id}" must specify a "source-layer"`)):e.push(new fe(n,r.source,`source "${r.source}" not found`))}else e.push(new fe(n,r,'missing required property "source"'));return e=e.concat(br({key:n,value:r,valueSpec:u.layer,style:i.style,styleSpec:i.styleSpec,validateSpec:i.validateSpec,objectElementValidators:{"*":()=>[],type:()=>i.validateSpec({key:`${n}.type`,value:r.type,valueSpec:u.layer.type,style:i.style,styleSpec:i.styleSpec,validateSpec:i.validateSpec,object:r,objectKey:"type"}),filter:Gn,layout:y=>br({layer:r,key:y.key,value:y.value,style:y.style,styleSpec:y.styleSpec,validateSpec:y.validateSpec,objectElementValidators:{"*":v=>qn(vi({layerType:d},v))}}),paint:y=>br({layer:r,key:y.key,value:y.value,style:y.style,styleSpec:y.styleSpec,validateSpec:y.validateSpec,objectElementValidators:{"*":v=>dn(vi({layerType:d},v))}})}})),e}function va(i){const e=i.value,r=i.key,n=yt(e);return"string"!==n?[new fe(r,e,`string expected, ${n} found`)]:[]}const mn={promoteId:function({key:i,value:e}){if("string"===yt(e))return va({key:i,value:e});{const r=[];for(const n in e)r.push(...va({key:`${i}.${n}`,value:e[n]}));return r}}};function Po(i){const e=i.value,r=i.key,n=i.styleSpec,o=i.style,u=i.validateSpec;if(!e.type)return[new fe(r,e,'"type" is required')];const d=Qt(e.type);let m;switch(d){case"vector":case"raster":case"raster-dem":return m=br({key:r,value:e,valueSpec:n[`source_${d.replace("-","_")}`],style:i.style,styleSpec:n,objectElementValidators:mn,validateSpec:u}),m;case"geojson":if(m=br({key:r,value:e,valueSpec:n.source_geojson,style:o,styleSpec:n,validateSpec:u,objectElementValidators:mn}),e.cluster)for(const y in e.clusterProperties){const[v,S]=e.clusterProperties[y],C="string"==typeof v?[v,["accumulated"],["get",y]]:v;m.push(...$r({key:`${r}.${y}.map`,value:S,validateSpec:u,expressionContext:"cluster-map"})),m.push(...$r({key:`${r}.${y}.reduce`,value:C,validateSpec:u,expressionContext:"cluster-reduce"}))}return m;case"video":return br({key:r,value:e,valueSpec:n.source_video,style:o,validateSpec:u,styleSpec:n});case"image":return br({key:r,value:e,valueSpec:n.source_image,style:o,validateSpec:u,styleSpec:n});case"canvas":return[new fe(r,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return pn({key:`${r}.type`,value:e.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:o,validateSpec:u,styleSpec:n})}}function ko(i){const e=i.value,r=i.styleSpec,n=r.light,o=i.style;let u=[];const d=yt(e);if(void 0===e)return u;if("object"!==d)return u=u.concat([new fe("light",e,`object expected, ${d} found`)]),u;for(const m in e){const y=m.match(/^(.*)-transition$/);u=u.concat(y&&n[y[1]]&&n[y[1]].transition?i.validateSpec({key:m,value:e[m],valueSpec:r.transition,validateSpec:i.validateSpec,style:o,styleSpec:r}):n[m]?i.validateSpec({key:m,value:e[m],valueSpec:n[m],validateSpec:i.validateSpec,style:o,styleSpec:r}):[new fe(m,e[m],`unknown property "${m}"`)])}return u}function Lo(i){const e=i.value,r=i.styleSpec,n=r.terrain,o=i.style;let u=[];const d=yt(e);if(void 0===e)return u;if("object"!==d)return u=u.concat([new fe("terrain",e,`object expected, ${d} found`)]),u;for(const m in e)u=u.concat(n[m]?i.validateSpec({key:m,value:e[m],valueSpec:n[m],validateSpec:i.validateSpec,style:o,styleSpec:r}):[new fe(m,e[m],`unknown property "${m}"`)]);return u}function Do(i){let e=[];const r=i.value,n=i.key;if(Array.isArray(r)){const o=[],u=[];for(const d in r)r[d].id&&o.includes(r[d].id)&&e.push(new fe(n,r,`all the sprites' ids must be unique, but ${r[d].id} is duplicated`)),o.push(r[d].id),r[d].url&&u.includes(r[d].url)&&e.push(new fe(n,r,`all the sprites' URLs must be unique, but ${r[d].url} is duplicated`)),u.push(r[d].url),e=e.concat(br({key:`${n}[${d}]`,value:r[d],valueSpec:{id:{type:"string",required:!0},url:{type:"string",required:!0}},validateSpec:i.validateSpec}));return e}return va({key:n,value:r})}const Ro={"*":()=>[],array:As,boolean:function(i){const e=i.value,r=i.key,n=yt(e);return"boolean"!==n?[new fe(r,e,`boolean expected, ${n} found`)]:[]},number:Zn,color:function(i){const e=i.key,r=i.value,n=yt(r);return"string"!==n?[new fe(e,r,`color expected, ${n} found`)]:Ze.parse(String(r))?[]:[new fe(e,r,`color expected, "${r}" found`)]},constants:Mo,enum:pn,filter:Gn,function:Ms,layer:Xn,object:br,source:Po,light:ko,terrain:Lo,string:va,formatted:function(i){return 0===va(i).length?[]:$r(i)},resolvedImage:function(i){return 0===va(i).length?[]:$r(i)},padding:function(i){const e=i.key,r=i.value;if("array"===yt(r)){if(r.length<1||r.length>4)return[new fe(e,r,`padding requires 1 to 4 values; ${r.length} values found`)];const n={type:"number"};let o=[];for(let u=0;u[]}})),i.constants&&(r=r.concat(Mo({key:"constants",value:i.constants,style:i,styleSpec:e,validateSpec:ra}))),Bo(r)}function wr(i){return function(e){return i({...e,validateSpec:ra})}}function Bo(i){return[].concat(i).sort((e,r)=>e.line-r.line)}function Zr(i){return function(...e){return Bo(i.apply(this,e))}}ei.source=Zr(wr(Po)),ei.sprite=Zr(wr(Do)),ei.glyphs=Zr(wr(fn)),ei.light=Zr(wr(ko)),ei.terrain=Zr(wr(Lo)),ei.layer=Zr(wr(Xn)),ei.filter=Zr(wr(Gn)),ei.paintProperty=Zr(wr(dn)),ei.layoutProperty=Zr(wr(qn));const gn=ei,yn=gn.light,kl=gn.paintProperty,zs=gn.layoutProperty;function Fo(i,e){let r=!1;if(e&&e.length)for(const n of e)i.fire(new pt(new Error(n.message))),r=!0;return r}class ba{constructor(e,r,n){const o=this.cells=[];if(e instanceof ArrayBuffer){this.arrayBuffer=e;const d=new Int32Array(this.arrayBuffer);e=d[0],this.d=(r=d[1])+2*(n=d[2]);for(let y=0;y=C[D+0]&&o>=C[D+1])?(m[k]=!0,d.push(S[k])):m[k]=!1}}}}_forEachCell(e,r,n,o,u,d,m,y){const v=this._convertToCellCoord(e),S=this._convertToCellCoord(r),C=this._convertToCellCoord(n),M=this._convertToCellCoord(o);for(let k=v;k<=C;k++)for(let D=S;D<=M;D++){const N=this.d*D+k;if((!y||y(this._convertFromCellCoord(k),this._convertFromCellCoord(D),this._convertFromCellCoord(k+1),this._convertFromCellCoord(D+1)))&&u.call(this,e,r,n,o,N,d,m,y))return}}_convertFromCellCoord(e){return(e-this.padding)/this.scale}_convertToCellCoord(e){return Math.max(0,Math.min(this.d-1,Math.floor(e*this.scale)+this.padding))}toArrayBuffer(){if(this.arrayBuffer)return this.arrayBuffer;const e=this.cells,r=3+this.cells.length+1+1;let n=0;for(let d=0;d=0)continue;const d=i[u];o[u]=aa[n].shallow.indexOf(u)>=0?d:wa(d,e)}i instanceof Error&&(o.message=i.message)}if(o.$name)throw new Error("$name property is reserved for worker serialization logic.");return"Object"!==n&&(o.$name=n),o}throw new Error("can't serialize object of type "+typeof i)}function Va(i){if(null==i||"boolean"==typeof i||"number"==typeof i||"string"==typeof i||i instanceof Boolean||i instanceof Number||i instanceof String||i instanceof Date||i instanceof RegExp||i instanceof Blob||Oo(i)||ui(i)||ArrayBuffer.isView(i)||i instanceof ImageData)return i;if(Array.isArray(i))return i.map(Va);if("object"==typeof i){const e=i.$name||"Object";if(!aa[e])throw new Error(`can't deserialize unregistered class ${e}`);const{klass:r}=aa[e];if(!r)throw new Error(`can't deserialize unregistered class ${e}`);if(r.deserialize)return r.deserialize(i);const n=Object.create(r.prototype);for(const o of Object.keys(i)){if("$name"===o)continue;const u=i[o];n[o]=aa[e].shallow.indexOf(o)>=0?u:Va(u)}return n}throw new Error("can't deserialize object of type "+typeof i)}class Wn{constructor(){this.first=!0}update(e,r){const n=Math.floor(e);return this.first?(this.first=!1,this.lastIntegerZoom=n,this.lastIntegerZoomTime=0,this.lastZoom=e,this.lastFloorZoom=n,!0):(this.lastFloorZoom>n?(this.lastIntegerZoom=n+1,this.lastIntegerZoomTime=r):this.lastFloorZoomi>=128&&i<=255,Arabic:i=>i>=1536&&i<=1791,"Arabic Supplement":i=>i>=1872&&i<=1919,"Arabic Extended-A":i=>i>=2208&&i<=2303,"Hangul Jamo":i=>i>=4352&&i<=4607,"Unified Canadian Aboriginal Syllabics":i=>i>=5120&&i<=5759,Khmer:i=>i>=6016&&i<=6143,"Unified Canadian Aboriginal Syllabics Extended":i=>i>=6320&&i<=6399,"General Punctuation":i=>i>=8192&&i<=8303,"Letterlike Symbols":i=>i>=8448&&i<=8527,"Number Forms":i=>i>=8528&&i<=8591,"Miscellaneous Technical":i=>i>=8960&&i<=9215,"Control Pictures":i=>i>=9216&&i<=9279,"Optical Character Recognition":i=>i>=9280&&i<=9311,"Enclosed Alphanumerics":i=>i>=9312&&i<=9471,"Geometric Shapes":i=>i>=9632&&i<=9727,"Miscellaneous Symbols":i=>i>=9728&&i<=9983,"Miscellaneous Symbols and Arrows":i=>i>=11008&&i<=11263,"CJK Radicals Supplement":i=>i>=11904&&i<=12031,"Kangxi Radicals":i=>i>=12032&&i<=12255,"Ideographic Description Characters":i=>i>=12272&&i<=12287,"CJK Symbols and Punctuation":i=>i>=12288&&i<=12351,Hiragana:i=>i>=12352&&i<=12447,Katakana:i=>i>=12448&&i<=12543,Bopomofo:i=>i>=12544&&i<=12591,"Hangul Compatibility Jamo":i=>i>=12592&&i<=12687,Kanbun:i=>i>=12688&&i<=12703,"Bopomofo Extended":i=>i>=12704&&i<=12735,"CJK Strokes":i=>i>=12736&&i<=12783,"Katakana Phonetic Extensions":i=>i>=12784&&i<=12799,"Enclosed CJK Letters and Months":i=>i>=12800&&i<=13055,"CJK Compatibility":i=>i>=13056&&i<=13311,"CJK Unified Ideographs Extension A":i=>i>=13312&&i<=19903,"Yijing Hexagram Symbols":i=>i>=19904&&i<=19967,"CJK Unified Ideographs":i=>i>=19968&&i<=40959,"Yi Syllables":i=>i>=40960&&i<=42127,"Yi Radicals":i=>i>=42128&&i<=42191,"Hangul Jamo Extended-A":i=>i>=43360&&i<=43391,"Hangul Syllables":i=>i>=44032&&i<=55215,"Hangul Jamo Extended-B":i=>i>=55216&&i<=55295,"Private Use Area":i=>i>=57344&&i<=63743,"CJK Compatibility Ideographs":i=>i>=63744&&i<=64255,"Arabic Presentation Forms-A":i=>i>=64336&&i<=65023,"Vertical Forms":i=>i>=65040&&i<=65055,"CJK Compatibility Forms":i=>i>=65072&&i<=65103,"Small Form Variants":i=>i>=65104&&i<=65135,"Arabic Presentation Forms-B":i=>i>=65136&&i<=65279,"Halfwidth and Fullwidth Forms":i=>i>=65280&&i<=65519};function Hn(i){for(const e of i)if(Na(e.charCodeAt(0)))return!0;return!1}function Ll(i){for(const e of i)if(!Ps(e.charCodeAt(0)))return!1;return!0}function Ps(i){return!(ve.Arabic(i)||ve["Arabic Supplement"](i)||ve["Arabic Extended-A"](i)||ve["Arabic Presentation Forms-A"](i)||ve["Arabic Presentation Forms-B"](i))}function Na(i){return!(746!==i&&747!==i&&(i<4352||!(ve["Bopomofo Extended"](i)||ve.Bopomofo(i)||ve["CJK Compatibility Forms"](i)&&!(i>=65097&&i<=65103)||ve["CJK Compatibility Ideographs"](i)||ve["CJK Compatibility"](i)||ve["CJK Radicals Supplement"](i)||ve["CJK Strokes"](i)||!(!ve["CJK Symbols and Punctuation"](i)||i>=12296&&i<=12305||i>=12308&&i<=12319||12336===i)||ve["CJK Unified Ideographs Extension A"](i)||ve["CJK Unified Ideographs"](i)||ve["Enclosed CJK Letters and Months"](i)||ve["Hangul Compatibility Jamo"](i)||ve["Hangul Jamo Extended-A"](i)||ve["Hangul Jamo Extended-B"](i)||ve["Hangul Jamo"](i)||ve["Hangul Syllables"](i)||ve.Hiragana(i)||ve["Ideographic Description Characters"](i)||ve.Kanbun(i)||ve["Kangxi Radicals"](i)||ve["Katakana Phonetic Extensions"](i)||ve.Katakana(i)&&12540!==i||!(!ve["Halfwidth and Fullwidth Forms"](i)||65288===i||65289===i||65293===i||i>=65306&&i<=65310||65339===i||65341===i||65343===i||i>=65371&&i<=65503||65507===i||i>=65512&&i<=65519)||!(!ve["Small Form Variants"](i)||i>=65112&&i<=65118||i>=65123&&i<=65126)||ve["Unified Canadian Aboriginal Syllabics"](i)||ve["Unified Canadian Aboriginal Syllabics Extended"](i)||ve["Vertical Forms"](i)||ve["Yijing Hexagram Symbols"](i)||ve["Yi Syllables"](i)||ve["Yi Radicals"](i))))}function ks(i){return!(Na(i)||(e=i,ve["Latin-1 Supplement"](e)&&(167===e||169===e||174===e||177===e||188===e||189===e||190===e||215===e||247===e)||ve["General Punctuation"](e)&&(8214===e||8224===e||8225===e||8240===e||8241===e||8251===e||8252===e||8258===e||8263===e||8264===e||8265===e||8273===e)||ve["Letterlike Symbols"](e)||ve["Number Forms"](e)||ve["Miscellaneous Technical"](e)&&(e>=8960&&e<=8967||e>=8972&&e<=8991||e>=8996&&e<=9e3||9003===e||e>=9085&&e<=9114||e>=9150&&e<=9165||9167===e||e>=9169&&e<=9179||e>=9186&&e<=9215)||ve["Control Pictures"](e)&&9251!==e||ve["Optical Character Recognition"](e)||ve["Enclosed Alphanumerics"](e)||ve["Geometric Shapes"](e)||ve["Miscellaneous Symbols"](e)&&!(e>=9754&&e<=9759)||ve["Miscellaneous Symbols and Arrows"](e)&&(e>=11026&&e<=11055||e>=11088&&e<=11097||e>=11192&&e<=11243)||ve["CJK Symbols and Punctuation"](e)||ve.Katakana(e)||ve["Private Use Area"](e)||ve["CJK Compatibility Forms"](e)||ve["Small Form Variants"](e)||ve["Halfwidth and Fullwidth Forms"](e)||8734===e||8756===e||8757===e||e>=9984&&e<=10087||e>=10102&&e<=10131||65532===e||65533===e));var e}function Uo(i){return i>=1424&&i<=2303||ve["Arabic Presentation Forms-A"](i)||ve["Arabic Presentation Forms-B"](i)}function Vo(i,e){return!(!e&&Uo(i)||i>=2304&&i<=3583||i>=3840&&i<=4255||ve.Khmer(i))}function Dl(i){for(const e of i)if(Uo(e.charCodeAt(0)))return!0;return!1}const _n="deferred",Ls="loading",Ds="loaded";let Rs=null,Ki="unavailable",Gr=null;const No=function(i){i&&"string"==typeof i&&i.indexOf("NetworkError")>-1&&(Ki="error"),Rs&&Rs(i)};function Bs(){Fs.fire(new Le("pluginStateChange",{pluginStatus:Ki,pluginURL:Gr}))}const Fs=new ft,Os=function(){return Ki},$o=function(){if(Ki!==_n||!Gr)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");Ki=Ls,Bs(),Gr&&Lt({url:Gr},i=>{i?No(i):(Ki=Ds,Bs())})},Sr={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:()=>Ki===Ds||null!=Sr.applyArabicShaping,isLoading:()=>Ki===Ls,setState(i){if(!xt())throw new Error("Cannot set the state of the rtl-text-plugin when not in the web-worker context");Ki=i.pluginStatus,Gr=i.pluginURL},isParsed(){if(!xt())throw new Error("rtl-text-plugin is only parsed on the worker-threads");return null!=Sr.applyArabicShaping&&null!=Sr.processBidirectionalText&&null!=Sr.processStyledBidirectionalText},getPluginURL(){if(!xt())throw new Error("rtl-text-plugin url can only be queried from the worker threads");return Gr}};class Dt{constructor(e,r){this.zoom=e,r?(this.now=r.now,this.fadeDuration=r.fadeDuration,this.zoomHistory=r.zoomHistory,this.transition=r.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new Wn,this.transition={})}isSupportedScript(e){return function(r,n){for(const o of r)if(!Vo(o.charCodeAt(0),n))return!1;return!0}(e,Sr.isLoaded())}crossFadingFactor(){return 0===this.fadeDuration?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)}getCrossfadeParameters(){const e=this.zoom,r=e-Math.floor(e),n=this.crossFadingFactor();return e>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:r+(1-r)*n}:{fromScale:.5,toScale:1,t:1-(1-n)*r}}}class Sa{constructor(e,r){this.property=e,this.value=r,this.expression=function(n,o){if(On(n))return new _a(n,o);if(Un(n)){const u=Pt(n,o);if("error"===u.result)throw new Error(u.value.map(d=>`${d.key}: ${d.message}`).join(", "));return u.value}{let u=n;return"color"===o.type&&"string"==typeof n?u=Ze.parse(n):"padding"!==o.type||"number"!=typeof n&&!Array.isArray(n)?"variableAnchorOffsetCollection"===o.type&&Array.isArray(n)&&(u=Fi.parse(n)):u=lr.parse(n),{kind:"constant",evaluate:()=>u}}}(void 0===r?e.specification.default:r,e.specification)}isDataDriven(){return"source"===this.expression.kind||"composite"===this.expression.kind}possiblyEvaluate(e,r,n){return this.property.possiblyEvaluate(this,e,r,n)}}class Us{constructor(e){this.property=e,this.value=new Sa(e,void 0)}transitioned(e,r){return new Zo(this.property,this.value,r,Xt({},e.transition,this.transition),e.now)}untransitioned(){return new Zo(this.property,this.value,null,{},0)}}class Kn{constructor(e){this._properties=e,this._values=Object.create(e.defaultTransitionablePropertyValues)}getValue(e){return Ci(this._values[e].value.value)}setValue(e,r){Object.prototype.hasOwnProperty.call(this._values,e)||(this._values[e]=new Us(this._values[e].property)),this._values[e].value=new Sa(this._values[e].property,null===r?void 0:Ci(r))}getTransition(e){return Ci(this._values[e].transition)}setTransition(e,r){Object.prototype.hasOwnProperty.call(this._values,e)||(this._values[e]=new Us(this._values[e].property)),this._values[e].transition=Ci(r)||void 0}serialize(){const e={};for(const r of Object.keys(this._values)){const n=this.getValue(r);void 0!==n&&(e[r]=n);const o=this.getTransition(r);void 0!==o&&(e[`${r}-transition`]=o)}return e}transitioned(e,r){const n=new Go(this._properties);for(const o of Object.keys(this._values))n._values[o]=this._values[o].transitioned(e,r._values[o]);return n}untransitioned(){const e=new Go(this._properties);for(const r of Object.keys(this._values))e._values[r]=this._values[r].untransitioned();return e}}class Zo{constructor(e,r,n,o,u){this.property=e,this.value=r,this.begin=u+o.delay||0,this.end=this.begin+o.duration||0,e.specification.transition&&(o.delay||o.duration)&&(this.prior=n)}possiblyEvaluate(e,r,n){const o=e.now||0,u=this.value.possiblyEvaluate(e,r,n),d=this.prior;if(d){if(o>this.end)return this.prior=null,u;if(this.value.isDataDriven())return this.prior=null,u;if(o=1)return 1;const v=y*y,S=v*y;return 4*(y<.5?S:3*(y-v)+S-.75)}(m))}}return u}}class Go{constructor(e){this._properties=e,this._values=Object.create(e.defaultTransitioningPropertyValues)}possiblyEvaluate(e,r,n){const o=new Yn(this._properties);for(const u of Object.keys(this._values))o._values[u]=this._values[u].possiblyEvaluate(e,r,n);return o}hasTransition(){for(const e of Object.keys(this._values))if(this._values[e].prior)return!0;return!1}}class jo{constructor(e){this._properties=e,this._values=Object.create(e.defaultPropertyValues)}hasValue(e){return void 0!==this._values[e].value}getValue(e){return Ci(this._values[e].value)}setValue(e,r){this._values[e]=new Sa(this._values[e].property,null===r?void 0:Ci(r))}serialize(){const e={};for(const r of Object.keys(this._values)){const n=this.getValue(r);void 0!==n&&(e[r]=n)}return e}possiblyEvaluate(e,r,n){const o=new Yn(this._properties);for(const u of Object.keys(this._values))o._values[u]=this._values[u].possiblyEvaluate(e,r,n);return o}}class Cr{constructor(e,r,n){this.property=e,this.value=r,this.parameters=n}isConstant(){return"constant"===this.value.kind}constantOr(e){return"constant"===this.value.kind?this.value.value:e}evaluate(e,r,n,o){return this.property.evaluate(this.value,this.parameters,e,r,n,o)}}class Yn{constructor(e){this._properties=e,this._values=Object.create(e.defaultPossiblyEvaluatedValues)}get(e){return this._values[e]}}class De{constructor(e){this.specification=e}possiblyEvaluate(e,r){if(e.isDataDriven())throw new Error("Value should not be data driven");return e.expression.evaluate(r)}interpolate(e,r,n){const o=hr[this.specification.type];return o?o(e,r,n):e}}class Ve{constructor(e,r){this.specification=e,this.overrides=r}possiblyEvaluate(e,r,n,o){return new Cr(this,"constant"===e.expression.kind||"camera"===e.expression.kind?{kind:"constant",value:e.expression.evaluate(r,null,{},n,o)}:e.expression,r)}interpolate(e,r,n){if("constant"!==e.value.kind||"constant"!==r.value.kind)return e;if(void 0===e.value.value||void 0===r.value.value)return new Cr(this,{kind:"constant",value:void 0},e.parameters);const o=hr[this.specification.type];if(o){const u=o(e.value.value,r.value.value,n);return new Cr(this,{kind:"constant",value:u},e.parameters)}return e}evaluate(e,r,n,o,u,d){return"constant"===e.kind?e.value:e.evaluate(r,n,o,u,d)}}class Jn extends Ve{possiblyEvaluate(e,r,n,o){if(void 0===e.value)return new Cr(this,{kind:"constant",value:void 0},r);if("constant"===e.expression.kind){const u=e.expression.evaluate(r,null,{},n,o),d="resolvedImage"===e.property.specification.type&&"string"!=typeof u?u.name:u,m=this._calculate(d,d,d,r);return new Cr(this,{kind:"constant",value:m},r)}if("camera"===e.expression.kind){const u=this._calculate(e.expression.evaluate({zoom:r.zoom-1}),e.expression.evaluate({zoom:r.zoom}),e.expression.evaluate({zoom:r.zoom+1}),r);return new Cr(this,{kind:"constant",value:u},r)}return new Cr(this,e.expression,r)}evaluate(e,r,n,o,u,d){if("source"===e.kind){const m=e.evaluate(r,n,o,u,d);return this._calculate(m,m,m,r)}return"composite"===e.kind?this._calculate(e.evaluate({zoom:Math.floor(r.zoom)-1},n,o),e.evaluate({zoom:Math.floor(r.zoom)},n,o),e.evaluate({zoom:Math.floor(r.zoom)+1},n,o),r):e.value}_calculate(e,r,n,o){return o.zoom>o.zoomHistory.lastIntegerZoom?{from:e,to:r}:{from:n,to:r}}interpolate(e){return e}}class Vs{constructor(e){this.specification=e}possiblyEvaluate(e,r,n,o){if(void 0!==e.value){if("constant"===e.expression.kind){const u=e.expression.evaluate(r,null,{},n,o);return this._calculate(u,u,u,r)}return this._calculate(e.expression.evaluate(new Dt(Math.floor(r.zoom-1),r)),e.expression.evaluate(new Dt(Math.floor(r.zoom),r)),e.expression.evaluate(new Dt(Math.floor(r.zoom+1),r)),r)}}_calculate(e,r,n,o){return o.zoom>o.zoomHistory.lastIntegerZoom?{from:e,to:r}:{from:n,to:r}}interpolate(e){return e}}class Ns{constructor(e){this.specification=e}possiblyEvaluate(e,r,n,o){return!!e.expression.evaluate(r,null,{},n,o)}interpolate(){return!1}}class gi{constructor(e){this.properties=e,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(const r in e){const n=e[r];n.specification.overridable&&this.overridableProperties.push(r);const o=this.defaultPropertyValues[r]=new Sa(n,void 0),u=this.defaultTransitionablePropertyValues[r]=new Us(n);this.defaultTransitioningPropertyValues[r]=u.untransitioned(),this.defaultPossiblyEvaluatedValues[r]=o.possiblyEvaluate({})}}}Ee("DataDrivenProperty",Ve),Ee("DataConstantProperty",De),Ee("CrossFadedDataDrivenProperty",Jn),Ee("CrossFadedProperty",Vs),Ee("ColorRampProperty",Ns);const qo="-transition";class Fr extends ft{constructor(e,r){if(super(),this.id=e.id,this.type=e.type,this._featureFilter={filter:()=>!0,needGeometry:!1},"custom"!==e.type&&(this.metadata=e.metadata,this.minzoom=e.minzoom,this.maxzoom=e.maxzoom,"background"!==e.type&&(this.source=e.source,this.sourceLayer=e["source-layer"],this.filter=e.filter),r.layout&&(this._unevaluatedLayout=new jo(r.layout)),r.paint)){this._transitionablePaint=new Kn(r.paint);for(const n in e.paint)this.setPaintProperty(n,e.paint[n],{validate:!1});for(const n in e.layout)this.setLayoutProperty(n,e.layout[n],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Yn(r.paint)}}getCrossfadeParameters(){return this._crossfadeParameters}getLayoutProperty(e){return"visibility"===e?this.visibility:this._unevaluatedLayout.getValue(e)}setLayoutProperty(e,r,n={}){null!=r&&this._validate(zs,`layers.${this.id}.layout.${e}`,e,r,n)||("visibility"!==e?this._unevaluatedLayout.setValue(e,r):this.visibility=r)}getPaintProperty(e){return e.endsWith(qo)?this._transitionablePaint.getTransition(e.slice(0,-11)):this._transitionablePaint.getValue(e)}setPaintProperty(e,r,n={}){if(null!=r&&this._validate(kl,`layers.${this.id}.paint.${e}`,e,r,n))return!1;if(e.endsWith(qo))return this._transitionablePaint.setTransition(e.slice(0,-11),r||void 0),!1;{const o=this._transitionablePaint._values[e],u="cross-faded-data-driven"===o.property.specification["property-type"],d=o.value.isDataDriven(),m=o.value;this._transitionablePaint.setValue(e,r),this._handleSpecialPaintPropertyUpdate(e);const y=this._transitionablePaint._values[e].value;return y.isDataDriven()||d||u||this._handleOverridablePaintPropertyUpdate(e,m,y)}}_handleSpecialPaintPropertyUpdate(e){}_handleOverridablePaintPropertyUpdate(e,r,n){return!1}isHidden(e){return!!(this.minzoom&&e=this.maxzoom)||"none"===this.visibility}updateTransitions(e){this._transitioningPaint=this._transitionablePaint.transitioned(e,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculate(e,r){e.getCrossfadeParameters&&(this._crossfadeParameters=e.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(e,void 0,r)),this.paint=this._transitioningPaint.possiblyEvaluate(e,void 0,r)}serialize(){const e={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(e.layout=e.layout||{},e.layout.visibility=this.visibility),nr(e,(r,n)=>!(void 0===r||"layout"===n&&!Object.keys(r).length||"paint"===n&&!Object.keys(r).length))}_validate(e,r,n,o,u={}){return(!u||!1!==u.validate)&&Fo(this,e.call(gn,{key:r,layerType:this.type,objectKey:n,value:o,styleSpec:Q,style:{glyphs:!0,sprite:!0}}))}is3D(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}resize(){}isStateDependent(){for(const e in this.paint._values){const r=this.paint.get(e);if(r instanceof Cr&&Ua(r.property.specification)&&("source"===r.value.kind||"composite"===r.value.kind)&&r.value.isStateDependent)return!0}return!1}}const Rl={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array};class $a{constructor(e,r){this._structArray=e,this._pos1=r*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}}class Nt{constructor(){this.isTransferred=!1,this.capacity=-1,this.resize(0)}static serialize(e,r){return e._trim(),r&&(e.isTransferred=!0,r.push(e.arrayBuffer)),{length:e.length,arrayBuffer:e.arrayBuffer}}static deserialize(e){const r=Object.create(this.prototype);return r.arrayBuffer=e.arrayBuffer,r.length=e.length,r.capacity=e.arrayBuffer.byteLength/r.bytesPerElement,r._refreshViews(),r}_trim(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())}clear(){this.length=0}resize(e){this.reserve(e),this.length=e}reserve(e){if(e>this.capacity){this.capacity=Math.max(e,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);const r=this.uint8;this._refreshViews(),r&&this.uint8.set(r)}}_refreshViews(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")}}function ti(i,e=1){let r=0,n=0;return{members:i.map(o=>{const u=Rl[o.type].BYTES_PER_ELEMENT,d=r=jr(r,Math.max(e,u)),m=o.components||1;return n=Math.max(n,u),r+=u*m,{name:o.name,type:o.type,components:m,offset:d}}),size:jr(r,Math.max(n,e)),alignment:e}}function jr(i,e){return Math.ceil(i/e)*e}class Za extends Nt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,r){const n=this.length;return this.resize(n+1),this.emplace(n,e,r)}emplace(e,r,n){const o=2*e;return this.int16[o+0]=r,this.int16[o+1]=n,e}}Za.prototype.bytesPerElement=4,Ee("StructArrayLayout2i4",Za);class Ga extends Nt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,r,n){const o=this.length;return this.resize(o+1),this.emplace(o,e,r,n)}emplace(e,r,n,o){const u=3*e;return this.int16[u+0]=r,this.int16[u+1]=n,this.int16[u+2]=o,e}}Ga.prototype.bytesPerElement=6,Ee("StructArrayLayout3i6",Ga);class Qn extends Nt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,r,n,o){const u=this.length;return this.resize(u+1),this.emplace(u,e,r,n,o)}emplace(e,r,n,o,u){const d=4*e;return this.int16[d+0]=r,this.int16[d+1]=n,this.int16[d+2]=o,this.int16[d+3]=u,e}}Qn.prototype.bytesPerElement=8,Ee("StructArrayLayout4i8",Qn);class xn extends Nt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,r,n,o,u,d){const m=this.length;return this.resize(m+1),this.emplace(m,e,r,n,o,u,d)}emplace(e,r,n,o,u,d,m){const y=6*e;return this.int16[y+0]=r,this.int16[y+1]=n,this.int16[y+2]=o,this.int16[y+3]=u,this.int16[y+4]=d,this.int16[y+5]=m,e}}xn.prototype.bytesPerElement=12,Ee("StructArrayLayout2i4i12",xn);class $s extends Nt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,r,n,o,u,d){const m=this.length;return this.resize(m+1),this.emplace(m,e,r,n,o,u,d)}emplace(e,r,n,o,u,d,m){const y=4*e,v=8*e;return this.int16[y+0]=r,this.int16[y+1]=n,this.uint8[v+4]=o,this.uint8[v+5]=u,this.uint8[v+6]=d,this.uint8[v+7]=m,e}}$s.prototype.bytesPerElement=8,Ee("StructArrayLayout2i4ub8",$s);class na extends Nt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,r){const n=this.length;return this.resize(n+1),this.emplace(n,e,r)}emplace(e,r,n){const o=2*e;return this.float32[o+0]=r,this.float32[o+1]=n,e}}na.prototype.bytesPerElement=8,Ee("StructArrayLayout2f8",na);class Ea extends Nt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,r,n,o,u,d,m,y,v,S){const C=this.length;return this.resize(C+1),this.emplace(C,e,r,n,o,u,d,m,y,v,S)}emplace(e,r,n,o,u,d,m,y,v,S,C){const M=10*e;return this.uint16[M+0]=r,this.uint16[M+1]=n,this.uint16[M+2]=o,this.uint16[M+3]=u,this.uint16[M+4]=d,this.uint16[M+5]=m,this.uint16[M+6]=y,this.uint16[M+7]=v,this.uint16[M+8]=S,this.uint16[M+9]=C,e}}Ea.prototype.bytesPerElement=20,Ee("StructArrayLayout10ui20",Ea);class Zs extends Nt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,r,n,o,u,d,m,y,v,S,C,M){const k=this.length;return this.resize(k+1),this.emplace(k,e,r,n,o,u,d,m,y,v,S,C,M)}emplace(e,r,n,o,u,d,m,y,v,S,C,M,k){const D=12*e;return this.int16[D+0]=r,this.int16[D+1]=n,this.int16[D+2]=o,this.int16[D+3]=u,this.uint16[D+4]=d,this.uint16[D+5]=m,this.uint16[D+6]=y,this.uint16[D+7]=v,this.int16[D+8]=S,this.int16[D+9]=C,this.int16[D+10]=M,this.int16[D+11]=k,e}}Zs.prototype.bytesPerElement=24,Ee("StructArrayLayout4i4ui4i24",Zs);class es extends Nt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,r,n){const o=this.length;return this.resize(o+1),this.emplace(o,e,r,n)}emplace(e,r,n,o){const u=3*e;return this.float32[u+0]=r,this.float32[u+1]=n,this.float32[u+2]=o,e}}es.prototype.bytesPerElement=12,Ee("StructArrayLayout3f12",es);class Ta extends Nt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(e){const r=this.length;return this.resize(r+1),this.emplace(r,e)}emplace(e,r){return this.uint32[1*e+0]=r,e}}Ta.prototype.bytesPerElement=4,Ee("StructArrayLayout1ul4",Ta);class Gs extends Nt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,r,n,o,u,d,m,y,v){const S=this.length;return this.resize(S+1),this.emplace(S,e,r,n,o,u,d,m,y,v)}emplace(e,r,n,o,u,d,m,y,v,S){const C=10*e,M=5*e;return this.int16[C+0]=r,this.int16[C+1]=n,this.int16[C+2]=o,this.int16[C+3]=u,this.int16[C+4]=d,this.int16[C+5]=m,this.uint32[M+3]=y,this.uint16[C+8]=v,this.uint16[C+9]=S,e}}Gs.prototype.bytesPerElement=20,Ee("StructArrayLayout6i1ul2ui20",Gs);class js extends Nt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,r,n,o,u,d){const m=this.length;return this.resize(m+1),this.emplace(m,e,r,n,o,u,d)}emplace(e,r,n,o,u,d,m){const y=6*e;return this.int16[y+0]=r,this.int16[y+1]=n,this.int16[y+2]=o,this.int16[y+3]=u,this.int16[y+4]=d,this.int16[y+5]=m,e}}js.prototype.bytesPerElement=12,Ee("StructArrayLayout2i2i2i12",js);class ts extends Nt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,r,n,o,u){const d=this.length;return this.resize(d+1),this.emplace(d,e,r,n,o,u)}emplace(e,r,n,o,u,d){const m=4*e,y=8*e;return this.float32[m+0]=r,this.float32[m+1]=n,this.float32[m+2]=o,this.int16[y+6]=u,this.int16[y+7]=d,e}}ts.prototype.bytesPerElement=16,Ee("StructArrayLayout2f1f2i16",ts);class qs extends Nt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,r,n,o){const u=this.length;return this.resize(u+1),this.emplace(u,e,r,n,o)}emplace(e,r,n,o,u){const d=12*e,m=3*e;return this.uint8[d+0]=r,this.uint8[d+1]=n,this.float32[m+1]=o,this.float32[m+2]=u,e}}qs.prototype.bytesPerElement=12,Ee("StructArrayLayout2ub2f12",qs);class is extends Nt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,r,n){const o=this.length;return this.resize(o+1),this.emplace(o,e,r,n)}emplace(e,r,n,o){const u=3*e;return this.uint16[u+0]=r,this.uint16[u+1]=n,this.uint16[u+2]=o,e}}is.prototype.bytesPerElement=6,Ee("StructArrayLayout3ui6",is);class gt extends Nt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,r,n,o,u,d,m,y,v,S,C,M,k,D,N,G,q){const Y=this.length;return this.resize(Y+1),this.emplace(Y,e,r,n,o,u,d,m,y,v,S,C,M,k,D,N,G,q)}emplace(e,r,n,o,u,d,m,y,v,S,C,M,k,D,N,G,q,Y){const X=24*e,J=12*e,ie=48*e;return this.int16[X+0]=r,this.int16[X+1]=n,this.uint16[X+2]=o,this.uint16[X+3]=u,this.uint32[J+2]=d,this.uint32[J+3]=m,this.uint32[J+4]=y,this.uint16[X+10]=v,this.uint16[X+11]=S,this.uint16[X+12]=C,this.float32[J+7]=M,this.float32[J+8]=k,this.uint8[ie+36]=D,this.uint8[ie+37]=N,this.uint8[ie+38]=G,this.uint32[J+10]=q,this.int16[X+22]=Y,e}}gt.prototype.bytesPerElement=48,Ee("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",gt);class h extends Nt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,r,n,o,u,d,m,y,v,S,C,M,k,D,N,G,q,Y,X,J,ie,le,be,Pe,xe,_e,me,Ie){const ge=this.length;return this.resize(ge+1),this.emplace(ge,e,r,n,o,u,d,m,y,v,S,C,M,k,D,N,G,q,Y,X,J,ie,le,be,Pe,xe,_e,me,Ie)}emplace(e,r,n,o,u,d,m,y,v,S,C,M,k,D,N,G,q,Y,X,J,ie,le,be,Pe,xe,_e,me,Ie,ge){const ue=32*e,Oe=16*e;return this.int16[ue+0]=r,this.int16[ue+1]=n,this.int16[ue+2]=o,this.int16[ue+3]=u,this.int16[ue+4]=d,this.int16[ue+5]=m,this.int16[ue+6]=y,this.int16[ue+7]=v,this.uint16[ue+8]=S,this.uint16[ue+9]=C,this.uint16[ue+10]=M,this.uint16[ue+11]=k,this.uint16[ue+12]=D,this.uint16[ue+13]=N,this.uint16[ue+14]=G,this.uint16[ue+15]=q,this.uint16[ue+16]=Y,this.uint16[ue+17]=X,this.uint16[ue+18]=J,this.uint16[ue+19]=ie,this.uint16[ue+20]=le,this.uint16[ue+21]=be,this.uint16[ue+22]=Pe,this.uint32[Oe+12]=xe,this.float32[Oe+13]=_e,this.float32[Oe+14]=me,this.uint16[ue+30]=Ie,this.uint16[ue+31]=ge,e}}h.prototype.bytesPerElement=64,Ee("StructArrayLayout8i15ui1ul2f2ui64",h);class t extends Nt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e){const r=this.length;return this.resize(r+1),this.emplace(r,e)}emplace(e,r){return this.float32[1*e+0]=r,e}}t.prototype.bytesPerElement=4,Ee("StructArrayLayout1f4",t);class a extends Nt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,r,n){const o=this.length;return this.resize(o+1),this.emplace(o,e,r,n)}emplace(e,r,n,o){const u=3*e;return this.uint16[6*e+0]=r,this.float32[u+1]=n,this.float32[u+2]=o,e}}a.prototype.bytesPerElement=12,Ee("StructArrayLayout1ui2f12",a);class s extends Nt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,r,n){const o=this.length;return this.resize(o+1),this.emplace(o,e,r,n)}emplace(e,r,n,o){const u=4*e;return this.uint32[2*e+0]=r,this.uint16[u+2]=n,this.uint16[u+3]=o,e}}s.prototype.bytesPerElement=8,Ee("StructArrayLayout1ul2ui8",s);class l extends Nt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,r){const n=this.length;return this.resize(n+1),this.emplace(n,e,r)}emplace(e,r,n){const o=2*e;return this.uint16[o+0]=r,this.uint16[o+1]=n,e}}l.prototype.bytesPerElement=4,Ee("StructArrayLayout2ui4",l);class p extends Nt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e){const r=this.length;return this.resize(r+1),this.emplace(r,e)}emplace(e,r){return this.uint16[1*e+0]=r,e}}p.prototype.bytesPerElement=2,Ee("StructArrayLayout1ui2",p);class f extends Nt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,r,n,o){const u=this.length;return this.resize(u+1),this.emplace(u,e,r,n,o)}emplace(e,r,n,o,u){const d=4*e;return this.float32[d+0]=r,this.float32[d+1]=n,this.float32[d+2]=o,this.float32[d+3]=u,e}}f.prototype.bytesPerElement=16,Ee("StructArrayLayout4f16",f);class g extends $a{get anchorPointX(){return this._structArray.int16[this._pos2+0]}get anchorPointY(){return this._structArray.int16[this._pos2+1]}get x1(){return this._structArray.int16[this._pos2+2]}get y1(){return this._structArray.int16[this._pos2+3]}get x2(){return this._structArray.int16[this._pos2+4]}get y2(){return this._structArray.int16[this._pos2+5]}get featureIndex(){return this._structArray.uint32[this._pos4+3]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+8]}get bucketIndex(){return this._structArray.uint16[this._pos2+9]}get anchorPoint(){return new Be(this.anchorPointX,this.anchorPointY)}}g.prototype.size=20;class _ extends Gs{get(e){return new g(this,e)}}Ee("CollisionBoxArray",_);class b extends $a{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get glyphStartIndex(){return this._structArray.uint16[this._pos2+2]}get numGlyphs(){return this._structArray.uint16[this._pos2+3]}get vertexStartIndex(){return this._structArray.uint32[this._pos4+2]}get lineStartIndex(){return this._structArray.uint32[this._pos4+3]}get lineLength(){return this._structArray.uint32[this._pos4+4]}get segment(){return this._structArray.uint16[this._pos2+10]}get lowerSize(){return this._structArray.uint16[this._pos2+11]}get upperSize(){return this._structArray.uint16[this._pos2+12]}get lineOffsetX(){return this._structArray.float32[this._pos4+7]}get lineOffsetY(){return this._structArray.float32[this._pos4+8]}get writingMode(){return this._structArray.uint8[this._pos1+36]}get placedOrientation(){return this._structArray.uint8[this._pos1+37]}set placedOrientation(e){this._structArray.uint8[this._pos1+37]=e}get hidden(){return this._structArray.uint8[this._pos1+38]}set hidden(e){this._structArray.uint8[this._pos1+38]=e}get crossTileID(){return this._structArray.uint32[this._pos4+10]}set crossTileID(e){this._structArray.uint32[this._pos4+10]=e}get associatedIconIndex(){return this._structArray.int16[this._pos2+22]}}b.prototype.size=48;class w extends gt{get(e){return new b(this,e)}}Ee("PlacedSymbolArray",w);class E extends $a{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get rightJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+2]}get centerJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+3]}get leftJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+4]}get verticalPlacedTextSymbolIndex(){return this._structArray.int16[this._pos2+5]}get placedIconSymbolIndex(){return this._structArray.int16[this._pos2+6]}get verticalPlacedIconSymbolIndex(){return this._structArray.int16[this._pos2+7]}get key(){return this._structArray.uint16[this._pos2+8]}get textBoxStartIndex(){return this._structArray.uint16[this._pos2+9]}get textBoxEndIndex(){return this._structArray.uint16[this._pos2+10]}get verticalTextBoxStartIndex(){return this._structArray.uint16[this._pos2+11]}get verticalTextBoxEndIndex(){return this._structArray.uint16[this._pos2+12]}get iconBoxStartIndex(){return this._structArray.uint16[this._pos2+13]}get iconBoxEndIndex(){return this._structArray.uint16[this._pos2+14]}get verticalIconBoxStartIndex(){return this._structArray.uint16[this._pos2+15]}get verticalIconBoxEndIndex(){return this._structArray.uint16[this._pos2+16]}get featureIndex(){return this._structArray.uint16[this._pos2+17]}get numHorizontalGlyphVertices(){return this._structArray.uint16[this._pos2+18]}get numVerticalGlyphVertices(){return this._structArray.uint16[this._pos2+19]}get numIconVertices(){return this._structArray.uint16[this._pos2+20]}get numVerticalIconVertices(){return this._structArray.uint16[this._pos2+21]}get useRuntimeCollisionCircles(){return this._structArray.uint16[this._pos2+22]}get crossTileID(){return this._structArray.uint32[this._pos4+12]}set crossTileID(e){this._structArray.uint32[this._pos4+12]=e}get textBoxScale(){return this._structArray.float32[this._pos4+13]}get collisionCircleDiameter(){return this._structArray.float32[this._pos4+14]}get textAnchorOffsetStartIndex(){return this._structArray.uint16[this._pos2+30]}get textAnchorOffsetEndIndex(){return this._structArray.uint16[this._pos2+31]}}E.prototype.size=64;class P extends h{get(e){return new E(this,e)}}Ee("SymbolInstanceArray",P);class V extends t{getoffsetX(e){return this.float32[1*e+0]}}Ee("GlyphOffsetArray",V);class U extends Ga{getx(e){return this.int16[3*e+0]}gety(e){return this.int16[3*e+1]}gettileUnitDistanceFromAnchor(e){return this.int16[3*e+2]}}Ee("SymbolLineVertexArray",U);class Z extends $a{get textAnchor(){return this._structArray.uint16[this._pos2+0]}get textOffset0(){return this._structArray.float32[this._pos4+1]}get textOffset1(){return this._structArray.float32[this._pos4+2]}}Z.prototype.size=12;class O extends a{get(e){return new Z(this,e)}}Ee("TextAnchorOffsetArray",O);class W extends $a{get featureIndex(){return this._structArray.uint32[this._pos4+0]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+2]}get bucketIndex(){return this._structArray.uint16[this._pos2+3]}}W.prototype.size=8;class te extends s{get(e){return new W(this,e)}}Ee("FeatureIndexArray",te);class j extends Za{}class K extends Za{}class ne extends Za{}class se extends xn{}class oe extends $s{}class he extends na{}class ce extends Ea{}class pe extends Zs{}class ze extends es{}class at extends Ta{}class ye extends js{}class Ne extends qs{}class Ae extends is{}class Mt extends l{}const et=ti([{name:"a_pos",components:2,type:"Int16"}],4),{members:Ye}=et;class $e{constructor(e=[]){this.segments=e}prepareSegment(e,r,n,o){let u=this.segments[this.segments.length-1];return e>$e.MAX_VERTEX_ARRAY_LENGTH&&Me(`Max vertices per segment is ${$e.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${e}`),(!u||u.vertexLength+e>$e.MAX_VERTEX_ARRAY_LENGTH||u.sortKey!==o)&&(u={vertexOffset:r.length,primitiveOffset:n.length,vertexLength:0,primitiveLength:0},void 0!==o&&(u.sortKey=o),this.segments.push(u)),u}get(){return this.segments}destroy(){for(const e of this.segments)for(const r in e.vaos)e.vaos[r].destroy()}static simpleSegment(e,r,n,o){return new $e([{vertexOffset:e,primitiveOffset:r,vertexLength:n,primitiveLength:o,vaos:{},sortKey:0}])}}function Gt(i,e){return 256*(i=Et(Math.floor(i),0,255))+Et(Math.floor(e),0,255)}$e.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,Ee("SegmentVector",$e);const wt=ti([{name:"a_pattern_from",components:4,type:"Uint16"},{name:"a_pattern_to",components:4,type:"Uint16"},{name:"a_pixel_ratio_from",components:1,type:"Uint16"},{name:"a_pixel_ratio_to",components:1,type:"Uint16"}]);var ji={exports:{}},Ar=function(i,e){var r,n,o,u,d,m,y,v;for(n=i.length-(r=3&i.length),o=e,d=3432918353,m=461845907,v=0;v>>16)*d&65535)<<16)&4294967295)<<15|y>>>17))*m+(((y>>>16)*m&65535)<<16)&4294967295)<<13|o>>>19))+((5*(o>>>16)&65535)<<16)&4294967295))+((58964+(u>>>16)&65535)<<16);switch(y=0,r){case 3:y^=(255&i.charCodeAt(v+2))<<16;case 2:y^=(255&i.charCodeAt(v+1))<<8;case 1:o^=y=(65535&(y=(y=(65535&(y^=255&i.charCodeAt(v)))*d+(((y>>>16)*d&65535)<<16)&4294967295)<<15|y>>>17))*m+(((y>>>16)*m&65535)<<16)&4294967295}return o^=i.length,o=2246822507*(65535&(o^=o>>>16))+((2246822507*(o>>>16)&65535)<<16)&4294967295,o=3266489909*(65535&(o^=o>>>13))+((3266489909*(o>>>16)&65535)<<16)&4294967295,(o^=o>>>16)>>>0},qr=function(i,e){for(var r,n=i.length,o=e^n,u=0;n>=4;)r=1540483477*(65535&(r=255&i.charCodeAt(u)|(255&i.charCodeAt(++u))<<8|(255&i.charCodeAt(++u))<<16|(255&i.charCodeAt(++u))<<24))+((1540483477*(r>>>16)&65535)<<16),o=1540483477*(65535&o)+((1540483477*(o>>>16)&65535)<<16)^(r=1540483477*(65535&(r^=r>>>24))+((1540483477*(r>>>16)&65535)<<16)),n-=4,++u;switch(n){case 3:o^=(255&i.charCodeAt(u+2))<<16;case 2:o^=(255&i.charCodeAt(u+1))<<8;case 1:o=1540483477*(65535&(o^=255&i.charCodeAt(u)))+((1540483477*(o>>>16)&65535)<<16)}return o=1540483477*(65535&(o^=o>>>13))+((1540483477*(o>>>16)&65535)<<16),(o^=o>>>15)>>>0};ji.exports=Ar,ji.exports.murmur3=Ar,ji.exports.murmur2=qr;var Xr=ut(ji.exports);class sa{constructor(){this.ids=[],this.positions=[],this.indexed=!1}add(e,r,n,o){this.ids.push(Ia(e)),this.positions.push(r,n,o)}getPositions(e){if(!this.indexed)throw new Error("Trying to get index, but feature positions are not indexed");const r=Ia(e);let n=0,o=this.ids.length-1;for(;n>1;this.ids[d]>=r?o=d:n=d+1}const u=[];for(;this.ids[n]===r;)u.push({index:this.positions[3*n],start:this.positions[3*n+1],end:this.positions[3*n+2]}),n++;return u}static serialize(e,r){const n=new Float64Array(e.ids),o=new Uint32Array(e.positions);return oa(n,o,0,n.length-1),r&&r.push(n.buffer,o.buffer),{ids:n,positions:o}}static deserialize(e){const r=new sa;return r.ids=e.ids,r.positions=e.positions,r.indexed=!0,r}}function Ia(i){const e=+i;return!isNaN(e)&&e<=Number.MAX_SAFE_INTEGER?e:Xr(String(i))}function oa(i,e,r,n){for(;r>1];let u=r-1,d=n+1;for(;;){do{u++}while(i[u]o);if(u>=d)break;Si(i,u,d),Si(e,3*u,3*d),Si(e,3*u+1,3*d+1),Si(e,3*u+2,3*d+2)}d-r`u_${o}`),this.type=n}setUniform(e,r,n){e.set(n.constantOr(this.value))}getBinding(e,r,n){return"color"===this.type?new oi(e,r):new Ei(e,r)}}class qa{constructor(e,r){this.uniformNames=r.map(n=>`u_${n}`),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1}setConstantPatternPositions(e,r){this.pixelRatioFrom=r.pixelRatio,this.pixelRatioTo=e.pixelRatio,this.patternFrom=r.tlbr,this.patternTo=e.tlbr}setUniform(e,r,n,o){const u="u_pattern_to"===o?this.patternTo:"u_pattern_from"===o?this.patternFrom:"u_pixel_ratio_to"===o?this.pixelRatioTo:"u_pixel_ratio_from"===o?this.pixelRatioFrom:null;u&&e.set(u)}getBinding(e,r,n){return"u_pattern"===n.substr(0,9)?new ja(e,r):new Ei(e,r)}}class Wr{constructor(e,r,n,o){this.expression=e,this.type=n,this.maxValue=0,this.paintVertexAttributes=r.map(u=>({name:`a_${u}`,type:"Float32",components:"color"===n?2:1,offset:0})),this.paintVertexArray=new o}populatePaintArray(e,r,n,o,u){const d=this.paintVertexArray.length,m=this.expression.evaluate(new Dt(0),r,{},o,[],u);this.paintVertexArray.resize(e),this._setPaintValue(d,e,m)}updatePaintArray(e,r,n,o){const u=this.expression.evaluate({zoom:0},n,o);this._setPaintValue(e,r,u)}_setPaintValue(e,r,n){if("color"===this.type){const o=Ji(n);for(let u=e;u`u_${m}_t`),this.type=n,this.useIntegerZoom=o,this.zoom=u,this.maxValue=0,this.paintVertexAttributes=r.map(m=>({name:`a_${m}`,type:"Float32",components:"color"===n?4:2,offset:0})),this.paintVertexArray=new d}populatePaintArray(e,r,n,o,u){const d=this.expression.evaluate(new Dt(this.zoom),r,{},o,[],u),m=this.expression.evaluate(new Dt(this.zoom+1),r,{},o,[],u),y=this.paintVertexArray.length;this.paintVertexArray.resize(e),this._setPaintValue(y,e,d,m)}updatePaintArray(e,r,n,o){const u=this.expression.evaluate({zoom:this.zoom},n,o),d=this.expression.evaluate({zoom:this.zoom+1},n,o);this._setPaintValue(e,r,u,d)}_setPaintValue(e,r,n,o){if("color"===this.type){const u=Ji(n),d=Ji(o);for(let m=e;m`#define HAS_UNIFORM_${o}`))}return e}getBinderAttributes(){const e=[];for(const r in this.binders){const n=this.binders[r];if(n instanceof Wr||n instanceof Mr)for(let o=0;o!0)){this.programConfigurations={};for(const o of e)this.programConfigurations[o.id]=new Xo(o,r,n);this.needsUpload=!1,this._featureMap=new sa,this._bufferOffset=0}populatePaintArrays(e,r,n,o,u,d){for(const m in this.programConfigurations)this.programConfigurations[m].populatePaintArrays(e,r,o,u,d);void 0!==r.id&&this._featureMap.add(r.id,n,this._bufferOffset,e),this._bufferOffset=e,this.needsUpload=!0}updatePaintArrays(e,r,n,o){for(const u of n)this.needsUpload=this.programConfigurations[u.id].updatePaintArrays(e,this._featureMap,r,u,o)||this.needsUpload}get(e){return this.programConfigurations[e]}upload(e){if(this.needsUpload){for(const r in this.programConfigurations)this.programConfigurations[r].upload(e);this.needsUpload=!1}}destroy(){for(const e in this.programConfigurations)this.programConfigurations[e].destroy()}}function Xa(i,e){return{"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-halo-color":["halo_color"],"icon-halo-color":["halo_color"],"text-halo-blur":["halo_blur"],"icon-halo-blur":["halo_blur"],"text-halo-width":["halo_width"],"icon-halo-width":["halo_width"],"line-gap-width":["gapwidth"],"line-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-extrusion-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"]}[i]||[i.replace(`${e}-`,"").replace(/-/g,"_")]}function Xs(i,e,r){const o={"line-pattern":{source:ce,composite:ce},"fill-pattern":{source:ce,composite:ce},"fill-extrusion-pattern":{source:ce,composite:ce}}[i];return o&&o[r]||{color:{source:na,composite:f},number:{source:t,composite:na}}[e][r]}Ee("ConstantBinder",$t),Ee("CrossFadedConstantBinder",qa),Ee("SourceExpressionBinder",Wr),Ee("CrossFadedCompositeBinder",la),Ee("CompositeExpressionBinder",Mr),Ee("ProgramConfiguration",Xo,{omit:["_buffers"]}),Ee("ProgramConfigurationSet",Ca);const Zt=8192,rs=Math.pow(2,14)-1,as=-rs-1;function ca(i){const e=Zt/i.extent,r=i.loadGeometry();for(let n=0;nd.x+1||yd.y+1)&&Me("Geometry exceeds allowed extent, reduce your vector tile buffer size")}}return r}function Hr(i,e){return{type:i.type,id:i.id,properties:i.properties,geometry:e?ca(i):[]}}function Wo(i,e,r,n,o){i.emplaceBack(2*e+(n+1)/2,2*r+(o+1)/2)}class Bl{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(r=>r.id),this.index=e.index,this.hasPattern=!1,this.layoutVertexArray=new K,this.indexArray=new Ae,this.segments=new $e,this.programConfigurations=new Ca(e.layers,e.zoom),this.stateDependentLayerIds=this.layers.filter(r=>r.isStateDependent()).map(r=>r.id)}populate(e,r,n){const o=this.layers[0],u=[];let d=null,m=!1;"circle"===o.type&&(d=o.layout.get("circle-sort-key"),m=!d.isConstant());for(const{feature:y,id:v,index:S,sourceLayerIndex:C}of e){const M=this.layers[0]._featureFilter.needGeometry,k=Hr(y,M);if(!this.layers[0]._featureFilter.filter(new Dt(this.zoom),k,n))continue;const D=m?d.evaluate(k,{},n):void 0,N={id:v,properties:y.properties,type:y.type,sourceLayerIndex:C,index:S,geometry:M?k.geometry:ca(y),patterns:{},sortKey:D};u.push(N)}m&&u.sort((y,v)=>y.sortKey-v.sortKey);for(const y of u){const{geometry:v,index:S,sourceLayerIndex:C}=y,M=e[S].feature;this.addFeature(y,v,S,n),r.featureIndex.insert(M,v,S,C,this.index)}}update(e,r,n){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,r,this.stateDependentLayers,n)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,Ye),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(e,r,n,o){for(const u of r)for(const d of u){const m=d.x,y=d.y;if(m<0||m>=Zt||y<0||y>=Zt)continue;const v=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,e.sortKey),S=v.vertexLength;Wo(this.layoutVertexArray,m,y,-1,-1),Wo(this.layoutVertexArray,m,y,1,-1),Wo(this.layoutVertexArray,m,y,1,1),Wo(this.layoutVertexArray,m,y,-1,1),this.indexArray.emplaceBack(S,S+1,S+2),this.indexArray.emplaceBack(S,S+3,S+2),v.vertexLength+=4,v.primitiveLength+=2}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,n,{},o)}}function Ec(i,e){for(let r=0;r1){if(Fl(i,e))return!0;for(let n=0;n1?r:r.sub(e)._mult(o)._add(e))}function Cc(i,e){let r,n,o,u=!1;for(let d=0;de.y!=o.y>e.y&&e.x<(o.x-n.x)*(e.y-n.y)/(o.y-n.y)+n.x&&(u=!u)}return u}function ns(i,e){let r=!1;for(let n=0,o=i.length-1;ne.y!=d.y>e.y&&e.x<(d.x-u.x)*(e.y-u.y)/(d.y-u.y)+u.x&&(r=!r)}return r}function nu(i,e,r){const n=r[0],o=r[2];if(i.xo.x&&e.x>o.x||i.yo.y&&e.y>o.y)return!1;const u=Te(i,e,r[0]);return u!==Te(i,e,r[1])||u!==Te(i,e,r[2])||u!==Te(i,e,r[3])}function Ws(i,e,r){const n=e.paint.get(i).value;return"constant"===n.kind?n.value:r.programConfigurations.get(e.id).getMaxValue(i)}function Ho(i){return Math.sqrt(i[0]*i[0]+i[1]*i[1])}function Ko(i,e,r,n,o){if(!e[0]&&!e[1])return i;const u=Be.convert(e)._mult(o);"viewport"===r&&u._rotate(-n);const d=[];for(let m=0;mPc(G,N))),k=C?S*m:S;var N;for(const D of o)for(const N of D){const G=C?N:Pc(N,y);let q=k;const Y=Yo([],[N.x,N.y,0,1],y);if("viewport"===this.paint.get("circle-pitch-scale")&&"map"===this.paint.get("circle-pitch-alignment")?q*=Y[3]/d.cameraToCenterDistance:"map"===this.paint.get("circle-pitch-scale")&&"viewport"===this.paint.get("circle-pitch-alignment")&&(q*=d.cameraToCenterDistance/Y[3]),iu(M,G,q))return!0}return!1}}function Pc(i,e){const r=Yo([],[i.x,i.y,0,1],e);return new Be(r[0]/r[3],r[1]/r[3])}class kc extends Bl{}let Lc;Ee("HeatmapBucket",kc,{omit:["layers"]});var cu={get paint(){return Lc=Lc||new gi({"heatmap-radius":new Ve(Q.paint_heatmap["heatmap-radius"]),"heatmap-weight":new Ve(Q.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new De(Q.paint_heatmap["heatmap-intensity"]),"heatmap-color":new Ns(Q.paint_heatmap["heatmap-color"]),"heatmap-opacity":new De(Q.paint_heatmap["heatmap-opacity"])})}};function Vl(i,{width:e,height:r},n,o){if(o){if(o instanceof Uint8ClampedArray)o=new Uint8Array(o.buffer);else if(o.length!==e*r*n)throw new RangeError(`mismatched image size. expected: ${o.length} but got: ${e*r*n}`)}else o=new Uint8Array(e*r*n);return i.width=e,i.height=r,i.data=o,i}function Dc(i,{width:e,height:r},n){if(e===i.width&&r===i.height)return;const o=Vl({},{width:e,height:r},n);Nl(i,o,{x:0,y:0},{x:0,y:0},{width:Math.min(i.width,e),height:Math.min(i.height,r)},n),i.width=e,i.height=r,i.data=o.data}function Nl(i,e,r,n,o,u){if(0===o.width||0===o.height)return e;if(o.width>i.width||o.height>i.height||r.x>i.width-o.width||r.y>i.height-o.height)throw new RangeError("out of range source coordinates for image copy");if(o.width>e.width||o.height>e.height||n.x>e.width-o.width||n.y>e.height-o.height)throw new RangeError("out of range destination coordinates for image copy");const d=i.data,m=e.data;if(d===m)throw new Error("srcData equals dstData, so image is already copied");for(let y=0;y{e[i.evaluationKey]=y;const v=i.expression.evaluate(e);o.data[d+m+0]=Math.floor(255*v.r/v.a),o.data[d+m+1]=Math.floor(255*v.g/v.a),o.data[d+m+2]=Math.floor(255*v.b/v.a),o.data[d+m+3]=Math.floor(255*v.a)};if(i.clips)for(let d=0,m=0;d80*r){n=u=i[0],o=d=i[1];for(var D=r;Du&&(u=m),y>d&&(d=y);v=0!==(v=Math.max(u-n,d-o))?32767/v:0}return Ys(M,k,r,n,o,v,0),k}function Fc(i,e,r,n,o){var u,d;if(o===jl(i,e,r,n)>0)for(u=e;u=e;u-=n)d=Vc(u,i[u],i[u+1],d);return d&&Qo(d,d.next)&&(Qs(d),d=d.next),d}function vn(i,e){if(!i)return i;e||(e=i);var r,n=i;do{if(r=!1,n.steiner||!Qo(n,n.next)&&0!==ri(n.prev,n,n.next))n=n.next;else{if(Qs(n),(n=e=n.prev)===n.next)break;r=!0}}while(r||n!==e);return e}function Ys(i,e,r,n,o,u,d){if(i){!d&&u&&function(S,C,M,k){var D=S;do{0===D.z&&(D.z=Zl(D.x,D.y,C,M,k)),D.prevZ=D.prev,D.nextZ=D.next,D=D.next}while(D!==S);D.prevZ.nextZ=null,D.prevZ=null,function(N){var G,q,Y,X,J,ie,le,be,Pe=1;do{for(q=N,N=null,J=null,ie=0;q;){for(ie++,Y=q,le=0,G=0;G0||be>0&&Y;)0!==le&&(0===be||!Y||q.z<=Y.z)?(X=q,q=q.nextZ,le--):(X=Y,Y=Y.nextZ,be--),J?J.nextZ=X:N=X,X.prevZ=J,J=X;q=Y}J.nextZ=null,Pe*=2}while(ie>1)}(D)}(i,n,o,u);for(var m,y,v=i;i.prev!==i.next;)if(m=i.prev,y=i.next,u?gu(i,n,o,u):fu(i))e.push(m.i/r|0),e.push(i.i/r|0),e.push(y.i/r|0),Qs(i),i=y.next,v=y.next;else if((i=y)===v){d?1===d?Ys(i=yu(vn(i),e,r),e,r,n,o,u,2):2===d&&_u(i,e,r,n,o,u):Ys(vn(i),e,r,n,o,u,1);break}}}function fu(i){var e=i.prev,r=i,n=i.next;if(ri(e,r,n)>=0)return!1;for(var o=e.x,u=r.x,d=n.x,m=e.y,y=r.y,v=n.y,S=ou?o>d?o:d:u>d?u:d,k=m>y?m>v?m:v:y>v?y:v,D=n.next;D!==e;){if(D.x>=S&&D.x<=M&&D.y>=C&&D.y<=k&&os(o,m,u,y,d,v,D.x,D.y)&&ri(D.prev,D,D.next)>=0)return!1;D=D.next}return!0}function gu(i,e,r,n){var o=i.prev,u=i,d=i.next;if(ri(o,u,d)>=0)return!1;for(var m=o.x,y=u.x,v=d.x,S=o.y,C=u.y,M=d.y,k=my?m>v?m:v:y>v?y:v,G=S>C?S>M?S:M:C>M?C:M,q=Zl(k,D,e,r,n),Y=Zl(N,G,e,r,n),X=i.prevZ,J=i.nextZ;X&&X.z>=q&&J&&J.z<=Y;){if(X.x>=k&&X.x<=N&&X.y>=D&&X.y<=G&&X!==o&&X!==d&&os(m,S,y,C,v,M,X.x,X.y)&&ri(X.prev,X,X.next)>=0||(X=X.prevZ,J.x>=k&&J.x<=N&&J.y>=D&&J.y<=G&&J!==o&&J!==d&&os(m,S,y,C,v,M,J.x,J.y)&&ri(J.prev,J,J.next)>=0))return!1;J=J.nextZ}for(;X&&X.z>=q;){if(X.x>=k&&X.x<=N&&X.y>=D&&X.y<=G&&X!==o&&X!==d&&os(m,S,y,C,v,M,X.x,X.y)&&ri(X.prev,X,X.next)>=0)return!1;X=X.prevZ}for(;J&&J.z<=Y;){if(J.x>=k&&J.x<=N&&J.y>=D&&J.y<=G&&J!==o&&J!==d&&os(m,S,y,C,v,M,J.x,J.y)&&ri(J.prev,J,J.next)>=0)return!1;J=J.nextZ}return!0}function yu(i,e,r){var n=i;do{var o=n.prev,u=n.next.next;!Qo(o,u)&&Oc(o,n,n.next,u)&&Js(o,u)&&Js(u,o)&&(e.push(o.i/r|0),e.push(n.i/r|0),e.push(u.i/r|0),Qs(n),Qs(n.next),n=i=u),n=n.next}while(n!==i);return vn(n)}function _u(i,e,r,n,o,u){var d=i;do{for(var m=d.next.next;m!==d.prev;){if(d.i!==m.i&&Su(d,m)){var y=Uc(d,m);return d=vn(d,d.next),y=vn(y,y.next),Ys(d,e,r,n,o,u,0),void Ys(y,e,r,n,o,u,0)}m=m.next}d=d.next}while(d!==i)}function xu(i,e){return i.x-e.x}function vu(i,e){var r=function(o,u){var d,m=u,y=o.x,v=o.y,S=-1/0;do{if(v<=m.y&&v>=m.next.y&&m.next.y!==m.y){var C=m.x+(v-m.y)*(m.next.x-m.x)/(m.next.y-m.y);if(C<=y&&C>S&&(S=C,d=m.x=m.x&&m.x>=D&&y!==m.x&&os(vd.x||m.x===d.x&&bu(d,m)))&&(d=m,G=M)),m=m.next}while(m!==k);return d}(i,e);if(!r)return e;var n=Uc(r,i);return vn(n,n.next),vn(r,r.next)}function bu(i,e){return ri(i.prev,i,e.prev)<0&&ri(e.next,i,i.next)<0}function Zl(i,e,r,n,o){return(i=1431655765&((i=858993459&((i=252645135&((i=16711935&((i=(i-r)*o|0)|i<<8))|i<<4))|i<<2))|i<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-n)*o|0)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function wu(i){var e=i,r=i;do{(e.x=(i-d)*(u-m)&&(i-d)*(n-m)>=(r-d)*(e-m)&&(r-d)*(u-m)>=(o-d)*(n-m)}function Su(i,e){return i.next.i!==e.i&&i.prev.i!==e.i&&!function(r,n){var o=r;do{if(o.i!==r.i&&o.next.i!==r.i&&o.i!==n.i&&o.next.i!==n.i&&Oc(o,o.next,r,n))return!0;o=o.next}while(o!==r);return!1}(i,e)&&(Js(i,e)&&Js(e,i)&&function(r,n){var o=r,u=!1,d=(r.x+n.x)/2,m=(r.y+n.y)/2;do{o.y>m!=o.next.y>m&&o.next.y!==o.y&&d<(o.next.x-o.x)*(m-o.y)/(o.next.y-o.y)+o.x&&(u=!u),o=o.next}while(o!==r);return u}(i,e)&&(ri(i.prev,i,e.prev)||ri(i,e.prev,e))||Qo(i,e)&&ri(i.prev,i,i.next)>0&&ri(e.prev,e,e.next)>0)}function ri(i,e,r){return(e.y-i.y)*(r.x-e.x)-(e.x-i.x)*(r.y-e.y)}function Qo(i,e){return i.x===e.x&&i.y===e.y}function Oc(i,e,r,n){var o=tl(ri(i,e,r)),u=tl(ri(i,e,n)),d=tl(ri(r,n,i)),m=tl(ri(r,n,e));return o!==u&&d!==m||!(0!==o||!el(i,r,e))||!(0!==u||!el(i,n,e))||!(0!==d||!el(r,i,n))||!(0!==m||!el(r,e,n))}function el(i,e,r){return e.x<=Math.max(i.x,r.x)&&e.x>=Math.min(i.x,r.x)&&e.y<=Math.max(i.y,r.y)&&e.y>=Math.min(i.y,r.y)}function tl(i){return i>0?1:i<0?-1:0}function Js(i,e){return ri(i.prev,i,i.next)<0?ri(i,e,i.next)>=0&&ri(i,i.prev,e)>=0:ri(i,e,i.prev)<0||ri(i,i.next,e)<0}function Uc(i,e){var r=new Gl(i.i,i.x,i.y),n=new Gl(e.i,e.x,e.y),o=i.next,u=e.prev;return i.next=e,e.prev=i,r.next=o,o.prev=r,n.next=r,r.prev=n,u.next=n,n.prev=u,n}function Vc(i,e,r,n){var o=new Gl(i,e,r);return n?(o.next=n.next,o.prev=n,n.next.prev=o,n.next=o):(o.prev=o,o.next=o),o}function Qs(i){i.next.prev=i.prev,i.prev.next=i.next,i.prevZ&&(i.prevZ.nextZ=i.nextZ),i.nextZ&&(i.nextZ.prevZ=i.prevZ)}function Gl(i,e,r){this.i=i,this.x=e,this.y=r,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}function jl(i,e,r,n){for(var o=0,u=e,d=r-n;u0&&r.holes.push(n+=i[o-1].length)}return r};var Nc=ut($l.exports);function Eu(i,e,r,n,o){$c(i,e,r||0,n||i.length-1,o||Tu)}function $c(i,e,r,n,o){for(;n>r;){if(n-r>600){var u=n-r+1,d=e-r+1,m=Math.log(u),y=.5*Math.exp(2*m/3),v=.5*Math.sqrt(m*y*(u-y)/u)*(d-u/2<0?-1:1);$c(i,e,Math.max(r,Math.floor(e-d*y/u+v)),Math.min(n,Math.floor(e+(u-d)*y/u+v)),o)}var S=i[e],C=r,M=n;for(eo(i,r,e),o(i[n],S)>0&&eo(i,r,n);C0;)M--}0===o(i[r],S)?eo(i,r,M):eo(i,++M,n),M<=e&&(r=M+1),e<=M&&(n=M-1)}}function eo(i,e,r){var n=i[e];i[e]=i[r],i[r]=n}function Tu(i,e){return ie?1:0}function ql(i,e){const r=i.length;if(r<=1)return[i];const n=[];let o,u;for(let d=0;d1)for(let d=0;dr.id),this.index=e.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new ne,this.indexArray=new Ae,this.indexArray2=new Mt,this.programConfigurations=new Ca(e.layers,e.zoom),this.segments=new $e,this.segments2=new $e,this.stateDependentLayerIds=this.layers.filter(r=>r.isStateDependent()).map(r=>r.id)}populate(e,r,n){this.hasPattern=Xl("fill",this.layers,r);const o=this.layers[0].layout.get("fill-sort-key"),u=!o.isConstant(),d=[];for(const{feature:m,id:y,index:v,sourceLayerIndex:S}of e){const C=this.layers[0]._featureFilter.needGeometry,M=Hr(m,C);if(!this.layers[0]._featureFilter.filter(new Dt(this.zoom),M,n))continue;const k=u?o.evaluate(M,{},n,r.availableImages):void 0,D={id:y,properties:m.properties,type:m.type,sourceLayerIndex:S,index:v,geometry:C?M.geometry:ca(m),patterns:{},sortKey:k};d.push(D)}u&&d.sort((m,y)=>m.sortKey-y.sortKey);for(const m of d){const{geometry:y,index:v,sourceLayerIndex:S}=m;if(this.hasPattern){const C=Wl("fill",this.layers,m,this.zoom,r);this.patternFeatures.push(C)}else this.addFeature(m,y,v,n,{});r.featureIndex.insert(e[v].feature,y,v,S,this.index)}}update(e,r,n){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,r,this.stateDependentLayers,n)}addFeatures(e,r,n){for(const o of this.patternFeatures)this.addFeature(o,o.geometry,o.index,r,n)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,mu),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.indexBuffer2=e.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())}addFeature(e,r,n,o,u){for(const d of ql(r,500)){let m=0;for(const k of d)m+=k.length;const y=this.segments.prepareSegment(m,this.layoutVertexArray,this.indexArray),v=y.vertexLength,S=[],C=[];for(const k of d){if(0===k.length)continue;k!==d[0]&&C.push(S.length/2);const D=this.segments2.prepareSegment(k.length,this.layoutVertexArray,this.indexArray2),N=D.vertexLength;this.layoutVertexArray.emplaceBack(k[0].x,k[0].y),this.indexArray2.emplaceBack(N+k.length-1,N),S.push(k[0].x),S.push(k[0].y);for(let G=1;G>3}if(o--,1===n||2===n)u+=i.readSVarint(),d+=i.readSVarint(),1===n&&(e&&m.push(e),e=[]),e.push(new ku(u,d));else{if(7!==n)throw new Error("unknown command "+n);e&&e.push(e[0].clone())}}return e&&m.push(e),m},ls.prototype.bbox=function(){var i=this._pbf;i.pos=this._geometry;for(var e=i.readVarint()+i.pos,r=1,n=0,o=0,u=0,d=1/0,m=-1/0,y=1/0,v=-1/0;i.pos>3}if(n--,1===r||2===r)(o+=i.readSVarint())m&&(m=o),(u+=i.readSVarint())v&&(v=u);else if(7!==r)throw new Error("unknown command "+r)}return[d,y,m,v]},ls.prototype.toGeoJSON=function(i,e,r){var n,o,u=this.extent*Math.pow(2,r),d=this.extent*i,m=this.extent*e,y=this.loadGeometry(),v=ls.types[this.type];function S(k){for(var D=0;D>3;o=1===d?n.readString():2===d?n.readFloat():3===d?n.readDouble():4===d?n.readVarint64():5===d?n.readVarint():6===d?n.readSVarint():7===d?n.readBoolean():null}return o}(r))}Xc.prototype.feature=function(i){if(i<0||i>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[i];var e=this._pbf.readVarint()+this._pbf.pos;return new Ru(this._pbf,e,this.extent,this._keys,this._values)};var Fu=qc;function Ou(i,e,r){if(3===i){var n=new Fu(r,r.readVarint()+r.pos);n.length&&(e[n.name]=n)}}Wa.VectorTile=function(i,e){this.layers=i.readFields(Ou,{},e)},Wa.VectorTileFeature=jc,Wa.VectorTileLayer=qc;const Uu=Wa.VectorTileFeature.types,Kl=Math.pow(2,13);function to(i,e,r,n,o,u,d,m){i.emplaceBack(e,r,2*Math.floor(n*Kl)+d,o*Kl*2,u*Kl*2,Math.round(m))}class Yl{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(r=>r.id),this.index=e.index,this.hasPattern=!1,this.layoutVertexArray=new se,this.centroidVertexArray=new j,this.indexArray=new Ae,this.programConfigurations=new Ca(e.layers,e.zoom),this.segments=new $e,this.stateDependentLayerIds=this.layers.filter(r=>r.isStateDependent()).map(r=>r.id)}populate(e,r,n){this.features=[],this.hasPattern=Xl("fill-extrusion",this.layers,r);for(const{feature:o,id:u,index:d,sourceLayerIndex:m}of e){const y=this.layers[0]._featureFilter.needGeometry,v=Hr(o,y);if(!this.layers[0]._featureFilter.filter(new Dt(this.zoom),v,n))continue;const S={id:u,sourceLayerIndex:m,index:d,geometry:y?v.geometry:ca(o),properties:o.properties,type:o.type,patterns:{}};this.hasPattern?this.features.push(Wl("fill-extrusion",this.layers,S,this.zoom,r)):this.addFeature(S,S.geometry,d,n,{}),r.featureIndex.insert(o,S.geometry,d,m,this.index,!0)}}addFeatures(e,r,n){for(const o of this.features){const{geometry:u}=o;this.addFeature(o,u,o.index,r,n)}}update(e,r,n){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,r,this.stateDependentLayers,n)}isEmpty(){return 0===this.layoutVertexArray.length&&0===this.centroidVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,Pu),this.centroidVertexBuffer=e.createVertexBuffer(this.centroidVertexArray,zu.members,!0),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.centroidVertexBuffer.destroy())}addFeature(e,r,n,o,u){const d={x:0,y:0,vertexCount:0};for(const m of ql(r,500)){let y=0;for(const D of m)y+=D.length;let v=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray);for(const D of m){if(0===D.length||((i=D).every(e=>e.x<0)||i.every(e=>e.x>Zt)||i.every(e=>e.y<0)||i.every(e=>e.y>Zt)))continue;let N=0;for(let G=0;G=1){const Y=D[G-1];if(!Vu(q,Y)){v.vertexLength+4>$e.MAX_VERTEX_ARRAY_LENGTH&&(v=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));const X=q.sub(Y)._perp()._unit(),J=Y.dist(q);N+J>32768&&(N=0),to(this.layoutVertexArray,q.x,q.y,X.x,X.y,0,0,N),to(this.layoutVertexArray,q.x,q.y,X.x,X.y,0,1,N),d.x+=2*q.x,d.y+=2*q.y,d.vertexCount+=2,N+=J,to(this.layoutVertexArray,Y.x,Y.y,X.x,X.y,0,0,N),to(this.layoutVertexArray,Y.x,Y.y,X.x,X.y,0,1,N),d.x+=2*Y.x,d.y+=2*Y.y,d.vertexCount+=2;const ie=v.vertexLength;this.indexArray.emplaceBack(ie,ie+2,ie+1),this.indexArray.emplaceBack(ie+1,ie+2,ie+3),v.vertexLength+=4,v.primitiveLength+=2}}}}if(v.vertexLength+y>$e.MAX_VERTEX_ARRAY_LENGTH&&(v=this.segments.prepareSegment(y,this.layoutVertexArray,this.indexArray)),"Polygon"!==Uu[e.type])continue;const S=[],C=[],M=v.vertexLength;for(const D of m)if(0!==D.length){D!==m[0]&&C.push(S.length/2);for(let N=0;NZt)||i.y===e.y&&(i.y<0||i.y>Zt)}let Wc;Ee("FillExtrusionBucket",Yl,{omit:["layers","features"]});var $u={get paint(){return Wc=Wc||new gi({"fill-extrusion-opacity":new De(Q["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new Ve(Q["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new De(Q["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new De(Q["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new Jn(Q["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new Ve(Q["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new Ve(Q["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new De(Q["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])})}};class Zu extends Fr{constructor(e){super(e,$u)}createBucket(e){return new Yl(e)}queryRadius(){return Ho(this.paint.get("fill-extrusion-translate"))}is3D(){return!0}queryIntersectsFeature(e,r,n,o,u,d,m,y){const v=Ko(e,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),d.angle,m),S=this.paint.get("fill-extrusion-height").evaluate(r,n),C=this.paint.get("fill-extrusion-base").evaluate(r,n),M=function(D,N,G,q){const Y=[];for(const X of D){const J=[X.x,X.y,0,1];Yo(J,J,N),Y.push(new Be(J[0]/J[3],J[1]/J[3]))}return Y}(v,y),k=function(D,N,G,q){const Y=[],X=[],J=q[8]*N,ie=q[9]*N,le=q[10]*N,be=q[11]*N,Pe=q[8]*G,xe=q[9]*G,_e=q[10]*G,me=q[11]*G;for(const Ie of D){const ge=[],ue=[];for(const Oe of Ie){const ke=Oe.x,Je=Oe.y,kt=q[0]*ke+q[4]*Je+q[12],Rt=q[1]*ke+q[5]*Je+q[13],_i=q[2]*ke+q[6]*Je+q[14],Er=q[3]*ke+q[7]*Je+q[15],er=_i+le,li=Er+be,Ii=kt+Pe,Vi=Rt+xe,dr=_i+_e,tr=Er+me,ci=new Be((kt+J)/li,(Rt+ie)/li);ci.z=er/li,ge.push(ci);const xi=new Be(Ii/tr,Vi/tr);xi.z=dr/tr,ue.push(xi)}Y.push(ge),X.push(ue)}return[Y,X]}(o,C,S,y);return function(D,N,G){let q=1/0;Tc(G,N)&&(q=Hc(G,N[0]));for(let Y=0;Yr.id),this.index=e.index,this.hasPattern=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={},this.layers.forEach(r=>{this.gradients[r.id]={}}),this.layoutVertexArray=new oe,this.layoutVertexArray2=new he,this.indexArray=new Ae,this.programConfigurations=new Ca(e.layers,e.zoom),this.segments=new $e,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter(r=>r.isStateDependent()).map(r=>r.id)}populate(e,r,n){this.hasPattern=Xl("line",this.layers,r);const o=this.layers[0].layout.get("line-sort-key"),u=!o.isConstant(),d=[];for(const{feature:m,id:y,index:v,sourceLayerIndex:S}of e){const C=this.layers[0]._featureFilter.needGeometry,M=Hr(m,C);if(!this.layers[0]._featureFilter.filter(new Dt(this.zoom),M,n))continue;const k=u?o.evaluate(M,{},n):void 0,D={id:y,properties:m.properties,type:m.type,sourceLayerIndex:S,index:v,geometry:C?M.geometry:ca(m),patterns:{},sortKey:k};d.push(D)}u&&d.sort((m,y)=>m.sortKey-y.sortKey);for(const m of d){const{geometry:y,index:v,sourceLayerIndex:S}=m;if(this.hasPattern){const C=Wl("line",this.layers,m,this.zoom,r);this.patternFeatures.push(C)}else this.addFeature(m,y,v,n,{});r.featureIndex.insert(e[v].feature,y,v,S,this.index)}}update(e,r,n){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,r,this.stateDependentLayers,n)}addFeatures(e,r,n){for(const o of this.patternFeatures)this.addFeature(o,o.geometry,o.index,r,n)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(0!==this.layoutVertexArray2.length&&(this.layoutVertexBuffer2=e.createVertexBuffer(this.layoutVertexArray2,Xu)),this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,ju),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(e){if(e.properties&&Object.prototype.hasOwnProperty.call(e.properties,"mapbox_clip_start")&&Object.prototype.hasOwnProperty.call(e.properties,"mapbox_clip_end"))return{start:+e.properties.mapbox_clip_start,end:+e.properties.mapbox_clip_end}}addFeature(e,r,n,o,u){const d=this.layers[0].layout,m=d.get("line-join").evaluate(e,{}),y=d.get("line-cap"),v=d.get("line-miter-limit"),S=d.get("line-round-limit");this.lineClips=this.lineFeatureClips(e);for(const C of r)this.addLine(C,e,m,y,v,S);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,n,u,o)}addLine(e,r,n,o,u,d){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,this.lineClips){this.lineClipsArray.push(this.lineClips);for(let q=0;q=2&&e[y-1].equals(e[y-2]);)y--;let v=0;for(;v0;if(be&&q>v){const me=M.dist(k);if(me>2*S){const Ie=M.sub(M.sub(k)._mult(S/me)._round());this.updateDistance(k,Ie),this.addCurrentVertex(Ie,N,0,0,C),k=Ie}}const xe=k&&D;let _e=xe?n:m?"butt":o;if(xe&&"round"===_e&&(ieu&&(_e="bevel"),"bevel"===_e&&(ie>2&&(_e="flipbevel"),ie100)Y=G.mult(-1);else{const me=ie*N.add(G).mag()/N.sub(G).mag();Y._perp()._mult(me*(Pe?-1:1))}this.addCurrentVertex(M,Y,0,0,C),this.addCurrentVertex(M,Y.mult(-1),0,0,C)}else if("bevel"===_e||"fakeround"===_e){const me=-Math.sqrt(ie*ie-1),Ie=Pe?me:0,ge=Pe?0:me;if(k&&this.addCurrentVertex(M,N,Ie,ge,C),"fakeround"===_e){const ue=Math.round(180*le/Math.PI/20);for(let Oe=1;Oe2*S){const Ie=M.add(D.sub(M)._mult(S/me)._round());this.updateDistance(M,Ie),this.addCurrentVertex(Ie,G,0,0,C),M=Ie}}}}addCurrentVertex(e,r,n,o,u,d=!1){const m=r.y*o-r.x,y=-r.y-r.x*o;this.addHalfVertex(e,r.x+r.y*n,r.y-r.x*n,d,!1,n,u),this.addHalfVertex(e,m,y,d,!0,-o,u),this.distance>Kc/2&&0===this.totalDistance&&(this.distance=0,this.updateScaledDistance(),this.addCurrentVertex(e,r,n,o,u,d))}addHalfVertex({x:e,y:r},n,o,u,d,m,y){const v=.5*(this.lineClips?this.scaledDistance*(Kc-1):this.scaledDistance);this.layoutVertexArray.emplaceBack((e<<1)+(u?1:0),(r<<1)+(d?1:0),Math.round(63*n)+128,Math.round(63*o)+128,1+(0===m?0:m<0?-1:1)|(63&v)<<2,v>>6),this.lineClips&&this.layoutVertexArray2.emplaceBack((this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start),this.lineClipsArray.length);const S=y.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,S),y.primitiveLength++),d?this.e2=S:this.e1=S}updateScaledDistance(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance}updateDistance(e,r){this.distance+=e.dist(r),this.updateScaledDistance()}}let Yc,Jc;Ee("LineBucket",Jl,{omit:["layers","patternFeatures"]});var Qc={get paint(){return Jc=Jc||new gi({"line-opacity":new Ve(Q.paint_line["line-opacity"]),"line-color":new Ve(Q.paint_line["line-color"]),"line-translate":new De(Q.paint_line["line-translate"]),"line-translate-anchor":new De(Q.paint_line["line-translate-anchor"]),"line-width":new Ve(Q.paint_line["line-width"]),"line-gap-width":new Ve(Q.paint_line["line-gap-width"]),"line-offset":new Ve(Q.paint_line["line-offset"]),"line-blur":new Ve(Q.paint_line["line-blur"]),"line-dasharray":new Vs(Q.paint_line["line-dasharray"]),"line-pattern":new Jn(Q.paint_line["line-pattern"]),"line-gradient":new Ns(Q.paint_line["line-gradient"])})},get layout(){return Yc=Yc||new gi({"line-cap":new De(Q.layout_line["line-cap"]),"line-join":new Ve(Q.layout_line["line-join"]),"line-miter-limit":new De(Q.layout_line["line-miter-limit"]),"line-round-limit":new De(Q.layout_line["line-round-limit"]),"line-sort-key":new Ve(Q.layout_line["line-sort-key"])})}};class Ku extends Ve{possiblyEvaluate(e,r){return r=new Dt(Math.floor(r.zoom),{now:r.now,fadeDuration:r.fadeDuration,zoomHistory:r.zoomHistory,transition:r.transition}),super.possiblyEvaluate(e,r)}evaluate(e,r,n,o){return r=Xt({},r,{zoom:Math.floor(r.zoom)}),super.evaluate(e,r,n,o)}}let il;class Yu extends Fr{constructor(e){super(e,Qc),this.gradientVersion=0,il||(il=new Ku(Qc.paint.properties["line-width"].specification),il.useIntegerZoom=!0)}_handleSpecialPaintPropertyUpdate(e){"line-gradient"===e&&(this.stepInterpolant=this._transitionablePaint._values["line-gradient"].value.expression._styleExpression.expression instanceof ln,this.gradientVersion=(this.gradientVersion+1)%Number.MAX_SAFE_INTEGER)}gradientExpression(){return this._transitionablePaint._values["line-gradient"].value.expression}recalculate(e,r){super.recalculate(e,r),this.paint._values["line-floorwidth"]=il.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,e)}createBucket(e){return new Jl(e)}queryRadius(e){const r=e,n=eh(Ws("line-width",this,r),Ws("line-gap-width",this,r)),o=Ws("line-offset",this,r);return n/2+Math.abs(o)+Ho(this.paint.get("line-translate"))}queryIntersectsFeature(e,r,n,o,u,d,m){const y=Ko(e,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),d.angle,m),v=m/2*eh(this.paint.get("line-width").evaluate(r,n),this.paint.get("line-gap-width").evaluate(r,n)),S=this.paint.get("line-offset").evaluate(r,n);return S&&(o=function(C,M){const k=[];for(let D=0;D=3)for(let G=0;G0?e+2*i:i}const Ju=ti([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),Qu=ti([{name:"a_projected_pos",components:3,type:"Float32"}],4);ti([{name:"a_fade_opacity",components:1,type:"Uint32"}],4);const ep=ti([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"}]);ti([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]);const th=ti([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4),tp=ti([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);function ip(i,e,r){return i.sections.forEach(n=>{n.text=function(o,u,d){const m=u.layout.get("text-transform").evaluate(d,{});return"uppercase"===m?o=o.toLocaleUpperCase():"lowercase"===m&&(o=o.toLocaleLowerCase()),Sr.applyArabicShaping&&(o=Sr.applyArabicShaping(o)),o}(n.text,e,r)}),i}ti([{name:"triangle",components:3,type:"Uint16"}]),ti([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"}]),ti([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",name:"collisionCircleDiameter"},{type:"Uint16",name:"textAnchorOffsetStartIndex"},{type:"Uint16",name:"textAnchorOffsetEndIndex"}]),ti([{type:"Float32",name:"offsetX"}]),ti([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]),ti([{type:"Uint16",name:"textAnchor"},{type:"Float32",components:2,name:"textOffset"}]);const ro={"!":"\ufe15","#":"\uff03",$:"\uff04","%":"\uff05","&":"\uff06","(":"\ufe35",")":"\ufe36","*":"\uff0a","+":"\uff0b",",":"\ufe10","-":"\ufe32",".":"\u30fb","/":"\uff0f",":":"\ufe13",";":"\ufe14","<":"\ufe3f","=":"\uff1d",">":"\ufe40","?":"\ufe16","@":"\uff20","[":"\ufe47","\\":"\uff3c","]":"\ufe48","^":"\uff3e",_:"\ufe33","`":"\uff40","{":"\ufe37","|":"\u2015","}":"\ufe38","~":"\uff5e","\xa2":"\uffe0","\xa3":"\uffe1","\xa5":"\uffe5","\xa6":"\uffe4","\xac":"\uffe2","\xaf":"\uffe3","\u2013":"\ufe32","\u2014":"\ufe31","\u2018":"\ufe43","\u2019":"\ufe44","\u201c":"\ufe41","\u201d":"\ufe42","\u2026":"\ufe19","\u2027":"\u30fb","\u20a9":"\uffe6","\u3001":"\ufe11","\u3002":"\ufe12","\u3008":"\ufe3f","\u3009":"\ufe40","\u300a":"\ufe3d","\u300b":"\ufe3e","\u300c":"\ufe41","\u300d":"\ufe42","\u300e":"\ufe43","\u300f":"\ufe44","\u3010":"\ufe3b","\u3011":"\ufe3c","\u3014":"\ufe39","\u3015":"\ufe3a","\u3016":"\ufe17","\u3017":"\ufe18","\uff01":"\ufe15","\uff08":"\ufe35","\uff09":"\ufe36","\uff0c":"\ufe10","\uff0d":"\ufe32","\uff0e":"\u30fb","\uff1a":"\ufe13","\uff1b":"\ufe14","\uff1c":"\ufe3f","\uff1e":"\ufe40","\uff1f":"\ufe16","\uff3b":"\ufe47","\uff3d":"\ufe48","\uff3f":"\ufe33","\uff5b":"\ufe37","\uff5c":"\u2015","\uff5d":"\ufe38","\uff5f":"\ufe35","\uff60":"\ufe36","\uff61":"\ufe12","\uff62":"\ufe41","\uff63":"\ufe42"};var ih=It,rh=function(i,e,r,n,o){var u,d,m=8*o-n-1,y=(1<>1,S=-7,C=r?o-1:0,M=r?-1:1,k=i[e+C];for(C+=M,u=k&(1<<-S)-1,k>>=-S,S+=m;S>0;u=256*u+i[e+C],C+=M,S-=8);for(d=u&(1<<-S)-1,u>>=-S,S+=n;S>0;d=256*d+i[e+C],C+=M,S-=8);if(0===u)u=1-v;else{if(u===y)return d?NaN:1/0*(k?-1:1);d+=Math.pow(2,n),u-=v}return(k?-1:1)*d*Math.pow(2,u-n)},ah=function(i,e,r,n,o,u){var d,m,y,v=8*u-o-1,S=(1<>1,M=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,k=n?0:u-1,D=n?1:-1,N=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(m=isNaN(e)?1:0,d=S):(d=Math.floor(Math.log(e)/Math.LN2),e*(y=Math.pow(2,-d))<1&&(d--,y*=2),(e+=d+C>=1?M/y:M*Math.pow(2,1-C))*y>=2&&(d++,y/=2),d+C>=S?(m=0,d=S):d+C>=1?(m=(e*y-1)*Math.pow(2,o),d+=C):(m=e*Math.pow(2,C-1)*Math.pow(2,o),d=0));o>=8;i[r+k]=255&m,k+=D,m/=256,o-=8);for(d=d<0;i[r+k]=255&d,k+=D,d/=256,v-=8);i[r+k-D]|=128*N};function It(i){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(i)?i:new Uint8Array(i||0),this.pos=0,this.type=0,this.length=this.buf.length}It.Varint=0,It.Fixed64=1,It.Bytes=2,It.Fixed32=5;var Ql=4294967296,nh=1/Ql,sh=typeof TextDecoder>"u"?null:new TextDecoder("utf8");function Aa(i){return i.type===It.Bytes?i.readVarint()+i.pos:i.pos+1}function oh(i,e,r){var n=e<=16383?1:e<=2097151?2:e<=268435455?3:Math.floor(Math.log(e)/(7*Math.LN2));r.realloc(n);for(var o=r.pos-1;o>=i;o--)r.buf[o+n]=r.buf[o]}function rp(i,e){for(var r=0;r>>8,i[r+2]=e>>>16,i[r+3]=e>>>24}function lh(i,e){return(i[e]|i[e+1]<<8|i[e+2]<<16)+(i[e+3]<<24)}It.prototype={destroy:function(){this.buf=null},readFields:function(i,e,r){for(r=r||this.length;this.pos>3,u=this.pos;this.type=7&n,i(o,e,this),this.pos===u&&this.skip(n)}return e},readMessage:function(i,e){return this.readFields(i,e,this.readVarint()+this.pos)},readFixed32:function(){var i=rl(this.buf,this.pos);return this.pos+=4,i},readSFixed32:function(){var i=lh(this.buf,this.pos);return this.pos+=4,i},readFixed64:function(){var i=rl(this.buf,this.pos)+rl(this.buf,this.pos+4)*Ql;return this.pos+=8,i},readSFixed64:function(){var i=rl(this.buf,this.pos)+lh(this.buf,this.pos+4)*Ql;return this.pos+=8,i},readFloat:function(){var i=rh(this.buf,this.pos,!0,23,4);return this.pos+=4,i},readDouble:function(){var i=rh(this.buf,this.pos,!0,52,8);return this.pos+=8,i},readVarint:function(i){var e,r,n=this.buf;return e=127&(r=n[this.pos++]),r<128?e:(e|=(127&(r=n[this.pos++]))<<7,r<128?e:(e|=(127&(r=n[this.pos++]))<<14,r<128?e:(e|=(127&(r=n[this.pos++]))<<21,r<128?e:function(o,u,d){var m,y,v=d.buf;if(m=(112&(y=v[d.pos++]))>>4,y<128||(m|=(127&(y=v[d.pos++]))<<3,y<128)||(m|=(127&(y=v[d.pos++]))<<10,y<128)||(m|=(127&(y=v[d.pos++]))<<17,y<128)||(m|=(127&(y=v[d.pos++]))<<24,y<128)||(m|=(1&(y=v[d.pos++]))<<31,y<128))return function cs(i,e,r){return r?4294967296*e+(i>>>0):4294967296*(e>>>0)+(i>>>0)}(o,m,u);throw new Error("Expected varint not more than 10 bytes")}(e|=(15&(r=n[this.pos]))<<28,i,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var i=this.readVarint();return i%2==1?(i+1)/-2:i/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var i=this.readVarint()+this.pos,e=this.pos;return this.pos=i,i-e>=12&&sh?sh.decode(this.buf.subarray(e,i)):function(r,n,o){for(var u="",d=n;d239?4:S>223?3:S>191?2:1;if(d+M>o)break;1===M?S<128&&(C=S):2===M?128==(192&(m=r[d+1]))&&(C=(31&S)<<6|63&m)<=127&&(C=null):3===M?(y=r[d+2],128==(192&(m=r[d+1]))&&128==(192&y)&&((C=(15&S)<<12|(63&m)<<6|63&y)<=2047||C>=55296&&C<=57343)&&(C=null)):4===M&&(y=r[d+2],v=r[d+3],128==(192&(m=r[d+1]))&&128==(192&y)&&128==(192&v)&&((C=(15&S)<<18|(63&m)<<12|(63&y)<<6|63&v)<=65535||C>=1114112)&&(C=null)),null===C?(C=65533,M=1):C>65535&&(C-=65536,u+=String.fromCharCode(C>>>10&1023|55296),C=56320|1023&C),u+=String.fromCharCode(C),d+=M}return u}(this.buf,e,i)},readBytes:function(){var i=this.readVarint()+this.pos,e=this.buf.subarray(this.pos,i);return this.pos=i,e},readPackedVarint:function(i,e){if(this.type!==It.Bytes)return i.push(this.readVarint(e));var r=Aa(this);for(i=i||[];this.pos127;);else if(e===It.Bytes)this.pos=this.readVarint()+this.pos;else if(e===It.Fixed32)this.pos+=4;else{if(e!==It.Fixed64)throw new Error("Unimplemented type: "+e);this.pos+=8}},writeTag:function(i,e){this.writeVarint(i<<3|e)},realloc:function(i){for(var e=this.length||16;e268435455||i<0?function(e,r){var n,o,u,m;if(e>=0?(n=e%4294967296|0,o=e/4294967296|0):(o=~(-e/4294967296),4294967295^(n=~(-e%4294967296))?n=n+1|0:(n=0,o=o+1|0)),e>=0x10000000000000000||e<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");r.realloc(10),u=n,(m=r).buf[m.pos++]=127&u|128,u>>>=7,m.buf[m.pos++]=127&u|128,u>>>=7,m.buf[m.pos++]=127&u|128,u>>>=7,m.buf[m.pos++]=127&u|128,m.buf[m.pos]=127&(u>>>=7),function(u,d){var m=(7&u)<<4;d.buf[d.pos++]|=m|((u>>>=3)?128:0),u&&(d.buf[d.pos++]=127&u|((u>>>=7)?128:0),u&&(d.buf[d.pos++]=127&u|((u>>>=7)?128:0),u&&(d.buf[d.pos++]=127&u|((u>>>=7)?128:0),u&&(d.buf[d.pos++]=127&u|((u>>>=7)?128:0),u&&(d.buf[d.pos++]=127&u)))))}(o,r)}(i,this):(this.realloc(4),this.buf[this.pos++]=127&i|(i>127?128:0),i<=127||(this.buf[this.pos++]=127&(i>>>=7)|(i>127?128:0),i<=127||(this.buf[this.pos++]=127&(i>>>=7)|(i>127?128:0),i<=127||(this.buf[this.pos++]=i>>>7&127))))},writeSVarint:function(i){this.writeVarint(i<0?2*-i-1:2*i)},writeBoolean:function(i){this.writeVarint(Boolean(i))},writeString:function(i){i=String(i),this.realloc(4*i.length),this.pos++;var e=this.pos;this.pos=function(n,o,u){for(var d,m,y=0;y55295&&d<57344){if(!m){d>56319||y+1===o.length?(n[u++]=239,n[u++]=191,n[u++]=189):m=d;continue}if(d<56320){n[u++]=239,n[u++]=191,n[u++]=189,m=d;continue}d=m-55296<<10|d-56320|65536,m=null}else m&&(n[u++]=239,n[u++]=191,n[u++]=189,m=null);d<128?n[u++]=d:(d<2048?n[u++]=d>>6|192:(d<65536?n[u++]=d>>12|224:(n[u++]=d>>18|240,n[u++]=d>>12&63|128),n[u++]=d>>6&63|128),n[u++]=63&d|128)}return u}(this.buf,i,this.pos);var r=this.pos-e;r>=128&&oh(e,r,this),this.pos=e-1,this.writeVarint(r),this.pos+=r},writeFloat:function(i){this.realloc(4),ah(this.buf,i,this.pos,!0,23,4),this.pos+=4},writeDouble:function(i){this.realloc(8),ah(this.buf,i,this.pos,!0,52,8),this.pos+=8},writeBytes:function(i){var e=i.length;this.writeVarint(e),this.realloc(e);for(var r=0;r=128&&oh(r,n,this),this.pos=r-1,this.writeVarint(n),this.pos+=n},writeMessage:function(i,e,r){this.writeTag(i,It.Bytes),this.writeRawMessage(e,r)},writePackedVarint:function(i,e){e.length&&this.writeMessage(i,rp,e)},writePackedSVarint:function(i,e){e.length&&this.writeMessage(i,ap,e)},writePackedBoolean:function(i,e){e.length&&this.writeMessage(i,op,e)},writePackedFloat:function(i,e){e.length&&this.writeMessage(i,np,e)},writePackedDouble:function(i,e){e.length&&this.writeMessage(i,sp,e)},writePackedFixed32:function(i,e){e.length&&this.writeMessage(i,lp,e)},writePackedSFixed32:function(i,e){e.length&&this.writeMessage(i,cp,e)},writePackedFixed64:function(i,e){e.length&&this.writeMessage(i,hp,e)},writePackedSFixed64:function(i,e){e.length&&this.writeMessage(i,up,e)},writeBytesField:function(i,e){this.writeTag(i,It.Bytes),this.writeBytes(e)},writeFixed32Field:function(i,e){this.writeTag(i,It.Fixed32),this.writeFixed32(e)},writeSFixed32Field:function(i,e){this.writeTag(i,It.Fixed32),this.writeSFixed32(e)},writeFixed64Field:function(i,e){this.writeTag(i,It.Fixed64),this.writeFixed64(e)},writeSFixed64Field:function(i,e){this.writeTag(i,It.Fixed64),this.writeSFixed64(e)},writeVarintField:function(i,e){this.writeTag(i,It.Varint),this.writeVarint(e)},writeSVarintField:function(i,e){this.writeTag(i,It.Varint),this.writeSVarint(e)},writeStringField:function(i,e){this.writeTag(i,It.Bytes),this.writeString(e)},writeFloatField:function(i,e){this.writeTag(i,It.Fixed32),this.writeFloat(e)},writeDoubleField:function(i,e){this.writeTag(i,It.Fixed64),this.writeDouble(e)},writeBooleanField:function(i,e){this.writeVarintField(i,Boolean(e))}};var ec=ut(ih);function pp(i,e,r){1===i&&r.readMessage(dp,e)}function dp(i,e,r){if(3===i){const{id:n,bitmap:o,width:u,height:d,left:m,top:y,advance:v}=r.readMessage(mp,{});e.push({id:n,bitmap:new Ks({width:u+6,height:d+6},o),metrics:{width:u,height:d,left:m,top:y,advance:v}})}}function mp(i,e,r){1===i?e.id=r.readVarint():2===i?e.bitmap=r.readBytes():3===i?e.width=r.readVarint():4===i?e.height=r.readVarint():5===i?e.left=r.readSVarint():6===i?e.top=r.readSVarint():7===i&&(e.advance=r.readVarint())}function hh(i){let e=0,r=0;for(const d of i)e+=d.w*d.h,r=Math.max(r,d.w);i.sort((d,m)=>m.h-d.h);const n=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(e/.95)),r),h:1/0}];let o=0,u=0;for(const d of i)for(let m=n.length-1;m>=0;m--){const y=n[m];if(!(d.w>y.w||d.h>y.h)){if(d.x=y.x,d.y=y.y,u=Math.max(u,d.y+d.h),o=Math.max(o,d.x+d.w),d.w===y.w&&d.h===y.h){const v=n.pop();m=0&&n>=e&&nl[this.text.charCodeAt(n)];n--)r--;this.text=this.text.substring(e,r),this.sectionIndex=this.sectionIndex.slice(e,r)}substring(e,r){const n=new us;return n.text=this.text.substring(e,r),n.sectionIndex=this.sectionIndex.slice(e,r),n.sections=this.sections,n}toString(){return this.text}getMaxScale(){return this.sectionIndex.reduce((e,r)=>Math.max(e,this.sections[r].scale),0)}addTextSection(e,r){this.text+=e.text,this.sections.push(no.forText(e.scale,e.fontStack||r));const n=this.sections.length-1;for(let o=0;o=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}}function al(i,e,r,n,o,u,d,m,y,v,S,C,M,k,D,N){const G=us.fromFeature(i,o);let q;C===c.WritingMode.vertical&&G.verticalizePunctuation();const{processBidirectionalText:Y,processStyledBidirectionalText:X}=Sr;if(Y&&1===G.sections.length){q=[];const le=Y(G.toString(),rc(G,v,u,e,n,k,D));for(const be of le){const Pe=new us;Pe.text=be,Pe.sections=G.sections;for(let xe=0;xe0&&za>fr&&(fr=za)}else{const kr=Pe[ot.fontStack],gr=kr&&kr[$i];if(gr&&gr.rect)Kr=gr.rect,Or=gr.metrics;else{const za=be[ot.fontStack],ho=za&&za[$i];if(!ho)continue;Or=ho.metrics}rr=24*(xi-ot.scale)}Ur?(le.verticalizable=!0,mr.push({glyph:$i,imageName:Yr,x:kt,y:Rt+rr,vertical:Ur,scale:ot.scale,fontStack:ot.fontStack,sectionIndex:Tr,metrics:Or,rect:Kr}),kt+=Ma*ot.scale+Oe):(mr.push({glyph:$i,imageName:Yr,x:kt,y:Rt+rr,vertical:Ur,scale:ot.scale,fontStack:ot.fontStack,sectionIndex:Tr,metrics:Or,rect:Kr}),kt+=Or.advance*ot.scale+Oe)}0!==mr.length&&(_i=Math.max(kt-Oe,_i),yp(mr,0,mr.length-1,er,fr)),kt=0;const qt=me*xi+fr;ir.lineOffset=Math.max(fr,qi),Rt+=qt,Er=Math.max(qt,Er),++li}var Ii;const Vi=Rt- -17,{horizontalAlign:dr,verticalAlign:tr}=ac(Ie);(function(ci,xi,qi,ir,mr,fr,qt,Ni,ot){const Tr=(xi-qi)*mr;let $i=0;$i=fr!==qt?-Ni*ir- -17:(-ir*ot+.5)*qt;for(const rr of ci)for(const Or of rr.positionedGlyphs)Or.x+=Tr,Or.y+=$i})(le.positionedLines,er,dr,tr,_i,Er,me,Vi,_e.length),le.top+=-tr*Vi,le.bottom=le.top+Vi,le.left+=-dr*_i,le.right=le.left+_i}(ie,e,r,n,q,d,m,y,C,v,M,N),!function(le){for(const be of le)if(0!==be.positionedGlyphs.length)return!1;return!0}(J)&&ie}const nl={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},fp={10:!0,32:!0,38:!0,40:!0,41:!0,43:!0,45:!0,47:!0,173:!0,183:!0,8203:!0,8208:!0,8211:!0,8231:!0};function ph(i,e,r,n,o,u){if(e.imageName){const d=n[e.imageName];return d?d.displaySize[0]*e.scale*24/u+o:0}{const d=r[e.fontStack],m=d&&d[i];return m?m.metrics.advance*e.scale+o:0}}function dh(i,e,r,n){const o=Math.pow(i-e,2);return n?i=0;let S=0;for(let M=0;Md.id),this.index=e.index,this.pixelRatio=e.pixelRatio,this.sourceLayerIndex=e.sourceLayerIndex,this.hasPattern=!1,this.hasRTLText=!1,this.sortKeyRanges=[],this.collisionCircleArray=[],this.placementInvProjMatrix=Ul([]),this.placementViewportMatrix=Ul([]);const r=this.layers[0]._unevaluatedLayout._values;this.textSizeData=yh(this.zoom,r["text-size"]),this.iconSizeData=yh(this.zoom,r["icon-size"]);const n=this.layers[0].layout,o=n.get("symbol-sort-key"),u=n.get("symbol-z-order");this.canOverlap="never"!==nc(n,"text-overlap","text-allow-overlap")||"never"!==nc(n,"icon-overlap","icon-allow-overlap")||n.get("text-ignore-placement")||n.get("icon-ignore-placement"),this.sortFeaturesByKey="viewport-y"!==u&&!o.isConstant(),this.sortFeaturesByY=("viewport-y"===u||"auto"===u&&!this.sortFeaturesByKey)&&this.canOverlap,"point"===n.get("symbol-placement")&&(this.writingModes=n.get("text-writing-mode").map(d=>c.WritingMode[d])),this.stateDependentLayerIds=this.layers.filter(d=>d.isStateDependent()).map(d=>d.id),this.sourceID=e.sourceID}createArrays(){this.text=new oc(new Ca(this.layers,this.zoom,e=>/^text/.test(e))),this.icon=new oc(new Ca(this.layers,this.zoom,e=>/^icon/.test(e))),this.glyphOffsetArray=new V,this.lineVertexArray=new U,this.symbolInstances=new P,this.textAnchorOffsets=new O}calculateGlyphDependencies(e,r,n,o,u){for(let d=0;d0)&&("constant"!==d.value.kind||d.value.value.length>0),S="constant"!==y.value.kind||!!y.value.value||Object.keys(y.parameters).length>0,C=u.get("symbol-sort-key");if(this.features=[],!v&&!S)return;const M=r.iconDependencies,k=r.glyphDependencies,D=r.availableImages,N=new Dt(this.zoom);for(const{feature:G,id:q,index:Y,sourceLayerIndex:X}of e){const J=o._featureFilter.needGeometry,ie=Hr(G,J);if(!o._featureFilter.filter(N,ie,n))continue;let le,be;if(J||(ie.geometry=ca(G)),v){const xe=o.getValueAndResolveTokens("text-field",ie,n,D),_e=Kt.factory(xe);bp(_e)&&(this.hasRTLText=!0),(!this.hasRTLText||"unavailable"===Os()||this.hasRTLText&&Sr.isParsed())&&(le=ip(_e,o,ie))}if(S){const xe=o.getValueAndResolveTokens("icon-image",ie,n,D);be=xe instanceof vr?xe:vr.fromString(xe)}if(!le&&!be)continue;const Pe=this.sortFeaturesByKey?C.evaluate(ie,{},n):void 0;if(this.features.push({id:q,text:le,icon:be,index:Y,sourceLayerIndex:X,geometry:ie.geometry,properties:G.properties,type:xp[G.type],sortKey:Pe}),be&&(M[be.name]=!0),le){const xe=d.evaluate(ie,{},n).join(","),_e="viewport"!==u.get("text-rotation-alignment")&&"point"!==u.get("symbol-placement");this.allowVerticalPlacement=this.writingModes&&this.writingModes.indexOf(c.WritingMode.vertical)>=0;for(const me of le.sections)if(me.image)M[me.image.name]=!0;else{const Ie=Hn(le.toString()),ge=me.fontStack||xe,ue=k[ge]=k[ge]||{};this.calculateGlyphDependencies(me.text,ue,_e,this.allowVerticalPlacement,Ie)}}}"line"===u.get("symbol-placement")&&(this.features=function(G){const q={},Y={},X=[];let J=0;function ie(xe){X.push(G[xe]),J++}function le(xe,_e,me){const Ie=Y[xe];return delete Y[xe],Y[_e]=Ie,X[Ie].geometry[0].pop(),X[Ie].geometry[0]=X[Ie].geometry[0].concat(me[0]),Ie}function be(xe,_e,me){const Ie=q[_e];return delete q[_e],q[xe]=Ie,X[Ie].geometry[0].shift(),X[Ie].geometry[0]=me[0].concat(X[Ie].geometry[0]),Ie}function Pe(xe,_e,me){const Ie=me?_e[0][_e[0].length-1]:_e[0][0];return`${xe}:${Ie.x}:${Ie.y}`}for(let xe=0;xexe.geometry)}(this.features)),this.sortFeaturesByKey&&this.features.sort((G,q)=>G.sortKey-q.sortKey)}update(e,r,n){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(e,r,this.layers,n),this.icon.programConfigurations.updatePaintArrays(e,r,this.layers,n))}isEmpty(){return 0===this.symbolInstances.length&&!this.hasRTLText}uploadPending(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload}upload(e){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(e),this.iconCollisionBox.upload(e)),this.text.upload(e,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(e,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0}destroyDebugData(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()}destroy(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()}addToLineVertexArray(e,r){const n=this.lineVertexArray.length;if(void 0!==e.segment){let o=e.dist(r[e.segment+1]),u=e.dist(r[e.segment]);const d={};for(let m=e.segment+1;m=0;m--)d[m]={x:r[m].x,y:r[m].y,tileUnitDistanceFromAnchor:u},m>0&&(u+=r[m-1].dist(r[m]));for(let m=0;m0}hasIconData(){return this.icon.segments.get().length>0}hasDebugData(){return this.textCollisionBox&&this.iconCollisionBox}hasTextCollisionBoxData(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0}hasIconCollisionBoxData(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0}addIndicesForPlacedSymbol(e,r){const n=e.placedSymbolArray.get(r),o=n.vertexStartIndex+4*n.numGlyphs;for(let u=n.vertexStartIndex;uo[m]-o[y]||u[y]-u[m]),d}addToSortKeyRanges(e,r){const n=this.sortKeyRanges[this.sortKeyRanges.length-1];n&&n.sortKey===r?n.symbolInstanceEnd=e+1:this.sortKeyRanges.push({sortKey:r,symbolInstanceStart:e,symbolInstanceEnd:e+1})}sortFeatures(e){if(this.sortFeaturesByY&&this.sortedAngle!==e&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(e),this.sortedAngle=e,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(const r of this.symbolInstanceIndexes){const n=this.symbolInstances.get(r);this.featureSortOrder.push(n.featureIndex),[n.rightJustifiedTextSymbolIndex,n.centerJustifiedTextSymbolIndex,n.leftJustifiedTextSymbolIndex].forEach((o,u,d)=>{o>=0&&d.indexOf(o)===u&&this.addIndicesForPlacedSymbol(this.text,o)}),n.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,n.verticalPlacedTextSymbolIndex),n.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,n.placedIconSymbolIndex),n.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,n.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}}}let _h,xh;Ee("SymbolBucket",ps,{omit:["layers","collisionBoxArray","features","compareText"]}),ps.MAX_GLYPHS=65535,ps.addDynamicAttributes=sc;var cc={get paint(){return xh=xh||new gi({"icon-opacity":new Ve(Q.paint_symbol["icon-opacity"]),"icon-color":new Ve(Q.paint_symbol["icon-color"]),"icon-halo-color":new Ve(Q.paint_symbol["icon-halo-color"]),"icon-halo-width":new Ve(Q.paint_symbol["icon-halo-width"]),"icon-halo-blur":new Ve(Q.paint_symbol["icon-halo-blur"]),"icon-translate":new De(Q.paint_symbol["icon-translate"]),"icon-translate-anchor":new De(Q.paint_symbol["icon-translate-anchor"]),"text-opacity":new Ve(Q.paint_symbol["text-opacity"]),"text-color":new Ve(Q.paint_symbol["text-color"],{runtimeType:Ht,getOverride:i=>i.textColor,hasOverride:i=>!!i.textColor}),"text-halo-color":new Ve(Q.paint_symbol["text-halo-color"]),"text-halo-width":new Ve(Q.paint_symbol["text-halo-width"]),"text-halo-blur":new Ve(Q.paint_symbol["text-halo-blur"]),"text-translate":new De(Q.paint_symbol["text-translate"]),"text-translate-anchor":new De(Q.paint_symbol["text-translate-anchor"])})},get layout(){return _h=_h||new gi({"symbol-placement":new De(Q.layout_symbol["symbol-placement"]),"symbol-spacing":new De(Q.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new De(Q.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new Ve(Q.layout_symbol["symbol-sort-key"]),"symbol-z-order":new De(Q.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new De(Q.layout_symbol["icon-allow-overlap"]),"icon-overlap":new De(Q.layout_symbol["icon-overlap"]),"icon-ignore-placement":new De(Q.layout_symbol["icon-ignore-placement"]),"icon-optional":new De(Q.layout_symbol["icon-optional"]),"icon-rotation-alignment":new De(Q.layout_symbol["icon-rotation-alignment"]),"icon-size":new Ve(Q.layout_symbol["icon-size"]),"icon-text-fit":new De(Q.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new De(Q.layout_symbol["icon-text-fit-padding"]),"icon-image":new Ve(Q.layout_symbol["icon-image"]),"icon-rotate":new Ve(Q.layout_symbol["icon-rotate"]),"icon-padding":new Ve(Q.layout_symbol["icon-padding"]),"icon-keep-upright":new De(Q.layout_symbol["icon-keep-upright"]),"icon-offset":new Ve(Q.layout_symbol["icon-offset"]),"icon-anchor":new Ve(Q.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new De(Q.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new De(Q.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new De(Q.layout_symbol["text-rotation-alignment"]),"text-field":new Ve(Q.layout_symbol["text-field"]),"text-font":new Ve(Q.layout_symbol["text-font"]),"text-size":new Ve(Q.layout_symbol["text-size"]),"text-max-width":new Ve(Q.layout_symbol["text-max-width"]),"text-line-height":new De(Q.layout_symbol["text-line-height"]),"text-letter-spacing":new Ve(Q.layout_symbol["text-letter-spacing"]),"text-justify":new Ve(Q.layout_symbol["text-justify"]),"text-radial-offset":new Ve(Q.layout_symbol["text-radial-offset"]),"text-variable-anchor":new De(Q.layout_symbol["text-variable-anchor"]),"text-variable-anchor-offset":new Ve(Q.layout_symbol["text-variable-anchor-offset"]),"text-anchor":new Ve(Q.layout_symbol["text-anchor"]),"text-max-angle":new De(Q.layout_symbol["text-max-angle"]),"text-writing-mode":new De(Q.layout_symbol["text-writing-mode"]),"text-rotate":new Ve(Q.layout_symbol["text-rotate"]),"text-padding":new De(Q.layout_symbol["text-padding"]),"text-keep-upright":new De(Q.layout_symbol["text-keep-upright"]),"text-transform":new Ve(Q.layout_symbol["text-transform"]),"text-offset":new Ve(Q.layout_symbol["text-offset"]),"text-allow-overlap":new De(Q.layout_symbol["text-allow-overlap"]),"text-overlap":new De(Q.layout_symbol["text-overlap"]),"text-ignore-placement":new De(Q.layout_symbol["text-ignore-placement"]),"text-optional":new De(Q.layout_symbol["text-optional"])})}};class vh{constructor(e){if(void 0===e.property.overrides)throw new Error("overrides must be provided to instantiate FormatSectionOverride class");this.type=e.property.overrides?e.property.overrides.runtimeType:or,this.defaultValue=e}evaluate(e){if(e.formattedSection){const r=this.defaultValue.property.overrides;if(r&&r.hasOverride(e.formattedSection))return r.getOverride(e.formattedSection)}return e.feature&&e.featureState?this.defaultValue.evaluate(e.feature,e.featureState):this.defaultValue.property.specification.default}eachChild(e){this.defaultValue.isConstant()||e(this.defaultValue.value._styleExpression.expression)}outputDefined(){return!1}serialize(){return null}}Ee("FormatSectionOverride",vh,{omit:["defaultValue"]});class ol extends Fr{constructor(e){super(e,cc)}recalculate(e,r){if(super.recalculate(e,r),"auto"===this.layout.get("icon-rotation-alignment")&&(this.layout._values["icon-rotation-alignment"]="point"!==this.layout.get("symbol-placement")?"map":"viewport"),"auto"===this.layout.get("text-rotation-alignment")&&(this.layout._values["text-rotation-alignment"]="point"!==this.layout.get("symbol-placement")?"map":"viewport"),"auto"===this.layout.get("text-pitch-alignment")&&(this.layout._values["text-pitch-alignment"]="map"===this.layout.get("text-rotation-alignment")?"map":"viewport"),"auto"===this.layout.get("icon-pitch-alignment")&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),"point"===this.layout.get("symbol-placement")){const n=this.layout.get("text-writing-mode");if(n){const o=[];for(const u of n)o.indexOf(u)<0&&o.push(u);this.layout._values["text-writing-mode"]=o}else this.layout._values["text-writing-mode"]=["horizontal"]}this._setPaintOverrides()}getValueAndResolveTokens(e,r,n,o){const u=this.layout.get(e).evaluate(r,{},n,o),d=this._unevaluatedLayout._values[e];return d.isDataDriven()||Un(d.value)||!u?u:(m=r.properties,u.replace(/{([^{}]+)}/g,(v,S)=>S in m?String(m[S]):""));var m}createBucket(e){return new ps(e)}queryRadius(){return 0}queryIntersectsFeature(){throw new Error("Should take a different path in FeatureIndex")}_setPaintOverrides(){for(const e of cc.paint.overridableProperties){if(!ol.hasPaintOverride(this.layout,e))continue;const r=this.paint.get(e),n=new vh(r),o=new Vt(n,r.property.specification);let u=null;u="constant"===r.value.kind||"source"===r.value.kind?new cn("source",o):new zt("composite",o,r.value.zoomStops),this.paint._values[e]=new Cr(r.property,u,r.parameters)}}_handleOverridablePaintPropertyUpdate(e,r,n){return!(!this.layout||r.isDataDriven()||n.isDataDriven())&&ol.hasPaintOverride(this.layout,e)}static hasPaintOverride(e,r){const n=e.get("text-field"),o=cc.paint.properties[r];let u=!1;const d=m=>{for(const y of m)if(o.overrides&&o.overrides.hasOverride(y))return void(u=!0)};if("constant"===n.value.kind&&n.value.value instanceof Kt)d(n.value.value.sections);else if("source"===n.value.kind){const m=v=>{u||(v instanceof da&&Yt(v.value)===Bi?d(v.value.sections):v instanceof Fn?d(v.sections):v.eachChild(m))},y=n.value;y._styleExpression&&m(y._styleExpression.expression)}return u}}let bh;var wp={get paint(){return bh=bh||new gi({"background-color":new De(Q.paint_background["background-color"]),"background-pattern":new Vs(Q.paint_background["background-pattern"]),"background-opacity":new De(Q.paint_background["background-opacity"])})}};class Sp extends Fr{constructor(e){super(e,wp)}}let wh;var Ep={get paint(){return wh=wh||new gi({"raster-opacity":new De(Q.paint_raster["raster-opacity"]),"raster-hue-rotate":new De(Q.paint_raster["raster-hue-rotate"]),"raster-brightness-min":new De(Q.paint_raster["raster-brightness-min"]),"raster-brightness-max":new De(Q.paint_raster["raster-brightness-max"]),"raster-saturation":new De(Q.paint_raster["raster-saturation"]),"raster-contrast":new De(Q.paint_raster["raster-contrast"]),"raster-resampling":new De(Q.paint_raster["raster-resampling"]),"raster-fade-duration":new De(Q.paint_raster["raster-fade-duration"])})}};class Tp extends Fr{constructor(e){super(e,Ep)}}class Ip extends Fr{constructor(e){super(e,{}),this.onAdd=r=>{this.implementation.onAdd&&this.implementation.onAdd(r,r.painter.context.gl)},this.onRemove=r=>{this.implementation.onRemove&&this.implementation.onRemove(r,r.painter.context.gl)},this.implementation=e}is3D(){return"3d"===this.implementation.renderingMode}hasOffscreenPass(){return void 0!==this.implementation.prerender}recalculate(){}updateTransitions(){}hasTransition(){return!1}serialize(){throw new Error("Custom layers cannot be serialized")}}class Cp{constructor(e){this._callback=e,this._triggered=!1,typeof MessageChannel<"u"&&(this._channel=new MessageChannel,this._channel.port2.onmessage=()=>{this._triggered=!1,this._callback()})}trigger(){this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout(()=>{this._triggered=!1,this._callback()},0))}remove(){delete this._channel,this._callback=()=>{}}}const hc=6371008.8;class Ya{constructor(e,r){if(isNaN(e)||isNaN(r))throw new Error(`Invalid LngLat object: (${e}, ${r})`);if(this.lng=+e,this.lat=+r,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new Ya(Nr(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(e){const r=Math.PI/180,n=this.lat*r,o=e.lat*r,u=Math.sin(n)*Math.sin(o)+Math.cos(n)*Math.cos(o)*Math.cos((e.lng-this.lng)*r);return hc*Math.acos(Math.min(u,1))}static convert(e){if(e instanceof Ya)return e;if(Array.isArray(e)&&(2===e.length||3===e.length))return new Ya(Number(e[0]),Number(e[1]));if(!Array.isArray(e)&&"object"==typeof e&&null!==e)return new Ya(Number("lng"in e?e.lng:e.lon),Number(e.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")}}const Sh=2*Math.PI*hc;function Eh(i){return Sh*Math.cos(i*Math.PI/180)}function Th(i){return(180+i)/360}function Ih(i){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+i*Math.PI/360)))/360}function Ch(i,e){return i/Eh(e)}function uc(i){return 360/Math.PI*Math.atan(Math.exp((180-360*i)*Math.PI/180))-90}class ll{constructor(e,r,n=0){this.x=+e,this.y=+r,this.z=+n}static fromLngLat(e,r=0){const n=Ya.convert(e);return new ll(Th(n.lng),Ih(n.lat),Ch(r,n.lat))}toLngLat(){return new Ya(360*this.x-180,uc(this.y))}toAltitude(){return this.z*Eh(uc(this.y))}meterInMercatorCoordinateUnits(){return 1/Sh*(e=uc(this.y),1/Math.cos(e*Math.PI/180));var e}}function Ah(i,e,r){var n=2*Math.PI*6378137/256/Math.pow(2,r);return[i*n-2*Math.PI*6378137/2,e*n-2*Math.PI*6378137/2]}class pc{constructor(e,r,n){if(e<0||e>25||n<0||n>=Math.pow(2,e)||r<0||r>=Math.pow(2,e))throw new Error(`x=${r}, y=${n}, z=${e} outside of bounds. 0<=x<${Math.pow(2,e)}, 0<=y<${Math.pow(2,e)} 0<=z<=25 `);this.z=e,this.x=r,this.y=n,this.key=oo(0,e,e,r,n)}equals(e){return this.z===e.z&&this.x===e.x&&this.y===e.y}url(e,r,n){const o=(d=this.y,m=this.z,y=Ah(256*(u=this.x),256*(d=Math.pow(2,m)-d-1),m),v=Ah(256*(u+1),256*(d+1),m),y[0]+","+y[1]+","+v[0]+","+v[1]);var u,d,m,y,v;const S=function(C,M,k){let D,N="";for(let G=C;G>0;G--)D=1<1?"@2x":"").replace(/{quadkey}/g,S).replace(/{bbox-epsg-3857}/g,o)}isChildOf(e){const r=this.z-e.z;return r>0&&e.x===this.x>>r&&e.y===this.y>>r}getTilePoint(e){const r=Math.pow(2,this.z);return new Be((e.x*r-this.x)*Zt,(e.y*r-this.y)*Zt)}toString(){return`${this.z}/${this.x}/${this.y}`}}class Mh{constructor(e,r){this.wrap=e,this.canonical=r,this.key=oo(e,r.z,r.z,r.x,r.y)}}class Pr{constructor(e,r,n,o,u){if(e= z; overscaledZ = ${e}; z = ${n}`);this.overscaledZ=e,this.wrap=r,this.canonical=new pc(n,+o,+u),this.key=oo(r,e,n,o,u)}clone(){return new Pr(this.overscaledZ,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)}equals(e){return this.overscaledZ===e.overscaledZ&&this.wrap===e.wrap&&this.canonical.equals(e.canonical)}scaledTo(e){if(e>this.overscaledZ)throw new Error(`targetZ > this.overscaledZ; targetZ = ${e}; overscaledZ = ${this.overscaledZ}`);const r=this.canonical.z-e;return e>this.canonical.z?new Pr(e,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Pr(e,this.wrap,e,this.canonical.x>>r,this.canonical.y>>r)}calculateScaledKey(e,r){if(e>this.overscaledZ)throw new Error(`targetZ > this.overscaledZ; targetZ = ${e}; overscaledZ = ${this.overscaledZ}`);const n=this.canonical.z-e;return e>this.canonical.z?oo(this.wrap*+r,e,this.canonical.z,this.canonical.x,this.canonical.y):oo(this.wrap*+r,e,e,this.canonical.x>>n,this.canonical.y>>n)}isChildOf(e){if(e.wrap!==this.wrap)return!1;const r=this.canonical.z-e.canonical.z;return 0===e.overscaledZ||e.overscaledZ>r&&e.canonical.y===this.canonical.y>>r}children(e){if(this.overscaledZ>=e)return[new Pr(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];const r=this.canonical.z+1,n=2*this.canonical.x,o=2*this.canonical.y;return[new Pr(r,this.wrap,r,n,o),new Pr(r,this.wrap,r,n+1,o),new Pr(r,this.wrap,r,n,o+1),new Pr(r,this.wrap,r,n+1,o+1)]}isLessThan(e){return this.wrape.wrap)&&(this.overscaledZe.overscaledZ)&&(this.canonical.xe.canonical.x)&&this.canonical.ythis.max&&(this.max=m),m=this.dim+1||r<-1||r>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(r+1)*this.stride+(e+1)}_unpackMapbox(e,r,n){return(256*e*256+256*r+n)/10-1e4}_unpackTerrarium(e,r,n){return 256*e+r+n/256-32768}getPixels(){return new zr({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))}backfillBorder(e,r,n){if(this.dim!==e.dim)throw new Error("dem dimension mismatch");let o=r*this.dim,u=r*this.dim+this.dim,d=n*this.dim,m=n*this.dim+this.dim;switch(r){case-1:o=u-1;break;case 1:u=o+1}switch(n){case-1:d=m-1;break;case 1:m=d+1}const y=-r*this.dim,v=-n*this.dim;for(let S=d;S=this._numberToString.length)throw new Error(`Out of bounds. Index requested n=${e} can't be >= this._numberToString.length ${this._numberToString.length}`);return this._numberToString[e]}}class kh{constructor(e,r,n,o,u){this.type="Feature",this._vectorTileFeature=e,e._z=r,e._x=n,e._y=o,this.properties=e.properties,this.id=u}get geometry(){return void 0===this._geometry&&(this._geometry=this._vectorTileFeature.toGeoJSON(this._vectorTileFeature._x,this._vectorTileFeature._y,this._vectorTileFeature._z).geometry),this._geometry}set geometry(e){this._geometry=e}toJSON(){const e={geometry:this.geometry};for(const r in this)"_geometry"!==r&&"_vectorTileFeature"!==r&&(e[r]=this[r]);return e}}class Lh{constructor(e,r){this.tileID=e,this.x=e.canonical.x,this.y=e.canonical.y,this.z=e.canonical.z,this.grid=new ba(Zt,16,0),this.grid3D=new ba(Zt,16,0),this.featureIndexArray=new te,this.promoteId=r}insert(e,r,n,o,u,d){const m=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(n,o,u);const y=d?this.grid3D:this.grid;for(let v=0;v=0&&C[3]>=0&&y.insert(m,C[0],C[1],C[2],C[3])}}loadVTLayers(){return this.vtLayers||(this.vtLayers=new Wa.VectorTile(new ec(this.rawTileData)).layers,this.sourceLayerCoder=new Ph(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers}query(e,r,n,o){this.loadVTLayers();const u=e.params||{},d=Zt/e.tileSize/e.scale,m=Es(u.filter),y=e.queryGeometry,v=e.queryPadding*d,S=Rh(y),C=this.grid.query(S.minX-v,S.minY-v,S.maxX+v,S.maxY+v),M=Rh(e.cameraQueryGeometry),k=this.grid3D.query(M.minX-v,M.minY-v,M.maxX+v,M.maxY+v,(G,q,Y,X)=>function(J,ie,le,be,Pe){for(const _e of J)if(ie<=_e.x&&le<=_e.y&&be>=_e.x&&Pe>=_e.y)return!0;const xe=[new Be(ie,le),new Be(ie,Pe),new Be(be,Pe),new Be(be,le)];if(J.length>2)for(const _e of xe)if(ns(J,_e))return!0;for(let _e=0;_e(X||(X=ca(J)),ie.queryIntersectsFeature(y,J,le,X,this.z,e.transform,d,e.pixelPosMatrix)))}return D}loadMatchingFeature(e,r,n,o,u,d,m,y,v,S,C){const M=this.bucketLayerIDs[r];if(d&&!function(G,q){for(let Y=0;Y=0)return!0;return!1}(d,M))return;const k=this.sourceLayerCoder.decode(n),D=this.vtLayers[k].feature(o);if(u.needGeometry){const G=Hr(D,!0);if(!u.filter(new Dt(this.tileID.overscaledZ),G,this.tileID.canonical))return}else if(!u.filter(new Dt(this.tileID.overscaledZ),D))return;const N=this.getId(D,k);for(let G=0;G{const m=e instanceof Yn?e.get(d):null;return m&&m.evaluate?m.evaluate(r,n,o):m})}function Rh(i){let e=1/0,r=1/0,n=-1/0,o=-1/0;for(const u of i)e=Math.min(e,u.x),r=Math.min(r,u.y),n=Math.max(n,u.x),o=Math.max(o,u.y);return{minX:e,minY:r,maxX:n,maxY:o}}function Ap(i,e){return e-i}function Bh(i,e,r,n,o){const u=[];for(let d=0;d=n&&C.x>=n||(S.x>=n?S=new Be(n,S.y+(n-S.x)/(C.x-S.x)*(C.y-S.y))._round():C.x>=n&&(C=new Be(n,S.y+(n-S.x)/(C.x-S.x)*(C.y-S.y))._round()),S.y>=o&&C.y>=o||(S.y>=o?S=new Be(S.x+(o-S.y)/(C.y-S.y)*(C.x-S.x),o)._round():C.y>=o&&(C=new Be(S.x+(o-S.y)/(C.y-S.y)*(C.x-S.x),o)._round()),y&&S.equals(y[y.length-1])||(y=[S],u.push(y)),y.push(C)))))}}return u}Ee("FeatureIndex",Lh,{omit:["rawTileData","sourceLayerCoder"]});class Ja extends Be{constructor(e,r,n,o){super(e,r),this.angle=n,void 0!==o&&(this.segment=o)}clone(){return new Ja(this.x,this.y,this.angle,this.segment)}}function Fh(i,e,r,n,o){if(void 0===e.segment||0===r)return!0;let u=e,d=e.segment+1,m=0;for(;m>-r/2;){if(d--,d<0)return!1;m-=i[d].dist(u),u=i[d]}m+=i[d].dist(i[d+1]),d++;const y=[];let v=0;for(;mn;)v-=y.shift().angleDelta;if(v>o)return!1;d++,m+=S.dist(C)}return!0}function Oh(i){let e=0;for(let r=0;rv){const D=(v-y)/k,N=hr.number(C.x,M.x,D),G=hr.number(C.y,M.y,D),q=new Ja(N,G,M.angleTo(C),S);return q._round(),!d||Fh(i,q,m,d,e)?q:void 0}y+=k}}function zp(i,e,r,n,o,u,d,m,y){const v=Uh(n,u,d),S=Vh(n,o),C=S*d,M=0===i[0].x||i[0].x===y||0===i[0].y||i[0].y===y;return e-C=0&&J=0&&ie=0&&M+v<=S){const le=new Ja(J,ie,Y,D);le._round(),n&&!Fh(i,le,u,n,o)||k.push(le)}}C+=q}return m||k.length||d||(k=Nh(i,C/2,r,n,o,u,d,!0,y)),k}Ee("Anchor",Ja);function $h(i,e,r,n){const o=[],u=i.image,d=u.pixelRatio,m=u.paddedRect.w-2,y=u.paddedRect.h-2,v=i.right-i.left,S=i.bottom-i.top,C=u.stretchX||[[0,m]],M=u.stretchY||[[0,y]],k=(me,Ie)=>me+Ie[1]-Ie[0],D=C.reduce(k,0),N=M.reduce(k,0),G=m-D,q=y-N;let Y=0,X=D,J=0,ie=N,le=0,be=G,Pe=0,xe=q;if(u.content&&n){const me=u.content;Y=cl(C,0,me[0]),J=cl(M,0,me[1]),X=cl(C,me[0],me[2]),ie=cl(M,me[1],me[3]),le=me[0]-Y,Pe=me[1]-J,be=me[2]-me[0]-X,xe=me[3]-me[1]-ie}const _e=(me,Ie,ge,ue)=>{const Oe=hl(me.stretch-Y,X,v,i.left),ke=ul(me.fixed-le,be,me.stretch,D),Je=hl(Ie.stretch-J,ie,S,i.top),kt=ul(Ie.fixed-Pe,xe,Ie.stretch,N),Rt=hl(ge.stretch-Y,X,v,i.left),_i=ul(ge.fixed-le,be,ge.stretch,D),Er=hl(ue.stretch-J,ie,S,i.top),er=ul(ue.fixed-Pe,xe,ue.stretch,N),li=new Be(Oe,Je),Ii=new Be(Rt,Je),Vi=new Be(Rt,Er),dr=new Be(Oe,Er),tr=new Be(ke/d,kt/d),ci=new Be(_i/d,er/d),xi=e*Math.PI/180;if(xi){const mr=Math.sin(xi),fr=Math.cos(xi),qt=[fr,-mr,mr,fr];li._matMult(qt),Ii._matMult(qt),dr._matMult(qt),Vi._matMult(qt)}const qi=me.stretch+me.fixed,ir=Ie.stretch+Ie.fixed;return{tl:li,tr:Ii,bl:dr,br:Vi,tex:{x:u.paddedRect.x+1+qi,y:u.paddedRect.y+1+ir,w:ge.stretch+ge.fixed-qi,h:ue.stretch+ue.fixed-ir},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:tr,pixelOffsetBR:ci,minFontScaleX:be/d/v,minFontScaleY:xe/d/S,isSDF:r}};if(n&&(u.stretchX||u.stretchY)){const me=Zh(C,G,D),Ie=Zh(M,q,N);for(let ge=0;ge0&&(D=Math.max(10,D),this.circleDiameter=D)}else{let C=d.top*m-y[0],M=d.bottom*m+y[2],k=d.left*m-y[3],D=d.right*m+y[1];const N=d.collisionPadding;if(N&&(k-=N[0]*m,C-=N[1]*m,D+=N[2]*m,M+=N[3]*m),S){const G=new Be(k,C),q=new Be(D,C),Y=new Be(k,M),X=new Be(D,M),J=S*Math.PI/180;G._rotate(J),q._rotate(J),Y._rotate(J),X._rotate(J),k=Math.min(G.x,q.x,Y.x,X.x),D=Math.max(G.x,q.x,Y.x,X.x),C=Math.min(G.y,q.y,Y.y,X.y),M=Math.max(G.y,q.y,Y.y,X.y)}e.emplaceBack(r.x,r.y,k,C,D,M,n,o,u)}this.boxEndIndex=e.length}}class Pp{constructor(e=[],r=kp){if(this.data=e,this.length=this.data.length,this.compare=r,this.length>0)for(let n=(this.length>>1)-1;n>=0;n--)this._down(n)}push(e){this.data.push(e),this.length++,this._up(this.length-1)}pop(){if(0===this.length)return;const e=this.data[0],r=this.data.pop();return this.length--,this.length>0&&(this.data[0]=r,this._down(0)),e}peek(){return this.data[0]}_up(e){const{data:r,compare:n}=this,o=r[e];for(;e>0;){const u=e-1>>1,d=r[u];if(n(o,d)>=0)break;r[e]=d,e=u}r[e]=o}_down(e){const{data:r,compare:n}=this,o=this.length>>1,u=r[e];for(;e=0)break;r[e]=m,e=d}r[e]=u}}function kp(i,e){return ie?1:0}function Lp(i,e=1,r=!1){let n=1/0,o=1/0,u=-1/0,d=-1/0;const m=i[0];for(let k=0;ku)&&(u=D.x),(!k||D.y>d)&&(d=D.y)}const y=Math.min(u-n,d-o);let v=y/2;const S=new Pp([],Dp);if(0===y)return new Be(n,o);for(let k=n;kC.d||!C.d)&&(C=k,r&&console.log("found best %d after %d probes",Math.round(1e4*k.d)/1e4,M)),k.max-C.d<=e||(v=k.h/2,S.push(new ms(k.p.x-v,k.p.y-v,v,i)),S.push(new ms(k.p.x+v,k.p.y-v,v,i)),S.push(new ms(k.p.x-v,k.p.y+v,v,i)),S.push(new ms(k.p.x+v,k.p.y+v,v,i)),M+=4)}return r&&(console.log(`num probes: ${M}`),console.log(`best distance: ${C.d}`)),C.p}function Dp(i,e){return e.max-i.max}function ms(i,e,r,n){this.p=new Be(i,e),this.h=r,this.d=function(o,u){let d=!1,m=1/0;for(let y=0;yo.y!=D.y>o.y&&o.x<(D.x-k.x)*(o.y-k.y)/(D.y-k.y)+k.x&&(d=!d),m=Math.min(m,Ic(o,k,D))}}return(d?1:-1)*Math.sqrt(m)}(this.p,n),this.max=this.d+this.h*Math.SQRT2}var Ui;c.TextAnchorEnum=void 0,(Ui=c.TextAnchorEnum||(c.TextAnchorEnum={}))[Ui.center=1]="center",Ui[Ui.left=2]="left",Ui[Ui.right=3]="right",Ui[Ui.top=4]="top",Ui[Ui.bottom=5]="bottom",Ui[Ui["top-left"]=6]="top-left",Ui[Ui["top-right"]=7]="top-right",Ui[Ui["bottom-left"]=8]="bottom-left",Ui[Ui["bottom-right"]=9]="bottom-right";const dc=Number.POSITIVE_INFINITY;function Gh(i,e){return e[1]!==dc?function(r,n,o){let u=0,d=0;switch(n=Math.abs(n),o=Math.abs(o),r){case"top-right":case"top-left":case"top":d=o-7;break;case"bottom-right":case"bottom-left":case"bottom":d=7-o}switch(r){case"top-right":case"bottom-right":case"right":u=-n;break;case"top-left":case"bottom-left":case"left":u=n}return[u,d]}(i,e[0],e[1]):function(r,n){let o=0,u=0;n<0&&(n=0);const d=n/Math.sqrt(2);switch(r){case"top-right":case"top-left":u=d-7;break;case"bottom-right":case"bottom-left":u=7-d;break;case"bottom":u=7-n;break;case"top":u=n-7}switch(r){case"top-right":case"bottom-right":o=-d;break;case"top-left":case"bottom-left":o=d;break;case"left":o=n;break;case"right":o=-n}return[o,u]}(i,e[0])}function jh(i,e,r){var n;const o=i.layout,u=null===(n=o.get("text-variable-anchor-offset"))||void 0===n?void 0:n.evaluate(e,{},r);if(u){const m=u.values,y=[];for(let v=0;v24*M);S.startsWith("top")?C[1]-=7:S.startsWith("bottom")&&(C[1]+=7),y[v+1]=C}return new Fi(y)}const d=o.get("text-variable-anchor");if(d){let m;m=void 0!==i._unevaluatedLayout.getValue("text-radial-offset")?[24*o.get("text-radial-offset").evaluate(e,{},r),dc]:o.get("text-offset").evaluate(e,{},r).map(v=>24*v);const y=[];for(const v of d)y.push(v,Gh(v,m));return new Fi(y)}return null}function mc(i){switch(i){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function Rp(i,e,r,n,o,u,d,m,y,v,S){let C=u.textMaxSize.evaluate(e,{});void 0===C&&(C=d);const M=i.layers[0].layout,k=M.get("icon-offset").evaluate(e,{},S),D=Xh(r.horizontal),N=d/24,G=i.tilePixelRatio*N,q=i.tilePixelRatio*C/24,Y=i.tilePixelRatio*m,X=i.tilePixelRatio*M.get("symbol-spacing"),J=M.get("text-padding")*i.tilePixelRatio,ie=function(ue,Oe,ke,Je=1){const kt=ue.get("icon-padding").evaluate(Oe,{},ke),Rt=kt&&kt.values;return[Rt[0]*Je,Rt[1]*Je,Rt[2]*Je,Rt[3]*Je]}(M,e,S,i.tilePixelRatio),le=M.get("text-max-angle")/180*Math.PI,be="viewport"!==M.get("text-rotation-alignment")&&"point"!==M.get("symbol-placement"),Pe="map"===M.get("icon-rotation-alignment")&&"point"!==M.get("symbol-placement"),xe=M.get("symbol-placement"),_e=X/2,me=M.get("icon-text-fit");let Ie;n&&"none"!==me&&(i.allowVerticalPlacement&&r.vertical&&(Ie=gh(n,r.vertical,me,M.get("icon-text-fit-padding"),k,N)),D&&(n=gh(n,D,me,M.get("icon-text-fit-padding"),k,N)));const ge=(ue,Oe)=>{Oe.x<0||Oe.x>=Zt||Oe.y<0||Oe.y>=Zt||function(ke,Je,kt,Rt,_i,Er,er,li,Ii,Vi,dr,tr,ci,xi,qi,ir,mr,fr,qt,Ni,ot,Tr,$i,rr,Or){const Kr=ke.addToLineVertexArray(Je,kt);let Yr,Ma,Ur,kr,gr=0,za=0,ho=0,Yh=0,wc=-1,Sc=-1;const Pa={};let Jh=Xr("");if(ke.allowVerticalPlacement&&Rt.vertical){const Xi=li.layout.get("text-rotate").evaluate(ot,{},rr)+90;Ur=new pl(Ii,Je,Vi,dr,tr,Rt.vertical,ci,xi,qi,Xi),er&&(kr=new pl(Ii,Je,Vi,dr,tr,er,mr,fr,qi,Xi))}if(_i){const Xi=li.layout.get("icon-rotate").evaluate(ot,{}),Lr="none"!==li.layout.get("icon-text-fit"),bn=$h(_i,Xi,$i,Lr),Qr=er?$h(er,Xi,$i,Lr):void 0;Ma=new pl(Ii,Je,Vi,dr,tr,_i,mr,fr,!1,Xi),gr=4*bn.length;const wn=ke.iconSizeData;let ua=null;"source"===wn.kind?(ua=[ha*li.layout.get("icon-size").evaluate(ot,{})],ua[0]>Ka&&Me(`${ke.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)):"composite"===wn.kind&&(ua=[ha*Tr.compositeIconSizes[0].evaluate(ot,{},rr),ha*Tr.compositeIconSizes[1].evaluate(ot,{},rr)],(ua[0]>Ka||ua[1]>Ka)&&Me(`${ke.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)),ke.addSymbols(ke.icon,bn,ua,Ni,qt,ot,c.WritingMode.none,Je,Kr.lineStartIndex,Kr.lineLength,-1,rr),wc=ke.icon.placedSymbolArray.length-1,Qr&&(za=4*Qr.length,ke.addSymbols(ke.icon,Qr,ua,Ni,qt,ot,c.WritingMode.vertical,Je,Kr.lineStartIndex,Kr.lineLength,-1,rr),Sc=ke.icon.placedSymbolArray.length-1)}const Qh=Object.keys(Rt.horizontal);for(const Xi of Qh){const Lr=Rt.horizontal[Xi];if(!Yr){Jh=Xr(Lr.text);const Qr=li.layout.get("text-rotate").evaluate(ot,{},rr);Yr=new pl(Ii,Je,Vi,dr,tr,Lr,ci,xi,qi,Qr)}const bn=1===Lr.positionedLines.length;if(ho+=qh(ke,Je,Lr,Er,li,qi,ot,ir,Kr,Rt.vertical?c.WritingMode.horizontal:c.WritingMode.horizontalOnly,bn?Qh:[Xi],Pa,wc,Tr,rr),bn)break}Rt.vertical&&(Yh+=qh(ke,Je,Rt.vertical,Er,li,qi,ot,ir,Kr,c.WritingMode.vertical,["vertical"],Pa,Sc,Tr,rr));const Op=Yr?Yr.boxStartIndex:ke.collisionBoxArray.length,Up=Yr?Yr.boxEndIndex:ke.collisionBoxArray.length,Vp=Ur?Ur.boxStartIndex:ke.collisionBoxArray.length,Np=Ur?Ur.boxEndIndex:ke.collisionBoxArray.length,$p=Ma?Ma.boxStartIndex:ke.collisionBoxArray.length,Zp=Ma?Ma.boxEndIndex:ke.collisionBoxArray.length,Gp=kr?kr.boxStartIndex:ke.collisionBoxArray.length,jp=kr?kr.boxEndIndex:ke.collisionBoxArray.length;let Jr=-1;const ml=(Xi,Lr)=>Xi&&Xi.circleDiameter?Math.max(Xi.circleDiameter,Lr):Lr;Jr=ml(Yr,Jr),Jr=ml(Ur,Jr),Jr=ml(Ma,Jr),Jr=ml(kr,Jr);const eu=Jr>-1?1:0;eu&&(Jr*=Or/24),ke.glyphOffsetArray.length>=ps.MAX_GLYPHS&&Me("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),void 0!==ot.sortKey&&ke.addToSortKeyRanges(ke.symbolInstances.length,ot.sortKey);const qp=jh(li,ot,rr),[Xp,Wp]=function(Xi,Lr){const bn=Xi.length,Qr=Lr?.values;if(Qr?.length>0)for(let wn=0;wn=0?Pa.right:-1,Pa.center>=0?Pa.center:-1,Pa.left>=0?Pa.left:-1,Pa.vertical||-1,wc,Sc,Jh,Op,Up,Vp,Np,$p,Zp,Gp,jp,Vi,ho,Yh,gr,za,eu,0,ci,Jr,Xp,Wp)}(i,Oe,ue,r,n,o,Ie,i.layers[0],i.collisionBoxArray,e.index,e.sourceLayerIndex,i.index,G,[J,J,J,J],be,y,Y,ie,Pe,k,e,u,v,S,d)};if("line"===xe)for(const ue of Bh(e.geometry,0,0,Zt,Zt)){const Oe=zp(ue,X,le,r.vertical||D,n,24,q,i.overscaling,Zt);for(const ke of Oe)D&&Bp(i,D.text,_e,ke)||ge(ue,ke)}else if("line-center"===xe){for(const ue of e.geometry)if(ue.length>1){const Oe=Mp(ue,le,r.vertical||D,n,24,q);Oe&&ge(ue,Oe)}}else if("Polygon"===e.type)for(const ue of ql(e.geometry,0)){const Oe=Lp(ue,16);ge(ue[0],new Ja(Oe.x,Oe.y,0))}else if("LineString"===e.type)for(const ue of e.geometry)ge(ue,new Ja(ue[0].x,ue[0].y,0));else if("Point"===e.type)for(const ue of e.geometry)for(const Oe of ue)ge([Oe],new Ja(Oe.x,Oe.y,0))}function qh(i,e,r,n,o,u,d,m,y,v,S,C,M,k,D){const N=function(Y,X,J,ie,le,be,Pe,xe){const _e=ie.layout.get("text-rotate").evaluate(be,{})*Math.PI/180,me=[];for(const Ie of X.positionedLines)for(const ge of Ie.positionedGlyphs){if(!ge.rect)continue;const ue=ge.rect||{};let Oe=4,ke=!0,Je=1,kt=0;const Rt=(le||xe)&&ge.vertical,_i=ge.metrics.advance*ge.scale/2;if(xe&&X.verticalizable&&(kt=Ie.lineOffset/2-(ge.imageName?-(24-ge.metrics.width*ge.scale)/2:24*(ge.scale-1))),ge.imageName){const qt=Pe[ge.imageName];ke=qt.sdf,Je=qt.pixelRatio,Oe=1/Je}const Er=le?[ge.x+_i,ge.y]:[0,0];let er=le?[0,0]:[ge.x+_i+J[0],ge.y+J[1]-kt],li=[0,0];Rt&&(li=er,er=[0,0]);const Ii=(ge.metrics.left-Oe)*ge.scale-_i+er[0],Vi=(-ge.metrics.top-Oe)*ge.scale+er[1],dr=Ii+ue.w*ge.scale/Je,tr=Vi+ue.h*ge.scale/Je,ci=new Be(Ii,Vi),xi=new Be(dr,Vi),qi=new Be(Ii,tr),ir=new Be(dr,tr);if(Rt){const qt=new Be(-_i,_i- -17),Ni=-Math.PI/2,ot=12-_i,Tr=new Be(22-ot,-(ge.imageName?ot:0)),$i=new Be(...li);ci._rotateAround(Ni,qt)._add(Tr)._add($i),xi._rotateAround(Ni,qt)._add(Tr)._add($i),qi._rotateAround(Ni,qt)._add(Tr)._add($i),ir._rotateAround(Ni,qt)._add(Tr)._add($i)}if(_e){const qt=Math.sin(_e),Ni=Math.cos(_e),ot=[Ni,-qt,qt,Ni];ci._matMult(ot),xi._matMult(ot),qi._matMult(ot),ir._matMult(ot)}const mr=new Be(0,0),fr=new Be(0,0);me.push({tl:ci,tr:xi,bl:qi,br:ir,tex:ue,writingMode:X.writingMode,glyphOffset:Er,sectionIndex:ge.sectionIndex,isSDF:ke,pixelOffsetTL:mr,pixelOffsetBR:fr,minFontScaleX:0,minFontScaleY:0})}return me}(0,r,m,o,u,d,n,i.allowVerticalPlacement),G=i.textSizeData;let q=null;"source"===G.kind?(q=[ha*o.layout.get("text-size").evaluate(d,{})],q[0]>Ka&&Me(`${i.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`)):"composite"===G.kind&&(q=[ha*k.compositeTextSizes[0].evaluate(d,{},D),ha*k.compositeTextSizes[1].evaluate(d,{},D)],(q[0]>Ka||q[1]>Ka)&&Me(`${i.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`)),i.addSymbols(i.text,N,q,m,u,d,v,e,y.lineStartIndex,y.lineLength,M,D);for(const Y of S)C[Y]=i.text.placedSymbolArray.length-1;return 4*N.length}function Xh(i){for(const e in i)return i[e];return null}function Bp(i,e,r,n){const o=i.compareText;if(e in o){const u=o[e];for(let d=u.length-1;d>=0;d--)if(n.dist(u[d])>4;if(1!==o)throw new Error(`Got v${o} data when expected v1.`);const u=Wh[15&n];if(!u)throw new Error("Unrecognized array type.");const[d]=new Uint16Array(e,2,1),[m]=new Uint32Array(e,4,1);return new fc(m,d,u,e)}constructor(e,r=64,n=Float64Array,o){if(isNaN(e)||e<0)throw new Error(`Unpexpected numItems value: ${e}.`);this.numItems=+e,this.nodeSize=Math.min(Math.max(+r,2),65535),this.ArrayType=n,this.IndexArrayType=e<65536?Uint16Array:Uint32Array;const u=Wh.indexOf(this.ArrayType),d=2*e*this.ArrayType.BYTES_PER_ELEMENT,m=e*this.IndexArrayType.BYTES_PER_ELEMENT,y=(8-m%8)%8;if(u<0)throw new Error(`Unexpected typed array class: ${n}.`);o&&o instanceof ArrayBuffer?(this.data=o,this.ids=new this.IndexArrayType(this.data,8,e),this.coords=new this.ArrayType(this.data,8+m+y,2*e),this._pos=2*e,this._finished=!0):(this.data=new ArrayBuffer(8+d+m+y),this.ids=new this.IndexArrayType(this.data,8,e),this.coords=new this.ArrayType(this.data,8+m+y,2*e),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+u]),new Uint16Array(this.data,2,1)[0]=r,new Uint32Array(this.data,4,1)[0]=e)}add(e,r){const n=this._pos>>1;return this.ids[n]=n,this.coords[this._pos++]=e,this.coords[this._pos++]=r,n}finish(){const e=this._pos>>1;if(e!==this.numItems)throw new Error(`Added ${e} items when expected ${this.numItems}.`);return gc(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(e,r,n,o){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:u,coords:d,nodeSize:m}=this,y=[0,u.length-1,0],v=[];for(;y.length;){const S=y.pop()||0,C=y.pop()||0,M=y.pop()||0;if(C-M<=m){for(let G=M;G<=C;G++){const q=d[2*G],Y=d[2*G+1];q>=e&&q<=n&&Y>=r&&Y<=o&&v.push(u[G])}continue}const k=M+C>>1,D=d[2*k],N=d[2*k+1];D>=e&&D<=n&&N>=r&&N<=o&&v.push(u[k]),(0===S?e<=D:r<=N)&&(y.push(M),y.push(k-1),y.push(1-S)),(0===S?n>=D:o>=N)&&(y.push(k+1),y.push(C),y.push(1-S))}return v}within(e,r,n){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:o,coords:u,nodeSize:d}=this,m=[0,o.length-1,0],y=[],v=n*n;for(;m.length;){const S=m.pop()||0,C=m.pop()||0,M=m.pop()||0;if(C-M<=d){for(let G=M;G<=C;G++)Kh(u[2*G],u[2*G+1],e,r)<=v&&y.push(o[G]);continue}const k=M+C>>1,D=u[2*k],N=u[2*k+1];Kh(D,N,e,r)<=v&&y.push(o[k]),(0===S?e-n<=D:r-n<=N)&&(m.push(M),m.push(k-1),m.push(1-S)),(0===S?e+n>=D:r+n>=N)&&(m.push(k+1),m.push(C),m.push(1-S))}return y}}function gc(i,e,r,n,o,u){if(o-n<=r)return;const d=n+o>>1;Hh(i,e,d,n,o,u),gc(i,e,r,n,d-1,1-u),gc(i,e,r,d+1,o,1-u)}function Hh(i,e,r,n,o,u){for(;o>n;){if(o-n>600){const v=o-n+1,S=r-n+1,C=Math.log(v),M=.5*Math.exp(2*C/3),k=.5*Math.sqrt(C*M*(v-M)/v)*(S-v/2<0?-1:1);Hh(i,e,r,Math.max(n,Math.floor(r-S*M/v+k)),Math.min(o,Math.floor(r+(v-S)*M/v+k)),u)}const d=e[2*r+u];let m=n,y=o;for(lo(i,e,n,r),e[2*o+u]>d&&lo(i,e,n,o);md;)y--}e[2*n+u]===d?lo(i,e,n,y):(y++,lo(i,e,y,o)),y<=r&&(n=y+1),r<=y&&(o=y-1)}}function lo(i,e,r,n){yc(i,r,n),yc(e,2*r,2*n),yc(e,2*r+1,2*n+1)}function yc(i,e,r){const n=i[e];i[e]=i[r],i[r]=n}function Kh(i,e,r,n){const o=i-r,u=e-n;return o*o+u*u}var _c;c.PerformanceMarkers=void 0,(_c=c.PerformanceMarkers||(c.PerformanceMarkers={})).create="create",_c.load="load",_c.fullLoad="fullLoad";let dl=null,co=[];const xc=1e3/60,vc="loadTime",bc="fullLoadTime",Fp={mark(i){performance.mark(i)},frame(i){const e=i;null!=dl&&co.push(e-dl),dl=e},clearMetrics(){dl=null,co=[],performance.clearMeasures(vc),performance.clearMeasures(bc);for(const i in c.PerformanceMarkers)performance.clearMarks(c.PerformanceMarkers[i])},getPerformanceMetrics(){performance.measure(vc,c.PerformanceMarkers.create,c.PerformanceMarkers.load),performance.measure(bc,c.PerformanceMarkers.create,c.PerformanceMarkers.fullLoad);const i=performance.getEntriesByName(vc)[0].duration,e=performance.getEntriesByName(bc)[0].duration,r=co.length,n=1/(co.reduce((u,d)=>u+d,0)/r/1e3),o=co.filter(u=>u>xc).reduce((u,d)=>u+(d-xc)/xc,0);return{loadTime:i,fullLoadTime:e,fps:n,percentDroppedFrames:o/(r+o)*100,totalFrames:r}}};c.AJAXError=Mi,c.ARRAY_TYPE=ss,c.Actor=class{constructor(i,e,r){this.receive=n=>{const o=n.data,u=o.id;if(u&&(!o.targetMapId||this.mapId===o.targetMapId))if(""===o.type){delete this.tasks[u];const d=this.cancelCallbacks[u];delete this.cancelCallbacks[u],d&&d()}else xt()||o.mustQueue?(this.tasks[u]=o,this.taskQueue.push(u),this.invoker.trigger()):this.processTask(u,o)},this.process=()=>{if(!this.taskQueue.length)return;const n=this.taskQueue.shift(),o=this.tasks[n];delete this.tasks[n],this.taskQueue.length&&this.invoker.trigger(),o&&this.processTask(n,o)},this.target=i,this.parent=e,this.mapId=r,this.callbacks={},this.tasks={},this.taskQueue=[],this.cancelCallbacks={},this.invoker=new Cp(this.process),this.target.addEventListener("message",this.receive,!1),this.globalScope=xt()?i:window}send(i,e,r,n,o=!1){const u=Math.round(1e18*Math.random()).toString(36).substring(0,10);r&&(this.callbacks[u]=r);const d=Ft(this.globalScope)?void 0:[];return this.target.postMessage({id:u,type:i,hasCallback:!!r,targetMapId:n,mustQueue:o,sourceMapId:this.mapId,data:wa(e,d)},d),{cancel:()=>{r&&delete this.callbacks[u],this.target.postMessage({id:u,type:"",targetMapId:n,sourceMapId:this.mapId})}}}processTask(i,e){if(""===e.type){const r=this.callbacks[i];delete this.callbacks[i],r&&(e.error?r(Va(e.error)):r(null,Va(e.data)))}else{let r=!1;const n=Ft(this.globalScope)?void 0:[],o=e.hasCallback?(m,y)=>{r=!0,delete this.cancelCallbacks[i],this.target.postMessage({id:i,type:"",sourceMapId:this.mapId,error:m?wa(m):null,data:wa(y,n)},n)}:m=>{r=!0};let u=null;const d=Va(e.data);if(this.parent[e.type])u=this.parent[e.type](e.sourceMapId,d,o);else if(this.parent.getWorkerSource){const m=e.type.split(".");u=this.parent.getWorkerSource(e.sourceMapId,m[0],d.source)[m[1]](d,o)}else o(new Error(`Could not find function ${e.type}`));!r&&u&&u.cancel&&(this.cancelCallbacks[i]=u.cancel)}}remove(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)}},c.AlphaImage=Ks,c.CanonicalTileID=pc,c.CollisionBoxArray=_,c.CollisionCircleLayoutArray=class extends ts{},c.Color=Ze,c.DEMData=zh,c.DataConstantProperty=De,c.DictionaryCoder=Ph,c.EXTENT=Zt,c.ErrorEvent=pt,c.EvaluationParameters=Dt,c.Event=Le,c.Evented=ft,c.FeatureIndex=Lh,c.FillBucket=Hl,c.FillExtrusionBucket=Yl,c.GeoJSONFeature=kh,c.ImageAtlas=uh,c.ImagePosition=ic,c.KDBush=fc,c.LineBucket=Jl,c.LineStripIndexArray=class extends p{},c.LngLat=Ya,c.MercatorCoordinate=ll,c.ONE_EM=24,c.OverscaledTileID=Pr,c.PerformanceUtils=Fp,c.Point=Be,c.Pos3dArray=class extends Ga{},c.PosArray=j,c.Properties=gi,c.Protobuf=ec,c.QuadTriangleArray=class extends is{},c.RGBAImage=zr,c.RasterBoundsArray=class extends Qn{},c.RequestPerformance=class{constructor(i){this._marks={start:[i.url,"start"].join("#"),end:[i.url,"end"].join("#"),measure:i.url.toString()},performance.mark(this._marks.start)}finish(){performance.mark(this._marks.end);let i=performance.getEntriesByName(this._marks.measure);return 0===i.length&&(performance.measure(this._marks.measure,this._marks.start,this._marks.end),i=performance.getEntriesByName(this._marks.measure),performance.clearMarks(this._marks.start),performance.clearMarks(this._marks.end),performance.clearMeasures(this._marks.measure)),i}},c.SegmentVector=$e,c.SymbolBucket=ps,c.Transitionable=Kn,c.TriangleIndexArray=Ae,c.Uniform1f=Ei,c.Uniform1i=class extends jt{constructor(i,e){super(i,e),this.current=0}set(i){this.current!==i&&(this.current=i,this.gl.uniform1i(this.location,i))}},c.Uniform2f=class extends jt{constructor(i,e){super(i,e),this.current=[0,0]}set(i){i[0]===this.current[0]&&i[1]===this.current[1]||(this.current=i,this.gl.uniform2f(this.location,i[0],i[1]))}},c.Uniform3f=class extends jt{constructor(i,e){super(i,e),this.current=[0,0,0]}set(i){i[0]===this.current[0]&&i[1]===this.current[1]&&i[2]===this.current[2]||(this.current=i,this.gl.uniform3f(this.location,i[0],i[1],i[2]))}},c.Uniform4f=ja,c.UniformColor=oi,c.UniformMatrix4f=class extends jt{constructor(i,e){super(i,e),this.current=Ti}set(i){if(i[12]!==this.current[12]||i[0]!==this.current[0])return this.current=i,void this.gl.uniformMatrix4fv(this.location,!1,i);for(let e=1;e<16;e++)if(i[e]!==this.current[e]){this.current=i,this.gl.uniformMatrix4fv(this.location,!1,i);break}}},c.UnwrappedTileID=Mh,c.ValidationError=fe,c.ZoomHistory=Wn,c.addDynamicAttributes=sc,c.arrayBufferToImage=function(i,e){const r=new Image;r.onload=()=>{e(null,r),URL.revokeObjectURL(r.src),r.onload=null,window.requestAnimationFrame(()=>{r.src=pi})},r.onerror=()=>e(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));const n=new Blob([new Uint8Array(i)],{type:"image/png"});r.src=i.byteLength?URL.createObjectURL(n):pi},c.arrayBufferToImageBitmap=function(i,e){const r=new Blob([new Uint8Array(i)],{type:"image/png"});createImageBitmap(r).then(n=>{e(null,n)}).catch(n=>{e(new Error(`Could not load image because of ${n.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`))})},c.asyncAll=function(i,e,r){if(!i.length)return r(null,[]);let n=i.length;const o=new Array(i.length);let u=null;i.forEach((d,m)=>{e(d,(y,v)=>{y&&(u=y),o[m]=v,0==--n&&r(u,o)})})},c.bezier=lt,c.browser=sr,c.clamp=Et,c.clipLine=Bh,c.clone=function(i){var e=new ss(16);return e[0]=i[0],e[1]=i[1],e[2]=i[2],e[3]=i[3],e[4]=i[4],e[5]=i[5],e[6]=i[6],e[7]=i[7],e[8]=i[8],e[9]=i[9],e[10]=i[10],e[11]=i[11],e[12]=i[12],e[13]=i[13],e[14]=i[14],e[15]=i[15],e},c.clone$1=Ci,c.collisionCircleLayout=tp,c.config=Ai,c.copy=function(i,e){return i[0]=e[0],i[1]=e[1],i[2]=e[2],i[3]=e[3],i[4]=e[4],i[5]=e[5],i[6]=e[6],i[7]=e[7],i[8]=e[8],i[9]=e[9],i[10]=e[10],i[11]=e[11],i[12]=e[12],i[13]=e[13],i[14]=e[14],i[15]=e[15],i},c.create=function(){var i=new ss(16);return ss!=Float32Array&&(i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[6]=0,i[7]=0,i[8]=0,i[9]=0,i[11]=0,i[12]=0,i[13]=0,i[14]=0),i[0]=1,i[5]=1,i[10]=1,i[15]=1,i},c.createExpression=rt,c.createFilter=Es,c.createLayout=ti,c.createStyleLayer=function(i){if("custom"===i.type)return new Ip(i);switch(i.type){case"background":return new Sp(i);case"circle":return new lu(i);case"fill":return new Au(i);case"fill-extrusion":return new Zu(i);case"heatmap":return new hu(i);case"hillshade":return new pu(i);case"line":return new Yu(i);case"raster":return new Tp(i);case"symbol":return new ol(i)}},c.deepEqual=function i(e,r){if(Array.isArray(e)){if(!Array.isArray(r)||e.length!==r.length)return!1;for(let n=0;n{n[d.source]?r.push({command:it.removeLayer,args:[d.id]}):u.push(d)}),r=r.concat(o),function(d,m,y){m=m||[];const v=(d=d||[]).map(Dr),S=m.map(Dr),C=d.reduce(_r,{}),M=m.reduce(_r,{}),k=v.slice(),D=Object.create(null);let N,G,q,Y,X,J,ie;for(N=0,G=0;N{}}},c.groupByLayout=function(i,e){const r={};for(let o=0;o@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(r,n,o,u)=>{const d=o||u;return e[n]=!d||d.toLowerCase(),""}),e["max-age"]){const r=parseInt(e["max-age"],10);isNaN(r)?delete e["max-age"]:e["max-age"]=r}return e},c.parseGlyphPbf=function(i){return new ec(i).readFields(pp,[])},c.pbf=ih,c.performSymbolLayout=function(i){i.bucket.createArrays(),i.bucket.tilePixelRatio=Zt/(512*i.bucket.overscaling),i.bucket.compareText={},i.bucket.iconsNeedLinear=!1;const e=i.bucket.layers[0],r=e.layout,n=e._unevaluatedLayout._values,o={layoutIconSize:n["icon-size"].possiblyEvaluate(new Dt(i.bucket.zoom+1),i.canonical),layoutTextSize:n["text-size"].possiblyEvaluate(new Dt(i.bucket.zoom+1),i.canonical),textMaxSize:n["text-size"].possiblyEvaluate(new Dt(18))};if("composite"===i.bucket.textSizeData.kind){const{minZoom:v,maxZoom:S}=i.bucket.textSizeData;o.compositeTextSizes=[n["text-size"].possiblyEvaluate(new Dt(v),i.canonical),n["text-size"].possiblyEvaluate(new Dt(S),i.canonical)]}if("composite"===i.bucket.iconSizeData.kind){const{minZoom:v,maxZoom:S}=i.bucket.iconSizeData;o.compositeIconSizes=[n["icon-size"].possiblyEvaluate(new Dt(v),i.canonical),n["icon-size"].possiblyEvaluate(new Dt(S),i.canonical)]}const u=24*r.get("text-line-height"),d="viewport"!==r.get("text-rotation-alignment")&&"point"!==r.get("symbol-placement"),m=r.get("text-keep-upright"),y=r.get("text-size");for(const v of i.bucket.features){const S=r.get("text-font").evaluate(v,{},i.canonical).join(","),C=y.evaluate(v,{},i.canonical),M=o.layoutTextSize.evaluate(v,{},i.canonical),k=o.layoutIconSize.evaluate(v,{},i.canonical),D={horizontal:{},vertical:void 0},N=v.text;let G,q=[0,0];if(N){const J=N.toString(),ie=24*r.get("text-letter-spacing").evaluate(v,{},i.canonical),le=Ll(J)?ie:0,be=r.get("text-anchor").evaluate(v,{},i.canonical),Pe=jh(e,v,i.canonical);if(!Pe){const ge=r.get("text-radial-offset").evaluate(v,{},i.canonical);q=ge?Gh(be,[24*ge,dc]):r.get("text-offset").evaluate(v,{},i.canonical).map(ue=>24*ue)}let xe=d?"center":r.get("text-justify").evaluate(v,{},i.canonical);const _e=r.get("symbol-placement"),me="point"===_e?24*r.get("text-max-width").evaluate(v,{},i.canonical):0,Ie=()=>{i.bucket.allowVerticalPlacement&&Hn(J)&&(D.vertical=al(N,i.glyphMap,i.glyphPositions,i.imagePositions,S,me,u,be,"left",le,q,c.WritingMode.vertical,!0,_e,M,C))};if(!d&&Pe){const ge=new Set;if("auto"===xe)for(let Oe=0;Oethis._layers[ee.id]),L=I[0];if("none"===L.visibility)continue;const R=L.source||"";let B=this.familiesBySource[R];B||(B=this.familiesBySource[R]={});const F=L.sourceLayer||"_geojsonTileLayer";let H=B[F];H||(H=B[F]=[]),H.push(I)}}}class re{constructor(A){const z={},x=[];for(const R in A){const B=A[R],F=z[R]={};for(const H in B){const ee=B[+H];if(!ee||0===ee.bitmap.width||0===ee.bitmap.height)continue;const ae={x:0,y:0,w:ee.bitmap.width+2,h:ee.bitmap.height+2};x.push(ae),F[H]={rect:ae,metrics:ee.metrics}}}const{w:T,h:I}=c.potpack(x),L=new c.AlphaImage({width:T||1,height:I||1});for(const R in A){const B=A[R];for(const F in B){const H=B[+F];if(!H||0===H.bitmap.width||0===H.bitmap.height)continue;const ee=z[R][F].rect;c.AlphaImage.copy(H.bitmap,L,{x:0,y:0},{x:ee.x+1,y:ee.y+1},H.bitmap)}}this.image=L,this.positions=z}}c.register("GlyphAtlas",re);class Bt{constructor(A){this.tileID=new c.OverscaledTileID(A.tileID.overscaledZ,A.tileID.wrap,A.tileID.canonical.z,A.tileID.canonical.x,A.tileID.canonical.y),this.uid=A.uid,this.zoom=A.zoom,this.pixelRatio=A.pixelRatio,this.tileSize=A.tileSize,this.source=A.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=A.showCollisionBoxes,this.collectResourceTiming=!!A.collectResourceTiming,this.returnDependencies=!!A.returnDependencies,this.promoteId=A.promoteId,this.inFlightDependencies=[],this.dependencySentinel=-1}parse(A,z,x,T,I){this.status="parsing",this.data=A,this.collisionBoxArray=new c.CollisionBoxArray;const L=new c.DictionaryCoder(Object.keys(A.layers).sort()),R=new c.FeatureIndex(this.tileID,this.promoteId);R.bucketLayerIDs=[];const B={},F={featureIndex:R,iconDependencies:{},patternDependencies:{},glyphDependencies:{},availableImages:x},H=z.familiesBySource[this.source];for(const Qe in H){const ht=A.layers[Qe];if(!ht)continue;1===ht.version&&c.warnOnce(`Vector tile source "${this.source}" layer "${Qe}" does not use vector tile spec v2 and therefore may have some rendering errors.`);const ni=L.encode(Qe),Ze=[];for(let si=0;si=Li.maxzoom||"none"!==Li.visibility&&(Be(si,this.zoom,x),(B[Li.id]=Li.createBucket({index:R.bucketLayerIDs.length,layers:si,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:ni,sourceID:this.source})).populate(Ze,F,this.tileID.canonical),R.bucketLayerIDs.push(si.map(Kt=>Kt.id)))}}let ee,ae,Se,He;const Ce=c.mapObject(F.glyphDependencies,Qe=>Object.keys(Qe).map(Number));this.inFlightDependencies.forEach(Qe=>Qe?.cancel()),this.inFlightDependencies=[];const Re=++this.dependencySentinel;Object.keys(Ce).length?this.inFlightDependencies.push(T.send("getGlyphs",{uid:this.uid,stacks:Ce,source:this.source,tileID:this.tileID,type:"glyphs"},(Qe,ht)=>{Re===this.dependencySentinel&&(ee||(ee=Qe,ae=ht,_t.call(this)))})):ae={};const Xe=Object.keys(F.iconDependencies);Xe.length?this.inFlightDependencies.push(T.send("getImages",{icons:Xe,source:this.source,tileID:this.tileID,type:"icons"},(Qe,ht)=>{Re===this.dependencySentinel&&(ee||(ee=Qe,Se=ht,_t.call(this)))})):Se={};const ct=Object.keys(F.patternDependencies);function _t(){if(ee)return I(ee);if(ae&&Se&&He){const Qe=new re(ae),ht=new c.ImageAtlas(Se,He);for(const ni in B){const Ze=B[ni];Ze instanceof c.SymbolBucket?(Be(Ze.layers,this.zoom,x),c.performSymbolLayout({bucket:Ze,glyphMap:ae,glyphPositions:Qe.positions,imageMap:Se,imagePositions:ht.iconPositions,showCollisionBoxes:this.showCollisionBoxes,canonical:this.tileID.canonical})):Ze.hasPattern&&(Ze instanceof c.LineBucket||Ze instanceof c.FillBucket||Ze instanceof c.FillExtrusionBucket)&&(Be(Ze.layers,this.zoom,x),Ze.addFeatures(F,this.tileID.canonical,ht.patternPositions))}this.status="done",I(null,{buckets:Object.values(B).filter(ni=>!ni.isEmpty()),featureIndex:R,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:Qe.image,imageAtlas:ht,glyphMap:this.returnDependencies?ae:null,iconMap:this.returnDependencies?Se:null,glyphPositions:this.returnDependencies?Qe.positions:null})}}ct.length?this.inFlightDependencies.push(T.send("getImages",{icons:ct,source:this.source,tileID:this.tileID,type:"patterns"},(Qe,ht)=>{Re===this.dependencySentinel&&(ee||(ee=Qe,He=ht,_t.call(this)))})):He={},_t.call(this)}}function Be($,A,z){const x=new c.EvaluationParameters(A);for(const T of $)T.recalculate(x,z)}function Ge($,A){const z=c.getArrayBuffer($.request,(x,T,I,L)=>{x?A(x):T&&A(null,{vectorTile:new c.vectorTile.VectorTile(new c.Protobuf(T)),rawData:T,cacheControl:I,expires:L})});return()=>{z.cancel(),A()}}class Ir{constructor(A,z,x,T){this.actor=A,this.layerIndex=z,this.availableImages=x,this.loadVectorData=T||Ge,this.fetching={},this.loading={},this.loaded={}}loadTile(A,z){const x=A.uid;this.loading||(this.loading={});const T=!!(A&&A.request&&A.request.collectResourceTiming)&&new c.RequestPerformance(A.request),I=this.loading[x]=new Bt(A);I.abort=this.loadVectorData(A,(L,R)=>{if(delete this.loading[x],L||!R)return I.status="done",this.loaded[x]=I,z(L);const B=R.rawData,F={};R.expires&&(F.expires=R.expires),R.cacheControl&&(F.cacheControl=R.cacheControl);const H={};if(T){const ee=T.finish();ee&&(H.resourceTiming=JSON.parse(JSON.stringify(ee)))}I.vectorTile=R.vectorTile,I.parse(R.vectorTile,this.layerIndex,this.availableImages,this.actor,(ee,ae)=>{if(delete this.fetching[x],ee||!ae)return z(ee);z(null,c.extend({rawTileData:B.slice(0)},ae,F,H))}),this.loaded=this.loaded||{},this.loaded[x]=I,this.fetching[x]={rawTileData:B,cacheControl:F,resourceTiming:H}})}reloadTile(A,z){const x=this.loaded,T=A.uid;if(x&&x[T]){const I=x[T];I.showCollisionBoxes=A.showCollisionBoxes,"parsing"===I.status?I.parse(I.vectorTile,this.layerIndex,this.availableImages,this.actor,(L,R)=>{if(L||!R)return z(L,R);let B;if(this.fetching[T]){const{rawTileData:F,cacheControl:H,resourceTiming:ee}=this.fetching[T];delete this.fetching[T],B=c.extend({rawTileData:F.slice(0)},R,H,ee)}else B=R;z(null,B)}):"done"===I.status&&(I.vectorTile?I.parse(I.vectorTile,this.layerIndex,this.availableImages,this.actor,z):z())}}abortTile(A,z){const x=this.loading,T=A.uid;x&&x[T]&&x[T].abort&&(x[T].abort(),delete x[T]),z()}removeTile(A,z){const x=this.loaded,T=A.uid;x&&x[T]&&delete x[T],z()}}class Vr{constructor(){this.loaded={}}loadTile(A,z){const{uid:x,encoding:T,rawImageData:I}=A,L=c.isImageBitmap(I)?this.getImageData(I):I,R=new c.DEMData(x,L,T);this.loaded=this.loaded||{},this.loaded[x]=R,z(null,R)}getImageData(A){this.offscreenCanvas&&this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(A.width,A.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext("2d",{willReadFrequently:!0})),this.offscreenCanvas.width=A.width,this.offscreenCanvas.height=A.height,this.offscreenCanvasContext.drawImage(A,0,0,A.width,A.height);const z=this.offscreenCanvasContext.getImageData(-1,-1,A.width+2,A.height+2);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),new c.RGBAImage({width:z.width,height:z.height},z.data)}removeTile(A){const z=this.loaded,x=A.uid;z&&z[x]&&delete z[x]}}function lt($,A){if(0!==$.length){hi($[0],A);for(var z=1;z<$.length;z++)hi($[z],!A)}}function hi($,A){for(var z=0,x=0,T=0,I=$.length,L=I-1;T=Math.abs(R)?z-B+R:R-B+z,z=B}z+x>=0!=!!A&&$.reverse()}var Et=c.getDefaultExportFromCjs(function $(A,z){var x,T=A&&A.type;if("FeatureCollection"===T)for(x=0;x>31}function di($,A){for(var z=$.loadGeometry(),x=$.type,T=0,I=0,L=z.length,R=0;R$},Mi=Math.fround||(nt=new Float32Array(1),$=>(nt[0]=+$,nt[0]));var nt;class Lt{constructor(A){this.options=Object.assign(Object.create(Ai),A),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(A){const{log:z,minZoom:x,maxZoom:T}=this.options;z&&console.time("total time");const I=`prepare ${A.length} points`;z&&console.time(I),this.points=A;const L=[];for(let B=0;B=x;B--){const F=+Date.now();R=this.trees[B]=this._createTree(this._cluster(R,B)),z&&console.log("z%d: %d clusters in %dms",B,R.numItems,+Date.now()-F)}return z&&console.timeEnd("total time"),this}getClusters(A,z){let x=((A[0]+180)%360+360)%360-180;const T=Math.max(-90,Math.min(90,A[1]));let I=180===A[2]?180:((A[2]+180)%360+360)%360-180;const L=Math.max(-90,Math.min(90,A[3]));if(A[2]-A[0]>=360)x=-180,I=180;else if(x>I){const ee=this.getClusters([x,T,180,L],z),ae=this.getClusters([-180,T,I,L],z);return ee.concat(ae)}const R=this.trees[this._limitZoom(z)],B=R.range(Ot(x),Le(L),Ot(I),Le(T)),F=R.data,H=[];for(const ee of B){const ae=this.stride*ee;H.push(F[ae+5]>1?Ct(F,ae,this.clusterProps):this.points[F[ae+3]])}return H}getChildren(A){const z=this._getOriginId(A),x=this._getOriginZoom(A),T="No cluster with the specified id.",I=this.trees[x];if(!I)throw new Error(T);const L=I.data;if(z*this.stride>=L.length)throw new Error(T);const R=this.options.radius/(this.options.extent*Math.pow(2,x-1)),B=I.within(L[z*this.stride],L[z*this.stride+1],R),F=[];for(const H of B){const ee=H*this.stride;L[ee+4]===A&&F.push(L[ee+5]>1?Ct(L,ee,this.clusterProps):this.points[L[ee+3]])}if(0===F.length)throw new Error(T);return F}getLeaves(A,z,x){const T=[];return this._appendLeaves(T,A,z=z||10,x=x||0,0),T}getTile(A,z,x){const T=this.trees[this._limitZoom(A)],I=Math.pow(2,A),{extent:L,radius:R}=this.options,B=R/L,F=(x-B)/I,H=(x+1+B)/I,ee={features:[]};return this._addTileFeatures(T.range((z-B)/I,F,(z+1+B)/I,H),T.data,z,x,I,ee),0===z&&this._addTileFeatures(T.range(1-B/I,F,1,H),T.data,I,x,I,ee),z===I-1&&this._addTileFeatures(T.range(0,F,B/I,H),T.data,-1,x,I,ee),ee.features.length?ee:null}getClusterExpansionZoom(A){let z=this._getOriginZoom(A)-1;for(;z<=this.options.maxZoom;){const x=this.getChildren(A);if(z++,1!==x.length)break;A=x[0].properties.cluster_id}return z}_appendLeaves(A,z,x,T,I){const L=this.getChildren(z);for(const R of L){const B=R.properties;if(B&&B.cluster?I+B.point_count<=T?I+=B.point_count:I=this._appendLeaves(A,B.cluster_id,x,T,I):I1;let H,ee,ae;if(F)H=ai(z,B,this.clusterProps),ee=z[B],ae=z[B+1];else{const Ce=this.points[z[B+3]];H=Ce.properties;const[Re,Xe]=Ce.geometry.coordinates;ee=Ot(Re),ae=Le(Xe)}const Se={type:1,geometry:[[Math.round(this.options.extent*(ee*I-x)),Math.round(this.options.extent*(ae*I-T))]],tags:H};let He;He=F||this.options.generateId?z[B+3]:this.points[z[B+3]].id,void 0!==He&&(Se.id=He),L.features.push(Se)}}_limitZoom(A){return Math.max(this.options.minZoom,Math.min(Math.floor(+A),this.options.maxZoom+1))}_cluster(A,z){const{radius:x,extent:T,reduce:I,minPoints:L}=this.options,R=x/(T*Math.pow(2,z)),B=A.data,F=[],H=this.stride;for(let ee=0;eez&&(Re+=B[ct+5])}if(Re>Ce&&Re>=L){let Xe,ct=ae*Ce,_t=Se*Ce,Qe=-1;const ht=((ee/H|0)<<5)+(z+1)+this.points.length;for(const ni of He){const Ze=ni*H;if(B[Ze+2]<=z)continue;B[Ze+2]=z;const si=B[Ze+5];ct+=B[Ze]*si,_t+=B[Ze+1]*si,B[Ze+4]=ht,I&&(Xe||(Xe=this._map(B,ee,!0),Qe=this.clusterProps.length,this.clusterProps.push(Xe)),I(Xe,this._map(B,Ze)))}B[ee+4]=ht,F.push(ct/Re,_t/Re,1/0,ht,-1,Re),I&&F.push(Qe)}else{for(let Xe=0;Xe1)for(const Xe of He){const ct=Xe*H;if(!(B[ct+2]<=z)){B[ct+2]=z;for(let _t=0;_t>5}_getOriginZoom(A){return(A-this.points.length)%32}_map(A,z,x){if(A[z+5]>1){const L=this.clusterProps[A[z+6]];return x?Object.assign({},L):L}const T=this.points[A[z+3]].properties,I=this.options.map(T);return x&&I===T?Object.assign({},I):I}}function Ct($,A,z){return{type:"Feature",id:$[A+3],properties:ai($,A,z),geometry:{type:"Point",coordinates:[(x=$[A],360*(x-.5)),pt($[A+1])]}};var x}function ai($,A,z){const x=$[A+5],T=x>=1e4?`${Math.round(x/1e3)}k`:x>=1e3?Math.round(x/100)/10+"k":x,I=$[A+6],L=-1===I?{}:Object.assign({},z[I]);return Object.assign(L,{cluster:!0,cluster_id:$[A+3],point_count:x,point_count_abbreviated:T})}function Ot($){return $/360+.5}function Le($){const A=Math.sin($*Math.PI/180),z=.5-.25*Math.log((1+A)/(1-A))/Math.PI;return z<0?0:z>1?1:z}function pt($){const A=(180-360*$)*Math.PI/180;return 360*Math.atan(Math.exp(A))/Math.PI-90}function ft($,A,z,x){for(var T,I=x,L=z-A>>1,R=z-A,B=$[A],F=$[A+1],H=$[z],ee=$[z+1],ae=A+3;aeI)T=ae,I=Se;else if(Se===I){var He=Math.abs(ae-L);Hex&&(T-A>3&&ft($,A,T,x),$[T+2]=I,z-T>3&&ft($,T,z,x))}function Q($,A,z,x,T,I){var L=T-z,R=I-x;if(0!==L||0!==R){var B=(($-z)*L+(A-x)*R)/(L*L+R*R);B>1?(z=T,x=I):B>0&&(z+=L*B,x+=R*B)}return(L=$-z)*L+(R=A-x)*R}function Ut($,A,z,x){var T={id:void 0===$?null:$,type:A,geometry:z,tags:x,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(I){var L=I.geometry,R=I.type;if("Point"===R||"MultiPoint"===R||"LineString"===R)mi(I,L);else if("Polygon"===R||"MultiLineString"===R)for(var B=0;B0&&(L+=x?(T*F-B*I)/2:Math.sqrt(Math.pow(B-T,2)+Math.pow(F-I,2))),T=B,I=F}var H=A.length-3;A[2]=1,ft(A,0,H,z),A[H+2]=1,A.size=Math.abs(L),A.start=0,A.end=A.size}function we($,A,z,x){for(var T=0;T<$.length;T++){var I=[];Ri($[T],I,z,x),A.push(I)}}function zi($){return $/360+.5}function yr($){var A=Math.sin($*Math.PI/180),z=.5-.25*Math.log((1+A)/(1-A))/Math.PI;return z<0?0:z>1?1:z}function dt($,A,z,x,T,I,L,R){if(x/=A,I>=(z/=A)&&L=x)return null;for(var B=[],F=0;F<$.length;F++){var H=$[F],ee=H.geometry,ae=H.type,Se=0===T?H.minX:H.minY,He=0===T?H.maxX:H.maxY;if(Se>=z&&He=x)){var Ce=[];if("Point"===ae||"MultiPoint"===ae)Dr(ee,Ce,z,x,T);else if("LineString"===ae)_r(ee,Ce,z,x,T,!1,R.lineMetrics);else if("MultiLineString"===ae)vi(ee,Ce,z,x,T,!1);else if("Polygon"===ae)vi(ee,Ce,z,x,T,!0);else if("MultiPolygon"===ae)for(var Re=0;Re=z&&L<=x&&(A.push($[I]),A.push($[I+1]),A.push($[I+2]))}}function _r($,A,z,x,T,I,L){for(var R,B,F=fe($),H=0===T?Wi:or,ee=$.start,ae=0;ae<$.length-3;ae+=3){var Se=$[ae],He=$[ae+1],Ce=$[ae+2],Re=$[ae+3],Xe=$[ae+4],ct=0===T?Se:He,_t=0===T?Re:Xe,Qe=!1;L&&(R=Math.sqrt(Math.pow(Se-Re,2)+Math.pow(He-Xe,2))),ctz&&(B=H(F,Se,He,Re,Xe,z),L&&(F.start=ee+R*B)):ct>x?_t=z&&(B=H(F,Se,He,Re,Xe,z),Qe=!0),_t>x&&ct<=x&&(B=H(F,Se,He,Re,Xe,x),Qe=!0),!I&&Qe&&(L&&(F.end=ee+R*B),A.push(F),F=fe($)),L&&(ee+=R)}var ht=$.length-3;Se=$[ht],He=$[ht+1],Ce=$[ht+2],(ct=0===T?Se:He)>=z&&ct<=x&&Wt(F,Se,He,Ce),ht=F.length-3,I&&ht>=3&&(F[ht]!==F[0]||F[ht+1]!==F[1])&&Wt(F,F[0],F[1],F[2]),F.length&&A.push(F)}function fe($){var A=[];return A.size=$.size,A.start=$.start,A.end=$.end,A}function vi($,A,z,x,T,I){for(var L=0;L<$.length;L++)_r($[L],A,z,x,T,I,!1)}function Wt($,A,z,x){$.push(A),$.push(z),$.push(x)}function Wi($,A,z,x,T,I){var L=(I-A)/(x-A);return $.push(I),$.push(z+(T-z)*L),$.push(1),L}function or($,A,z,x,T,I){var L=(I-z)/(T-z);return $.push(A+(x-A)*L),$.push(I),$.push(1),L}function de($,A){for(var z=[],x=0;x<$.length;x++){var T,I=$[x],L=I.type;if("Point"===L||"MultiPoint"===L||"LineString"===L)T=We(I.geometry,A);else if("MultiLineString"===L||"Polygon"===L){T=[];for(var R=0;RL.maxX&&(L.maxX=H),ee>L.maxY&&(L.maxY=ee)}return L}function Fe($,A,z,x){var T=A.geometry,I=A.type,L=[];if("Point"===I||"MultiPoint"===I)for(var R=0;R0&&A.size<(T?L:x))z.numPoints+=A.length/3;else{for(var R=[],B=0;BL)&&(z.numSimplified++,R.push(A[B]),R.push(A[B+1])),z.numPoints++;T&&function(F,H){for(var ee=0,ae=0,Se=F.length,He=Se-2;ae0===H)for(ae=0,Se=F.length;ae24)throw new Error("maxZoom should be in the 0-24 range");if(A.promoteId&&A.generateId)throw new Error("promoteId and generateId cannot be used together.");var T,I,L,R,B,F,x=function(T,I){var L=[];if("FeatureCollection"===T.type)for(var R=0;R1&&console.time("creation"),ae=this.tiles[ee]=Pi($,A,z,x,B),this.tileCoords.push({z:A,x:z,y:x}),F)){F>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",A,z,x,ae.numFeatures,ae.numPoints,ae.numSimplified),console.timeEnd("creation"));var Se="z"+A;this.stats[Se]=(this.stats[Se]||0)+1,this.total++}if(ae.source=$,T){if(A===B.maxZoom||A===T)continue;var He=1<1&&console.time("clipping");var Ce,Re,Xe,ct,_t,Qe,ht=.5*B.buffer/B.extent,ni=.5-ht,Ze=.5+ht,si=1+ht;Ce=Re=Xe=ct=null,_t=dt($,H,z-ht,z+Ze,0,ae.minX,ae.maxX,B),Qe=dt($,H,z+ni,z+si,0,ae.minX,ae.maxX,B),$=null,_t&&(Ce=dt(_t,H,x-ht,x+Ze,1,ae.minY,ae.maxY,B),Re=dt(_t,H,x+ni,x+si,1,ae.minY,ae.maxY,B),_t=null),Qe&&(Xe=dt(Qe,H,x-ht,x+Ze,1,ae.minY,ae.maxY,B),ct=dt(Qe,H,x+ni,x+si,1,ae.minY,ae.maxY,B),Qe=null),F>1&&console.timeEnd("clipping"),R.push(Ce||[],A+1,2*z,2*x),R.push(Re||[],A+1,2*z,2*x+1),R.push(Xe||[],A+1,2*z+1,2*x),R.push(ct||[],A+1,2*z+1,2*x+1)}}},Bi.prototype.getTile=function($,A,z){var x=this.options,T=x.extent,I=x.debug;if($<0||$>24)return null;var L=1<<$,R=bi($,A=(A%L+L)%L,z);if(this.tiles[R])return Ke(this.tiles[R],T);I>1&&console.log("drilling down to z%d-%d-%d",$,A,z);for(var B,F=$,H=A,ee=z;!B&&F>0;)F--,H=Math.floor(H/2),ee=Math.floor(ee/2),B=this.tiles[bi(F,H,ee)];return B&&B.source?(I>1&&console.log("found parent tile z%d-%d-%d",F,H,ee),I>1&&console.time("drilling down"),this.splitTile(B.source,F,H,ee,$,A,z),I>1&&console.timeEnd("drilling down"),this.tiles[R]?Ke(this.tiles[R],T):null):null};class ea extends Ir{constructor(A,z,x,T){super(A,z,x,Tt),this._dataUpdateable=new Map,this.loadGeoJSON=(I,L)=>{const{promoteId:R}=I;if(I.request)return c.getJSON(I.request,(B,F,H,ee)=>{this._dataUpdateable=Rr(F,R)?fi(F,R):void 0,L(B,F,H,ee)});if("string"==typeof I.data)try{const B=JSON.parse(I.data);this._dataUpdateable=Rr(B,R)?fi(B,R):void 0,L(null,B)}catch{L(new Error(`Input data given to '${I.source}' is not a valid GeoJSON object.`))}else I.dataDiff?this._dataUpdateable?(function(B,F,H){var ee,ae,Se,He;if(F.removeAll&&B.clear(),F.remove)for(const Ce of F.remove)B.delete(Ce);if(F.add)for(const Ce of F.add){const Re=Hi(Ce,H);null!=Re&&B.set(Re,Ce)}if(F.update)for(const Ce of F.update){let Re=B.get(Ce.id);if(null==Re)continue;const Xe=!Ce.removeAllProperties&&((null===(ee=Ce.removeProperties)||void 0===ee?void 0:ee.length)>0||(null===(ae=Ce.addOrUpdateProperties)||void 0===ae?void 0:ae.length)>0);if((Ce.newGeometry||Ce.removeAllProperties||Xe)&&(Re={...Re},B.set(Ce.id,Re),Xe&&(Re.properties={...Re.properties})),Ce.newGeometry&&(Re.geometry=Ce.newGeometry),Ce.removeAllProperties)Re.properties={};else if((null===(Se=Ce.removeProperties)||void 0===Se?void 0:Se.length)>0)for(const ct of Ce.removeProperties)Object.prototype.hasOwnProperty.call(Re.properties,ct)&&delete Re.properties[ct];if((null===(He=Ce.addOrUpdateProperties)||void 0===He?void 0:He.length)>0)for(const{key:ct,value:_t}of Ce.addOrUpdateProperties)Re.properties[ct]=_t}}(this._dataUpdateable,I.dataDiff,R),L(null,{type:"FeatureCollection",features:Array.from(this._dataUpdateable.values())})):L(new Error(`Cannot update existing geojson data in ${I.source}`)):L(new Error(`Input data given to '${I.source}' is not a valid GeoJSON object.`));return{cancel:()=>{}}},T&&(this.loadGeoJSON=T)}loadData(A,z){var x;null===(x=this._pendingRequest)||void 0===x||x.cancel(),this._pendingCallback&&this._pendingCallback(null,{abandoned:!0});const T=!!(A&&A.request&&A.request.collectResourceTiming)&&new c.RequestPerformance(A.request);this._pendingCallback=z,this._pendingRequest=this.loadGeoJSON(A,(I,L)=>{if(delete this._pendingCallback,delete this._pendingRequest,I||!L)return z(I);if("object"!=typeof L)return z(new Error(`Input data given to '${A.source}' is not a valid GeoJSON object.`));{Et(L,!0);try{if(A.filter){const B=c.createExpression(A.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if("error"===B.result)throw new Error(B.value.map(H=>`${H.key}: ${H.message}`).join(", "));const F=L.features.filter(H=>B.value.evaluate({zoom:0},H));L={type:"FeatureCollection",features:F}}this._geoJSONIndex=A.cluster?new Lt(function({superclusterOptions:B,clusterProperties:F}){if(!F||!B)return B;const H={},ee={},ae={accumulated:null,zoom:0},Se={properties:null},He=Object.keys(F);for(const Ce of He){const[Re,Xe]=F[Ce],ct=c.createExpression(Xe),_t=c.createExpression("string"==typeof Re?[Re,["accumulated"],["get",Ce]]:Re);H[Ce]=ct.value,ee[Ce]=_t.value}return B.map=Ce=>{Se.properties=Ce;const Re={};for(const Xe of He)Re[Xe]=H[Xe].evaluate(ae,Se);return Re},B.reduce=(Ce,Re)=>{Se.properties=Re;for(const Xe of He)ae.accumulated=Ce[Xe],Ce[Xe]=ee[Xe].evaluate(ae,Se)},B}(A)).load(L.features):new Bi(B=L,A.geojsonVtOptions)}catch(B){return z(B)}this.loaded={};const R={};if(T){const B=T.finish();B&&(R.resourceTiming={},R.resourceTiming[A.source]=JSON.parse(JSON.stringify(B)))}z(null,R)}var B})}reloadTile(A,z){const x=this.loaded;return x&&x[A.uid]?super.reloadTile(A,z):this.loadTile(A,z)}removeSource(A,z){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),z()}getClusterExpansionZoom(A,z){try{z(null,this._geoJSONIndex.getClusterExpansionZoom(A.clusterId))}catch(x){z(x)}}getClusterChildren(A,z){try{z(null,this._geoJSONIndex.getChildren(A.clusterId))}catch(x){z(x)}}getClusterLeaves(A,z){try{z(null,this._geoJSONIndex.getLeaves(A.clusterId,A.limit,A.offset))}catch(x){z(x)}}}class xr{constructor(A){this.self=A,this.actor=new c.Actor(A,this),this.layerIndexes={},this.availableImages={},this.workerSourceTypes={vector:Ir,geojson:ea},this.workerSources={},this.demWorkerSources={},this.self.registerWorkerSource=(z,x)=>{if(this.workerSourceTypes[z])throw new Error(`Worker source with name "${z}" already registered.`);this.workerSourceTypes[z]=x},this.self.registerRTLTextPlugin=z=>{if(c.plugin.isParsed())throw new Error("RTL text plugin already registered.");c.plugin.applyArabicShaping=z.applyArabicShaping,c.plugin.processBidirectionalText=z.processBidirectionalText,c.plugin.processStyledBidirectionalText=z.processStyledBidirectionalText}}setReferrer(A,z){this.referrer=z}setImages(A,z,x){this.availableImages[A]=z;for(const T in this.workerSources[A]){const I=this.workerSources[A][T];for(const L in I)I[L].availableImages=z}x()}setLayers(A,z,x){this.getLayerIndex(A).replace(z),x()}updateLayers(A,z,x){this.getLayerIndex(A).update(z.layers,z.removedIds),x()}loadTile(A,z,x){this.getWorkerSource(A,z.type,z.source).loadTile(z,x)}loadDEMTile(A,z,x){this.getDEMWorkerSource(A,z.source).loadTile(z,x)}reloadTile(A,z,x){this.getWorkerSource(A,z.type,z.source).reloadTile(z,x)}abortTile(A,z,x){this.getWorkerSource(A,z.type,z.source).abortTile(z,x)}removeTile(A,z,x){this.getWorkerSource(A,z.type,z.source).removeTile(z,x)}removeDEMTile(A,z){this.getDEMWorkerSource(A,z.source).removeTile(z)}removeSource(A,z,x){if(!this.workerSources[A]||!this.workerSources[A][z.type]||!this.workerSources[A][z.type][z.source])return;const T=this.workerSources[A][z.type][z.source];delete this.workerSources[A][z.type][z.source],void 0!==T.removeSource?T.removeSource(z,x):x()}loadWorkerSource(A,z,x){try{this.self.importScripts(z.url),x()}catch(T){x(T.toString())}}syncRTLPluginState(A,z,x){try{c.plugin.setState(z);const T=c.plugin.getPluginURL();if(c.plugin.isLoaded()&&!c.plugin.isParsed()&&null!=T){this.self.importScripts(T);const I=c.plugin.isParsed();x(I?void 0:new Error(`RTL Text Plugin failed to import scripts from ${T}`),I)}}catch(T){x(T.toString())}}getAvailableImages(A){let z=this.availableImages[A];return z||(z=[]),z}getLayerIndex(A){let z=this.layerIndexes[A];return z||(z=this.layerIndexes[A]=new ut),z}getWorkerSource(A,z,x){return this.workerSources[A]||(this.workerSources[A]={}),this.workerSources[A][z]||(this.workerSources[A][z]={}),this.workerSources[A][z][x]||(this.workerSources[A][z][x]=new this.workerSourceTypes[z]({send:(I,L,R)=>{this.actor.send(I,L,R,A)}},this.getLayerIndex(A),this.getAvailableImages(A))),this.workerSources[A][z][x]}getDEMWorkerSource(A,z){return this.demWorkerSources[A]||(this.demWorkerSources[A]={}),this.demWorkerSources[A][z]||(this.demWorkerSources[A][z]=new Vr),this.demWorkerSources[A][z]}}return c.isWorker()&&(self.worker=new xr(self)),xr}),qe(0,function(c){class re{static testProp(t){if(!re.docStyle)return t[0];for(let a=0;a{window.removeEventListener("click",re.suppressClickInternal,!0)},0)}static mousePos(t,a){const s=t.getBoundingClientRect();return new c.Point(a.clientX-s.left-t.clientLeft,a.clientY-s.top-t.clientTop)}static touchPos(t,a){const s=t.getBoundingClientRect(),l=[];for(let p=0;p{t=[],a=0,s=0,l={}},h.addThrottleControl=b=>{const w=s++;return l[w]=b,w},h.removeThrottleControl=b=>{delete l[b],g()},h.getImage=(b,w,E=!0)=>{Bt.supported&&(b.headers||(b.headers={}),b.headers.accept="image/webp,*/*");const P={requestParameters:b,supportImageRefresh:E,callback:w,cancelled:!1,completed:!1,cancel:()=>{P.completed||P.cancelled||(P.cancelled=!0,P.innerRequest&&(P.innerRequest.cancel(),a--),g())}};return t.push(P),g(),P};const p=b=>{const{requestParameters:w,supportImageRefresh:E,callback:P}=b;return c.extend(w,{type:"image"}),(!1!==E||c.isWorker()||c.getProtocolAction(w.url)||w.headers&&!Object.keys(w.headers).reduce((V,U)=>V&&"accept"===U,!0)?c.makeRequest:_)(w,(V,U,Z,O)=>{f(b,P,V,U,Z,O)})},f=(b,w,E,P,V,U)=>{var Z,O;E?w(E):P instanceof HTMLImageElement||c.isImageBitmap(P)?w(null,P):P&&(Z=P,O=(Z,O)=>{null!=Z?w(Z):null!=O&&w(null,O,{cacheControl:V,expires:U})},"function"==typeof createImageBitmap?c.arrayBufferToImageBitmap(Z,O):c.arrayBufferToImage(Z,O)),b.cancelled||(b.completed=!0,a--,g())},g=()=>{const b=(()=>{const w=Object.keys(l);let E=!1;if(w.length>0)for(const P of w)if(E=l[P](),E)break;return E})()?c.config.MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:c.config.MAX_PARALLEL_IMAGE_REQUESTS;for(let w=a;w0;w++){const E=t.shift();if(E.cancelled){w--;continue}const P=p(E);a++,E.innerRequest=P}},_=(b,w)=>{const E=new Image,P=b.url;let V=!1;const U=b.credentials;return U&&"include"===U?E.crossOrigin="use-credentials":(U&&"same-origin"===U||!c.sameOrigin(P))&&(E.crossOrigin="anonymous"),E.fetchPriority="high",E.onload=()=>{w(null,E),E.onerror=E.onload=null},E.onerror=()=>{V||w(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.")),E.onerror=E.onload=null},E.src=P,{cancel:()=>{V=!0,E.src=""}}}}(hi||(hi={})),hi.resetRequestQueue(),(h=Et||(Et={})).Glyphs="Glyphs",h.Image="Image",h.Source="Source",h.SpriteImage="SpriteImage",h.SpriteJSON="SpriteJSON",h.Style="Style",h.Tile="Tile",h.Unknown="Unknown";class Nr{constructor(t){this._transformRequestFn=t}transformRequest(t,a){return this._transformRequestFn&&this._transformRequestFn(t,a)||{url:t}}normalizeSpriteURL(t,a,s){const l=function(p){const f=p.match(Xt);if(!f)throw new Error(`Unable to parse URL "${p}"`);return{protocol:f[1],authority:f[2],path:f[3]||"/",params:f[4]?f[4].split("&"):[]}}(t);return l.path+=`${a}${s}`,function(p){const f=p.params.length?`?${p.params.join("&")}`:"";return`${p.protocol}://${p.authority}${p.path}${f}`}(l)}setTransformRequest(t){this._transformRequestFn=t}}const Xt=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function ar(h){var t=new c.ARRAY_TYPE(3);return t[0]=h[0],t[1]=h[1],t[2]=h[2],t}var Zi,nr=function(h,t,a){return h[0]=t[0]-a[0],h[1]=t[1]-a[1],h[2]=t[2]-a[2],h};Zi=new c.ARRAY_TYPE(3),c.ARRAY_TYPE!=Float32Array&&(Zi[0]=0,Zi[1]=0,Zi[2]=0);var Ci=function(h){var t=h[0],a=h[1];return t*t+a*a};function Gi(h){const t=[];if("string"==typeof h)t.push({id:"default",url:h});else if(h&&h.length>0){const a=[];for(const{id:s,url:l}of h){const p=`${s}${l}`;-1===a.indexOf(p)&&(a.push(p),t.push({id:s,url:l}))}}return t}function Me(h,t,a,s,l){if(s)return void h(s);if(l!==Object.values(t).length||l!==Object.values(a).length)return;const p={};for(const f in t){p[f]={};const g=c.browser.getImageCanvasContext(a[f]),_=t[f];for(const b in _){const{width:w,height:E,x:P,y:V,sdf:U,pixelRatio:Z,stretchX:O,stretchY:W,content:te}=_[b];p[f][b]={data:null,pixelRatio:Z,sdf:U,stretchX:O,stretchY:W,content:te,spriteData:{width:w,height:E,x:P,y:V,context:g}}}}h(null,p)}!function(){var h=new c.ARRAY_TYPE(2);c.ARRAY_TYPE!=Float32Array&&(h[0]=0,h[1]=0)}();class Te{constructor(t,a,s,l){this.context=t,this.format=s,this.texture=t.gl.createTexture(),this.update(a,l)}update(t,a,s){const{width:l,height:p}=t,f=!(this.size&&this.size[0]===l&&this.size[1]===p||s),{context:g}=this,{gl:_}=g;if(this.useMipmap=Boolean(a&&a.useMipmap),_.bindTexture(_.TEXTURE_2D,this.texture),g.pixelStoreUnpackFlipY.set(!1),g.pixelStoreUnpack.set(1),g.pixelStoreUnpackPremultiplyAlpha.set(this.format===_.RGBA&&(!a||!1!==a.premultiply)),f)this.size=[l,p],t instanceof HTMLImageElement||t instanceof HTMLCanvasElement||t instanceof HTMLVideoElement||t instanceof ImageData||c.isImageBitmap(t)?_.texImage2D(_.TEXTURE_2D,0,this.format,this.format,_.UNSIGNED_BYTE,t):_.texImage2D(_.TEXTURE_2D,0,this.format,l,p,0,this.format,_.UNSIGNED_BYTE,t.data);else{const{x:b,y:w}=s||{x:0,y:0};t instanceof HTMLImageElement||t instanceof HTMLCanvasElement||t instanceof HTMLVideoElement||t instanceof ImageData||c.isImageBitmap(t)?_.texSubImage2D(_.TEXTURE_2D,0,b,w,_.RGBA,_.UNSIGNED_BYTE,t):_.texSubImage2D(_.TEXTURE_2D,0,b,w,l,p,_.RGBA,_.UNSIGNED_BYTE,t.data)}this.useMipmap&&this.isSizePowerOfTwo()&&_.generateMipmap(_.TEXTURE_2D)}bind(t,a,s){const{context:l}=this,{gl:p}=l;p.bindTexture(p.TEXTURE_2D,this.texture),s!==p.LINEAR_MIPMAP_NEAREST||this.isSizePowerOfTwo()||(s=p.LINEAR),t!==this.filter&&(p.texParameteri(p.TEXTURE_2D,p.TEXTURE_MAG_FILTER,t),p.texParameteri(p.TEXTURE_2D,p.TEXTURE_MIN_FILTER,s||t),this.filter=t),a!==this.wrap&&(p.texParameteri(p.TEXTURE_2D,p.TEXTURE_WRAP_S,a),p.texParameteri(p.TEXTURE_2D,p.TEXTURE_WRAP_T,a),this.wrap=a)}isSizePowerOfTwo(){return this.size[0]===this.size[1]&&Math.log(this.size[0])/Math.LN2%1==0}destroy(){const{gl:t}=this.context;t.deleteTexture(this.texture),this.texture=null}}function tt(h){const{userImage:t}=h;return!!(t&&t.render&&t.render())&&(h.data.replace(new Uint8Array(t.data.buffer)),!0)}class xt extends c.Evented{constructor(){super(),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new c.RGBAImage({width:1,height:1}),this.dirty=!0}isLoaded(){return this.loaded}setLoaded(t){if(this.loaded!==t&&(this.loaded=t,t)){for(const{ids:a,callback:s}of this.requestors)this._notify(a,s);this.requestors=[]}}getImage(t){const a=this.images[t];if(a&&!a.data&&a.spriteData){const s=a.spriteData;a.data=new c.RGBAImage({width:s.width,height:s.height},s.context.getImageData(s.x,s.y,s.width,s.height).data),a.spriteData=null}return a}addImage(t,a){if(this.images[t])throw new Error(`Image id ${t} already exist, use updateImage instead`);this._validate(t,a)&&(this.images[t]=a)}_validate(t,a){let s=!0;const l=a.data||a.spriteData;return this._validateStretch(a.stretchX,l&&l.width)||(this.fire(new c.ErrorEvent(new Error(`Image "${t}" has invalid "stretchX" value`))),s=!1),this._validateStretch(a.stretchY,l&&l.height)||(this.fire(new c.ErrorEvent(new Error(`Image "${t}" has invalid "stretchY" value`))),s=!1),this._validateContent(a.content,a)||(this.fire(new c.ErrorEvent(new Error(`Image "${t}" has invalid "content" value`))),s=!1),s}_validateStretch(t,a){if(!t)return!0;let s=0;for(const l of t){if(l[0]-1);_++,p[_]=g,f[_]=b,f[_+1]=At}for(let g=0,_=0;g{let g=this.entries[l];g||(g=this.entries[l]={glyphs:{},requests:{},ranges:{}});let _=g.glyphs[p];if(void 0!==_)return void f(null,{stack:l,id:p,glyph:_});if(_=this._tinySDF(g,l,p),_)return g.glyphs[p]=_,void f(null,{stack:l,id:p,glyph:_});const b=Math.floor(p/256);if(256*b>65535)return void f(new Error("glyphs > 65535 not supported"));if(g.ranges[b])return void f(null,{stack:l,id:p,glyph:_});if(!this.url)return void f(new Error("glyphsUrl is not set"));let w=g.requests[b];w||(w=g.requests[b]=[],pi.loadGlyphRange(l,b,this.url,this.requestManager,(E,P)=>{if(P){for(const V in P)this._doesCharSupportLocalGlyph(+V)||(g.glyphs[+V]=P[+V]);g.ranges[b]=!0}for(const V of w)V(E,P);delete g.requests[b]})),w.push((E,P)=>{E?f(E):P&&f(null,{stack:l,id:p,glyph:P[p]||null})})},(l,p)=>{if(l)a(l);else if(p){const f={};for(const{stack:g,id:_,glyph:b}of p)(f[g]||(f[g]={}))[_]=b&&{id:b.id,bitmap:b.bitmap.clone(),metrics:b.metrics};a(null,f)}})}_doesCharSupportLocalGlyph(t){return!!this.localIdeographFontFamily&&(c.unicodeBlockLookup["CJK Unified Ideographs"](t)||c.unicodeBlockLookup["Hangul Syllables"](t)||c.unicodeBlockLookup.Hiragana(t)||c.unicodeBlockLookup.Katakana(t))}_tinySDF(t,a,s){const l=this.localIdeographFontFamily;if(!l||!this._doesCharSupportLocalGlyph(s))return;let p=t.tinySDF;if(!p){let g="400";/bold/i.test(a)?g="900":/medium/i.test(a)?g="500":/light/i.test(a)&&(g="200"),p=t.tinySDF=new pi.TinySDF({fontSize:24,buffer:3,radius:8,cutoff:.25,fontFamily:l,fontWeight:g})}const f=p.draw(String.fromCharCode(s));return{id:s,bitmap:new c.AlphaImage({width:f.width||30,height:f.height||30},f.data),metrics:{width:f.glyphWidth||24,height:f.glyphHeight||24,left:f.glyphLeft||0,top:f.glyphTop-27||-8,advance:f.glyphAdvance||24}}}}pi.loadGlyphRange=function(h,t,a,s,l){const p=256*t,f=p+255,g=s.transformRequest(a.replace("{fontstack}",h).replace("{range}",`${p}-${f}`),Et.Glyphs);c.getArrayBuffer(g,(_,b)=>{if(_)l(_);else if(b){const w={};for(const E of c.parseGlyphPbf(b))w[E.id]=E;l(null,w)}})},pi.TinySDF=class{constructor({fontSize:h=24,buffer:t=3,radius:a=8,cutoff:s=.25,fontFamily:l="sans-serif",fontWeight:p="normal",fontStyle:f="normal"}={}){this.buffer=t,this.cutoff=s,this.radius=a;const g=this.size=h+4*t,_=this._createCanvas(g),b=this.ctx=_.getContext("2d",{willReadFrequently:!0});b.font=`${f} ${p} ${h}px ${l}`,b.textBaseline="alphabetic",b.textAlign="left",b.fillStyle="black",this.gridOuter=new Float64Array(g*g),this.gridInner=new Float64Array(g*g),this.f=new Float64Array(g),this.z=new Float64Array(g+1),this.v=new Uint16Array(g)}_createCanvas(h){const t=document.createElement("canvas");return t.width=t.height=h,t}draw(h){const{width:t,actualBoundingBoxAscent:a,actualBoundingBoxDescent:s,actualBoundingBoxLeft:l,actualBoundingBoxRight:p}=this.ctx.measureText(h),f=Math.ceil(a),g=Math.max(0,Math.min(this.size-this.buffer,Math.ceil(p-l))),_=Math.min(this.size-this.buffer,f+Math.ceil(s)),b=g+2*this.buffer,w=_+2*this.buffer,E=Math.max(b*w,0),P=new Uint8ClampedArray(E),V={data:P,width:b,height:w,glyphWidth:g,glyphHeight:_,glyphTop:f,glyphLeft:0,glyphAdvance:t};if(0===g||0===_)return V;const{ctx:U,buffer:Z,gridInner:O,gridOuter:W}=this;U.clearRect(Z,Z,g,_),U.fillText(h,Z,Z+f);const te=U.getImageData(Z,Z,g,_);W.fill(At,0,E),O.fill(0,0,E);for(let j=0;j<_;j++)for(let K=0;K0?oe*oe:0,O[se]=oe<0?oe*oe:0}}Ft(W,0,0,b,w,b,this.f,this.v,this.z),Ft(O,Z,Z,g,_,b,this.f,this.v,this.z);for(let j=0;j1&&(_=t[++g]);const w=Math.abs(b-_.left),E=Math.abs(b-_.right),P=Math.min(w,E);let V;const U=p/s*(l+1);if(_.isDash){const Z=l-Math.abs(U);V=Math.sqrt(P*P+Z*Z)}else V=l-Math.sqrt(P*P+U*U);this.data[f+b]=Math.max(0,Math.min(255,V+128))}}}addRegularDash(t){for(let g=t.length-1;g>=0;--g){const _=t[g],b=t[g+1];_.zeroLength?t.splice(g,1):b&&b.isDash===_.isDash&&(b.left=_.left,t.splice(g,1))}const a=t[0],s=t[t.length-1];a.isDash===s.isDash&&(a.left=s.left-this.width,s.right=a.right+this.width);const l=this.width*this.nextRow;let p=0,f=t[p];for(let g=0;g1&&(f=t[++p]);const _=Math.abs(g-f.left),b=Math.abs(g-f.right),w=Math.min(_,b);this.data[l+g]=Math.max(0,Math.min(255,(f.isDash?w:-w)+128))}}addDash(t,a){const s=a?7:0,l=2*s+1;if(this.nextRow+l>this.height)return c.warnOnce("LineAtlas out of space"),null;let p=0;for(let g=0;g{l.send(t,a,p)},s=s||function(){})}getActor(){return this.currentActor=(this.currentActor+1)%this.actors.length,this.actors[this.currentActor]}remove(t=!0){this.actors.forEach(a=>{a.remove()}),this.actors=[],t&&this.workerPool.release(this.id)}}function st(h,t,a){const s=function(l,p){if(l)return a(l);if(p){const f=c.pick(c.extend(p,h),["tiles","minzoom","maxzoom","attribution","bounds","scheme","tileSize","encoding"]);p.vector_layers&&(f.vectorLayers=p.vector_layers,f.vectorLayerIds=f.vectorLayers.map(g=>g.id)),a(null,f)}};return h.url?c.getJSON(t.transformRequest(h.url,Et.Source),s):c.browser.frame(()=>s(null,h))}nt.Actor=c.Actor;class Ue{constructor(t,a){t&&(a?this.setSouthWest(t).setNorthEast(a):Array.isArray(t)&&(4===t.length?this.setSouthWest([t[0],t[1]]).setNorthEast([t[2],t[3]]):this.setSouthWest(t[0]).setNorthEast(t[1])))}setNorthEast(t){return this._ne=t instanceof c.LngLat?new c.LngLat(t.lng,t.lat):c.LngLat.convert(t),this}setSouthWest(t){return this._sw=t instanceof c.LngLat?new c.LngLat(t.lng,t.lat):c.LngLat.convert(t),this}extend(t){const a=this._sw,s=this._ne;let l,p;if(t instanceof c.LngLat)l=t,p=t;else{if(!(t instanceof Ue))return Array.isArray(t)?4===t.length||t.every(Array.isArray)?this.extend(Ue.convert(t)):this.extend(c.LngLat.convert(t)):t&&("lng"in t||"lon"in t)&&"lat"in t?this.extend(c.LngLat.convert(t)):this;if(l=t._sw,p=t._ne,!l||!p)return this}return a||s?(a.lng=Math.min(l.lng,a.lng),a.lat=Math.min(l.lat,a.lat),s.lng=Math.max(p.lng,s.lng),s.lat=Math.max(p.lat,s.lat)):(this._sw=new c.LngLat(l.lng,l.lat),this._ne=new c.LngLat(p.lng,p.lat)),this}getCenter(){return new c.LngLat((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)}getSouthWest(){return this._sw}getNorthEast(){return this._ne}getNorthWest(){return new c.LngLat(this.getWest(),this.getNorth())}getSouthEast(){return new c.LngLat(this.getEast(),this.getSouth())}getWest(){return this._sw.lng}getSouth(){return this._sw.lat}getEast(){return this._ne.lng}getNorth(){return this._ne.lat}toArray(){return[this._sw.toArray(),this._ne.toArray()]}toString(){return`LngLatBounds(${this._sw.toString()}, ${this._ne.toString()})`}isEmpty(){return!(this._sw&&this._ne)}contains(t){const{lng:a,lat:s}=c.LngLat.convert(t);let l=this._sw.lng<=a&&a<=this._ne.lng;return this._sw.lng>this._ne.lng&&(l=this._sw.lng>=a&&a>=this._ne.lng),this._sw.lat<=s&&s<=this._ne.lat&&l}static convert(t){return t instanceof Ue?t:t&&new Ue(t)}static fromLngLat(t,a=0){const s=360*a/40075017,l=s/Math.cos(Math.PI/180*t.lat);return new Ue(new c.LngLat(t.lng-l,t.lat-s),new c.LngLat(t.lng+l,t.lat+s))}}class vt{constructor(t,a,s){this.bounds=Ue.convert(this.validateBounds(t)),this.minzoom=a||0,this.maxzoom=s||24}validateBounds(t){return Array.isArray(t)&&4===t.length?[Math.max(-180,t[0]),Math.max(-90,t[1]),Math.min(180,t[2]),Math.min(90,t[3])]:[-180,-90,180,90]}contains(t){const a=Math.pow(2,t.z),s=Math.floor(c.mercatorXfromLng(this.bounds.getWest())*a),l=Math.floor(c.mercatorYfromLat(this.bounds.getNorth())*a),p=Math.ceil(c.mercatorXfromLng(this.bounds.getEast())*a),f=Math.ceil(c.mercatorYfromLat(this.bounds.getSouth())*a);return t.x>=s&&t.x=l&&t.y{this._loaded=!1,this.fire(new c.Event("dataloading",{dataType:"source"})),this._tileJSONRequest=st(this._options,this.map._requestManager,(p,f)=>{this._tileJSONRequest=null,this._loaded=!0,this.map.style.sourceCaches[this.id].clearTiles(),p?this.fire(new c.ErrorEvent(p)):f&&(c.extend(this,f),f.bounds&&(this.tileBounds=new vt(f.bounds,this.minzoom,this.maxzoom)),this.fire(new c.Event("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new c.Event("data",{dataType:"source",sourceDataType:"content"})))})},this.serialize=()=>c.extend({},this._options),this.id=t,this.dispatcher=s,this.type="vector",this.minzoom=0,this.maxzoom=22,this.scheme="xyz",this.tileSize=512,this.reparseOverscaled=!0,this.isTileClipped=!0,this._loaded=!1,c.extend(this,c.pick(a,["url","scheme","tileSize","promoteId"])),this._options=c.extend({type:"vector"},a),this._collectResourceTiming=a.collectResourceTiming,512!==this.tileSize)throw new Error("vector tile sources must have a tileSize of 512");this.setEventedParent(l)}loaded(){return this._loaded}hasTile(t){return!this.tileBounds||this.tileBounds.contains(t.canonical)}onAdd(t){this.map=t,this.load()}setSourceProperty(t){this._tileJSONRequest&&this._tileJSONRequest.cancel(),t(),this.load()}setTiles(t){return this.setSourceProperty(()=>{this._options.tiles=t}),this}setUrl(t){return this.setSourceProperty(()=>{this.url=t,this._options.url=t}),this}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)}loadTile(t,a){const s=t.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),l={request:this.map._requestManager.transformRequest(s,Et.Tile),uid:t.uid,tileID:t.tileID,zoom:t.tileID.overscaledZ,tileSize:this.tileSize*t.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};function p(f,g){return delete t.request,t.aborted?a(null):f&&404!==f.status?a(f):(g&&g.resourceTiming&&(t.resourceTiming=g.resourceTiming),this.map._refreshExpiredTiles&&g&&t.setExpiryData(g),t.loadVectorData(g,this.map.painter),a(null),void(t.reloadCallback&&(this.loadTile(t,t.reloadCallback),t.reloadCallback=null)))}l.request.collectResourceTiming=this._collectResourceTiming,t.actor&&"expired"!==t.state?"loading"===t.state?t.reloadCallback=a:t.request=t.actor.send("reloadTile",l,p.bind(this)):(t.actor=this.dispatcher.getActor(),t.request=t.actor.send("loadTile",l,p.bind(this)))}abortTile(t){t.request&&(t.request.cancel(),delete t.request),t.actor&&t.actor.send("abortTile",{uid:t.uid,type:this.type,source:this.id},void 0)}unloadTile(t){t.unloadVectorData(),t.actor&&t.actor.send("removeTile",{uid:t.uid,type:this.type,source:this.id},void 0)}hasTransition(){return!1}}class Ct extends c.Evented{constructor(t,a,s,l){super(),this.id=t,this.dispatcher=s,this.setEventedParent(l),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._options=c.extend({type:"raster"},a),c.extend(this,c.pick(a,["url","scheme","tileSize"]))}load(){this._loaded=!1,this.fire(new c.Event("dataloading",{dataType:"source"})),this._tileJSONRequest=st(this._options,this.map._requestManager,(t,a)=>{this._tileJSONRequest=null,this._loaded=!0,t?this.fire(new c.ErrorEvent(t)):a&&(c.extend(this,a),a.bounds&&(this.tileBounds=new vt(a.bounds,this.minzoom,this.maxzoom)),this.fire(new c.Event("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new c.Event("data",{dataType:"source",sourceDataType:"content"})))})}loaded(){return this._loaded}onAdd(t){this.map=t,this.load()}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)}serialize(){return c.extend({},this._options)}hasTile(t){return!this.tileBounds||this.tileBounds.contains(t.canonical)}loadTile(t,a){const s=t.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme);t.request=hi.getImage(this.map._requestManager.transformRequest(s,Et.Tile),(l,p,f)=>{if(delete t.request,t.aborted)t.state="unloaded",a(null);else if(l)t.state="errored",a(l);else if(p){this.map._refreshExpiredTiles&&f&&t.setExpiryData(f);const g=this.map.painter.context,_=g.gl;t.texture=this.map.painter.getTileTexture(p.width),t.texture?t.texture.update(p,{useMipmap:!0}):(t.texture=new Te(g,p,_.RGBA,{useMipmap:!0}),t.texture.bind(_.LINEAR,_.CLAMP_TO_EDGE,_.LINEAR_MIPMAP_NEAREST),g.extTextureFilterAnisotropic&&_.texParameterf(_.TEXTURE_2D,g.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,g.extTextureFilterAnisotropicMax)),t.state="loaded",a(null)}},this.map._refreshExpiredTiles)}abortTile(t,a){t.request&&(t.request.cancel(),delete t.request),a()}unloadTile(t,a){t.texture&&this.map.painter.saveTileTexture(t.texture),a()}hasTransition(){return!1}}class ai extends Ct{constructor(t,a,s,l){super(t,a,s,l),this.type="raster-dem",this.maxzoom=22,this._options=c.extend({type:"raster-dem"},a),this.encoding=a.encoding||"mapbox"}loadTile(t,a){const s=t.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme);function l(p,f){p&&(t.state="errored",a(p)),f&&(t.dem=f,t.needsHillshadePrepare=!0,t.needsTerrainPrepare=!0,t.state="loaded",a(null))}t.request=hi.getImage(this.map._requestManager.transformRequest(s,Et.Tile),function(p,f){if(delete t.request,t.aborted)t.state="unloaded",a(null);else if(p)t.state="errored",a(p);else if(f){this.map._refreshExpiredTiles&&t.setExpiryData(f),delete f.cacheControl,delete f.expires;const g=c.isImageBitmap(f)&&(null==sr&&(sr=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")&&"function"==typeof createImageBitmap),sr)?f:c.browser.getImageData(f,1),_={uid:t.uid,coord:t.tileID,source:this.id,rawImageData:g,encoding:this.encoding};t.actor&&"expired"!==t.state||(t.actor=this.dispatcher.getActor(),t.actor.send("loadDEMTile",_,l.bind(this)))}}.bind(this),this.map._refreshExpiredTiles),t.neighboringTiles=this._getNeighboringTiles(t.tileID)}_getNeighboringTiles(t){const a=t.canonical,s=Math.pow(2,a.z),l=(a.x-1+s)%s,p=0===a.x?t.wrap-1:t.wrap,f=(a.x+1+s)%s,g=a.x+1===s?t.wrap+1:t.wrap,_={};return _[new c.OverscaledTileID(t.overscaledZ,p,a.z,l,a.y).key]={backfilled:!1},_[new c.OverscaledTileID(t.overscaledZ,g,a.z,f,a.y).key]={backfilled:!1},a.y>0&&(_[new c.OverscaledTileID(t.overscaledZ,p,a.z,l,a.y-1).key]={backfilled:!1},_[new c.OverscaledTileID(t.overscaledZ,t.wrap,a.z,a.x,a.y-1).key]={backfilled:!1},_[new c.OverscaledTileID(t.overscaledZ,g,a.z,f,a.y-1).key]={backfilled:!1}),a.y+1{this._updateWorkerData()},this.serialize=()=>c.extend({},this._options,{type:this.type,data:this._data}),this.id=t,this.type="geojson",this.minzoom=0,this.maxzoom=18,this.tileSize=512,this.isTileClipped=!0,this.reparseOverscaled=!0,this._removed=!1,this._pendingLoads=0,this.actor=s.getActor(),this.setEventedParent(l),this._data=a.data,this._options=c.extend({},a),this._collectResourceTiming=a.collectResourceTiming,void 0!==a.maxzoom&&(this.maxzoom=a.maxzoom),a.type&&(this.type=a.type),a.attribution&&(this.attribution=a.attribution),this.promoteId=a.promoteId;const p=c.EXTENT/this.tileSize;this.workerOptions=c.extend({source:this.id,cluster:a.cluster||!1,geojsonVtOptions:{buffer:(void 0!==a.buffer?a.buffer:128)*p,tolerance:(void 0!==a.tolerance?a.tolerance:.375)*p,extent:c.EXTENT,maxZoom:this.maxzoom,lineMetrics:a.lineMetrics||!1,generateId:a.generateId||!1},superclusterOptions:{maxZoom:void 0!==a.clusterMaxZoom?a.clusterMaxZoom:this.maxzoom-1,minPoints:Math.max(2,a.clusterMinPoints||2),extent:c.EXTENT,radius:(a.clusterRadius||50)*p,log:!1,generateId:a.generateId||!1},clusterProperties:a.clusterProperties,filter:a.filter},a.workerOptions),"string"==typeof this.promoteId&&(this.workerOptions.promoteId=this.promoteId)}onAdd(t){this.map=t,this.load()}setData(t){return this._data=t,this._updateWorkerData(),this}updateData(t){return this._updateWorkerData(t),this}setClusterOptions(t){return this.workerOptions.cluster=t.cluster,t&&(void 0!==t.clusterRadius&&(this.workerOptions.superclusterOptions.radius=t.clusterRadius),void 0!==t.clusterMaxZoom&&(this.workerOptions.superclusterOptions.maxZoom=t.clusterMaxZoom)),this._updateWorkerData(),this}getClusterExpansionZoom(t,a){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:t,source:this.id},a),this}getClusterChildren(t,a){return this.actor.send("geojson.getClusterChildren",{clusterId:t,source:this.id},a),this}getClusterLeaves(t,a,s,l){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:t,limit:a,offset:s},l),this}_updateWorkerData(t){const a=c.extend({},this.workerOptions);t?a.dataDiff=t:"string"==typeof this._data?(a.request=this.map._requestManager.transformRequest(c.browser.resolveURL(this._data),Et.Source),a.request.collectResourceTiming=this._collectResourceTiming):a.data=JSON.stringify(this._data),this._pendingLoads++,this.fire(new c.Event("dataloading",{dataType:"source"})),this.actor.send(`${this.type}.loadData`,a,(s,l)=>{if(this._pendingLoads--,this._removed||l&&l.abandoned)return void this.fire(new c.Event("dataabort",{dataType:"source"}));let p=null;if(l&&l.resourceTiming&&l.resourceTiming[this.id]&&(p=l.resourceTiming[this.id].slice(0)),s)return void this.fire(new c.ErrorEvent(s));const f={dataType:"source"};this._collectResourceTiming&&p&&p.length>0&&c.extend(f,{resourceTiming:p}),this.fire(new c.Event("data",{...f,sourceDataType:"metadata"})),this.fire(new c.Event("data",{...f,sourceDataType:"content"}))})}loaded(){return 0===this._pendingLoads}loadTile(t,a){const s=t.actor?"reloadTile":"loadTile";t.actor=this.actor;const l={type:this.type,uid:t.uid,tileID:t.tileID,zoom:t.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};t.request=this.actor.send(s,l,(p,f)=>(delete t.request,t.unloadVectorData(),t.aborted?a(null):p?a(p):(t.loadVectorData(f,this.map.painter,"reloadTile"===s),a(null))))}abortTile(t){t.request&&(t.request.cancel(),delete t.request),t.aborted=!0}unloadTile(t){t.unloadVectorData(),this.actor.send("removeTile",{uid:t.uid,type:this.type,source:this.id})}onRemove(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})}hasTransition(){return!1}}var Le=c.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]);class pt extends c.Evented{constructor(t,a,s,l){super(),this.load=(p,f)=>{this._loaded=!1,this.fire(new c.Event("dataloading",{dataType:"source"})),this.url=this.options.url,this._request=hi.getImage(this.map._requestManager.transformRequest(this.url,Et.Image),(g,_)=>{this._request=null,this._loaded=!0,g?this.fire(new c.ErrorEvent(g)):_&&(this.image=_,p&&(this.coordinates=p),f&&f(),this._finishLoading())})},this.prepare=()=>{if(0===Object.keys(this.tiles).length||!this.image)return;const p=this.map.painter.context,f=p.gl;this.boundsBuffer||(this.boundsBuffer=p.createVertexBuffer(this._boundsArray,Le.members)),this.boundsSegments||(this.boundsSegments=c.SegmentVector.simpleSegment(0,0,4,2)),this.texture||(this.texture=new Te(p,this.image,f.RGBA),this.texture.bind(f.LINEAR,f.CLAMP_TO_EDGE));let g=!1;for(const _ in this.tiles){const b=this.tiles[_];"loaded"!==b.state&&(b.state="loaded",b.texture=this.texture,g=!0)}g&&this.fire(new c.Event("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))},this.serialize=()=>({type:"image",url:this.options.url,coordinates:this.coordinates}),this.id=t,this.dispatcher=s,this.coordinates=a.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(l),this.options=a}loaded(){return this._loaded}updateImage(t){return t.url?(this._request&&(this._request.cancel(),this._request=null),this.options.url=t.url,this.load(t.coordinates,()=>{this.texture=null}),this):this}_finishLoading(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new c.Event("data",{dataType:"source",sourceDataType:"metadata"})))}onAdd(t){this.map=t,this.load()}onRemove(){this._request&&(this._request.cancel(),this._request=null)}setCoordinates(t){this.coordinates=t;const a=t.map(c.MercatorCoordinate.fromLngLat);this.tileID=function(l){let p=1/0,f=1/0,g=-1/0,_=-1/0;for(const P of l)p=Math.min(p,P.x),f=Math.min(f,P.y),g=Math.max(g,P.x),_=Math.max(_,P.y);const b=Math.max(g-p,_-f),w=Math.max(0,Math.floor(-Math.log(b)/Math.LN2)),E=Math.pow(2,w);return new c.CanonicalTileID(w,Math.floor((p+g)/2*E),Math.floor((f+_)/2*E))}(a),this.minzoom=this.maxzoom=this.tileID.z;const s=a.map(l=>this.tileID.getTilePoint(l)._round());return this._boundsArray=new c.RasterBoundsArray,this._boundsArray.emplaceBack(s[0].x,s[0].y,0,0),this._boundsArray.emplaceBack(s[1].x,s[1].y,c.EXTENT,0),this._boundsArray.emplaceBack(s[3].x,s[3].y,0,c.EXTENT),this._boundsArray.emplaceBack(s[2].x,s[2].y,c.EXTENT,c.EXTENT),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new c.Event("data",{dataType:"source",sourceDataType:"content"})),this}loadTile(t,a){this.tileID&&this.tileID.equals(t.tileID.canonical)?(this.tiles[String(t.tileID.wrap)]=t,t.buckets={},a(null)):(t.state="errored",a(null))}hasTransition(){return!1}}class ft extends pt{constructor(t,a,s,l){super(t,a,s,l),this.load=()=>{this._loaded=!1;const p=this.options;this.urls=[];for(const f of p.urls)this.urls.push(this.map._requestManager.transformRequest(f,Et.Source).url);c.getVideo(this.urls,(f,g)=>{this._loaded=!0,f?this.fire(new c.ErrorEvent(f)):g&&(this.video=g,this.video.loop=!0,this.video.addEventListener("playing",()=>{this.map.triggerRepaint()}),this.map&&this.video.play(),this._finishLoading())})},this.prepare=()=>{if(0===Object.keys(this.tiles).length||this.video.readyState<2)return;const p=this.map.painter.context,f=p.gl;this.boundsBuffer||(this.boundsBuffer=p.createVertexBuffer(this._boundsArray,Le.members)),this.boundsSegments||(this.boundsSegments=c.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(f.LINEAR,f.CLAMP_TO_EDGE),f.texSubImage2D(f.TEXTURE_2D,0,0,0,f.RGBA,f.UNSIGNED_BYTE,this.video)):(this.texture=new Te(p,this.video,f.RGBA),this.texture.bind(f.LINEAR,f.CLAMP_TO_EDGE));let g=!1;for(const _ in this.tiles){const b=this.tiles[_];"loaded"!==b.state&&(b.state="loaded",b.texture=this.texture,g=!0)}g&&this.fire(new c.Event("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))},this.serialize=()=>({type:"video",urls:this.urls,coordinates:this.coordinates}),this.roundZoom=!0,this.type="video",this.options=a}pause(){this.video&&this.video.pause()}play(){this.video&&this.video.play()}seek(t){if(this.video){const a=this.video.seekable;ta.end(0)?this.fire(new c.ErrorEvent(new c.ValidationError(`sources.${this.id}`,null,`Playback for this video can be set only between the ${a.start(0)} and ${a.end(0)}-second mark.`))):this.video.currentTime=t}}getVideo(){return this.video}onAdd(t){this.map||(this.map=t,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))}hasTransition(){return this.video&&!this.video.paused}}class Q extends pt{constructor(t,a,s,l){super(t,a,s,l),this.load=()=>{this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof HTMLCanvasElement?this.options.canvas:document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new c.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())},this.prepare=()=>{let p=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,p=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,p=!0),this._hasInvalidDimensions()||0===Object.keys(this.tiles).length)return;const f=this.map.painter.context,g=f.gl;this.boundsBuffer||(this.boundsBuffer=f.createVertexBuffer(this._boundsArray,Le.members)),this.boundsSegments||(this.boundsSegments=c.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(p||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new Te(f,this.canvas,g.RGBA,{premultiply:!0});let _=!1;for(const b in this.tiles){const w=this.tiles[b];"loaded"!==w.state&&(w.state="loaded",w.texture=this.texture,_=!0)}_&&this.fire(new c.Event("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))},this.serialize=()=>({type:"canvas",coordinates:this.coordinates}),a.coordinates?Array.isArray(a.coordinates)&&4===a.coordinates.length&&!a.coordinates.some(p=>!Array.isArray(p)||2!==p.length||p.some(f=>"number"!=typeof f))||this.fire(new c.ErrorEvent(new c.ValidationError(`sources.${t}`,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new c.ErrorEvent(new c.ValidationError(`sources.${t}`,null,'missing required property "coordinates"'))),a.animate&&"boolean"!=typeof a.animate&&this.fire(new c.ErrorEvent(new c.ValidationError(`sources.${t}`,null,'optional "animate" property must be a boolean value'))),a.canvas?"string"==typeof a.canvas||a.canvas instanceof HTMLCanvasElement||this.fire(new c.ErrorEvent(new c.ValidationError(`sources.${t}`,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new c.ErrorEvent(new c.ValidationError(`sources.${t}`,null,'missing required property "canvas"'))),this.options=a,this.animate=void 0===a.animate||a.animate}getCanvas(){return this.canvas}onAdd(t){this.map=t,this.load(),this.canvas&&this.animate&&this.play()}onRemove(){this.pause()}hasTransition(){return this._playing}_hasInvalidDimensions(){for(const t of[this.canvas.width,this.canvas.height])if(isNaN(t)||t<=0)return!0;return!1}}const Ut={},mi=h=>{switch(h){case"geojson":return Ot;case"image":return pt;case"raster":return Ct;case"raster-dem":return ai;case"vector":return Lt;case"video":return ft;case"canvas":return Q}return Ut[h]};function je(h,t){const a=c.create();return c.translate(a,a,[1,1,0]),c.scale(a,a,[.5*h.width,.5*h.height,1]),c.multiply(a,a,h.calculatePosMatrix(t.toUnwrapped()))}function it(h,t,a,s,l,p){const f=function(E,P,V){if(E)for(const U of E){const Z=P[U];if(Z&&Z.source===V&&"fill-extrusion"===Z.type)return!0}else for(const U in P){const Z=P[U];if(Z.source===V&&"fill-extrusion"===Z.type)return!0}return!1}(l&&l.layers,t,h.id),g=p.maxPitchScaleFactor(),_=h.tilesIn(s,g,f);_.sort(Ri);const b=[];for(const E of _)b.push({wrappedTileID:E.tileID.wrapped().key,queryResults:E.tile.queryRenderedFeatures(t,a,h._state,E.queryGeometry,E.cameraQueryGeometry,E.scale,l,p,g,je(h.transform,E.tileID))});const w=function(E){const P={},V={};for(const U of E){const Z=U.queryResults,O=U.wrappedTileID,W=V[O]=V[O]||{};for(const te in Z){const j=Z[te],K=W[te]=W[te]||{},ne=P[te]=P[te]||[];for(const se of j)K[se.featureIndex]||(K[se.featureIndex]=!0,ne.push(se))}}return P}(b);for(const E in w)w[E].forEach(P=>{const V=P.feature,U=h.getFeatureState(V.layer["source-layer"],V.id);V.source=V.layer.source,V.layer["source-layer"]&&(V.sourceLayer=V.layer["source-layer"]),V.state=U});return w}function Ri(h,t){const a=h.tileID,s=t.tileID;return a.overscaledZ-s.overscaledZ||a.canonical.y-s.canonical.y||a.wrap-s.wrap||a.canonical.x-s.canonical.x}class we{constructor(t,a){this.timeAdded=0,this.fadeEndTime=0,this.tileID=t,this.uid=c.uniqueId(),this.uses=0,this.tileSize=a,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.rtt=[],this.rttCoords={},this.expiredRequestCount=0,this.state="loading"}registerFadeDuration(t){const a=t+this.timeAdded;ap.getLayer(b)).filter(Boolean);if(0!==_.length){g.layers=_,g.stateDependentLayerIds&&(g.stateDependentLayers=g.stateDependentLayerIds.map(b=>_.filter(w=>w.id===b)[0]));for(const b of _)f[b.id]=g}}return f}(t.buckets,a.style),this.hasSymbolBuckets=!1;for(const l in this.buckets){const p=this.buckets[l];if(p instanceof c.SymbolBucket){if(this.hasSymbolBuckets=!0,!s)break;p.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(const l in this.buckets){const p=this.buckets[l];if(p instanceof c.SymbolBucket&&p.hasRTLText){this.hasRTLText=!0,c.lazyLoadRTLTextPlugin();break}}this.queryPadding=0;for(const l in this.buckets){const p=this.buckets[l];this.queryPadding=Math.max(this.queryPadding,a.style.getLayer(l).queryRadius(p))}t.imageAtlas&&(this.imageAtlas=t.imageAtlas),t.glyphAtlasImage&&(this.glyphAtlasImage=t.glyphAtlasImage)}else this.collisionBoxArray=new c.CollisionBoxArray}unloadVectorData(){for(const t in this.buckets)this.buckets[t].destroy();this.buckets={},this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.imageAtlas&&(this.imageAtlas=null),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.latestFeatureIndex=null,this.state="unloaded"}getBucket(t){return this.buckets[t.id]}upload(t){for(const s in this.buckets){const l=this.buckets[s];l.uploadPending()&&l.upload(t)}const a=t.gl;this.imageAtlas&&!this.imageAtlas.uploaded&&(this.imageAtlasTexture=new Te(t,this.imageAtlas.image,a.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&(this.glyphAtlasTexture=new Te(t,this.glyphAtlasImage,a.ALPHA),this.glyphAtlasImage=null)}prepare(t){this.imageAtlas&&this.imageAtlas.patchUpdatedImages(t,this.imageAtlasTexture)}queryRenderedFeatures(t,a,s,l,p,f,g,_,b,w){return this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({queryGeometry:l,cameraQueryGeometry:p,scale:f,tileSize:this.tileSize,pixelPosMatrix:w,transform:_,params:g,queryPadding:this.queryPadding*b},t,a,s):{}}querySourceFeatures(t,a){const s=this.latestFeatureIndex;if(!s||!s.rawTileData)return;const l=s.loadVTLayers(),p=a&&a.sourceLayer?a.sourceLayer:"",f=l._geojsonTileLayer||l[p];if(!f)return;const g=c.createFilter(a&&a.filter),{z:_,x:b,y:w}=this.tileID.canonical,E={z:_,x:b,y:w};for(let P=0;Ps)l=!1;else if(a)if(this.expirationTime{this.remove(t,p)},s)),this.data[l].push(p),this.order.push(l),this.order.length>this.max){const f=this._getAndRemoveByKey(this.order[0]);f&&this.onRemove(f)}return this}has(t){return t.wrapped().key in this.data}getAndRemove(t){return this.has(t)?this._getAndRemoveByKey(t.wrapped().key):null}_getAndRemoveByKey(t){const a=this.data[t].shift();return a.timeout&&clearTimeout(a.timeout),0===this.data[t].length&&delete this.data[t],this.order.splice(this.order.indexOf(t),1),a.value}getByKey(t){const a=this.data[t];return a?a[0].value:null}get(t){return this.has(t)?this.data[t.wrapped().key][0].value:null}remove(t,a){if(!this.has(t))return this;const s=t.wrapped().key,l=void 0===a?0:this.data[s].indexOf(a),p=this.data[s][l];return this.data[s].splice(l,1),p.timeout&&clearTimeout(p.timeout),0===this.data[s].length&&delete this.data[s],this.onRemove(p.value),this.order.splice(this.order.indexOf(s),1),this}setMaxSize(t){for(this.max=t;this.order.length>this.max;){const a=this._getAndRemoveByKey(this.order[0]);a&&this.onRemove(a)}return this}filter(t){const a=[];for(const s in this.data)for(const l of this.data[s])t(l.value)||a.push(l);for(const s of a)this.remove(s.value.tileID,s)}}class yr{constructor(){this.state={},this.stateChanges={},this.deletedStates={}}updateState(t,a,s){const l=String(a);if(this.stateChanges[t]=this.stateChanges[t]||{},this.stateChanges[t][l]=this.stateChanges[t][l]||{},c.extend(this.stateChanges[t][l],s),null===this.deletedStates[t]){this.deletedStates[t]={};for(const p in this.state[t])p!==l&&(this.deletedStates[t][p]=null)}else if(this.deletedStates[t]&&null===this.deletedStates[t][l]){this.deletedStates[t][l]={};for(const p in this.state[t][l])s[p]||(this.deletedStates[t][l][p]=null)}else for(const p in s)this.deletedStates[t]&&this.deletedStates[t][l]&&null===this.deletedStates[t][l][p]&&delete this.deletedStates[t][l][p]}removeFeatureState(t,a,s){if(null===this.deletedStates[t])return;const l=String(a);if(this.deletedStates[t]=this.deletedStates[t]||{},s&&void 0!==a)null!==this.deletedStates[t][l]&&(this.deletedStates[t][l]=this.deletedStates[t][l]||{},this.deletedStates[t][l][s]=null);else if(void 0!==a)if(this.stateChanges[t]&&this.stateChanges[t][l])for(s in this.deletedStates[t][l]={},this.stateChanges[t][l])this.deletedStates[t][l][s]=null;else this.deletedStates[t][l]=null;else this.deletedStates[t]=null}getState(t,a){const s=String(a),l=c.extend({},(this.state[t]||{})[s],(this.stateChanges[t]||{})[s]);if(null===this.deletedStates[t])return{};if(this.deletedStates[t]){const p=this.deletedStates[t][a];if(null===p)return{};for(const f in p)delete l[f]}return l}initializeTileState(t,a){t.setFeatureState(this.state,a)}coalesceChanges(t,a){const s={};for(const l in this.stateChanges){this.state[l]=this.state[l]||{};const p={};for(const f in this.stateChanges[l])this.state[l][f]||(this.state[l][f]={}),c.extend(this.state[l][f],this.stateChanges[l][f]),p[f]=this.state[l][f];s[l]=p}for(const l in this.deletedStates){this.state[l]=this.state[l]||{};const p={};if(null===this.deletedStates[l])for(const f in this.state[l])p[f]={},this.state[l][f]={};else for(const f in this.deletedStates[l]){if(null===this.deletedStates[l][f])this.state[l][f]={};else for(const g of Object.keys(this.deletedStates[l][f]))delete this.state[l][f][g];p[f]=this.state[l][f]}s[l]=s[l]||{},c.extend(s[l],p)}if(this.stateChanges={},this.deletedStates={},0!==Object.keys(s).length)for(const l in t)t[l].setFeatureState(s,a)}}class dt extends c.Evented{constructor(t,a,s){super(),this.id=t,this.dispatcher=s,this.on("data",l=>{"source"===l.dataType&&"metadata"===l.sourceDataType&&(this._sourceLoaded=!0),this._sourceLoaded&&!this._paused&&"source"===l.dataType&&"content"===l.sourceDataType&&(this.reload(),this.transform&&this.update(this.transform,this.terrain),this._didEmitContent=!0)}),this.on("dataloading",()=>{this._sourceErrored=!1}),this.on("error",()=>{this._sourceErrored=this._source.loaded()}),this._source=((l,p,f,g)=>{const _=new(mi(p.type))(l,p,f,g);if(_.id!==l)throw new Error(`Expected Source id to be ${l} instead of ${_.id}`);return _})(t,a,s,this),this._tiles={},this._cache=new zi(0,this._unloadTile.bind(this)),this._timers={},this._cacheTimers={},this._maxTileCacheSize=null,this._maxTileCacheZoomLevels=null,this._loadedParentTiles={},this._coveredTiles={},this._state=new yr,this._didEmitContent=!1,this._updated=!1}onAdd(t){this.map=t,this._maxTileCacheSize=t?t._maxTileCacheSize:null,this._maxTileCacheZoomLevels=t?t._maxTileCacheZoomLevels:null,this._source&&this._source.onAdd&&this._source.onAdd(t)}onRemove(t){this.clearTiles(),this._source&&this._source.onRemove&&this._source.onRemove(t)}loaded(){if(this._sourceErrored)return!0;if(!this._sourceLoaded||!this._source.loaded())return!1;if(!(void 0===this.used&&void 0===this.usedForTerrain||this.used||this.usedForTerrain))return!0;if(!this._updated)return!1;for(const t in this._tiles){const a=this._tiles[t];if("loaded"!==a.state&&"errored"!==a.state)return!1}return!0}getSource(){return this._source}pause(){this._paused=!0}resume(){if(!this._paused)return;const t=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,t&&this.reload(),this.transform&&this.update(this.transform,this.terrain)}_loadTile(t,a){return this._source.loadTile(t,a)}_unloadTile(t){if(this._source.unloadTile)return this._source.unloadTile(t,()=>{})}_abortTile(t){this._source.abortTile&&this._source.abortTile(t,()=>{}),this._source.fire(new c.Event("dataabort",{tile:t,coord:t.tileID,dataType:"source"}))}serialize(){return this._source.serialize()}prepare(t){this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null);for(const a in this._tiles){const s=this._tiles[a];s.upload(t),s.prepare(this.map.style.imageManager)}}getIds(){return Object.values(this._tiles).map(t=>t.tileID).sort(Dr).map(t=>t.key)}getRenderableIds(t){const a=[];for(const s in this._tiles)this._isIdRenderable(s,t)&&a.push(this._tiles[s]);return t?a.sort((s,l)=>{const p=s.tileID,f=l.tileID,g=new c.Point(p.canonical.x,p.canonical.y)._rotate(this.transform.angle),_=new c.Point(f.canonical.x,f.canonical.y)._rotate(this.transform.angle);return p.overscaledZ-f.overscaledZ||_.y-g.y||_.x-g.x}).map(s=>s.tileID.key):a.map(s=>s.tileID).sort(Dr).map(s=>s.key)}hasRenderableParent(t){const a=this.findLoadedParent(t,0);return!!a&&this._isIdRenderable(a.tileID.key)}_isIdRenderable(t,a){return this._tiles[t]&&this._tiles[t].hasData()&&!this._coveredTiles[t]&&(a||!this._tiles[t].holdingForFade())}reload(){if(this._paused)this._shouldReloadOnResume=!0;else{this._cache.reset();for(const t in this._tiles)"errored"!==this._tiles[t].state&&this._reloadTile(t,"reloading")}}_reloadTile(t,a){const s=this._tiles[t];s&&("loading"!==s.state&&(s.state=a),this._loadTile(s,this._tileLoaded.bind(this,s,t,a)))}_tileLoaded(t,a,s,l){if(l)return t.state="errored",void(404!==l.status?this._source.fire(new c.ErrorEvent(l,{tile:t})):this.update(this.transform,this.terrain));t.timeAdded=c.browser.now(),"expired"===s&&(t.refreshedUponExpiration=!0),this._setTileReloadTimer(a,t),"raster-dem"===this.getSource().type&&t.dem&&this._backfillDEM(t),this._state.initializeTileState(t,this.map?this.map.painter:null),t.aborted||this._source.fire(new c.Event("data",{dataType:"source",tile:t,coord:t.tileID}))}_backfillDEM(t){const a=this.getRenderableIds();for(let l=0;l1||(Math.abs(f)>1&&(1===Math.abs(f+_)?f+=_:1===Math.abs(f-_)&&(f-=_)),p.dem&&l.dem&&(l.dem.backfillBorder(p.dem,f,g),l.neighboringTiles&&l.neighboringTiles[b]&&(l.neighboringTiles[b].backfilled=!0)))}}getTile(t){return this.getTileByID(t.key)}getTileByID(t){return this._tiles[t]}_retainLoadedChildren(t,a,s,l){for(const p in this._tiles){let f=this._tiles[p];if(l[p]||!f.hasData()||f.tileID.overscaledZ<=a||f.tileID.overscaledZ>s)continue;let g=f.tileID;for(;f&&f.tileID.overscaledZ>a+1;){const b=f.tileID.scaledTo(f.tileID.overscaledZ-1);f=this._tiles[b.key],f&&f.hasData()&&(g=b)}let _=g;for(;_.overscaledZ>a;)if(_=_.scaledTo(_.overscaledZ-1),t[_.key]){l[g.key]=g;break}}}findLoadedParent(t,a){if(t.key in this._loadedParentTiles){const s=this._loadedParentTiles[t.key];return s&&s.tileID.overscaledZ>=a?s:null}for(let s=t.overscaledZ-1;s>=a;s--){const l=t.scaledTo(s),p=this._getLoadedTile(l);if(p)return p}}_getLoadedTile(t){const a=this._tiles[t.key];return a&&a.hasData()?a:this._cache.getByKey(t.wrapped().key)}updateCacheSize(t){const a=Math.ceil(t.width/this._source.tileSize)+1,s=Math.ceil(t.height/this._source.tileSize)+1,l=Math.floor(a*s*(null===this._maxTileCacheZoomLevels?c.config.MAX_TILE_CACHE_ZOOM_LEVELS:this._maxTileCacheZoomLevels)),p="number"==typeof this._maxTileCacheSize?Math.min(this._maxTileCacheSize,l):l;this._cache.setMaxSize(p)}handleWrapJump(t){const a=Math.round((t-(void 0===this._prevLng?t:this._prevLng))/360);if(this._prevLng=t,a){const s={};for(const l in this._tiles){const p=this._tiles[l];p.tileID=p.tileID.unwrapTo(p.tileID.wrap+a),s[p.tileID.key]=p}this._tiles=s;for(const l in this._timers)clearTimeout(this._timers[l]),delete this._timers[l];for(const l in this._tiles)this._setTileReloadTimer(l,this._tiles[l])}}update(t,a){if(this.transform=t,this.terrain=a,!this._sourceLoaded||this._paused)return;let s;this.updateCacheSize(t),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used||this.usedForTerrain?this._source.tileID?s=t.getVisibleUnwrappedCoordinates(this._source.tileID).map(w=>new c.OverscaledTileID(w.canonical.z,w.wrap,w.canonical.z,w.canonical.x,w.canonical.y)):(s=t.coveringTiles({tileSize:this.usedForTerrain?this.tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:!this.usedForTerrain&&this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled,terrain:a}),this._source.hasTile&&(s=s.filter(w=>this._source.hasTile(w)))):s=[];const l=t.coveringZoomLevel(this._source),p=Math.max(l-dt.maxOverzooming,this._source.minzoom),f=Math.max(l+dt.maxUnderzooming,this._source.minzoom);if(this.usedForTerrain){const w={};for(const E of s)if(E.canonical.z>this._source.minzoom){const P=E.scaledTo(E.canonical.z-1);w[P.key]=P;const V=E.scaledTo(Math.max(this._source.minzoom,Math.min(E.canonical.z,5)));w[V.key]=V}s=s.concat(Object.values(w))}const g=0===s.length&&!this._updated&&this._didEmitContent;this._updated=!0,g&&this.fire(new c.Event("data",{sourceDataType:"idle",dataType:"source",sourceId:this.id}));const _=this._updateRetainedTiles(s,l);if(_r(this._source.type)){const w={},E={},P=Object.keys(_),V=c.browser.now();for(const U of P){const Z=_[U],O=this._tiles[U];if(!O||0!==O.fadeEndTime&&O.fadeEndTime<=V)continue;const W=this.findLoadedParent(Z,p);W&&(this._addTile(W.tileID),w[W.tileID.key]=W.tileID),E[U]=Z}this._retainLoadedChildren(E,l,f,_);for(const U in w)_[U]||(this._coveredTiles[U]=!0,_[U]=w[U]);if(a){const U={},Z={};for(const O of s)this._tiles[O.key].hasData()?U[O.key]=O:Z[O.key]=O;for(const O in Z){const W=Z[O].children(this._source.maxzoom);this._tiles[W[0].key]&&this._tiles[W[1].key]&&this._tiles[W[2].key]&&this._tiles[W[3].key]&&(U[W[0].key]=_[W[0].key]=W[0],U[W[1].key]=_[W[1].key]=W[1],U[W[2].key]=_[W[2].key]=W[2],U[W[3].key]=_[W[3].key]=W[3],delete Z[O])}for(const O in Z){const W=this.findLoadedParent(Z[O],this._source.minzoom);if(W){U[W.tileID.key]=_[W.tileID.key]=W.tileID;for(const te in U)U[te].isChildOf(W.tileID)&&delete U[te]}}for(const O in this._tiles)U[O]||(this._coveredTiles[O]=!0)}}for(const w in _)this._tiles[w].clearFadeHold();const b=c.keysDifference(this._tiles,_);for(const w of b){const E=this._tiles[w];E.hasSymbolBuckets&&!E.holdingForFade()?E.setHoldDuration(this.map._fadeDuration):E.hasSymbolBuckets&&!E.symbolFadeFinished()||this._removeTile(w)}this._updateLoadedParentTileCache()}releaseSymbolFadeTiles(){for(const t in this._tiles)this._tiles[t].holdingForFade()&&this._removeTile(t)}_updateRetainedTiles(t,a){const s={},l={},p=Math.max(a-dt.maxOverzooming,this._source.minzoom),f=Math.max(a+dt.maxUnderzooming,this._source.minzoom),g={};for(const _ of t){const b=this._addTile(_);s[_.key]=_,b.hasData()||athis._source.maxzoom){const E=_.children(this._source.maxzoom)[0],P=this.getTile(E);if(P&&P.hasData()){s[E.key]=E;continue}}else{const E=_.children(this._source.maxzoom);if(s[E[0].key]&&s[E[1].key]&&s[E[2].key]&&s[E[3].key])continue}let w=b.wasRequested();for(let E=_.overscaledZ-1;E>=p;--E){const P=_.scaledTo(E);if(l[P.key])break;if(l[P.key]=!0,b=this.getTile(P),!b&&w&&(b=this._addTile(P)),b){const V=b.hasData();if((w||V)&&(s[P.key]=P),w=b.wasRequested(),V)break}}}return s}_updateLoadedParentTileCache(){this._loadedParentTiles={};for(const t in this._tiles){const a=[];let s,l=this._tiles[t].tileID;for(;l.overscaledZ>0;){if(l.key in this._loadedParentTiles){s=this._loadedParentTiles[l.key];break}a.push(l.key);const p=l.scaledTo(l.overscaledZ-1);if(s=this._getLoadedTile(p),s)break;l=p}for(const p of a)this._loadedParentTiles[p]=s}}_addTile(t){let a=this._tiles[t.key];if(a)return a;a=this._cache.getAndRemove(t),a&&(this._setTileReloadTimer(t.key,a),a.tileID=t,this._state.initializeTileState(a,this.map?this.map.painter:null),this._cacheTimers[t.key]&&(clearTimeout(this._cacheTimers[t.key]),delete this._cacheTimers[t.key],this._setTileReloadTimer(t.key,a)));const s=a;return a||(a=new we(t,this._source.tileSize*t.overscaleFactor()),this._loadTile(a,this._tileLoaded.bind(this,a,t.key,a.state))),a.uses++,this._tiles[t.key]=a,s||this._source.fire(new c.Event("dataloading",{tile:a,coord:a.tileID,dataType:"source"})),a}_setTileReloadTimer(t,a){t in this._timers&&(clearTimeout(this._timers[t]),delete this._timers[t]);const s=a.getExpiryTimeout();s&&(this._timers[t]=setTimeout(()=>{this._reloadTile(t,"expired"),delete this._timers[t]},s))}_removeTile(t){const a=this._tiles[t];a&&(a.uses--,delete this._tiles[t],this._timers[t]&&(clearTimeout(this._timers[t]),delete this._timers[t]),a.uses>0||(a.hasData()&&"reloading"!==a.state?this._cache.add(a.tileID,a,a.getExpiryTimeout()):(a.aborted=!0,this._abortTile(a),this._unloadTile(a))))}clearTiles(){this._shouldReloadOnResume=!1,this._paused=!1;for(const t in this._tiles)this._removeTile(t);this._cache.reset()}tilesIn(t,a,s){const l=[],p=this.transform;if(!p)return l;const f=s?p.getCameraQueryGeometry(t):t,g=t.map(U=>p.pointCoordinate(U,this.terrain)),_=f.map(U=>p.pointCoordinate(U,this.terrain)),b=this.getIds();let w=1/0,E=1/0,P=-1/0,V=-1/0;for(const U of _)w=Math.min(w,U.x),E=Math.min(E,U.y),P=Math.max(P,U.x),V=Math.max(V,U.y);for(let U=0;U=0&&j[1].y+te>=0){const K=g.map(se=>O.getTilePoint(se)),ne=_.map(se=>O.getTilePoint(se));l.push({tile:Z,tileID:O,queryGeometry:K,cameraQueryGeometry:ne,scale:W})}}return l}getVisibleCoordinates(t){const a=this.getRenderableIds(t).map(s=>this._tiles[s].tileID);for(const s of a)s.posMatrix=this.transform.calculatePosMatrix(s.toUnwrapped());return a}hasTransition(){if(this._source.hasTransition())return!0;if(_r(this._source.type)){const t=c.browser.now();for(const a in this._tiles)if(this._tiles[a].fadeEndTime>=t)return!0}return!1}setFeatureState(t,a,s){this._state.updateState(t=t||"_geojsonTileLayer",a,s)}removeFeatureState(t,a,s){this._state.removeFeatureState(t=t||"_geojsonTileLayer",a,s)}getFeatureState(t,a){return this._state.getState(t=t||"_geojsonTileLayer",a)}setDependencies(t,a,s){const l=this._tiles[t];l&&l.setDependencies(a,s)}reloadTilesForDependencies(t,a){for(const s in this._tiles)this._tiles[s].hasDependency(t,a)&&this._reloadTile(s,"reloading");this._cache.filter(s=>!s.hasDependency(t,a))}}function Dr(h,t){const a=Math.abs(2*h.wrap)-+(h.wrap<0),s=Math.abs(2*t.wrap)-+(t.wrap<0);return h.overscaledZ-t.overscaledZ||s-a||t.canonical.y-h.canonical.y||t.canonical.x-h.canonical.x}function _r(h){return"raster"===h||"image"===h||"video"===h}dt.maxOverzooming=10,dt.maxUnderzooming=3;const fe="mapboxgl_preloaded_worker_pool";class vi{constructor(){this.active={}}acquire(t){if(!this.workers)for(this.workers=[];this.workers.length{a.terminate()}),this.workers=null)}isPreloaded(){return!!this.active[fe]}numActive(){return Object.keys(this.active).length}}const Wt=Math.floor(c.browser.hardwareConcurrency/2);let Wi;function or(){return Wi||(Wi=new vi),Wi}vi.workerCount=c.isSafari(globalThis)?Math.max(Math.min(Wt,3),1):1;class de{constructor(t,a){this.reset(t,a)}reset(t,a){this.points=t||[],this._distances=[0];for(let s=1;s0?(l-f)/g:0;return this.points[p].mult(1-_).add(this.points[a].mult(_))}}function We(h,t){let a=!0;return"always"===h||"never"!==h&&"never"!==t||(a=!1),a}class Ke{constructor(t,a,s){const l=this.boxCells=[],p=this.circleCells=[];this.xCellCount=Math.ceil(t/s),this.yCellCount=Math.ceil(a/s);for(let f=0;fthis.width||l<0||a>this.height)return[];const _=[];if(t<=0&&a<=0&&this.width<=s&&this.height<=l){if(p)return[{key:null,x1:t,y1:a,x2:s,y2:l}];for(let b=0;b0}hitTestCircle(t,a,s,l,p){const f=t-s,g=t+s,_=a-s,b=a+s;if(g<0||f>this.width||b<0||_>this.height)return!1;const w=[];return this._forEachCell(f,_,g,b,this._queryCellCircle,w,{hitTest:!0,overlapMode:l,circle:{x:t,y:a,radius:s},seenUids:{box:{},circle:{}}},p),w.length>0}_queryCell(t,a,s,l,p,f,g,_){const{seenUids:b,hitTest:w,overlapMode:E}=g,P=this.boxCells[p];if(null!==P){const U=this.bboxes;for(const Z of P)if(!b.box[Z]){b.box[Z]=!0;const O=4*Z,W=this.boxKeys[Z];if(t<=U[O+2]&&a<=U[O+3]&&s>=U[O+0]&&l>=U[O+1]&&(!_||_(W))&&(!w||!We(E,W.overlapMode))&&(f.push({key:W,x1:U[O],y1:U[O+1],x2:U[O+2],y2:U[O+3]}),w))return!0}}const V=this.circleCells[p];if(null!==V){const U=this.circles;for(const Z of V)if(!b.circle[Z]){b.circle[Z]=!0;const O=3*Z,W=this.circleKeys[Z];if(this._circleAndRectCollide(U[O],U[O+1],U[O+2],t,a,s,l)&&(!_||_(W))&&(!w||!We(E,W.overlapMode))){const te=U[O],j=U[O+1],K=U[O+2];if(f.push({key:W,x1:te-K,y1:j-K,x2:te+K,y2:j+K}),w)return!0}}}return!1}_queryCellCircle(t,a,s,l,p,f,g,_){const{circle:b,seenUids:w,overlapMode:E}=g,P=this.boxCells[p];if(null!==P){const U=this.bboxes;for(const Z of P)if(!w.box[Z]){w.box[Z]=!0;const O=4*Z,W=this.boxKeys[Z];if(this._circleAndRectCollide(b.x,b.y,b.radius,U[O+0],U[O+1],U[O+2],U[O+3])&&(!_||_(W))&&!We(E,W.overlapMode))return f.push(!0),!0}}const V=this.circleCells[p];if(null!==V){const U=this.circles;for(const Z of V)if(!w.circle[Z]){w.circle[Z]=!0;const O=3*Z,W=this.circleKeys[Z];if(this._circlesCollide(U[O],U[O+1],U[O+2],b.x,b.y,b.radius)&&(!_||_(W))&&!We(E,W.overlapMode))return f.push(!0),!0}}}_forEachCell(t,a,s,l,p,f,g,_){const b=this._convertToXCellCoord(t),w=this._convertToYCellCoord(a),E=this._convertToXCellCoord(s),P=this._convertToYCellCoord(l);for(let V=b;V<=E;V++)for(let U=w;U<=P;U++)if(p.call(this,t,a,s,l,this.xCellCount*U+V,f,g,_))return}_convertToXCellCoord(t){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(t*this.xScale)))}_convertToYCellCoord(t){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(t*this.yScale)))}_circlesCollide(t,a,s,l,p,f){const g=l-t,_=p-a,b=s+f;return b*b>g*g+_*_}_circleAndRectCollide(t,a,s,l,p,f,g){const _=(f-l)/2,b=Math.abs(t-(l+_));if(b>_+s)return!1;const w=(g-p)/2,E=Math.abs(a-(p+w));if(E>w+s)return!1;if(b<=_||E<=w)return!0;const P=b-_,V=E-w;return P*P+V*V<=s*s}}function Ht(h,t,a,s,l){const p=c.create();return t?(c.scale(p,p,[1/l,1/l,1]),a||c.rotateZ(p,p,s.angle)):c.multiply(p,s.labelPlaneMatrix,h),p}function Pi(h,t,a,s,l){if(t){const p=c.clone(h);return c.scale(p,p,[l,l,1]),a||c.rotateZ(p,p,-s.angle),p}return s.glCoordMatrix}function Fe(h,t,a){let s;a?(s=[h.x,h.y,a(h.x,h.y),1],c.transformMat4(s,s,t)):(s=[h.x,h.y,0,1],T(s,s,t));const l=s[3];return{point:new c.Point(s[0]/l,s[1]/l),signedDistanceFromCamera:l}}function ki(h,t){return.5+h/t*.5}function Bi(h,t){const a=h[0]/h[3],s=h[1]/h[3];return a>=-t[0]&&a<=t[0]&&s>=-t[1]&&s<=t[1]}function bi(h,t,a,s,l,p,f,g,_,b){const w=s?h.textSizeData:h.iconSizeData,E=c.evaluateSizeForZoom(w,a.transform.zoom),P=[256/a.width*2+1,256/a.height*2+1],V=s?h.text.dynamicLayoutVertexArray:h.icon.dynamicLayoutVertexArray;V.clear();const U=h.lineVertexArray,Z=s?h.text.placedSymbolArray:h.icon.placedSymbolArray,O=a.transform.width/a.transform.height;let W=!1;for(let te=0;teMath.abs(a.x-t.x)*s?{useVertical:!0}:(h===c.WritingMode.vertical?t.ya.x)?{needsFlipping:!0}:null}function fi(h,t,a,s,l,p,f,g,_,b,w,E,P,V,U,Z){const O=t/24,W=h.lineOffsetX*O,te=h.lineOffsetY*O;let j;if(h.numGlyphs>1){const K=h.glyphStartIndex+h.numGlyphs,ne=h.lineStartIndex,se=h.lineStartIndex+h.lineLength,oe=Hi(O,g,W,te,a,w,E,h,_,p,P,U,Z);if(!oe)return{notEnoughRoom:!0};const he=Fe(oe.first.point,f,Z).point,ce=Fe(oe.last.point,f,Z).point;if(s&&!a){const pe=Rr(h.writingMode,he,ce,V);if(pe)return pe}j=[oe.first];for(let pe=h.glyphStartIndex+1;pe0?he.point:Tt(E,oe,ne,1,l,Z),pe=Rr(h.writingMode,ne,ce,V);if(pe)return pe}const K=A(O*g.getoffsetX(h.glyphStartIndex),W,te,a,w,E,h.segment,h.lineStartIndex,h.lineStartIndex+h.lineLength,_,p,P,U,Z);if(!K)return{notEnoughRoom:!0};j=[K]}for(const K of j)c.addDynamicAttributes(b,K.point,K.angle);return{}}function Tt(h,t,a,s,l,p){const f=Fe(h.add(h.sub(t)._unit()),l,p).point,g=a.sub(f);return a.add(g._mult(s/g.mag()))}function ea(h,t){const{projectionCache:a,lineVertexArray:s,labelPlaneMatrix:l,tileAnchorPoint:p,distanceFromAnchor:f,getElevation:g,previousVertex:_,direction:b,absOffsetX:w}=t;if(a.projections[h])return a.projections[h];const E=new c.Point(s.getx(h),s.gety(h)),P=Fe(E,l,g);if(P.signedDistanceFromCamera>0)return a.projections[h]=P.point,P.point;const V=h-b;return Tt(0===f?p:new c.Point(s.getx(V),s.gety(V)),E,_,w-f+1,l,g)}function xr(h,t,a){return h._unit()._perp()._mult(t*a)}function $(h,t,a,s,l,p,f,g){const{projectionCache:_,direction:b}=g;if(_.offsets[h])return _.offsets[h];const w=a.add(t);if(h+b=l)return _.offsets[h]=w,w;const E=ea(h+b,g),P=xr(E.sub(a),f,b),V=a.add(P),U=E.add(P);return _.offsets[h]=c.findLineIntersection(p,w,V,U)||w,_.offsets[h]}function A(h,t,a,s,l,p,f,g,_,b,w,E,P,V){const U=s?h-t:h+t;let Z=U>0?1:-1,O=0;s&&(Z*=-1,O=Math.PI),Z<0&&(O+=Math.PI);let W,te,j=Z>0?g+f:g+f+1,K=l,ne=l,se=0,oe=0;const he=Math.abs(U),ce=[];let pe;for(;se+oe<=he;){if(j+=Z,j=_)return null;se+=oe,ne=K,te=W;const ye={projectionCache:E,lineVertexArray:b,labelPlaneMatrix:w,tileAnchorPoint:p,distanceFromAnchor:se,getElevation:V,previousVertex:ne,direction:Z,absOffsetX:he};if(K=ea(j,ye),0===a)ce.push(ne),pe=K.sub(ne);else{let Ne;const Ae=K.sub(ne);Ne=0===Ae.mag()?xr(ea(j+Z,ye).sub(K),a,Z):xr(Ae,a,Z),te||(te=ne.add(Ne)),W=$(j,Ne,K,g,_,te,a,ye),ce.push(te),pe=W.sub(te)}oe=pe.mag()}const ze=pe._mult((he-se)/oe)._add(te||ne),at=O+Math.atan2(K.y-ne.y,K.x-ne.x);return ce.push(ze),{point:ze,angle:P?at:0,path:ce}}const z=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function x(h,t){for(let a=0;a=1;Ye--)Ae.push(ye.path[Ye]);for(let Ye=1;YeFe($e,_,U));Ae=Ye.some($e=>$e.signedDistanceFromCamera<=0)?[]:Ye.map($e=>$e.point)}let et=[];if(Ae.length>0){const Ye=Ae[0].clone(),$e=Ae[0].clone();for(let Gt=1;Gt=pe.x&&$e.x<=ze.x&&Ye.y>=pe.y&&$e.y<=ze.y?[Ae]:$e.xze.x||$e.yze.y?[]:c.clipLine([Ae],pe.x,pe.y,ze.x,ze.y)}for(const Ye of et){at.reset(Ye,.25*ce);let $e=0;$e=at.length<=.5*ce?1:Math.ceil(at.paddedLength/Mt)+1;for(let Gt=0;Gt<$e;Gt++){const wt=Gt/Math.max($e-1,1),ji=at.lerp(wt),wi=ji.x+I,ii=ji.y+I;Z.push(wi,ii,ce,0);const Yi=wi-ce,Ar=ii-ce,qr=wi+ce,Xr=ii+ce;if(he=he&&this.isOffscreen(Yi,Ar,qr,Xr),oe=oe||this.isInsideGrid(Yi,Ar,qr,Xr),"always"!==t&&this.grid.hitTestCircle(wi,ii,ce,t,E)&&(se=!0,!b))return{circles:[],offscreen:!1,collisionDetected:se}}}}return{circles:!b&&se||!oe||te=this.screenRightBoundary||lthis.screenBottomBoundary}isInsideGrid(t,a,s,l){return s>=0&&t=0&&as.collisionGroupID===a}}return this.collisionGroups[t]}}function He(h,t,a,s,l){const{horizontalAlign:p,verticalAlign:f}=c.getAnchorAlignment(h);return new c.Point(-(p-.5)*t+s[0]*l,-(f-.5)*a+s[1]*l)}function Ce(h,t,a,s,l,p){const{x1:f,x2:g,y1:_,y2:b,anchorPointX:w,anchorPointY:E}=h,P=new c.Point(t,a);return s&&P._rotate(l?p:-p),{x1:f+P.x,y1:_+P.y,x2:g+P.x,y2:b+P.y,anchorPointX:w,anchorPointY:E}}class Re{constructor(t,a,s,l,p){this.transform=t.clone(),this.terrain=a,this.collisionIndex=new L(this.transform),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=s,this.retainedQueryData={},this.collisionGroups=new Se(l),this.collisionCircleArrays={},this.prevPlacement=p,p&&(p.prevPlacement=void 0),this.placedOrientations={}}getBucketParts(t,a,s,l){const p=s.getBucket(a),f=s.latestFeatureIndex;if(!p||!f||a.id!==p.layerIds[0])return;const g=s.collisionBoxArray,_=p.layers[0].layout,b=Math.pow(2,this.transform.zoom-s.tileID.overscaledZ),w=s.tileSize/c.EXTENT,E=this.transform.calculatePosMatrix(s.tileID.toUnwrapped()),P="map"===_.get("text-pitch-alignment"),V="map"===_.get("text-rotation-alignment"),U=R(s,1,this.transform.zoom),Z=Ht(E,P,V,this.transform,U);let O=null;if(P){const te=Pi(E,P,V,this.transform,U);O=c.multiply([],this.transform.labelPlaneMatrix,te)}this.retainedQueryData[p.bucketInstanceId]=new ae(p.bucketInstanceId,f,p.sourceLayerIndex,p.index,s.tileID);const W={bucket:p,layout:_,posMatrix:E,textLabelPlaneMatrix:Z,labelToScreenMatrix:O,scale:b,textPixelRatio:w,holdingForFade:s.holdingForFade(),collisionBoxArray:g,partiallyEvaluatedTextSize:c.evaluateSizeForZoom(p.textSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(p.sourceID)};if(l)for(const te of p.sortKeyRanges){const{sortKey:j,symbolInstanceStart:K,symbolInstanceEnd:ne}=te;t.push({sortKey:j,symbolInstanceStart:K,symbolInstanceEnd:ne,parameters:W})}else t.push({symbolInstanceStart:0,symbolInstanceEnd:p.symbolInstances.length,parameters:W})}attemptAnchorPlacement(t,a,s,l,p,f,g,_,b,w,E,P,V,U,Z,O){const W=c.TextAnchorEnum[t.textAnchor],te=[t.textOffset0,t.textOffset1],j=He(W,s,l,te,p),K=this.collisionIndex.placeCollisionBox(Ce(a,j.x,j.y,f,g,this.transform.angle),E,_,b,w.predicate,O);if((!Z||0!==this.collisionIndex.placeCollisionBox(Ce(Z,j.x,j.y,f,g,this.transform.angle),E,_,b,w.predicate,O).box.length)&&K.box.length>0){let ne;if(this.prevPlacement&&this.prevPlacement.variableOffsets[P.crossTileID]&&this.prevPlacement.placements[P.crossTileID]&&this.prevPlacement.placements[P.crossTileID].text&&(ne=this.prevPlacement.variableOffsets[P.crossTileID].anchor),0===P.crossTileID)throw new Error("symbolInstance.crossTileID can't be 0");return this.variableOffsets[P.crossTileID]={textOffset:te,width:s,height:l,anchor:W,textBoxScale:p,prevAnchor:ne},this.markUsedJustification(V,W,P,U),V.allowVerticalPlacement&&(this.markUsedOrientation(V,U,P),this.placedOrientations[P.crossTileID]=U),{shift:j,placedGlyphBoxes:K}}}placeLayerBucketPart(t,a,s){const{bucket:l,layout:p,posMatrix:f,textLabelPlaneMatrix:g,labelToScreenMatrix:_,textPixelRatio:b,holdingForFade:w,collisionBoxArray:E,partiallyEvaluatedTextSize:P,collisionGroup:V}=t.parameters,U=p.get("text-optional"),Z=p.get("icon-optional"),O=c.getOverlapMode(p,"text-overlap","text-allow-overlap"),W="always"===O,te=c.getOverlapMode(p,"icon-overlap","icon-allow-overlap"),j="always"===te,K="map"===p.get("text-rotation-alignment"),ne="map"===p.get("text-pitch-alignment"),se="none"!==p.get("icon-text-fit"),oe="viewport-y"===p.get("symbol-z-order"),he=W&&(j||!l.hasIconData()||Z),ce=j&&(W||!l.hasTextData()||U);!l.collisionArrays&&E&&l.deserializeCollisionBoxes(E);const pe=this.retainedQueryData[l.bucketInstanceId].tileID,ze=this.terrain?(ye,Ne)=>this.terrain.getElevation(pe,ye,Ne):null,at=(ye,Ne)=>{var Ae,Mt;if(a[ye.crossTileID])return;if(w)return void(this.placements[ye.crossTileID]=new H(!1,!1,!1));let et=!1,Ye=!1,$e=!0,Gt=null,wt={box:null,offscreen:null},ji={box:null,offscreen:null},wi=null,ii=null,Yi=null,Ar=0,qr=0,Xr=0;Ne.textFeatureIndex?Ar=Ne.textFeatureIndex:ye.useRuntimeCollisionCircles&&(Ar=ye.featureIndex),Ne.verticalTextFeatureIndex&&(qr=Ne.verticalTextFeatureIndex);const sa=Ne.textBox;if(sa){const Si=oi=>{let Ti=c.WritingMode.horizontal;if(l.allowVerticalPlacement&&!oi&&this.prevPlacement){const Ji=this.prevPlacement.placedOrientations[ye.crossTileID];Ji&&(this.placedOrientations[ye.crossTileID]=Ji,Ti=Ji,this.markUsedOrientation(l,Ti,ye))}return Ti},jt=(oi,Ti)=>{if(l.allowVerticalPlacement&&ye.numVerticalGlyphVertices>0&&Ne.verticalTextBox){for(const Ji of l.writingModes)if(Ji===c.WritingMode.vertical?(wt=Ti(),ji=wt):wt=oi(),wt&&wt.box&&wt.box.length)break}else wt=oi()},Ei=ye.textAnchorOffsetStartIndex,ja=ye.textAnchorOffsetEndIndex;if(ja===Ei){const oi=(Ti,Ji)=>{const $t=this.collisionIndex.placeCollisionBox(Ti,O,b,f,V.predicate,ze);return $t&&$t.box&&$t.box.length&&(this.markUsedOrientation(l,Ji,ye),this.placedOrientations[ye.crossTileID]=Ji),$t};jt(()=>oi(sa,c.WritingMode.horizontal),()=>{const Ti=Ne.verticalTextBox;return l.allowVerticalPlacement&&ye.numVerticalGlyphVertices>0&&Ti?oi(Ti,c.WritingMode.vertical):{box:null,offscreen:null}}),Si(wt&&wt.box&&wt.box.length)}else{let oi=c.TextAnchorEnum[null===(Mt=null===(Ae=this.prevPlacement)||void 0===Ae?void 0:Ae.variableOffsets[ye.crossTileID])||void 0===Mt?void 0:Mt.anchor];const Ti=($t,qa,Wr)=>{const Mr=$t.x2-$t.x1,la=$t.y2-$t.y1,Xo=ye.textBoxScale,Ca=se&&"never"===te?qa:null;let Xa={box:[],offscreen:!1},Xs="never"===O?1:2,Zt="never";oi&&Xs++;for(let rs=0;rsTi(sa,Ne.iconBox,c.WritingMode.horizontal),()=>{const $t=Ne.verticalTextBox;return l.allowVerticalPlacement&&!(wt&&wt.box&&wt.box.length)&&ye.numVerticalGlyphVertices>0&&$t?Ti($t,Ne.verticalIconBox,c.WritingMode.vertical):{box:null,offscreen:null}}),wt&&(et=wt.box,$e=wt.offscreen);const Ji=Si(wt&&wt.box);if(!et&&this.prevPlacement){const $t=this.prevPlacement.variableOffsets[ye.crossTileID];$t&&(this.variableOffsets[ye.crossTileID]=$t,this.markUsedJustification(l,$t.anchor,ye,Ji))}}}if(wi=wt,et=wi&&wi.box&&wi.box.length>0,$e=wi&&wi.offscreen,ye.useRuntimeCollisionCircles){const Si=l.text.placedSymbolArray.get(ye.centerJustifiedTextSymbolIndex),jt=c.evaluateSizeForFeature(l.textSizeData,P,Si),Ei=p.get("text-padding");ii=this.collisionIndex.placeCollisionCircles(O,Si,l.lineVertexArray,l.glyphOffsetArray,jt,f,g,_,s,ne,V.predicate,ye.collisionCircleDiameter,Ei,ze),ii.circles.length&&ii.collisionDetected&&!s&&c.warnOnce("Collisions detected, but collision boxes are not shown"),et=W||ii.circles.length>0&&!ii.collisionDetected,$e=$e&&ii.offscreen}if(Ne.iconFeatureIndex&&(Xr=Ne.iconFeatureIndex),Ne.iconBox){const Si=jt=>{const Ei=se&&Gt?Ce(jt,Gt.x,Gt.y,K,ne,this.transform.angle):jt;return this.collisionIndex.placeCollisionBox(Ei,te,b,f,V.predicate,ze)};ji&&ji.box&&ji.box.length&&Ne.verticalIconBox?(Yi=Si(Ne.verticalIconBox),Ye=Yi.box.length>0):(Yi=Si(Ne.iconBox),Ye=Yi.box.length>0),$e=$e&&Yi.offscreen}const Ia=U||0===ye.numHorizontalGlyphVertices&&0===ye.numVerticalGlyphVertices,oa=Z||0===ye.numIconVertices;if(Ia||oa?oa?Ia||(Ye=Ye&&et):et=Ye&&et:Ye=et=Ye&&et,et&&wi&&wi.box&&this.collisionIndex.insertCollisionBox(wi.box,O,p.get("text-ignore-placement"),l.bucketInstanceId,ji&&ji.box&&qr?qr:Ar,V.ID),Ye&&Yi&&this.collisionIndex.insertCollisionBox(Yi.box,te,p.get("icon-ignore-placement"),l.bucketInstanceId,Xr,V.ID),ii&&(et&&this.collisionIndex.insertCollisionCircles(ii.circles,O,p.get("text-ignore-placement"),l.bucketInstanceId,Ar,V.ID),s)){const Si=l.bucketInstanceId;let jt=this.collisionCircleArrays[Si];void 0===jt&&(jt=this.collisionCircleArrays[Si]=new ee);for(let Ei=0;Ei=0;--Ne){const Ae=ye[Ne];at(l.symbolInstances.get(Ae),l.collisionArrays[Ae])}}else for(let ye=t.symbolInstanceStart;ye=0&&(t.text.placedSymbolArray.get(g).crossTileID=p>=0&&g!==p?0:s.crossTileID)}markUsedOrientation(t,a,s){const l=a===c.WritingMode.horizontal||a===c.WritingMode.horizontalOnly?a:0,p=a===c.WritingMode.vertical?a:0,f=[s.leftJustifiedTextSymbolIndex,s.centerJustifiedTextSymbolIndex,s.rightJustifiedTextSymbolIndex];for(const g of f)t.text.placedSymbolArray.get(g).placedOrientation=l;s.verticalPlacedTextSymbolIndex&&(t.text.placedSymbolArray.get(s.verticalPlacedTextSymbolIndex).placedOrientation=p)}commit(t){this.commitTime=t,this.zoomAtLastRecencyCheck=this.transform.zoom;const a=this.prevPlacement;let s=!1;this.prevZoomAdjustment=a?a.zoomAdjustment(this.transform.zoom):0;const l=a?a.symbolFadeChange(t):1,p=a?a.opacities:{},f=a?a.variableOffsets:{},g=a?a.placedOrientations:{};for(const _ in this.placements){const b=this.placements[_],w=p[_];w?(this.opacities[_]=new F(w,l,b.text,b.icon),s=s||b.text!==w.text.placed||b.icon!==w.icon.placed):(this.opacities[_]=new F(null,l,b.text,b.icon,b.skipFade),s=s||b.text||b.icon)}for(const _ in p){const b=p[_];if(!this.opacities[_]){const w=new F(b,l,!1,!1);w.isHidden()||(this.opacities[_]=w,s=s||b.text.placed||b.icon.placed)}}for(const _ in f)this.variableOffsets[_]||!this.opacities[_]||this.opacities[_].isHidden()||(this.variableOffsets[_]=f[_]);for(const _ in g)this.placedOrientations[_]||!this.opacities[_]||this.opacities[_].isHidden()||(this.placedOrientations[_]=g[_]);if(a&&void 0===a.lastPlacementChangeTime)throw new Error("Last placement time for previous placement is not defined");s?this.lastPlacementChangeTime=t:"number"!=typeof this.lastPlacementChangeTime&&(this.lastPlacementChangeTime=a?a.lastPlacementChangeTime:t)}updateLayerOpacities(t,a){const s={};for(const l of a){const p=l.getBucket(t);p&&l.latestFeatureIndex&&t.id===p.layerIds[0]&&this.updateBucketOpacities(p,s,l.collisionBoxArray)}}updateBucketOpacities(t,a,s){t.hasTextData()&&(t.text.opacityVertexArray.clear(),t.text.hasVisibleVertices=!1),t.hasIconData()&&(t.icon.opacityVertexArray.clear(),t.icon.hasVisibleVertices=!1),t.hasIconCollisionBoxData()&&t.iconCollisionBox.collisionVertexArray.clear(),t.hasTextCollisionBoxData()&&t.textCollisionBox.collisionVertexArray.clear();const l=t.layers[0],p=l.layout,f=new F(null,0,!1,!1,!0),g=p.get("text-allow-overlap"),_=p.get("icon-allow-overlap"),b=l._unevaluatedLayout.hasValue("text-variable-anchor")||l._unevaluatedLayout.hasValue("text-variable-anchor-offset"),w="map"===p.get("text-rotation-alignment"),E="map"===p.get("text-pitch-alignment"),P="none"!==p.get("icon-text-fit"),V=new F(null,0,g&&(_||!t.hasIconData()||p.get("icon-optional")),_&&(g||!t.hasTextData()||p.get("text-optional")),!0);!t.collisionArrays&&s&&(t.hasIconCollisionBoxData()||t.hasTextCollisionBoxData())&&t.deserializeCollisionBoxes(s);const U=(Z,O,W)=>{for(let te=0;te0,se=this.placedOrientations[O.crossTileID],oe=se===c.WritingMode.vertical,he=se===c.WritingMode.horizontal||se===c.WritingMode.horizontalOnly;if(W>0||te>0){const ce=Li(K.text);U(t.text,W,oe?Kt:ce),U(t.text,te,he?Kt:ce);const pe=K.text.isHidden();[O.rightJustifiedTextSymbolIndex,O.centerJustifiedTextSymbolIndex,O.leftJustifiedTextSymbolIndex].forEach(ye=>{ye>=0&&(t.text.placedSymbolArray.get(ye).hidden=pe||oe?1:0)}),O.verticalPlacedTextSymbolIndex>=0&&(t.text.placedSymbolArray.get(O.verticalPlacedTextSymbolIndex).hidden=pe||he?1:0);const ze=this.variableOffsets[O.crossTileID];ze&&this.markUsedJustification(t,ze.anchor,O,se);const at=this.placedOrientations[O.crossTileID];at&&(this.markUsedJustification(t,"left",O,at),this.markUsedOrientation(t,at,O))}if(ne){const ce=Li(K.icon),pe=!(P&&O.verticalPlacedIconSymbolIndex&&oe);O.placedIconSymbolIndex>=0&&(U(t.icon,O.numIconVertices,pe?ce:Kt),t.icon.placedSymbolArray.get(O.placedIconSymbolIndex).hidden=K.icon.isHidden()),O.verticalPlacedIconSymbolIndex>=0&&(U(t.icon,O.numVerticalIconVertices,pe?Kt:ce),t.icon.placedSymbolArray.get(O.verticalPlacedIconSymbolIndex).hidden=K.icon.isHidden())}if(t.hasIconCollisionBoxData()||t.hasTextCollisionBoxData()){const ce=t.collisionArrays[Z];if(ce){let pe=new c.Point(0,0);if(ce.textBox||ce.verticalTextBox){let at=!0;if(b){const ye=this.variableOffsets[j];ye?(pe=He(ye.anchor,ye.width,ye.height,ye.textOffset,ye.textBoxScale),w&&pe._rotate(E?this.transform.angle:-this.transform.angle)):at=!1}ce.textBox&&Xe(t.textCollisionBox.collisionVertexArray,K.text.placed,!at||oe,pe.x,pe.y),ce.verticalTextBox&&Xe(t.textCollisionBox.collisionVertexArray,K.text.placed,!at||he,pe.x,pe.y)}const ze=Boolean(!he&&ce.verticalIconBox);ce.iconBox&&Xe(t.iconCollisionBox.collisionVertexArray,K.icon.placed,ze,P?pe.x:0,P?pe.y:0),ce.verticalIconBox&&Xe(t.iconCollisionBox.collisionVertexArray,K.icon.placed,!ze,P?pe.x:0,P?pe.y:0)}}}if(t.sortFeatures(this.transform.angle),this.retainedQueryData[t.bucketInstanceId]&&(this.retainedQueryData[t.bucketInstanceId].featureSortOrder=t.featureSortOrder),t.hasTextData()&&t.text.opacityVertexBuffer&&t.text.opacityVertexBuffer.updateData(t.text.opacityVertexArray),t.hasIconData()&&t.icon.opacityVertexBuffer&&t.icon.opacityVertexBuffer.updateData(t.icon.opacityVertexArray),t.hasIconCollisionBoxData()&&t.iconCollisionBox.collisionVertexBuffer&&t.iconCollisionBox.collisionVertexBuffer.updateData(t.iconCollisionBox.collisionVertexArray),t.hasTextCollisionBoxData()&&t.textCollisionBox.collisionVertexBuffer&&t.textCollisionBox.collisionVertexBuffer.updateData(t.textCollisionBox.collisionVertexArray),t.text.opacityVertexArray.length!==t.text.layoutVertexArray.length/4)throw new Error(`bucket.text.opacityVertexArray.length (= ${t.text.opacityVertexArray.length}) !== bucket.text.layoutVertexArray.length (= ${t.text.layoutVertexArray.length}) / 4`);if(t.icon.opacityVertexArray.length!==t.icon.layoutVertexArray.length/4)throw new Error(`bucket.icon.opacityVertexArray.length (= ${t.icon.opacityVertexArray.length}) !== bucket.icon.layoutVertexArray.length (= ${t.icon.layoutVertexArray.length}) / 4`);if(t.bucketInstanceId in this.collisionCircleArrays){const Z=this.collisionCircleArrays[t.bucketInstanceId];t.placementInvProjMatrix=Z.invProjMatrix,t.placementViewportMatrix=Z.viewportMatrix,t.collisionCircleArray=Z.circles,delete this.collisionCircleArrays[t.bucketInstanceId]}}symbolFadeChange(t){return 0===this.fadeDuration?1:(t-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment}zoomAdjustment(t){return Math.max(0,(this.transform.zoom-t)/1.5)}hasTransitions(t){return this.stale||t-this.lastPlacementChangeTimet}setStale(){this.stale=!0}}function Xe(h,t,a,s,l){h.emplaceBack(t?1:0,a?1:0,s||0,l||0),h.emplaceBack(t?1:0,a?1:0,s||0,l||0),h.emplaceBack(t?1:0,a?1:0,s||0,l||0),h.emplaceBack(t?1:0,a?1:0,s||0,l||0)}const ct=Math.pow(2,25),_t=Math.pow(2,24),Qe=Math.pow(2,17),ht=Math.pow(2,16),ni=Math.pow(2,9),Ze=Math.pow(2,8),si=Math.pow(2,1);function Li(h){if(0===h.opacity&&!h.placed)return 0;if(1===h.opacity&&h.placed)return 4294967295;const t=h.placed?1:0,a=Math.floor(127*h.opacity);return a*ct+t*_t+a*Qe+t*ht+a*ni+t*Ze+a*si+t}const Kt=0;class lr{constructor(t){this._sortAcrossTiles="viewport-y"!==t.layout.get("symbol-z-order")&&!t.layout.get("symbol-sort-key").isConstant(),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]}continuePlacement(t,a,s,l,p){const f=this._bucketParts;for(;this._currentTileIndexg.sortKey-_.sortKey));this._currentPartIndex!this._forceFullPlacement&&c.browser.now()-l>2;for(;this._currentPlacementIndex>=0;){const f=a[t[this._currentPlacementIndex]],g=this.placement.collisionIndex.transform.zoom;if("symbol"===f.type&&(!f.minzoom||f.minzoom<=g)&&(!f.maxzoom||f.maxzoom>g)){if(this._inProgressLayer||(this._inProgressLayer=new lr(f)),this._inProgressLayer.continuePlacement(s[f.source],this.placement,this._showCollisionBoxes,f,p))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0}commit(t){return this.placement.commit(t),this.placement}}const Fi=512/c.EXTENT/2;class vr{constructor(t,a,s){this.tileID=t,this.bucketInstanceId=s,this._symbolsByKey={};const l=new Map;for(let p=0;p({x:Math.floor(_.anchorX*Fi),y:Math.floor(_.anchorY*Fi)})),crossTileIDs:f.map(_=>_.crossTileID)};if(g.positions.length>128){const _=new c.KDBush(g.positions.length,16,Uint16Array);for(const{x:b,y:w}of g.positions)_.add(b,w);_.finish(),delete g.positions,g.index=_}this._symbolsByKey[p]=g}}getScaledCoordinates(t,a){const{x:s,y:l,z:p}=this.tileID.canonical,{x:f,y:g,z:_}=a.canonical,b=Fi/Math.pow(2,_-p),w=(g*c.EXTENT+t.anchorY)*b,E=l*c.EXTENT*Fi;return{x:Math.floor((f*c.EXTENT+t.anchorX)*b-s*c.EXTENT*Fi),y:Math.floor(w-E)}}findMatches(t,a,s){const l=this.tileID.canonical.zt)}}class po{constructor(){this.maxCrossTileID=0}generate(){return++this.maxCrossTileID}}class Sn{constructor(){this.indexes={},this.usedCrossTileIDs={},this.lng=0}handleWrapJump(t){const a=Math.round((t-this.lng)/360);if(0!==a)for(const s in this.indexes){const l=this.indexes[s],p={};for(const f in l){const g=l[f];g.tileID=g.tileID.unwrapTo(g.tileID.wrap+a),p[g.tileID.key]=g}this.indexes[s]=p}this.lng=t}addBucket(t,a,s){if(this.indexes[t.overscaledZ]&&this.indexes[t.overscaledZ][t.key]){if(this.indexes[t.overscaledZ][t.key].bucketInstanceId===a.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(t.overscaledZ,this.indexes[t.overscaledZ][t.key])}for(let p=0;pt.overscaledZ)for(const g in f){const _=f[g];_.tileID.isChildOf(t)&&_.findMatches(a.symbolInstances,t,l)}else{const g=f[t.scaledTo(Number(p)).key];g&&g.findMatches(a.symbolInstances,t,l)}}for(let p=0;p{a[s]=!0});for(const s in this.layerIndexes)a[s]||delete this.layerIndexes[s]}}const ta=(h,t)=>c.emitValidationErrors(h,t&&t.filter(a=>"source.canvas"!==a.identifier)),da=c.pick(c.operations,["addLayer","removeLayer","setPaintProperty","setLayoutProperty","setFilter","addSource","removeSource","setLayerZoomRange","setLight","setTransition","setGeoJSONSourceData","setGlyphs","setSprite"]),Jt=c.pick(c.operations,["setCenter","setZoom","setBearing","setPitch"]),En=c.emptyStyle();class Oi extends c.Evented{constructor(t,a={}){super(),this.map=t,this.dispatcher=new nt(or(),this,t._getMapId()),this.imageManager=new xt,this.imageManager.setEventedParent(this),this.glyphManager=new pi(t._requestManager,a.localIdeographFontFamily),this.lineAtlas=new Mi(256,512),this.crossTileSymbolIndex=new Yt,this._spritesImagesIds={},this._layers={},this._order=[],this.sourceCaches={},this.zoomHistory=new c.ZoomHistory,this._loaded=!1,this._availableImages=[],this._resetUpdates(),this.dispatcher.broadcast("setReferrer",c.getReferrer());const s=this;this._rtlTextPluginCallback=Oi.registerForPluginStateChange(l=>{s.dispatcher.broadcast("syncRTLPluginState",{pluginStatus:l.pluginStatus,pluginURL:l.pluginURL},(p,f)=>{if(c.triggerPluginCompletionEvent(p),f&&f.every(g=>g))for(const g in s.sourceCaches){const _=s.sourceCaches[g].getSource().type;"vector"!==_&&"geojson"!==_||s.sourceCaches[g].reload()}})}),this.on("data",l=>{if("source"!==l.dataType||"metadata"!==l.sourceDataType)return;const p=this.sourceCaches[l.sourceId];if(!p)return;const f=p.getSource();if(f&&f.vectorLayerIds)for(const g in this._layers){const _=this._layers[g];_.source===f.id&&this._validateLayer(_)}})}loadURL(t,a={},s){this.fire(new c.Event("dataloading",{dataType:"style"})),a.validate="boolean"!=typeof a.validate||a.validate;const l=this.map._requestManager.transformRequest(t,Et.Style);this._request=c.getJSON(l,(p,f)=>{this._request=null,p?this.fire(new c.ErrorEvent(p)):f&&this._load(f,a,s)})}loadJSON(t,a={},s){this.fire(new c.Event("dataloading",{dataType:"style"})),this._request=c.browser.frame(()=>{this._request=null,a.validate=!1!==a.validate,this._load(t,a,s)})}loadEmpty(){this.fire(new c.Event("dataloading",{dataType:"style"})),this._load(En,{validate:!1})}_load(t,a,s){const l=a.transformStyle?a.transformStyle(s,t):t;if(!a.validate||!ta(this,c.validateStyle(l))){this._loaded=!0,this.stylesheet=l;for(const p in l.sources)this.addSource(p,l.sources[p],{validate:!1});l.sprite?this._loadSprite(l.sprite):this.imageManager.setLoaded(!0),this.glyphManager.setURL(l.glyphs),this._createLayers(),this.light=new Ai(this.stylesheet.light),this.map.setTerrain(this.stylesheet.terrain),this.fire(new c.Event("data",{dataType:"style"})),this.fire(new c.Event("style.load"))}}_createLayers(){const t=c.derefLayers(this.stylesheet.layers);this.dispatcher.broadcast("setLayers",t),this._order=t.map(a=>a.id),this._layers={},this._serializedLayers=null;for(const a of t){const s=c.createStyleLayer(a);s.setEventedParent(this,{layer:{id:a.id}}),this._layers[a.id]=s}}_loadSprite(t,a=!1,s){this.imageManager.setLoaded(!1),this._spriteRequest=function(l,p,f,g){const _=Gi(l),b=_.length,w=f>1?"@2x":"",E={},P={},V={};for(const{id:U,url:Z}of _){const O=p.transformRequest(p.normalizeSpriteURL(Z,w,".json"),Et.SpriteJSON),W=`${U}_${O.url}`;E[W]=c.getJSON(O,(K,ne)=>{delete E[W],P[U]=ne,Me(g,P,V,K,b)});const te=p.transformRequest(p.normalizeSpriteURL(Z,w,".png"),Et.SpriteImage),j=`${U}_${te.url}`;E[j]=hi.getImage(te,(K,ne)=>{delete E[j],V[U]=ne,Me(g,P,V,K,b)})}return{cancel(){for(const U of Object.values(E))U.cancel()}}}(t,this.map._requestManager,this.map.getPixelRatio(),(l,p)=>{if(this._spriteRequest=null,l)this.fire(new c.ErrorEvent(l));else if(p)for(const f in p){this._spritesImagesIds[f]=[];const g=this._spritesImagesIds[f]?this._spritesImagesIds[f].filter(_=>!(_ in p)):[];for(const _ of g)this.imageManager.removeImage(_),this._changedImages[_]=!0;for(const _ in p[f]){const b="default"===f?_:`${f}:${_}`;this._spritesImagesIds[f].push(b),b in this.imageManager.images?this.imageManager.updateImage(b,p[f][_],!1):this.imageManager.addImage(b,p[f][_]),a&&(this._changedImages[b]=!0)}}this.imageManager.setLoaded(!0),this._availableImages=this.imageManager.listImages(),a&&(this._changed=!0),this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new c.Event("data",{dataType:"style"})),s&&s(l)})}_unloadSprite(){for(const t of Object.values(this._spritesImagesIds).flat())this.imageManager.removeImage(t),this._changedImages[t]=!0;this._spritesImagesIds={},this._availableImages=this.imageManager.listImages(),this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new c.Event("data",{dataType:"style"}))}_validateLayer(t){const a=this.sourceCaches[t.source];if(!a)return;const s=t.sourceLayer;if(!s)return;const l=a.getSource();("geojson"===l.type||l.vectorLayerIds&&-1===l.vectorLayerIds.indexOf(s))&&this.fire(new c.ErrorEvent(new Error(`Source layer "${s}" does not exist on source "${l.id}" as specified by style layer "${t.id}".`)))}loaded(){if(!this._loaded||Object.keys(this._updatedSources).length)return!1;for(const t in this.sourceCaches)if(!this.sourceCaches[t].loaded())return!1;return!!this.imageManager.isLoaded()}_serializeByIds(t){const a=this._serializedAllLayers();if(!t||0===t.length)return Object.values(a);const s=[];for(const l of t)a[l]&&s.push(a[l]);return s}_serializedAllLayers(){let t=this._serializedLayers;if(t)return t;t=this._serializedLayers={};const a=Object.keys(this._layers);for(const s of a){const l=this._layers[s];"custom"!==l.type&&(t[s]=l.serialize())}return t}hasTransitions(){if(this.light&&this.light.hasTransition())return!0;for(const t in this.sourceCaches)if(this.sourceCaches[t].hasTransition())return!0;for(const t in this._layers)if(this._layers[t].hasTransition())return!0;return!1}_checkLoaded(){if(!this._loaded)throw new Error("Style is not done loading.")}update(t){if(!this._loaded)return;const a=this._changed;if(this._changed){const l=Object.keys(this._updatedLayers),p=Object.keys(this._removedLayers);(l.length||p.length)&&this._updateWorkerLayers(l,p);for(const f in this._updatedSources){const g=this._updatedSources[f];if("reload"===g)this._reloadSource(f);else{if("clear"!==g)throw new Error(`Invalid action ${g}`);this._clearSource(f)}}this._updateTilesForChangedImages(),this._updateTilesForChangedGlyphs();for(const f in this._updatedPaintProps)this._layers[f].updateTransitions(t);this.light.updateTransitions(t),this._resetUpdates()}const s={};for(const l in this.sourceCaches){const p=this.sourceCaches[l];s[l]=p.used,p.used=!1}for(const l of this._order){const p=this._layers[l];p.recalculate(t,this._availableImages),!p.isHidden(t.zoom)&&p.source&&(this.sourceCaches[p.source].used=!0)}for(const l in s){const p=this.sourceCaches[l];s[l]!==p.used&&p.fire(new c.Event("data",{sourceDataType:"visibility",dataType:"source",sourceId:l}))}this.light.recalculate(t),this.z=t.zoom,a&&this.fire(new c.Event("data",{dataType:"style"}))}_updateTilesForChangedImages(){const t=Object.keys(this._changedImages);if(t.length){for(const a in this.sourceCaches)this.sourceCaches[a].reloadTilesForDependencies(["icons","patterns"],t);this._changedImages={}}}_updateTilesForChangedGlyphs(){if(this._glyphsDidChange){for(const t in this.sourceCaches)this.sourceCaches[t].reloadTilesForDependencies(["glyphs"],[""]);this._glyphsDidChange=!1}}_updateWorkerLayers(t,a){this.dispatcher.broadcast("updateLayers",{layers:this._serializeByIds(t),removedIds:a})}_resetUpdates(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={},this._glyphsDidChange=!1}setState(t,a={}){this._checkLoaded();const s=this.serialize();if(t=a.transformStyle?a.transformStyle(s,t):t,ta(this,c.validateStyle(t)))return!1;(t=c.clone$1(t)).layers=c.derefLayers(t.layers);const l=c.diffStyles(s,t).filter(f=>!(f.command in Jt));if(0===l.length)return!1;const p=l.filter(f=>!(f.command in da));if(p.length>0)throw new Error(`Unimplemented: ${p.map(f=>f.command).join(", ")}.`);for(const f of l)"setTransition"!==f.command&&this[f.command].apply(this,f.args);return this.stylesheet=t,!0}addImage(t,a){if(this.getImage(t))return this.fire(new c.ErrorEvent(new Error(`An image named "${t}" already exists.`)));this.imageManager.addImage(t,a),this._afterImageUpdated(t)}updateImage(t,a){this.imageManager.updateImage(t,a)}getImage(t){return this.imageManager.getImage(t)}removeImage(t){if(!this.getImage(t))return this.fire(new c.ErrorEvent(new Error(`An image named "${t}" does not exist.`)));this.imageManager.removeImage(t),this._afterImageUpdated(t)}_afterImageUpdated(t){this._availableImages=this.imageManager.listImages(),this._changedImages[t]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new c.Event("data",{dataType:"style"}))}listImages(){return this._checkLoaded(),this.imageManager.listImages()}addSource(t,a,s={}){if(this._checkLoaded(),void 0!==this.sourceCaches[t])throw new Error(`Source "${t}" already exists.`);if(!a.type)throw new Error(`The type property must be defined, but only the following properties were given: ${Object.keys(a).join(", ")}.`);if(["vector","raster","geojson","video","image"].indexOf(a.type)>=0&&this._validate(c.validateStyle.source,`sources.${t}`,a,null,s))return;this.map&&this.map._collectResourceTiming&&(a.collectResourceTiming=!0);const l=this.sourceCaches[t]=new dt(t,a,this.dispatcher);l.style=this,l.setEventedParent(this,()=>({isSourceLoaded:l.loaded(),source:l.serialize(),sourceId:t})),l.onAdd(this.map),this._changed=!0}removeSource(t){if(this._checkLoaded(),void 0===this.sourceCaches[t])throw new Error("There is no source with this ID");for(const s in this._layers)if(this._layers[s].source===t)return this.fire(new c.ErrorEvent(new Error(`Source "${t}" cannot be removed while layer "${s}" is using it.`)));const a=this.sourceCaches[t];delete this.sourceCaches[t],delete this._updatedSources[t],a.fire(new c.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:t})),a.setEventedParent(null),a.onRemove(this.map),this._changed=!0}setGeoJSONSourceData(t,a){if(this._checkLoaded(),void 0===this.sourceCaches[t])throw new Error(`There is no source with this ID=${t}`);const s=this.sourceCaches[t].getSource();if("geojson"!==s.type)throw new Error(`geojsonSource.type is ${s.type}, which is !== 'geojson`);s.setData(a),this._changed=!0}getSource(t){return this.sourceCaches[t]&&this.sourceCaches[t].getSource()}addLayer(t,a,s={}){this._checkLoaded();const l=t.id;if(this.getLayer(l))return void this.fire(new c.ErrorEvent(new Error(`Layer "${l}" already exists on this map.`)));let p;if("custom"===t.type){if(ta(this,c.validateCustomStyleLayer(t)))return;p=c.createStyleLayer(t)}else{if("object"==typeof t.source&&(this.addSource(l,t.source),t=c.clone$1(t),t=c.extend(t,{source:l})),this._validate(c.validateStyle.layer,`layers.${l}`,t,{arrayIndex:-1},s))return;p=c.createStyleLayer(t),this._validateLayer(p),p.setEventedParent(this,{layer:{id:l}})}const f=a?this._order.indexOf(a):this._order.length;if(a&&-1===f)this.fire(new c.ErrorEvent(new Error(`Cannot add layer "${l}" before non-existing layer "${a}".`)));else{if(this._order.splice(f,0,l),this._layerOrderChanged=!0,this._layers[l]=p,this._removedLayers[l]&&p.source&&"custom"!==p.type){const g=this._removedLayers[l];delete this._removedLayers[l],g.type!==p.type?this._updatedSources[p.source]="clear":(this._updatedSources[p.source]="reload",this.sourceCaches[p.source].pause())}this._updateLayer(p),p.onAdd&&p.onAdd(this.map)}}moveLayer(t,a){if(this._checkLoaded(),this._changed=!0,!this._layers[t])return void this.fire(new c.ErrorEvent(new Error(`The layer '${t}' does not exist in the map's style and cannot be moved.`)));if(t===a)return;const s=this._order.indexOf(t);this._order.splice(s,1);const l=a?this._order.indexOf(a):this._order.length;a&&-1===l?this.fire(new c.ErrorEvent(new Error(`Cannot move layer "${t}" before non-existing layer "${a}".`))):(this._order.splice(l,0,t),this._layerOrderChanged=!0)}removeLayer(t){this._checkLoaded();const a=this._layers[t];if(!a)return void this.fire(new c.ErrorEvent(new Error(`Cannot remove non-existing layer "${t}".`)));a.setEventedParent(null);const s=this._order.indexOf(t);this._order.splice(s,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[t]=a,delete this._layers[t],this._serializedLayers&&delete this._serializedLayers[t],delete this._updatedLayers[t],delete this._updatedPaintProps[t],a.onRemove&&a.onRemove(this.map)}getLayer(t){return this._layers[t]}hasLayer(t){return t in this._layers}setLayerZoomRange(t,a,s){this._checkLoaded();const l=this.getLayer(t);l?l.minzoom===a&&l.maxzoom===s||(null!=a&&(l.minzoom=a),null!=s&&(l.maxzoom=s),this._updateLayer(l)):this.fire(new c.ErrorEvent(new Error(`Cannot set the zoom range of non-existing layer "${t}".`)))}setFilter(t,a,s={}){this._checkLoaded();const l=this.getLayer(t);if(l){if(!c.deepEqual(l.filter,a))return null==a?(l.filter=void 0,void this._updateLayer(l)):void(this._validate(c.validateStyle.filter,`layers.${l.id}.filter`,a,null,s)||(l.filter=c.clone$1(a),this._updateLayer(l)))}else this.fire(new c.ErrorEvent(new Error(`Cannot filter non-existing layer "${t}".`)))}getFilter(t){return c.clone$1(this.getLayer(t).filter)}setLayoutProperty(t,a,s,l={}){this._checkLoaded();const p=this.getLayer(t);p?c.deepEqual(p.getLayoutProperty(a),s)||(p.setLayoutProperty(a,s,l),this._updateLayer(p)):this.fire(new c.ErrorEvent(new Error(`Cannot style non-existing layer "${t}".`)))}getLayoutProperty(t,a){const s=this.getLayer(t);if(s)return s.getLayoutProperty(a);this.fire(new c.ErrorEvent(new Error(`Cannot get style of non-existing layer "${t}".`)))}setPaintProperty(t,a,s,l={}){this._checkLoaded();const p=this.getLayer(t);p?c.deepEqual(p.getPaintProperty(a),s)||(p.setPaintProperty(a,s,l)&&this._updateLayer(p),this._changed=!0,this._updatedPaintProps[t]=!0):this.fire(new c.ErrorEvent(new Error(`Cannot style non-existing layer "${t}".`)))}getPaintProperty(t,a){return this.getLayer(t).getPaintProperty(a)}setFeatureState(t,a){this._checkLoaded();const s=t.source,l=t.sourceLayer,p=this.sourceCaches[s];if(void 0===p)return void this.fire(new c.ErrorEvent(new Error(`The source '${s}' does not exist in the map's style.`)));const f=p.getSource().type;"geojson"===f&&l?this.fire(new c.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):"vector"!==f||l?(void 0===t.id&&this.fire(new c.ErrorEvent(new Error("The feature id parameter must be provided."))),p.setFeatureState(l,t.id,a)):this.fire(new c.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}removeFeatureState(t,a){this._checkLoaded();const s=t.source,l=this.sourceCaches[s];if(void 0===l)return void this.fire(new c.ErrorEvent(new Error(`The source '${s}' does not exist in the map's style.`)));const p=l.getSource().type,f="vector"===p?t.sourceLayer:void 0;"vector"!==p||f?a&&"string"!=typeof t.id&&"number"!=typeof t.id?this.fire(new c.ErrorEvent(new Error("A feature id is required to remove its specific state property."))):l.removeFeatureState(f,t.id,a):this.fire(new c.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}getFeatureState(t){this._checkLoaded();const a=t.source,s=t.sourceLayer,l=this.sourceCaches[a];if(void 0!==l)return"vector"!==l.getSource().type||s?(void 0===t.id&&this.fire(new c.ErrorEvent(new Error("The feature id parameter must be provided."))),l.getFeatureState(s,t.id)):void this.fire(new c.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));this.fire(new c.ErrorEvent(new Error(`The source '${a}' does not exist in the map's style.`)))}getTransition(){return c.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)}serialize(){if(!this._loaded)return;const t=c.mapObject(this.sourceCaches,l=>l.serialize()),a=this._serializeByIds(this._order),s=this.stylesheet;return c.filterObject({version:s.version,name:s.name,metadata:s.metadata,light:s.light,center:s.center,zoom:s.zoom,bearing:s.bearing,pitch:s.pitch,sprite:s.sprite,glyphs:s.glyphs,transition:s.transition,sources:t,layers:a},l=>void 0!==l)}_updateLayer(t){this._updatedLayers[t.id]=!0,t.source&&!this._updatedSources[t.source]&&"raster"!==this.sourceCaches[t.source].getSource().type&&(this._updatedSources[t.source]="reload",this.sourceCaches[t.source].pause()),this._serializedLayers=null,this._changed=!0}_flattenAndSortRenderedFeatures(t){const a=f=>"fill-extrusion"===this._layers[f].type,s={},l=[];for(let f=this._order.length-1;f>=0;f--){const g=this._order[f];if(a(g)){s[g]=f;for(const _ of t){const b=_[g];if(b)for(const w of b)l.push(w)}}}l.sort((f,g)=>g.intersectionZ-f.intersectionZ);const p=[];for(let f=this._order.length-1;f>=0;f--){const g=this._order[f];if(a(g))for(let _=l.length-1;_>=0;_--){const b=l[_].feature;if(s[b.layer.id]{const he=W.featureSortOrder;if(he){const ce=he.indexOf(se.featureIndex);return he.indexOf(oe.featureIndex)-ce}return oe.featureIndex-se.featureIndex});for(const se of ne)K.push(se)}}for(const W in U)U[W].forEach(te=>{const j=te.feature,K=b[g[W].source].getFeatureState(j.layer["source-layer"],j.id);j.source=j.layer.source,j.layer["source-layer"]&&(j.sourceLayer=j.layer["source-layer"]),j.state=K});return U}(this._layers,f,this.sourceCaches,t,a,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(p)}querySourceFeatures(t,a){a&&a.filter&&this._validate(c.validateStyle.filter,"querySourceFeatures.filter",a.filter,null,a);const s=this.sourceCaches[t];return s?function(l,p){const f=l.getRenderableIds().map(b=>l.getTileByID(b)),g=[],_={};for(let b=0;bP.getTileByID(V)).sort((V,U)=>U.tileID.overscaledZ-V.tileID.overscaledZ||(V.tileID.isLessThan(U.tileID)?-1:1))}const E=this.crossTileSymbolIndex.addLayer(w,_[w.source],t.center.lng);f=f||E}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._order),((p=p||this._layerOrderChanged||0===s)||!this.pauseablePlacement||this.pauseablePlacement.isDone()&&!this.placement.stillRecent(c.browser.now(),t.zoom))&&(this.pauseablePlacement=new fl(t,this.map.terrain,this._order,p,a,s,l,this.placement),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,_),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(c.browser.now()),g=!0),f&&this.pauseablePlacement.placement.setStale()),g||f)for(const b of this._order){const w=this._layers[b];"symbol"===w.type&&this.placement.updateLayerOpacities(w,_[w.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(c.browser.now())}_releaseSymbolFadeTiles(){for(const t in this.sourceCaches)this.sourceCaches[t].releaseSymbolFadeTiles()}getImages(t,a,s){this.imageManager.getImages(a.icons,s),this._updateTilesForChangedImages();const l=this.sourceCaches[a.source];l&&l.setDependencies(a.tileID.key,a.type,a.icons)}getGlyphs(t,a,s){this.glyphManager.getGlyphs(a.stacks,s);const l=this.sourceCaches[a.source];l&&l.setDependencies(a.tileID.key,a.type,[""])}getResource(t,a,s){return c.makeRequest(a,s)}getGlyphsUrl(){return this.stylesheet.glyphs||null}setGlyphs(t,a={}){this._checkLoaded(),t&&this._validate(c.validateStyle.glyphs,"glyphs",t,null,a)||(this._glyphsDidChange=!0,this.stylesheet.glyphs=t,this.glyphManager.entries={},this.glyphManager.setURL(t))}addSprite(t,a,s={},l){this._checkLoaded();const p=[{id:t,url:a}],f=[...Gi(this.stylesheet.sprite),...p];this._validate(c.validateStyle.sprite,"sprite",f,null,s)||(this.stylesheet.sprite=f,this._loadSprite(p,!0,l))}removeSprite(t){this._checkLoaded();const a=Gi(this.stylesheet.sprite);if(a.find(s=>s.id===t)){if(this._spritesImagesIds[t])for(const s of this._spritesImagesIds[t])this.imageManager.removeImage(s),this._changedImages[s]=!0;a.splice(a.findIndex(s=>s.id===t),1),this.stylesheet.sprite=a.length>0?a:void 0,delete this._spritesImagesIds[t],this._availableImages=this.imageManager.listImages(),this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new c.Event("data",{dataType:"style"}))}else this.fire(new c.ErrorEvent(new Error(`Sprite "${t}" doesn't exists on this map.`)))}getSprite(){return Gi(this.stylesheet.sprite)}setSprite(t,a={},s){this._checkLoaded(),t&&this._validate(c.validateStyle.sprite,"sprite",t,null,a)||(this.stylesheet.sprite=t,t?this._loadSprite(t,!0,s):(this._unloadSprite(),s&&s(null)))}}Oi.registerForPluginStateChange=c.registerForPluginStateChange;var Tn=c.createLayout([{name:"a_pos",type:"Int16",components:2}]),Br="attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform float u_ele_delta;varying vec2 v_texture_pos;varying float v_depth;void main() {float extent=8192.0;float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/extent;gl_Position=u_matrix*vec4(a_pos3d.xy,get_elevation(a_pos3d.xy)-ele_delta,1.0);v_depth=gl_Position.z/gl_Position.w;}";const tn={prelude:bt("#ifdef GL_ES\nprecision mediump float;\n#else\n#if !defined(lowp)\n#define lowp\n#endif\n#if !defined(mediump)\n#define mediump\n#endif\n#if !defined(highp)\n#define highp\n#endif\n#endif\n","#ifdef GL_ES\nprecision highp float;\n#else\n#if !defined(lowp)\n#define lowp\n#endif\n#if !defined(mediump)\n#define mediump\n#endif\n#if !defined(highp)\n#define highp\n#endif\n#endif\nvec2 unpack_float(const float packedValue) {int packedIntValue=int(packedValue);int v0=packedIntValue/256;return vec2(v0,packedIntValue-v0*256);}vec2 unpack_opacity(const float packedOpacity) {int intOpacity=int(packedOpacity)/2;return vec2(float(intOpacity)/127.0,mod(packedOpacity,2.0));}vec4 decode_color(const vec2 encodedColor) {return vec4(unpack_float(encodedColor[0])/255.0,unpack_float(encodedColor[1])/255.0\n);}float unpack_mix_vec2(const vec2 packedValue,const float t) {return mix(packedValue[0],packedValue[1],t);}vec4 unpack_mix_color(const vec4 packedColors,const float t) {vec4 minColor=decode_color(vec2(packedColors[0],packedColors[1]));vec4 maxColor=decode_color(vec2(packedColors[2],packedColors[3]));return mix(minColor,maxColor,t);}vec2 get_pattern_pos(const vec2 pixel_coord_upper,const vec2 pixel_coord_lower,const vec2 pattern_size,const float tile_units_to_pixels,const vec2 pos) {vec2 offset=mod(mod(mod(pixel_coord_upper,pattern_size)*256.0,pattern_size)*256.0+pixel_coord_lower,pattern_size);return (tile_units_to_pixels*pos+offset)/pattern_size;}\n#ifdef TERRAIN3D\nuniform sampler2D u_terrain;uniform float u_terrain_dim;uniform mat4 u_terrain_matrix;uniform vec4 u_terrain_unpack;uniform float u_terrain_exaggeration;uniform highp sampler2D u_depth;\n#endif\nconst highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitShifts=vec4(1.)/bitSh;highp float unpack(highp vec4 color) {return dot(color,bitShifts);}highp float depthOpacity(vec3 frag) {\n#ifdef TERRAIN3D\nhighp float d=unpack(texture2D(u_depth,frag.xy*0.5+0.5))+0.0001-frag.z;return 1.0-max(0.0,min(1.0,-d*500.0));\n#else\nreturn 1.0;\n#endif\n}float calculate_visibility(vec4 pos) {\n#ifdef TERRAIN3D\nvec3 frag=pos.xyz/pos.w;highp float d=depthOpacity(frag);if (d > 0.95) return 1.0;return (d+depthOpacity(frag+vec3(0.0,0.01,0.0)))/2.0;\n#else\nreturn 1.0;\n#endif\n}float ele(vec2 pos) {\n#ifdef TERRAIN3D\nvec4 rgb=(texture2D(u_terrain,pos)*255.0)*u_terrain_unpack;return rgb.r+rgb.g+rgb.b-u_terrain_unpack.a;\n#else\nreturn 0.0;\n#endif\n}float get_elevation(vec2 pos) {\n#ifdef TERRAIN3D\nvec2 coord=(u_terrain_matrix*vec4(pos,0.0,1.0)).xy*u_terrain_dim+1.0;vec2 f=fract(coord);vec2 c=(floor(coord)+0.5)/(u_terrain_dim+2.0);float d=1.0/(u_terrain_dim+2.0);float tl=ele(c);float tr=ele(c+vec2(d,0.0));float bl=ele(c+vec2(0.0,d));float br=ele(c+vec2(d,d));float elevation=mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);return elevation*u_terrain_exaggeration;\n#else\nreturn 0.0;\n#endif\n}"),background:bt("uniform vec4 u_color;uniform float u_opacity;void main() {gl_FragColor=u_color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),backgroundPattern:bt("uniform vec2 u_pattern_tl_a;uniform vec2 u_pattern_br_a;uniform vec2 u_pattern_tl_b;uniform vec2 u_pattern_br_b;uniform vec2 u_texsize;uniform float u_mix;uniform float u_opacity;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(u_pattern_tl_a/u_texsize,u_pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(u_pattern_tl_b/u_texsize,u_pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_mix)*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pattern_size_a;uniform vec2 u_pattern_size_b;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_scale_a;uniform float u_scale_b;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_a*u_pattern_size_a,u_tile_units_to_pixels,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_b*u_pattern_size_b,u_tile_units_to_pixels,a_pos);}"),circle:bt("varying vec3 v_data;varying float v_visibility;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=v_data.xy;float extrude_length=length(extrude);lowp float antialiasblur=v_data.z;float antialiased_blur=-max(blur,antialiasblur);float opacity_t=smoothstep(0.0,antialiased_blur,extrude_length-1.0);float color_t=stroke_width < 0.01 ? 0.0 : smoothstep(antialiased_blur,0.0,extrude_length-radius/(radius+stroke_width));gl_FragColor=v_visibility*opacity_t*mix(color*opacity,stroke_color*stroke_opacity,color_t);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform bool u_scale_with_map;uniform bool u_pitch_with_map;uniform vec2 u_extrude_scale;uniform lowp float u_device_pixel_ratio;uniform highp float u_camera_to_center_distance;attribute vec2 a_pos;varying vec3 v_data;varying float v_visibility;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main(void) {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=vec2(mod(a_pos,2.0)*2.0-1.0);vec2 circle_center=floor(a_pos*0.5);float ele=get_elevation(circle_center);v_visibility=calculate_visibility(u_matrix*vec4(circle_center,ele,1.0));if (u_pitch_with_map) {vec2 corner_position=circle_center;if (u_scale_with_map) {corner_position+=extrude*(radius+stroke_width)*u_extrude_scale;} else {vec4 projected_center=u_matrix*vec4(circle_center,0,1);corner_position+=extrude*(radius+stroke_width)*u_extrude_scale*(projected_center.w/u_camera_to_center_distance);}gl_Position=u_matrix*vec4(corner_position,ele,1);} else {gl_Position=u_matrix*vec4(circle_center,ele,1);if (u_scale_with_map) {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*u_camera_to_center_distance;} else {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*gl_Position.w;}}lowp float antialiasblur=1.0/u_device_pixel_ratio/(radius+stroke_width);v_data=vec3(extrude.x,extrude.y,antialiasblur);}"),clippingMask:bt("void main() {gl_FragColor=vec4(1.0);}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),heatmap:bt("uniform highp float u_intensity;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#define GAUSS_COEF 0.3989422804014327\nvoid main() {\n#pragma mapbox: initialize highp float weight\nfloat d=-0.5*3.0*3.0*dot(v_extrude,v_extrude);float val=weight*u_intensity*GAUSS_COEF*exp(d);gl_FragColor=vec4(val,1.0,1.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;attribute vec2 a_pos;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#pragma mapbox: define mediump float radius\nconst highp float ZERO=1.0/255.0/16.0;\n#define GAUSS_COEF 0.3989422804014327\nvoid main(void) {\n#pragma mapbox: initialize highp float weight\n#pragma mapbox: initialize mediump float radius\nvec2 unscaled_extrude=vec2(mod(a_pos,2.0)*2.0-1.0);float S=sqrt(-2.0*log(ZERO/weight/u_intensity/GAUSS_COEF))/3.0;v_extrude=S*unscaled_extrude;vec2 extrude=v_extrude*radius*u_extrude_scale;vec4 pos=vec4(floor(a_pos*0.5)+extrude,0,1);gl_Position=u_matrix*pos;}"),heatmapTexture:bt("uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;varying vec2 v_pos;void main() {float t=texture2D(u_image,v_pos).r;vec4 color=texture2D(u_color_ramp,vec2(t,0.5));gl_FragColor=color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(0.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_world;attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}"),collisionBox:bt("varying float v_placed;varying float v_notUsed;void main() {float alpha=0.5;gl_FragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed > 0.5) {gl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {gl_FragColor*=.1;}}","attribute vec2 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_anchor_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);gl_Position=u_matrix*vec4(a_pos,get_elevation(a_pos),1.0);gl_Position.xy+=(a_extrude+a_shift)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}"),collisionCircle:bt("varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}","attribute vec2 a_pos;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),debug:bt("uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}","attribute vec2 a_pos;varying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=u_matrix*vec4(a_pos*u_overlay_scale,get_elevation(a_pos),1);}"),fill:bt("#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_FragColor=color*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);}"),fillOutline:bt("varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=outline_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}"),fillOutlinePattern:bt("uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=mix(color1,color2,u_fade)*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}"),fillPattern:bt("#ifdef GL_ES\nprecision highp float;\n#endif\nuniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_fade)*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}"),fillExtrusion:bt("varying vec4 v_color;void main() {gl_FragColor=v_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;attribute vec2 a_pos;attribute vec4 a_normal_ed;\n#ifdef TERRAIN3D\nattribute vec2 a_centroid;\n#endif\nvarying vec4 v_color;\n#pragma mapbox: define highp float base\n#pragma mapbox: define highp float height\n#pragma mapbox: define highp vec4 color\nvoid main() {\n#pragma mapbox: initialize highp float base\n#pragma mapbox: initialize highp float height\n#pragma mapbox: initialize highp vec4 color\nvec3 normal=a_normal_ed.xyz;\n#ifdef TERRAIN3D\nfloat height_terrain3d_offset=get_elevation(a_centroid);float base_terrain3d_offset=height_terrain3d_offset-(base > 0.0 ? 0.0 : 10.0);\n#else\nfloat height_terrain3d_offset=0.0;float base_terrain3d_offset=0.0;\n#endif\nbase=max(0.0,base)+base_terrain3d_offset;height=max(0.0,height)+height_terrain3d_offset;float t=mod(normal.x,2.0);gl_Position=u_matrix*vec4(a_pos,t > 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}"),fillExtrusionPattern:bt("uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 mixedColor=mix(color1,color2,u_fade);gl_FragColor=mixedColor*v_lighting;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec2 a_pos;attribute vec4 a_normal_ed;\n#ifdef TERRAIN3D\nattribute vec2 a_centroid;\n#endif\nvarying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 normal=a_normal_ed.xyz;float edgedistance=a_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;\n#ifdef TERRAIN3D\nfloat height_terrain3d_offset=get_elevation(a_centroid);float base_terrain3d_offset=height_terrain3d_offset-(base > 0.0 ? 0.0 : 10.0);\n#else\nfloat height_terrain3d_offset=0.0;float base_terrain3d_offset=0.0;\n#endif\nbase=max(0.0,base)+base_terrain3d_offset;height=max(0.0,height)+height_terrain3d_offset;float t=mod(normal.x,2.0);float z=t > 0.0 ? height : base;gl_Position=u_matrix*vec4(a_pos,z,1);vec2 pos=normal.x==1.0 && normal.y==0.0 && normal.z==16384.0\n? a_pos\n: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}"),hillshadePrepare:bt("#ifdef GL_ES\nprecision highp float;\n#endif\nuniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))/pow(2.0,exaggeration+(19.2562-u_zoom));gl_FragColor=clamp(vec4(deriv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),hillshade:bt("uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent;\n#define PI 3.141592653589793\nvoid main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}"),line:bt("uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_linesofar;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;\n#ifdef TERRAIN3D\nv_gamma_scale=1.0;\n#else\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#endif\nv_width2=vec2(outset,inset);}"),lineGradient:bt("uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp vec2 v_uv;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture2D(u_image,v_uv);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;attribute float a_uv_x;attribute float a_split_index;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;uniform float u_image_height;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp vec2 v_uv;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;\n#ifdef TERRAIN3D\nv_gamma_scale=1.0;\n#else\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#endif\nv_width2=vec2(outset,inset);}"),linePattern:bt("#ifdef GL_ES\nprecision highp float;\n#endif\nuniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture2D(u_image,pos_a),texture2D(u_image,pos_b),u_fade);gl_FragColor=color*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;\n#ifdef TERRAIN3D\nv_gamma_scale=1.0;\n#else\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#endif\nv_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}"),lineSDF:bt("uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float sdfdist_a=texture2D(u_image,v_tex_a).a;float sdfdist_b=texture2D(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);alpha*=smoothstep(0.5-u_sdfgamma/floorwidth,0.5+u_sdfgamma/floorwidth,sdfdist);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_patternscale_a;uniform float u_tex_y_a;uniform vec2 u_patternscale_b;uniform float u_tex_y_b;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;\n#ifdef TERRAIN3D\nv_gamma_scale=1.0;\n#else\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#endif\nv_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}"),raster:bt("uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}"),symbolIcon:bt("uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nlowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,ele,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),ele,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,ele,1.0);float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0),z,1.0);v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float visibility=calculate_visibility(projectedPoint);v_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));}"),symbolSDF:bt("#define SDF_PX 8.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float inner_edge=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);inner_edge=inner_edge+gamma*gamma_scale;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(inner_edge-gamma_scaled,inner_edge+gamma_scaled,dist);if (u_is_halo) {lowp float halo_edge=(6.0-halo_width/fontScale)/SDF_PX;alpha=min(smoothstep(halo_edge-gamma_scaled,halo_edge+gamma_scaled,dist),1.0-alpha);}gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,ele,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),ele,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,ele,1.0);float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset),z,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}"),symbolTextAndIcon:bt("#define SDF_PX 8.0\n#define SDF 1.0\n#define ICON 0.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\nreturn;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_texsize_icon;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,ele,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),ele,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,ele,1.0);float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),z,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}"),terrain:bt("uniform sampler2D u_texture;varying vec2 v_texture_pos;void main() {gl_FragColor=texture2D(u_texture,v_texture_pos);}",Br),terrainDepth:bt("varying float v_depth;const highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitMsk=vec4(0.,vec3(1./256.0));highp vec4 pack(highp float value) {highp vec4 comp=fract(value*bitSh);comp-=comp.xxyz*bitMsk;return comp;}void main() {gl_FragColor=pack(v_depth);}",Br),terrainCoords:bt("precision mediump float;uniform sampler2D u_texture;uniform float u_terrain_coords_id;varying vec2 v_texture_pos;void main() {vec4 rgba=texture2D(u_texture,v_texture_pos);gl_FragColor=vec4(rgba.r,rgba.g,rgba.b,u_terrain_coords_id);}",Br)};function bt(h,t){const a=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,s=t.match(/attribute ([\w]+) ([\w]+)/g),l=h.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),p=t.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),f=p?p.concat(l):l,g={};return{fragmentSource:h=h.replace(a,(_,b,w,E,P)=>(g[P]=!0,"define"===b?`\n#ifndef HAS_UNIFORM_u_${P}\nvarying ${w} ${E} ${P};\n#else\nuniform ${w} ${E} u_${P};\n#endif\n`:`\n#ifdef HAS_UNIFORM_u_${P}\n ${w} ${E} ${P} = u_${P};\n#endif\n`)),vertexSource:t=t.replace(a,(_,b,w,E,P)=>{const V="float"===E?"vec2":"vec4",U=P.match(/color/)?"color":V;return g[P]?"define"===b?`\n#ifndef HAS_UNIFORM_u_${P}\nuniform lowp float u_${P}_t;\nattribute ${w} ${V} a_${P};\nvarying ${w} ${E} ${P};\n#else\nuniform ${w} ${E} u_${P};\n#endif\n`:"vec4"===U?`\n#ifndef HAS_UNIFORM_u_${P}\n ${P} = a_${P};\n#else\n ${w} ${E} ${P} = u_${P};\n#endif\n`:`\n#ifndef HAS_UNIFORM_u_${P}\n ${P} = unpack_mix_${U}(a_${P}, u_${P}_t);\n#else\n ${w} ${E} ${P} = u_${P};\n#endif\n`:"define"===b?`\n#ifndef HAS_UNIFORM_u_${P}\nuniform lowp float u_${P}_t;\nattribute ${w} ${V} a_${P};\n#else\nuniform ${w} ${E} u_${P};\n#endif\n`:"vec4"===U?`\n#ifndef HAS_UNIFORM_u_${P}\n ${w} ${E} ${P} = a_${P};\n#else\n ${w} ${E} ${P} = u_${P};\n#endif\n`:`\n#ifndef HAS_UNIFORM_u_${P}\n ${w} ${E} ${P} = unpack_mix_${U}(a_${P}, u_${P}_t);\n#else\n ${w} ${E} ${P} = u_${P};\n#endif\n`}),staticAttributes:s,staticUniforms:f}}class In{constructor(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null}bind(t,a,s,l,p,f,g,_,b){this.context=t;let w=this.boundPaintVertexBuffers.length!==l.length;for(let E=0;!w&&E>16,g>>16],u_pixel_coord_lower:[65535&f,65535&g]}}const rn=(h,t,a,s)=>{const l=t.style.light,p=l.properties.get("position"),f=[p.x,p.y,p.z],g=(b=new c.ARRAY_TYPE(9),c.ARRAY_TYPE!=Float32Array&&(b[1]=0,b[2]=0,b[3]=0,b[5]=0,b[6]=0,b[7]=0),b[0]=1,b[4]=1,b[8]=1,b);var b;"viewport"===l.properties.get("anchor")&&function(b,w){var E=Math.sin(w),P=Math.cos(w);b[0]=P,b[1]=E,b[2]=0,b[3]=-E,b[4]=P,b[5]=0,b[6]=0,b[7]=0,b[8]=1}(g,-t.transform.angle),function(b,w,E){var P=w[0],V=w[1],U=w[2];b[0]=P*E[0]+V*E[3]+U*E[6],b[1]=P*E[1]+V*E[4]+U*E[7],b[2]=P*E[2]+V*E[5]+U*E[8]}(f,f,g);const _=l.properties.get("color");return{u_matrix:h,u_lightpos:f,u_lightintensity:l.properties.get("intensity"),u_lightcolor:[_.r,_.g,_.b],u_vertical_gradient:+a,u_opacity:s}},gl=(h,t,a,s,l,p,f)=>c.extend(rn(h,t,a,s),Cn(p,t,f),{u_height_factor:-Math.pow(2,l.overscaledZ)/f.tileSize/8}),mo=h=>({u_matrix:h}),An=(h,t,a,s)=>c.extend(mo(h),Cn(a,t,s)),yl=(h,t)=>({u_matrix:h,u_world:t}),fo=(h,t,a,s,l)=>c.extend(An(h,t,a,s),{u_world:l}),_l=(h,t,a,s)=>{const l=h.transform;let p,f;if("map"===s.paint.get("circle-pitch-alignment")){const g=R(a,1,l.zoom);p=!0,f=[g,g]}else p=!1,f=l.pixelsToGLUnits;return{u_camera_to_center_distance:l.cameraToCenterDistance,u_scale_with_map:+("map"===s.paint.get("circle-pitch-scale")),u_matrix:h.translatePosMatrix(t.posMatrix,a,s.paint.get("circle-translate"),s.paint.get("circle-translate-anchor")),u_pitch_with_map:+p,u_device_pixel_ratio:h.pixelRatio,u_extrude_scale:f}},go=(h,t,a)=>{const s=R(a,1,t.zoom),l=Math.pow(2,t.zoom-a.tileID.overscaledZ),p=a.tileID.overscaleFactor();return{u_matrix:h,u_camera_to_center_distance:t.cameraToCenterDistance,u_pixels_to_tile_units:s,u_extrude_scale:[t.pixelsToGLUnits[0]/(s*l),t.pixelsToGLUnits[1]/(s*l)],u_overscale_factor:p}},yo=(h,t,a=1)=>({u_matrix:h,u_color:t,u_overlay:0,u_overlay_scale:a}),Mn=h=>({u_matrix:h}),_o=(h,t,a,s)=>({u_matrix:h,u_extrude_scale:R(t,1,a),u_intensity:s});function xo(h,t){const a=Math.pow(2,t.canonical.z),s=t.canonical.y;return[new c.MercatorCoordinate(0,s/a).toLngLat().lat,new c.MercatorCoordinate(0,(s+1)/a).toLngLat().lat]}const zn=(h,t,a,s)=>{const l=h.transform;return{u_matrix:an(h,t,a,s),u_ratio:1/R(t,1,l.zoom),u_device_pixel_ratio:h.pixelRatio,u_units_to_pixels:[1/l.pixelsToGLUnits[0],1/l.pixelsToGLUnits[1]]}},vo=(h,t,a,s,l)=>c.extend(zn(h,t,a,l),{u_image:0,u_image_height:s}),ma=(h,t,a,s,l)=>{const p=h.transform,f=cr(t,p);return{u_matrix:an(h,t,a,l),u_texsize:t.imageAtlasTexture.size,u_ratio:1/R(t,1,p.zoom),u_device_pixel_ratio:h.pixelRatio,u_image:0,u_scale:[f,s.fromScale,s.toScale],u_fade:s.t,u_units_to_pixels:[1/p.pixelsToGLUnits[0],1/p.pixelsToGLUnits[1]]}},Pn=(h,t,a,s,l,p)=>{const f=h.lineAtlas,g=cr(t,h.transform),_="round"===a.layout.get("line-cap"),b=f.getDash(s.from,_),w=f.getDash(s.to,_),E=b.width*l.fromScale,P=w.width*l.toScale;return c.extend(zn(h,t,a,p),{u_patternscale_a:[g/E,-b.height/2],u_patternscale_b:[g/P,-w.height/2],u_sdfgamma:f.width/(256*Math.min(E,P)*h.pixelRatio)/2,u_image:0,u_tex_y_a:b.y,u_tex_y_b:w.y,u_mix:l.t})};function cr(h,t){return 1/R(h,1,t.tileZoom)}function an(h,t,a,s){return h.translatePosMatrix(s?s.posMatrix:t.tileID.posMatrix,t,a.paint.get("line-translate"),a.paint.get("line-translate-anchor"))}const kn=(h,t,a,s,l)=>{return{u_matrix:h,u_tl_parent:t,u_scale_parent:a,u_buffer_scale:1,u_fade_t:s.mix,u_opacity:s.opacity*l.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:l.paint.get("raster-brightness-min"),u_brightness_high:l.paint.get("raster-brightness-max"),u_saturation_factor:(f=l.paint.get("raster-saturation"),f>0?1-1/(1.001-f):-f),u_contrast_factor:(p=l.paint.get("raster-contrast"),p>0?1/(1-p):1+p),u_spin_weights:nn(l.paint.get("raster-hue-rotate"))};var p,f};function nn(h){h*=Math.PI/180;const t=Math.sin(h),a=Math.cos(h);return[(2*a+1)/3,(-Math.sqrt(3)*t-a+1)/3,(Math.sqrt(3)*t-a+1)/3]}const sn=(h,t,a,s,l,p,f,g,_,b)=>{const w=l.transform;return{u_is_size_zoom_constant:+("constant"===h||"source"===h),u_is_size_feature_constant:+("constant"===h||"camera"===h),u_size_t:t?t.uSizeT:0,u_size:t?t.uSize:0,u_camera_to_center_distance:w.cameraToCenterDistance,u_pitch:w.pitch/360*2*Math.PI,u_rotate_symbol:+a,u_aspect_ratio:w.width/w.height,u_fade_change:l.options.fadeDuration?l.symbolFadeChange:1,u_matrix:p,u_label_plane_matrix:f,u_coord_matrix:g,u_is_text:+_,u_pitch_with_map:+s,u_texsize:b,u_texture:0}},on=(h,t,a,s,l,p,f,g,_,b,w)=>{const E=l.transform;return c.extend(sn(h,t,a,s,l,p,f,g,_,b),{u_gamma_scale:s?Math.cos(E._pitch)*E.cameraToCenterDistance:1,u_device_pixel_ratio:l.pixelRatio,u_is_halo:+w})},ln=(h,t,a,s,l,p,f,g,_,b)=>c.extend(on(h,t,a,s,l,p,f,g,!0,_,!0),{u_texsize_icon:b,u_texture_icon:1}),fa=(h,t,a)=>({u_matrix:h,u_opacity:t,u_color:a}),Ln=(h,t,a,s,l,p)=>c.extend(function(f,g,_,b){const w=_.imageManager.getPattern(f.from.toString()),E=_.imageManager.getPattern(f.to.toString()),{width:P,height:V}=_.imageManager.getPixelSize(),U=Math.pow(2,b.tileID.overscaledZ),Z=b.tileSize*Math.pow(2,_.transform.tileZoom)/U,O=Z*(b.tileID.canonical.x+b.tileID.wrap*U),W=Z*b.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:w.tl,u_pattern_br_a:w.br,u_pattern_tl_b:E.tl,u_pattern_br_b:E.br,u_texsize:[P,V],u_mix:g.t,u_pattern_size_a:w.displaySize,u_pattern_size_b:E.displaySize,u_scale_a:g.fromScale,u_scale_b:g.toScale,u_tile_units_to_pixels:1/R(b,1,_.transform.tileZoom),u_pixel_coord_upper:[O>>16,W>>16],u_pixel_coord_lower:[65535&O,65535&W]}}(s,p,a,l),{u_matrix:h,u_opacity:t}),hr={fillExtrusion:(h,t)=>({u_matrix:new c.UniformMatrix4f(h,t.u_matrix),u_lightpos:new c.Uniform3f(h,t.u_lightpos),u_lightintensity:new c.Uniform1f(h,t.u_lightintensity),u_lightcolor:new c.Uniform3f(h,t.u_lightcolor),u_vertical_gradient:new c.Uniform1f(h,t.u_vertical_gradient),u_opacity:new c.Uniform1f(h,t.u_opacity)}),fillExtrusionPattern:(h,t)=>({u_matrix:new c.UniformMatrix4f(h,t.u_matrix),u_lightpos:new c.Uniform3f(h,t.u_lightpos),u_lightintensity:new c.Uniform1f(h,t.u_lightintensity),u_lightcolor:new c.Uniform3f(h,t.u_lightcolor),u_vertical_gradient:new c.Uniform1f(h,t.u_vertical_gradient),u_height_factor:new c.Uniform1f(h,t.u_height_factor),u_image:new c.Uniform1i(h,t.u_image),u_texsize:new c.Uniform2f(h,t.u_texsize),u_pixel_coord_upper:new c.Uniform2f(h,t.u_pixel_coord_upper),u_pixel_coord_lower:new c.Uniform2f(h,t.u_pixel_coord_lower),u_scale:new c.Uniform3f(h,t.u_scale),u_fade:new c.Uniform1f(h,t.u_fade),u_opacity:new c.Uniform1f(h,t.u_opacity)}),fill:(h,t)=>({u_matrix:new c.UniformMatrix4f(h,t.u_matrix)}),fillPattern:(h,t)=>({u_matrix:new c.UniformMatrix4f(h,t.u_matrix),u_image:new c.Uniform1i(h,t.u_image),u_texsize:new c.Uniform2f(h,t.u_texsize),u_pixel_coord_upper:new c.Uniform2f(h,t.u_pixel_coord_upper),u_pixel_coord_lower:new c.Uniform2f(h,t.u_pixel_coord_lower),u_scale:new c.Uniform3f(h,t.u_scale),u_fade:new c.Uniform1f(h,t.u_fade)}),fillOutline:(h,t)=>({u_matrix:new c.UniformMatrix4f(h,t.u_matrix),u_world:new c.Uniform2f(h,t.u_world)}),fillOutlinePattern:(h,t)=>({u_matrix:new c.UniformMatrix4f(h,t.u_matrix),u_world:new c.Uniform2f(h,t.u_world),u_image:new c.Uniform1i(h,t.u_image),u_texsize:new c.Uniform2f(h,t.u_texsize),u_pixel_coord_upper:new c.Uniform2f(h,t.u_pixel_coord_upper),u_pixel_coord_lower:new c.Uniform2f(h,t.u_pixel_coord_lower),u_scale:new c.Uniform3f(h,t.u_scale),u_fade:new c.Uniform1f(h,t.u_fade)}),circle:(h,t)=>({u_camera_to_center_distance:new c.Uniform1f(h,t.u_camera_to_center_distance),u_scale_with_map:new c.Uniform1i(h,t.u_scale_with_map),u_pitch_with_map:new c.Uniform1i(h,t.u_pitch_with_map),u_extrude_scale:new c.Uniform2f(h,t.u_extrude_scale),u_device_pixel_ratio:new c.Uniform1f(h,t.u_device_pixel_ratio),u_matrix:new c.UniformMatrix4f(h,t.u_matrix)}),collisionBox:(h,t)=>({u_matrix:new c.UniformMatrix4f(h,t.u_matrix),u_camera_to_center_distance:new c.Uniform1f(h,t.u_camera_to_center_distance),u_pixels_to_tile_units:new c.Uniform1f(h,t.u_pixels_to_tile_units),u_extrude_scale:new c.Uniform2f(h,t.u_extrude_scale),u_overscale_factor:new c.Uniform1f(h,t.u_overscale_factor)}),collisionCircle:(h,t)=>({u_matrix:new c.UniformMatrix4f(h,t.u_matrix),u_inv_matrix:new c.UniformMatrix4f(h,t.u_inv_matrix),u_camera_to_center_distance:new c.Uniform1f(h,t.u_camera_to_center_distance),u_viewport_size:new c.Uniform2f(h,t.u_viewport_size)}),debug:(h,t)=>({u_color:new c.UniformColor(h,t.u_color),u_matrix:new c.UniformMatrix4f(h,t.u_matrix),u_overlay:new c.Uniform1i(h,t.u_overlay),u_overlay_scale:new c.Uniform1f(h,t.u_overlay_scale)}),clippingMask:(h,t)=>({u_matrix:new c.UniformMatrix4f(h,t.u_matrix)}),heatmap:(h,t)=>({u_extrude_scale:new c.Uniform1f(h,t.u_extrude_scale),u_intensity:new c.Uniform1f(h,t.u_intensity),u_matrix:new c.UniformMatrix4f(h,t.u_matrix)}),heatmapTexture:(h,t)=>({u_matrix:new c.UniformMatrix4f(h,t.u_matrix),u_world:new c.Uniform2f(h,t.u_world),u_image:new c.Uniform1i(h,t.u_image),u_color_ramp:new c.Uniform1i(h,t.u_color_ramp),u_opacity:new c.Uniform1f(h,t.u_opacity)}),hillshade:(h,t)=>({u_matrix:new c.UniformMatrix4f(h,t.u_matrix),u_image:new c.Uniform1i(h,t.u_image),u_latrange:new c.Uniform2f(h,t.u_latrange),u_light:new c.Uniform2f(h,t.u_light),u_shadow:new c.UniformColor(h,t.u_shadow),u_highlight:new c.UniformColor(h,t.u_highlight),u_accent:new c.UniformColor(h,t.u_accent)}),hillshadePrepare:(h,t)=>({u_matrix:new c.UniformMatrix4f(h,t.u_matrix),u_image:new c.Uniform1i(h,t.u_image),u_dimension:new c.Uniform2f(h,t.u_dimension),u_zoom:new c.Uniform1f(h,t.u_zoom),u_unpack:new c.Uniform4f(h,t.u_unpack)}),line:(h,t)=>({u_matrix:new c.UniformMatrix4f(h,t.u_matrix),u_ratio:new c.Uniform1f(h,t.u_ratio),u_device_pixel_ratio:new c.Uniform1f(h,t.u_device_pixel_ratio),u_units_to_pixels:new c.Uniform2f(h,t.u_units_to_pixels)}),lineGradient:(h,t)=>({u_matrix:new c.UniformMatrix4f(h,t.u_matrix),u_ratio:new c.Uniform1f(h,t.u_ratio),u_device_pixel_ratio:new c.Uniform1f(h,t.u_device_pixel_ratio),u_units_to_pixels:new c.Uniform2f(h,t.u_units_to_pixels),u_image:new c.Uniform1i(h,t.u_image),u_image_height:new c.Uniform1f(h,t.u_image_height)}),linePattern:(h,t)=>({u_matrix:new c.UniformMatrix4f(h,t.u_matrix),u_texsize:new c.Uniform2f(h,t.u_texsize),u_ratio:new c.Uniform1f(h,t.u_ratio),u_device_pixel_ratio:new c.Uniform1f(h,t.u_device_pixel_ratio),u_image:new c.Uniform1i(h,t.u_image),u_units_to_pixels:new c.Uniform2f(h,t.u_units_to_pixels),u_scale:new c.Uniform3f(h,t.u_scale),u_fade:new c.Uniform1f(h,t.u_fade)}),lineSDF:(h,t)=>({u_matrix:new c.UniformMatrix4f(h,t.u_matrix),u_ratio:new c.Uniform1f(h,t.u_ratio),u_device_pixel_ratio:new c.Uniform1f(h,t.u_device_pixel_ratio),u_units_to_pixels:new c.Uniform2f(h,t.u_units_to_pixels),u_patternscale_a:new c.Uniform2f(h,t.u_patternscale_a),u_patternscale_b:new c.Uniform2f(h,t.u_patternscale_b),u_sdfgamma:new c.Uniform1f(h,t.u_sdfgamma),u_image:new c.Uniform1i(h,t.u_image),u_tex_y_a:new c.Uniform1f(h,t.u_tex_y_a),u_tex_y_b:new c.Uniform1f(h,t.u_tex_y_b),u_mix:new c.Uniform1f(h,t.u_mix)}),raster:(h,t)=>({u_matrix:new c.UniformMatrix4f(h,t.u_matrix),u_tl_parent:new c.Uniform2f(h,t.u_tl_parent),u_scale_parent:new c.Uniform1f(h,t.u_scale_parent),u_buffer_scale:new c.Uniform1f(h,t.u_buffer_scale),u_fade_t:new c.Uniform1f(h,t.u_fade_t),u_opacity:new c.Uniform1f(h,t.u_opacity),u_image0:new c.Uniform1i(h,t.u_image0),u_image1:new c.Uniform1i(h,t.u_image1),u_brightness_low:new c.Uniform1f(h,t.u_brightness_low),u_brightness_high:new c.Uniform1f(h,t.u_brightness_high),u_saturation_factor:new c.Uniform1f(h,t.u_saturation_factor),u_contrast_factor:new c.Uniform1f(h,t.u_contrast_factor),u_spin_weights:new c.Uniform3f(h,t.u_spin_weights)}),symbolIcon:(h,t)=>({u_is_size_zoom_constant:new c.Uniform1i(h,t.u_is_size_zoom_constant),u_is_size_feature_constant:new c.Uniform1i(h,t.u_is_size_feature_constant),u_size_t:new c.Uniform1f(h,t.u_size_t),u_size:new c.Uniform1f(h,t.u_size),u_camera_to_center_distance:new c.Uniform1f(h,t.u_camera_to_center_distance),u_pitch:new c.Uniform1f(h,t.u_pitch),u_rotate_symbol:new c.Uniform1i(h,t.u_rotate_symbol),u_aspect_ratio:new c.Uniform1f(h,t.u_aspect_ratio),u_fade_change:new c.Uniform1f(h,t.u_fade_change),u_matrix:new c.UniformMatrix4f(h,t.u_matrix),u_label_plane_matrix:new c.UniformMatrix4f(h,t.u_label_plane_matrix),u_coord_matrix:new c.UniformMatrix4f(h,t.u_coord_matrix),u_is_text:new c.Uniform1i(h,t.u_is_text),u_pitch_with_map:new c.Uniform1i(h,t.u_pitch_with_map),u_texsize:new c.Uniform2f(h,t.u_texsize),u_texture:new c.Uniform1i(h,t.u_texture)}),symbolSDF:(h,t)=>({u_is_size_zoom_constant:new c.Uniform1i(h,t.u_is_size_zoom_constant),u_is_size_feature_constant:new c.Uniform1i(h,t.u_is_size_feature_constant),u_size_t:new c.Uniform1f(h,t.u_size_t),u_size:new c.Uniform1f(h,t.u_size),u_camera_to_center_distance:new c.Uniform1f(h,t.u_camera_to_center_distance),u_pitch:new c.Uniform1f(h,t.u_pitch),u_rotate_symbol:new c.Uniform1i(h,t.u_rotate_symbol),u_aspect_ratio:new c.Uniform1f(h,t.u_aspect_ratio),u_fade_change:new c.Uniform1f(h,t.u_fade_change),u_matrix:new c.UniformMatrix4f(h,t.u_matrix),u_label_plane_matrix:new c.UniformMatrix4f(h,t.u_label_plane_matrix),u_coord_matrix:new c.UniformMatrix4f(h,t.u_coord_matrix),u_is_text:new c.Uniform1i(h,t.u_is_text),u_pitch_with_map:new c.Uniform1i(h,t.u_pitch_with_map),u_texsize:new c.Uniform2f(h,t.u_texsize),u_texture:new c.Uniform1i(h,t.u_texture),u_gamma_scale:new c.Uniform1f(h,t.u_gamma_scale),u_device_pixel_ratio:new c.Uniform1f(h,t.u_device_pixel_ratio),u_is_halo:new c.Uniform1i(h,t.u_is_halo)}),symbolTextAndIcon:(h,t)=>({u_is_size_zoom_constant:new c.Uniform1i(h,t.u_is_size_zoom_constant),u_is_size_feature_constant:new c.Uniform1i(h,t.u_is_size_feature_constant),u_size_t:new c.Uniform1f(h,t.u_size_t),u_size:new c.Uniform1f(h,t.u_size),u_camera_to_center_distance:new c.Uniform1f(h,t.u_camera_to_center_distance),u_pitch:new c.Uniform1f(h,t.u_pitch),u_rotate_symbol:new c.Uniform1i(h,t.u_rotate_symbol),u_aspect_ratio:new c.Uniform1f(h,t.u_aspect_ratio),u_fade_change:new c.Uniform1f(h,t.u_fade_change),u_matrix:new c.UniformMatrix4f(h,t.u_matrix),u_label_plane_matrix:new c.UniformMatrix4f(h,t.u_label_plane_matrix),u_coord_matrix:new c.UniformMatrix4f(h,t.u_coord_matrix),u_is_text:new c.Uniform1i(h,t.u_is_text),u_pitch_with_map:new c.Uniform1i(h,t.u_pitch_with_map),u_texsize:new c.Uniform2f(h,t.u_texsize),u_texsize_icon:new c.Uniform2f(h,t.u_texsize_icon),u_texture:new c.Uniform1i(h,t.u_texture),u_texture_icon:new c.Uniform1i(h,t.u_texture_icon),u_gamma_scale:new c.Uniform1f(h,t.u_gamma_scale),u_device_pixel_ratio:new c.Uniform1f(h,t.u_device_pixel_ratio),u_is_halo:new c.Uniform1i(h,t.u_is_halo)}),background:(h,t)=>({u_matrix:new c.UniformMatrix4f(h,t.u_matrix),u_opacity:new c.Uniform1f(h,t.u_opacity),u_color:new c.UniformColor(h,t.u_color)}),backgroundPattern:(h,t)=>({u_matrix:new c.UniformMatrix4f(h,t.u_matrix),u_opacity:new c.Uniform1f(h,t.u_opacity),u_image:new c.Uniform1i(h,t.u_image),u_pattern_tl_a:new c.Uniform2f(h,t.u_pattern_tl_a),u_pattern_br_a:new c.Uniform2f(h,t.u_pattern_br_a),u_pattern_tl_b:new c.Uniform2f(h,t.u_pattern_tl_b),u_pattern_br_b:new c.Uniform2f(h,t.u_pattern_br_b),u_texsize:new c.Uniform2f(h,t.u_texsize),u_mix:new c.Uniform1f(h,t.u_mix),u_pattern_size_a:new c.Uniform2f(h,t.u_pattern_size_a),u_pattern_size_b:new c.Uniform2f(h,t.u_pattern_size_b),u_scale_a:new c.Uniform1f(h,t.u_scale_a),u_scale_b:new c.Uniform1f(h,t.u_scale_b),u_pixel_coord_upper:new c.Uniform2f(h,t.u_pixel_coord_upper),u_pixel_coord_lower:new c.Uniform2f(h,t.u_pixel_coord_lower),u_tile_units_to_pixels:new c.Uniform1f(h,t.u_tile_units_to_pixels)}),terrain:(h,t)=>({u_matrix:new c.UniformMatrix4f(h,t.u_matrix),u_texture:new c.Uniform1i(h,t.u_texture),u_ele_delta:new c.Uniform1f(h,t.u_ele_delta)}),terrainDepth:(h,t)=>({u_matrix:new c.UniformMatrix4f(h,t.u_matrix),u_ele_delta:new c.Uniform1f(h,t.u_ele_delta)}),terrainCoords:(h,t)=>({u_matrix:new c.UniformMatrix4f(h,t.u_matrix),u_texture:new c.Uniform1i(h,t.u_texture),u_terrain_coords_id:new c.Uniform1f(h,t.u_terrain_coords_id),u_ele_delta:new c.Uniform1f(h,t.u_ele_delta)})};class ur{constructor(t,a,s){this.context=t;const l=t.gl;this.buffer=l.createBuffer(),this.dynamicDraw=Boolean(s),this.context.unbindVAO(),t.bindElementBuffer.set(this.buffer),l.bufferData(l.ELEMENT_ARRAY_BUFFER,a.arrayBuffer,this.dynamicDraw?l.DYNAMIC_DRAW:l.STATIC_DRAW),this.dynamicDraw||delete a.arrayBuffer}bind(){this.context.bindElementBuffer.set(this.buffer)}updateData(t){const a=this.context.gl;if(!this.dynamicDraw)throw new Error("Attempted to update data while not in dynamic mode.");this.context.unbindVAO(),this.bind(),a.bufferSubData(a.ELEMENT_ARRAY_BUFFER,0,t.arrayBuffer)}destroy(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)}}const fs={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"};class Dn{constructor(t,a,s,l){this.length=a.length,this.attributes=s,this.itemSize=a.bytesPerElement,this.dynamicDraw=l,this.context=t;const p=t.gl;this.buffer=p.createBuffer(),t.bindVertexBuffer.set(this.buffer),p.bufferData(p.ARRAY_BUFFER,a.arrayBuffer,this.dynamicDraw?p.DYNAMIC_DRAW:p.STATIC_DRAW),this.dynamicDraw||delete a.arrayBuffer}bind(){this.context.bindVertexBuffer.set(this.buffer)}updateData(t){if(t.length!==this.length)throw new Error(`Length of new data is ${t.length}, which doesn't match current length of ${this.length}`);const a=this.context.gl;this.bind(),a.bufferSubData(a.ARRAY_BUFFER,0,t.arrayBuffer)}enableAttributes(t,a){for(let s=0;s0){const pe=c.create(),ze=oe;c.mul(pe,se.placementInvProjMatrix,h.transform.glCoordMatrix),c.mul(pe,pe,se.placementViewportMatrix),w.push({circleArray:ce,circleOffset:P,transform:ze,invTransform:pe,coord:K}),E+=ce.length/4,P=E}he&&b.draw(g,_.LINES,rt.disabled,zt.disabled,h.colorModeForRenderPass(),Pt.disabled,go(oe,h.transform,ne),h.style.map.terrain&&h.style.map.terrain.getTerrainData(K),a.id,he.layoutVertexBuffer,he.indexBuffer,he.segments,null,h.transform.zoom,null,null,he.collisionVertexBuffer)}if(!f||!w.length)return;const V=h.useProgram("collisionCircle"),U=new c.CollisionCircleLayoutArray;U.resize(4*E),U._trim();let Z=0;for(const j of w)for(let K=0;K=0&&(U[O.associatedIconIndex]={shiftedAnchor:at,angle:ye})}else x(O.numGlyphs,P)}if(b){V.clear();const Z=h.icon.placedSymbolArray;for(let O=0;Oh.style.map.terrain.getElevation(he,Ji,$t):null,Ti="map"===a.layout.get("text-rotation-alignment");bi(pe,he.posMatrix,h,l,Ar,qr,O,b,Ti,oi)}const Ia=h.translatePosMatrix(he.posMatrix,ce,p,f),oa=W||l&&se||sa?Ss:Ar,Si=h.translatePosMatrix(qr,ce,p,f,!0),jt=ye&&0!==a.paint.get(l?"text-halo-width":"icon-halo-width").constantOr(1);let Ei;Ei=ye?pe.iconsInText?ln(Ne.kind,et,te,O,h,Ia,oa,Si,$e,wi):on(Ne.kind,et,te,O,h,Ia,oa,Si,l,$e,!0):sn(Ne.kind,et,te,O,h,Ia,oa,Si,l,$e);const ja={program:Mt,buffers:ze,uniformValues:Ei,atlasTexture:Gt,atlasTextureIcon:ii,atlasInterpolation:wt,atlasInterpolationIcon:ji,isSDF:ye,hasHalo:jt};if(j&&pe.canOverlap){K=!0;const oi=ze.segments.get();for(const Ti of oi)oe.push({segments:new c.SegmentVector([Ti]),sortKey:Ti.sortKey,state:ja,terrainData:Ye})}else oe.push({segments:ze.segments,sortKey:0,state:ja,terrainData:Ye})}K&&oe.sort((he,ce)=>he.sortKey-ce.sortKey);for(const he of oe){const ce=he.state;if(P.activeTexture.set(V.TEXTURE0),ce.atlasTexture.bind(ce.atlasInterpolation,V.CLAMP_TO_EDGE),ce.atlasTextureIcon&&(P.activeTexture.set(V.TEXTURE1),ce.atlasTextureIcon&&ce.atlasTextureIcon.bind(ce.atlasInterpolationIcon,V.CLAMP_TO_EDGE)),ce.isSDF){const pe=ce.uniformValues;ce.hasHalo&&(pe.u_is_halo=1,un(ce.buffers,he.segments,a,h,ce.program,ne,w,E,pe,he.terrainData)),pe.u_is_halo=0}un(ce.buffers,he.segments,a,h,ce.program,ne,w,E,ce.uniformValues,he.terrainData)}}function un(h,t,a,s,l,p,f,g,_,b){const w=s.context;l.draw(w,w.gl.TRIANGLES,p,f,g,Pt.disabled,_,b,a.id,h.layoutVertexBuffer,h.indexBuffer,t,a.paint,s.transform.zoom,h.programConfigurations.get(a.id),h.dynamicLayoutVertexBuffer,h.opacityVertexBuffer)}function Vn(h,t,a,s,l){if(!a||!s||!s.imageAtlas)return;const p=s.imageAtlas.patternPositions;let f=p[a.to.toString()],g=p[a.from.toString()];if(!f||!g){const _=l.getPaintProperty(t);f=p[_],g=p[_]}f&&g&&h.setConstantPatternPositions(f,g)}function Is(h,t,a,s,l,p,f){const g=h.context.gl,_="fill-pattern",b=a.paint.get(_),w=b&&b.constantOr(1),E=a.getCrossfadeParameters();let P,V,U,Z,O;f?(V=w&&!a.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline",P=g.LINES):(V=w?"fillPattern":"fill",P=g.TRIANGLES);const W=b.constantOr(null);for(const te of s){const j=t.getTile(te);if(w&&!j.patternsLoaded())continue;const K=j.getBucket(a);if(!K)continue;const ne=K.programConfigurations.get(a.id),se=h.useProgram(V,ne),oe=h.style.map.terrain&&h.style.map.terrain.getTerrainData(te);w&&(h.context.activeTexture.set(g.TEXTURE0),j.imageAtlasTexture.bind(g.LINEAR,g.CLAMP_TO_EDGE),ne.updatePaintBuffers(E)),Vn(ne,_,W,j,a);const he=oe?te:null,ce=h.translatePosMatrix(he?he.posMatrix:te.posMatrix,j,a.paint.get("fill-translate"),a.paint.get("fill-translate-anchor"));if(f){Z=K.indexBuffer2,O=K.segments2;const pe=[g.drawingBufferWidth,g.drawingBufferHeight];U="fillOutlinePattern"===V&&w?fo(ce,h,E,j,pe):yl(ce,pe)}else Z=K.indexBuffer,O=K.segments,U=w?An(ce,h,E,j):mo(ce);se.draw(h.context,P,l,h.stencilModeForClipping(te),p,Pt.disabled,U,oe,a.id,K.layoutVertexBuffer,Z,O,a.paint,h.transform.zoom,ne)}}function Nn(h,t,a,s,l,p,f){const g=h.context,_=g.gl,b="fill-extrusion-pattern",w=a.paint.get(b),E=w.constantOr(1),P=a.getCrossfadeParameters(),V=a.paint.get("fill-extrusion-opacity"),U=w.constantOr(null);for(const Z of s){const O=t.getTile(Z),W=O.getBucket(a);if(!W)continue;const te=h.style.map.terrain&&h.style.map.terrain.getTerrainData(Z),j=W.programConfigurations.get(a.id),K=h.useProgram(E?"fillExtrusionPattern":"fillExtrusion",j);E&&(h.context.activeTexture.set(_.TEXTURE0),O.imageAtlasTexture.bind(_.LINEAR,_.CLAMP_TO_EDGE),j.updatePaintBuffers(P)),Vn(j,b,U,O,a);const ne=h.translatePosMatrix(Z.posMatrix,O,a.paint.get("fill-extrusion-translate"),a.paint.get("fill-extrusion-translate-anchor")),se=a.paint.get("fill-extrusion-vertical-gradient"),oe=E?gl(ne,h,se,V,Z,P,O):rn(ne,h,se,V);K.draw(g,g.gl.TRIANGLES,l,p,f,Pt.backCCW,oe,te,a.id,W.layoutVertexBuffer,W.indexBuffer,W.segments,a.paint,h.transform.zoom,j,h.style.map.terrain&&W.centroidVertexBuffer)}}function $n(h,t,a,s,l,p,f){const g=h.context,_=g.gl,b=a.fbo;if(!b)return;const w=h.useProgram("hillshade"),E=h.style.map.terrain&&h.style.map.terrain.getTerrainData(t);g.activeTexture.set(_.TEXTURE0),_.bindTexture(_.TEXTURE_2D,b.colorAttachment.get()),w.draw(g,_.TRIANGLES,l,p,f,Pt.disabled,((P,V,U,Z)=>{const O=U.paint.get("hillshade-shadow-color"),W=U.paint.get("hillshade-highlight-color"),te=U.paint.get("hillshade-accent-color");let j=U.paint.get("hillshade-illumination-direction")*(Math.PI/180);"viewport"===U.paint.get("hillshade-illumination-anchor")&&(j-=P.transform.angle);const K=!P.options.moving;return{u_matrix:Z?Z.posMatrix:P.transform.calculatePosMatrix(V.tileID.toUnwrapped(),K),u_image:0,u_latrange:xo(0,V.tileID),u_light:[U.paint.get("hillshade-exaggeration"),j],u_shadow:O,u_highlight:W,u_accent:te}})(h,a,s,E?t:null),E,s.id,h.rasterBoundsBuffer,h.quadTriangleIndexBuffer,h.rasterBoundsSegments)}function Cs(h,t,a,s,l,p){const f=h.context,g=f.gl,_=t.dem;if(_&&_.data){const b=_.dim,w=_.stride,E=_.getPixels();if(f.activeTexture.set(g.TEXTURE1),f.pixelStoreUnpackPremultiplyAlpha.set(!1),t.demTexture=t.demTexture||h.getTileTexture(w),t.demTexture){const V=t.demTexture;V.update(E,{premultiply:!1}),V.bind(g.NEAREST,g.CLAMP_TO_EDGE)}else t.demTexture=new Te(f,E,g.RGBA,{premultiply:!1}),t.demTexture.bind(g.NEAREST,g.CLAMP_TO_EDGE);f.activeTexture.set(g.TEXTURE0);let P=t.fbo;if(!P){const V=new Te(f,{width:b,height:b,data:null},g.RGBA);V.bind(g.LINEAR,g.CLAMP_TO_EDGE),P=t.fbo=f.createFramebuffer(b,b,!0,!1),P.colorAttachment.set(V.texture)}f.bindFramebuffer.set(P.framebuffer),f.viewport.set([0,0,b,b]),h.useProgram("hillshadePrepare").draw(f,g.TRIANGLES,s,l,p,Pt.disabled,((V,U)=>{const Z=U.stride,O=c.create();return c.ortho(O,0,c.EXTENT,-c.EXTENT,0,0,1),c.translate(O,O,[0,-c.EXTENT,0]),{u_matrix:O,u_image:1,u_dimension:[Z,Z],u_zoom:V.overscaledZ,u_unpack:U.getUnpackVector()}})(t.tileID,_),null,a.id,h.rasterBoundsBuffer,h.quadTriangleIndexBuffer,h.rasterBoundsSegments),t.needsHillshadePrepare=!1}}function Pl(h,t,a,s,l,p){const f=s.paint.get("raster-fade-duration");if(!p&&f>0){const g=c.browser.now(),_=(g-h.timeAdded)/f,b=t?(g-t.timeAdded)/f:-1,w=a.getSource(),E=l.coveringZoomLevel({tileSize:w.tileSize,roundZoom:w.roundZoom}),P=!t||Math.abs(t.tileID.overscaledZ-E)>Math.abs(h.tileID.overscaledZ-E),V=P&&h.refreshedUponExpiration?1:c.clamp(P?_:1-b,0,1);return h.refreshedUponExpiration&&_>=1&&(h.refreshedUponExpiration=!1),t?{opacity:1,mix:1-V}:{opacity:V,mix:0}}return{opacity:1,mix:0}}const Mo=new c.Color(1,0,0,1),Qt=new c.Color(0,1,0,1),xa=new c.Color(0,0,1,1),br=new c.Color(1,0,1,1),As=new c.Color(0,1,1,1);function Zn(h,t,a,s){$r(h,0,t+a/2,h.transform.width,a,s)}function Ms(h,t,a,s){$r(h,t-a/2,0,a,h.transform.height,s)}function $r(h,t,a,s,l,p){const f=h.context,g=f.gl;g.enable(g.SCISSOR_TEST),g.scissor(t*h.pixelRatio,a*h.pixelRatio,s*h.pixelRatio,l*h.pixelRatio),f.clear({color:p}),g.disable(g.SCISSOR_TEST)}function pn(h,t,a){const s=h.context,l=s.gl,p=a.posMatrix,f=h.useProgram("debug"),g=rt.disabled,_=zt.disabled,b=h.colorModeForRenderPass(),w="$debug",E=h.style.map.terrain&&h.style.map.terrain.getTerrainData(a);s.activeTexture.set(l.TEXTURE0);const P=t.getTileByID(a.key).latestRawTileData,V=Math.floor((P&&P.byteLength||0)/1024),U=t.getTile(a).tileSize,Z=512/Math.min(U,512)*(a.overscaledZ/h.transform.zoom)*.5;let O=a.canonical.toString();a.overscaledZ!==a.canonical.z&&(O+=` => ${a.overscaledZ}`),function(W,te){W.initDebugOverlayCanvas();const j=W.debugOverlayCanvas,K=W.context.gl,ne=W.debugOverlayCanvas.getContext("2d");ne.clearRect(0,0,j.width,j.height),ne.shadowColor="white",ne.shadowBlur=2,ne.lineWidth=1.5,ne.strokeStyle="white",ne.textBaseline="top",ne.font="bold 36px Open Sans, sans-serif",ne.fillText(te,5,5),ne.strokeText(te,5,5),W.debugOverlayTexture.update(j),W.debugOverlayTexture.bind(K.LINEAR,K.CLAMP_TO_EDGE)}(h,`${O} ${V}kB`),f.draw(s,l.TRIANGLES,g,_,Vt.alphaBlended,Pt.disabled,yo(p,c.Color.transparent,Z),null,w,h.debugBuffer,h.quadTriangleIndexBuffer,h.debugSegments),f.draw(s,l.LINE_STRIP,g,_,b,Pt.disabled,yo(p,c.Color.red),E,w,h.debugBuffer,h.tileBorderIndexBuffer,h.debugSegments)}function Gn(h,t,a){const s=h.context,l=s.gl,p=h.colorModeForRenderPass(),f=new rt(l.LEQUAL,rt.ReadWrite,h.depthRangeFor3D),g=h.useProgram("terrain"),_=t.getTerrainMesh();s.bindFramebuffer.set(null),s.viewport.set([0,0,h.width,h.height]);for(const b of a){const w=h.renderToTexture.getTexture(b),E=t.getTerrainData(b.tileID);s.activeTexture.set(l.TEXTURE0),l.bindTexture(l.TEXTURE_2D,w.texture);const P={u_matrix:h.transform.calculatePosMatrix(b.tileID.toUnwrapped()),u_texture:0,u_ele_delta:t.getMeshFrameDelta(h.transform.zoom)};g.draw(s,l.TRIANGLES,f,zt.disabled,p,Pt.backCCW,P,E,"terrain",_.vertexBuffer,_.indexBuffer,_.segments)}}class zo{constructor(t,a){this.context=new Un(t),this.transform=a,this._tileTextures={},this.terrainFacilitator={dirty:!0,matrix:c.create(),renderTime:0},this.setup(),this.numSublayers=dt.maxUnderzooming+dt.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new Yt}resize(t,a,s){if(this.width=Math.floor(t*s),this.height=Math.floor(a*s),this.pixelRatio=s,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(const l of this.style._order)this.style._layers[l].resize()}setup(){const t=this.context,a=new c.PosArray;a.emplaceBack(0,0),a.emplaceBack(c.EXTENT,0),a.emplaceBack(0,c.EXTENT),a.emplaceBack(c.EXTENT,c.EXTENT),this.tileExtentBuffer=t.createVertexBuffer(a,Tn.members),this.tileExtentSegments=c.SegmentVector.simpleSegment(0,0,4,2);const s=new c.PosArray;s.emplaceBack(0,0),s.emplaceBack(c.EXTENT,0),s.emplaceBack(0,c.EXTENT),s.emplaceBack(c.EXTENT,c.EXTENT),this.debugBuffer=t.createVertexBuffer(s,Tn.members),this.debugSegments=c.SegmentVector.simpleSegment(0,0,4,5);const l=new c.RasterBoundsArray;l.emplaceBack(0,0,0,0),l.emplaceBack(c.EXTENT,0,c.EXTENT,0),l.emplaceBack(0,c.EXTENT,0,c.EXTENT),l.emplaceBack(c.EXTENT,c.EXTENT,c.EXTENT,c.EXTENT),this.rasterBoundsBuffer=t.createVertexBuffer(l,Le.members),this.rasterBoundsSegments=c.SegmentVector.simpleSegment(0,0,4,2);const p=new c.PosArray;p.emplaceBack(0,0),p.emplaceBack(1,0),p.emplaceBack(0,1),p.emplaceBack(1,1),this.viewportBuffer=t.createVertexBuffer(p,Tn.members),this.viewportSegments=c.SegmentVector.simpleSegment(0,0,4,2);const f=new c.LineStripIndexArray;f.emplaceBack(0),f.emplaceBack(1),f.emplaceBack(3),f.emplaceBack(2),f.emplaceBack(0),this.tileBorderIndexBuffer=t.createIndexBuffer(f);const g=new c.TriangleIndexArray;g.emplaceBack(0,1,2),g.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=t.createIndexBuffer(g);const _=this.context.gl;this.stencilClearMode=new zt({func:_.ALWAYS,mask:0},0,255,_.ZERO,_.ZERO,_.ZERO)}clearStencil(){const t=this.context,a=t.gl;this.nextStencilID=1,this.currentStencilSource=void 0;const s=c.create();c.ortho(s,0,this.width,this.height,0,0,1),c.scale(s,s,[a.drawingBufferWidth,a.drawingBufferHeight,0]),this.useProgram("clippingMask").draw(t,a.TRIANGLES,rt.disabled,this.stencilClearMode,Vt.disabled,Pt.disabled,Mn(s),null,"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)}_renderTileClippingMasks(t,a){if(this.currentStencilSource===t.source||!t.isTileClipped()||!a||!a.length)return;this.currentStencilSource=t.source;const s=this.context,l=s.gl;this.nextStencilID+a.length>256&&this.clearStencil(),s.setColorMode(Vt.disabled),s.setDepthMode(rt.disabled);const p=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(const f of a){const g=this._tileClippingMaskIDs[f.key]=this.nextStencilID++,_=this.style.map.terrain&&this.style.map.terrain.getTerrainData(f);p.draw(s,l.TRIANGLES,rt.disabled,new zt({func:l.ALWAYS,mask:0},g,255,l.KEEP,l.KEEP,l.REPLACE),Vt.disabled,Pt.disabled,Mn(f.posMatrix),_,"$clipping",this.tileExtentBuffer,this.quadTriangleIndexBuffer,this.tileExtentSegments)}}stencilModeFor3D(){this.currentStencilSource=void 0,this.nextStencilID+1>256&&this.clearStencil();const t=this.nextStencilID++,a=this.context.gl;return new zt({func:a.NOTEQUAL,mask:255},t,255,a.KEEP,a.KEEP,a.REPLACE)}stencilModeForClipping(t){const a=this.context.gl;return new zt({func:a.EQUAL,mask:255},this._tileClippingMaskIDs[t.key],0,a.KEEP,a.KEEP,a.REPLACE)}stencilConfigForOverlap(t){const a=this.context.gl,s=t.sort((f,g)=>g.overscaledZ-f.overscaledZ),l=s[s.length-1].overscaledZ,p=s[0].overscaledZ-l+1;if(p>1){this.currentStencilSource=void 0,this.nextStencilID+p>256&&this.clearStencil();const f={};for(let g=0;g=0;this.currentLayer--){const _=this.style._layers[s[this.currentLayer]],b=l[_.source],w=p[_.source];this._renderTileClippingMasks(_,w),this.renderLayer(this,b,_,w)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayerO.source&&!O.isHidden(w)?[b.sourceCaches[O.source]]:[]),V=P.filter(O=>"vector"===O.getSource().type),U=P.filter(O=>"vector"!==O.getSource().type),Z=O=>{(!E||E.getSource().maxzoomZ(O)),E||U.forEach(O=>Z(O)),E}(this.style,this.transform.zoom);_&&function(b,w,E){for(let P=0;PV.style.map.terrain.getElevation(se,Ne,Ae):null)}}}(_,p,g,f,g.layout.get("text-rotation-alignment"),g.layout.get("text-pitch-alignment"),b),0!==g.paint.get("icon-opacity").constantOr(1)&&Ts(p,f,g,_,!1,g.paint.get("icon-translate"),g.paint.get("icon-translate-anchor"),g.layout.get("icon-rotation-alignment"),g.layout.get("icon-pitch-alignment"),g.layout.get("icon-keep-upright"),w,E),0!==g.paint.get("text-opacity").constantOr(1)&&Ts(p,f,g,_,!0,g.paint.get("text-translate"),g.paint.get("text-translate-anchor"),g.layout.get("text-rotation-alignment"),g.layout.get("text-pitch-alignment"),g.layout.get("text-keep-upright"),w,E),f.map.showCollisionBoxes&&(hn(p,f,g,_,g.paint.get("text-translate"),g.paint.get("text-translate-anchor"),!0),hn(p,f,g,_,g.paint.get("icon-translate"),g.paint.get("icon-translate-anchor"),!1))}(t,a,s,l,this.style.placement.variableOffsets);break;case"circle":!function(p,f,g,_){if("translucent"!==p.renderPass)return;const b=g.paint.get("circle-opacity"),w=g.paint.get("circle-stroke-width"),E=g.paint.get("circle-stroke-opacity"),P=!g.layout.get("circle-sort-key").isConstant();if(0===b.constantOr(1)&&(0===w.constantOr(1)||0===E.constantOr(1)))return;const V=p.context,U=V.gl,Z=p.depthModeForSublayer(0,rt.ReadOnly),O=zt.disabled,W=p.colorModeForRenderPass(),te=[];for(let j=0;j<_.length;j++){const K=_[j],ne=f.getTile(K),se=ne.getBucket(g);if(!se)continue;const oe=se.programConfigurations.get(g.id),he=p.useProgram("circle",oe),ce=se.layoutVertexBuffer,pe=se.indexBuffer,ze=p.style.map.terrain&&p.style.map.terrain.getTerrainData(K),at={programConfiguration:oe,program:he,layoutVertexBuffer:ce,indexBuffer:pe,uniformValues:_l(p,K,ne,g),terrainData:ze};if(P){const ye=se.segments.get();for(const Ne of ye)te.push({segments:new c.SegmentVector([Ne]),sortKey:Ne.sortKey,state:at})}else te.push({segments:se.segments,sortKey:0,state:at})}P&&te.sort((j,K)=>j.sortKey-K.sortKey);for(const j of te){const{programConfiguration:K,program:ne,layoutVertexBuffer:se,indexBuffer:oe,uniformValues:he,terrainData:ce}=j.state;ne.draw(V,U.TRIANGLES,Z,O,W,Pt.disabled,he,ce,g.id,se,oe,j.segments,g.paint,p.transform.zoom,K)}}(t,a,s,l);break;case"heatmap":!function(p,f,g,_){if(0!==g.paint.get("heatmap-opacity"))if("offscreen"===p.renderPass){const b=p.context,w=b.gl,E=zt.disabled,P=new Vt([w.ONE,w.ONE],c.Color.transparent,[!0,!0,!0,!0]);(function(V,U,Z){const O=V.gl;V.activeTexture.set(O.TEXTURE1),V.viewport.set([0,0,U.width/4,U.height/4]);let W=Z.heatmapFbo;if(W)O.bindTexture(O.TEXTURE_2D,W.colorAttachment.get()),V.bindFramebuffer.set(W.framebuffer);else{const te=O.createTexture();O.bindTexture(O.TEXTURE_2D,te),O.texParameteri(O.TEXTURE_2D,O.TEXTURE_WRAP_S,O.CLAMP_TO_EDGE),O.texParameteri(O.TEXTURE_2D,O.TEXTURE_WRAP_T,O.CLAMP_TO_EDGE),O.texParameteri(O.TEXTURE_2D,O.TEXTURE_MIN_FILTER,O.LINEAR),O.texParameteri(O.TEXTURE_2D,O.TEXTURE_MAG_FILTER,O.LINEAR),W=Z.heatmapFbo=V.createFramebuffer(U.width/4,U.height/4,!1,!1),function(j,K,ne,se){var oe,he;const ce=j.gl,pe=null!==(oe=j.HALF_FLOAT)&&void 0!==oe?oe:ce.UNSIGNED_BYTE,ze=null!==(he=j.RGBA16F)&&void 0!==he?he:ce.RGBA;ce.texImage2D(ce.TEXTURE_2D,0,ze,K.width/4,K.height/4,0,ce.RGBA,pe,null),se.colorAttachment.set(ne)}(V,U,te,W)}})(b,p,g),b.clear({color:c.Color.transparent});for(let V=0;V<_.length;V++){const U=_[V];if(f.hasRenderableParent(U))continue;const Z=f.getTile(U),O=Z.getBucket(g);if(!O)continue;const W=O.programConfigurations.get(g.id),te=p.useProgram("heatmap",W),{zoom:j}=p.transform;te.draw(b,w.TRIANGLES,rt.disabled,E,P,Pt.disabled,_o(U.posMatrix,Z,j,g.paint.get("heatmap-intensity")),null,g.id,O.layoutVertexBuffer,O.indexBuffer,O.segments,g.paint,p.transform.zoom,W)}b.viewport.set([0,0,p.width,p.height])}else"translucent"===p.renderPass&&(p.context.setColorMode(p.colorModeForRenderPass()),function(b,w){const E=b.context,P=E.gl,V=w.heatmapFbo;if(!V)return;E.activeTexture.set(P.TEXTURE0),P.bindTexture(P.TEXTURE_2D,V.colorAttachment.get()),E.activeTexture.set(P.TEXTURE1);let U=w.colorRampTexture;U||(U=w.colorRampTexture=new Te(E,w.colorRamp,P.RGBA)),U.bind(P.LINEAR,P.CLAMP_TO_EDGE),b.useProgram("heatmapTexture").draw(E,P.TRIANGLES,rt.disabled,zt.disabled,b.colorModeForRenderPass(),Pt.disabled,((Z,O,W,te)=>{const j=c.create();c.ortho(j,0,Z.width,Z.height,0,0,1);const K=Z.context.gl;return{u_matrix:j,u_world:[K.drawingBufferWidth,K.drawingBufferHeight],u_image:0,u_color_ramp:1,u_opacity:O.paint.get("heatmap-opacity")}})(b,w),null,w.id,b.viewportBuffer,b.quadTriangleIndexBuffer,b.viewportSegments,w.paint,b.transform.zoom)}(p,g))}(t,a,s,l);break;case"line":!function(p,f,g,_){if("translucent"!==p.renderPass)return;const b=g.paint.get("line-opacity"),w=g.paint.get("line-width");if(0===b.constantOr(1)||0===w.constantOr(1))return;const E=p.depthModeForSublayer(0,rt.ReadOnly),P=p.colorModeForRenderPass(),V=g.paint.get("line-dasharray"),U=g.paint.get("line-pattern"),Z=U.constantOr(1),O=g.paint.get("line-gradient"),W=g.getCrossfadeParameters(),te=Z?"linePattern":V?"lineSDF":O?"lineGradient":"line",j=p.context,K=j.gl;let ne=!0;for(const se of _){const oe=f.getTile(se);if(Z&&!oe.patternsLoaded())continue;const he=oe.getBucket(g);if(!he)continue;const ce=he.programConfigurations.get(g.id),pe=p.context.program.get(),ze=p.useProgram(te,ce),at=ne||ze.program!==pe,ye=p.style.map.terrain&&p.style.map.terrain.getTerrainData(se),Ne=U.constantOr(null);if(Ne&&oe.imageAtlas){const et=oe.imageAtlas,Ye=et.patternPositions[Ne.to.toString()],$e=et.patternPositions[Ne.from.toString()];Ye&&$e&&ce.setConstantPatternPositions(Ye,$e)}const Ae=ye?se:null,Mt=Z?ma(p,oe,g,W,Ae):V?Pn(p,oe,g,V,W,Ae):O?vo(p,oe,g,he.lineClipsArray.length,Ae):zn(p,oe,g,Ae);if(Z)j.activeTexture.set(K.TEXTURE0),oe.imageAtlasTexture.bind(K.LINEAR,K.CLAMP_TO_EDGE),ce.updatePaintBuffers(W);else if(V&&(at||p.lineAtlas.dirty))j.activeTexture.set(K.TEXTURE0),p.lineAtlas.bind(j);else if(O){const et=he.gradients[g.id];let Ye=et.texture;if(g.gradientVersion!==et.version){let $e=256;if(g.stepInterpolant){const Gt=f.getSource().maxzoom,wt=se.canonical.z===Gt?Math.ceil(1<0?a.pop():null}isPatternMissing(t){if(!t)return!1;if(!t.from||!t.to)return!0;const a=this.imageManager.getPattern(t.from.toString()),s=this.imageManager.getPattern(t.to.toString());return!a||!s}useProgram(t,a){this.cache=this.cache||{};const s=t+(a?a.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"")+(this.style.map.terrain?"/terrain":"");return this.cache[s]||(this.cache[s]=new ia(this.context,tn[t],a,hr[t],this._showOverdrawInspector,this.style.map.terrain)),this.cache[s]}setCustomLayerDefaults(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()}setBaseState(){const t=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(t.FUNC_ADD)}initDebugOverlayCanvas(){null==this.debugOverlayCanvas&&(this.debugOverlayCanvas=document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new Te(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))}destroy(){this.debugOverlayTexture&&this.debugOverlayTexture.destroy()}overLimit(){const{drawingBufferWidth:t,drawingBufferHeight:a}=this.context.gl;return this.width!==t||this.height!==a}}class jn{constructor(t,a){this.points=t,this.planes=a}static fromInvProjectionMatrix(t,a,s){const l=Math.pow(2,s),p=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map(g=>{const _=1/(g=c.transformMat4([],g,t))[3]/a*l;return c.mul$1(g,g,[_,_,1/g[3],_])}),f=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(g=>{const _=function(P,V){var U=V[0],Z=V[1],O=V[2],W=U*U+Z*Z+O*O;return W>0&&(W=1/Math.sqrt(W)),P[0]=V[0]*W,P[1]=V[1]*W,P[2]=V[2]*W,P}([],(P=[],V=nr([],p[g[0]],p[g[1]]),U=nr([],p[g[2]],p[g[1]]),Z=V[0],te=U[0],P[0]=(O=V[1])*(K=U[2])-(W=V[2])*(j=U[1]),P[1]=W*te-Z*K,P[2]=Z*j-O*te,P)),b=-((w=_)[0]*(E=p[g[1]])[0]+w[1]*E[1]+w[2]*E[2]);var P,V,U,Z,O,W,te,j,K,w,E;return _.concat(b)});return new jn(p,f)}}class dn{constructor(t,a){var s,l,p;this.min=t,this.max=a,this.center=function(s,l,p){return s[0]=.5*l[0],s[1]=.5*l[1],s[2]=.5*l[2],s}([],((s=[])[0]=(l=this.min)[0]+(p=this.max)[0],s[1]=l[1]+p[1],s[2]=l[2]+p[2],s))}quadrant(t){const a=[t%2==0,t<2],s=ar(this.min),l=ar(this.max);for(let p=0;p=0&&f++;if(0===f)return 0;f!==a.length&&(s=!1)}if(s)return 2;for(let l=0;l<3;l++){let p=Number.MAX_VALUE,f=-Number.MAX_VALUE;for(let g=0;gthis.max[l]-this.min[l])return 0}return 1}}class qn{constructor(t=0,a=0,s=0,l=0){if(isNaN(t)||t<0||isNaN(a)||a<0||isNaN(s)||s<0||isNaN(l)||l<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=t,this.bottom=a,this.left=s,this.right=l}interpolate(t,a,s){return null!=a.top&&null!=t.top&&(this.top=c.interpolate.number(t.top,a.top,s)),null!=a.bottom&&null!=t.bottom&&(this.bottom=c.interpolate.number(t.bottom,a.bottom,s)),null!=a.left&&null!=t.left&&(this.left=c.interpolate.number(t.left,a.left,s)),null!=a.right&&null!=t.right&&(this.right=c.interpolate.number(t.right,a.right,s)),this}getCenter(t,a){const s=c.clamp((this.left+t-this.right)/2,0,t),l=c.clamp((this.top+a-this.bottom)/2,0,a);return new c.Point(s,l)}equals(t){return this.top===t.top&&this.bottom===t.bottom&&this.left===t.left&&this.right===t.right}clone(){return new qn(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}class Xn{constructor(t,a,s,l,p){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=void 0===p||!!p,this._minZoom=t||0,this._maxZoom=a||22,this._minPitch=s??0,this._maxPitch=l??60,this.setMaxBounds(),this.width=0,this.height=0,this._center=new c.LngLat(0,0),this._elevation=0,this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new qn,this._posMatrixCache={},this._alignedPosMatrixCache={},this._minEleveationForCurrentTile=0}clone(){const t=new Xn(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return t.apply(this),t}apply(t){this.tileSize=t.tileSize,this.latRange=t.latRange,this.width=t.width,this.height=t.height,this._center=t._center,this._elevation=t._elevation,this._minEleveationForCurrentTile=t._minEleveationForCurrentTile,this.zoom=t.zoom,this.angle=t.angle,this._fov=t._fov,this._pitch=t._pitch,this._unmodified=t._unmodified,this._edgeInsets=t._edgeInsets.clone(),this._calcMatrices()}get minZoom(){return this._minZoom}set minZoom(t){this._minZoom!==t&&(this._minZoom=t,this.zoom=Math.max(this.zoom,t))}get maxZoom(){return this._maxZoom}set maxZoom(t){this._maxZoom!==t&&(this._maxZoom=t,this.zoom=Math.min(this.zoom,t))}get minPitch(){return this._minPitch}set minPitch(t){this._minPitch!==t&&(this._minPitch=t,this.pitch=Math.max(this.pitch,t))}get maxPitch(){return this._maxPitch}set maxPitch(t){this._maxPitch!==t&&(this._maxPitch=t,this.pitch=Math.min(this.pitch,t))}get renderWorldCopies(){return this._renderWorldCopies}set renderWorldCopies(t){void 0===t?t=!0:null===t&&(t=!1),this._renderWorldCopies=t}get worldSize(){return this.tileSize*this.scale}get centerOffset(){return this.centerPoint._sub(this.size._div(2))}get size(){return new c.Point(this.width,this.height)}get bearing(){return-this.angle/Math.PI*180}set bearing(t){const a=-c.wrap(t,-180,180)*Math.PI/180;var s;this.angle!==a&&(this._unmodified=!1,this.angle=a,this._calcMatrices(),this.rotationMatrix=(s=new c.ARRAY_TYPE(4),c.ARRAY_TYPE!=Float32Array&&(s[1]=0,s[2]=0),s[0]=1,s[3]=1,s),function(s,l,p){var f=l[0],g=l[1],_=l[2],b=l[3],w=Math.sin(p),E=Math.cos(p);s[0]=f*E+_*w,s[1]=g*E+b*w,s[2]=f*-w+_*E,s[3]=g*-w+b*E}(this.rotationMatrix,this.rotationMatrix,this.angle))}get pitch(){return this._pitch/Math.PI*180}set pitch(t){const a=c.clamp(t,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==a&&(this._unmodified=!1,this._pitch=a,this._calcMatrices())}get fov(){return this._fov/Math.PI*180}set fov(t){t=Math.max(.01,Math.min(60,t)),this._fov!==t&&(this._unmodified=!1,this._fov=t/180*Math.PI,this._calcMatrices())}get zoom(){return this._zoom}set zoom(t){const a=Math.min(Math.max(t,this.minZoom),this.maxZoom);this._zoom!==a&&(this._unmodified=!1,this._zoom=a,this.tileZoom=Math.max(0,Math.floor(a)),this.scale=this.zoomScale(a),this._constrain(),this._calcMatrices())}get center(){return this._center}set center(t){t.lat===this._center.lat&&t.lng===this._center.lng||(this._unmodified=!1,this._center=t,this._constrain(),this._calcMatrices())}get elevation(){return this._elevation}set elevation(t){t!==this._elevation&&(this._elevation=t,this._constrain(),this._calcMatrices())}get padding(){return this._edgeInsets.toJSON()}set padding(t){this._edgeInsets.equals(t)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,t,1),this._calcMatrices())}get centerPoint(){return this._edgeInsets.getCenter(this.width,this.height)}isPaddingEqual(t){return this._edgeInsets.equals(t)}interpolatePadding(t,a,s){this._unmodified=!1,this._edgeInsets.interpolate(t,a,s),this._constrain(),this._calcMatrices()}coveringZoomLevel(t){const a=(t.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/t.tileSize));return Math.max(0,a)}getVisibleUnwrappedCoordinates(t){const a=[new c.UnwrappedTileID(0,t)];if(this._renderWorldCopies){const s=this.pointCoordinate(new c.Point(0,0)),l=this.pointCoordinate(new c.Point(this.width,0)),p=this.pointCoordinate(new c.Point(this.width,this.height)),f=this.pointCoordinate(new c.Point(0,this.height)),g=Math.floor(Math.min(s.x,l.x,p.x,f.x)),_=Math.floor(Math.max(s.x,l.x,p.x,f.x)),b=1;for(let w=g-b;w<=_+b;w++)0!==w&&a.push(new c.UnwrappedTileID(w,t))}return a}coveringTiles(t){var a,s;let l=this.coveringZoomLevel(t);const p=l;if(void 0!==t.minzoom&&lt.maxzoom&&(l=t.maxzoom);const f=this.pointCoordinate(this.getCameraPoint()),g=c.MercatorCoordinate.fromLngLat(this.center),_=Math.pow(2,l),b=[_*f.x,_*f.y,0],w=[_*g.x,_*g.y,0],E=jn.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,l);let P=t.minzoom||0;!t.terrain&&this.pitch<=60&&this._edgeInsets.top<.1&&(P=l);const V=t.terrain?2/Math.min(this.tileSize,t.tileSize)*this.tileSize:3,U=j=>({aabb:new dn([j*_,0,0],[(j+1)*_,_,0]),zoom:0,x:0,y:0,wrap:j,fullyVisible:!1}),Z=[],O=[],W=l,te=t.reparseOverscaled?p:l;if(this._renderWorldCopies)for(let j=1;j<=3;j++)Z.push(U(-j)),Z.push(U(j));for(Z.push(U(0));Z.length>0;){const j=Z.pop(),K=j.x,ne=j.y;let se=j.fullyVisible;if(!se){const ze=j.aabb.intersects(E);if(0===ze)continue;se=2===ze}const oe=t.terrain?b:w,he=j.aabb.distanceX(oe),ce=j.aabb.distanceY(oe),pe=Math.max(Math.abs(he),Math.abs(ce));if(j.zoom===W||pe>V+(1<=P){const ze=W-j.zoom,at=b[0]-.5-(K<>1),Ne=j.zoom+1;let Ae=j.aabb.quadrant(ze);if(t.terrain){const Mt=new c.OverscaledTileID(Ne,j.wrap,Ne,at,ye),et=t.terrain.getMinMaxElevation(Mt),Ye=null!==(a=et.minElevation)&&void 0!==a?a:this.elevation,$e=null!==(s=et.maxElevation)&&void 0!==s?s:this.elevation;Ae=new dn([Ae.min[0],Ae.min[1],Ye],[Ae.max[0],Ae.max[1],$e])}Z.push({aabb:Ae,zoom:Ne,x:at,y:ye,wrap:j.wrap,fullyVisible:se})}}return O.sort((j,K)=>j.distanceSq-K.distanceSq).map(j=>j.tileID)}resize(t,a){this.width=t,this.height=a,this.pixelsToGLUnits=[2/t,-2/a],this._constrain(),this._calcMatrices()}get unmodified(){return this._unmodified}zoomScale(t){return Math.pow(2,t)}scaleZoom(t){return Math.log(t)/Math.LN2}project(t){const a=c.clamp(t.lat,-this.maxValidLatitude,this.maxValidLatitude);return new c.Point(c.mercatorXfromLng(t.lng)*this.worldSize,c.mercatorYfromLat(a)*this.worldSize)}unproject(t){return new c.MercatorCoordinate(t.x/this.worldSize,t.y/this.worldSize).toLngLat()}get point(){return this.project(this.center)}getCameraPosition(){return{lngLat:this.pointLocation(this.getCameraPoint()),altitude:Math.cos(this._pitch)*this.cameraToCenterDistance/this._pixelPerMeter+this.elevation}}recalculateZoom(t){const a=this.pointLocation(this.centerPoint,t),s=t.getElevationForLngLatZoom(a,this.tileZoom);if(!(this.elevation-s))return;const l=this.getCameraPosition(),p=c.MercatorCoordinate.fromLngLat(l.lngLat,l.altitude),f=c.MercatorCoordinate.fromLngLat(a,s),g=p.x-f.x,_=p.y-f.y,b=p.z-f.z,w=Math.sqrt(g*g+_*_+b*b),E=this.scaleZoom(this.cameraToCenterDistance/w/this.tileSize);this._elevation=s,this._center=a,this.zoom=E}setLocationAtPoint(t,a){const s=this.pointCoordinate(a),l=this.pointCoordinate(this.centerPoint),p=this.locationCoordinate(t),f=new c.MercatorCoordinate(p.x-(s.x-l.x),p.y-(s.y-l.y));this.center=this.coordinateLocation(f),this._renderWorldCopies&&(this.center=this.center.wrap())}locationPoint(t,a){return a?this.coordinatePoint(this.locationCoordinate(t),a.getElevationForLngLatZoom(t,this.tileZoom),this.pixelMatrix3D):this.coordinatePoint(this.locationCoordinate(t))}pointLocation(t,a){return this.coordinateLocation(this.pointCoordinate(t,a))}locationCoordinate(t){return c.MercatorCoordinate.fromLngLat(t)}coordinateLocation(t){return t&&t.toLngLat()}pointCoordinate(t,a){if(a){const P=a.pointCoordinate(t);if(null!=P)return P}const s=[t.x,t.y,0,1],l=[t.x,t.y,1,1];c.transformMat4(s,s,this.pixelMatrixInverse),c.transformMat4(l,l,this.pixelMatrixInverse);const p=s[3],f=l[3],g=s[1]/p,_=l[1]/f,b=s[2]/p,w=l[2]/f,E=b===w?0:(0-b)/(w-b);return new c.MercatorCoordinate(c.interpolate.number(s[0]/p,l[0]/f,E)/this.worldSize,c.interpolate.number(g,_,E)/this.worldSize)}coordinatePoint(t,a=0,s=this.pixelMatrix){const l=[t.x*this.worldSize,t.y*this.worldSize,a,1];return c.transformMat4(l,l,s),new c.Point(l[0]/l[3],l[1]/l[3])}getBounds(){const t=Math.max(0,this.height/2-this.getHorizon());return(new Ue).extend(this.pointLocation(new c.Point(0,t))).extend(this.pointLocation(new c.Point(this.width,t))).extend(this.pointLocation(new c.Point(this.width,this.height))).extend(this.pointLocation(new c.Point(0,this.height)))}getMaxBounds(){return this.latRange&&2===this.latRange.length&&this.lngRange&&2===this.lngRange.length?new Ue([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null}getHorizon(){return Math.tan(Math.PI/2-this._pitch)*this.cameraToCenterDistance*.85}setMaxBounds(t){t?(this.lngRange=[t.getWest(),t.getEast()],this.latRange=[t.getSouth(),t.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])}calculatePosMatrix(t,a=!1){const s=t.key,l=a?this._alignedPosMatrixCache:this._posMatrixCache;if(l[s])return l[s];const p=t.canonical,f=this.worldSize/this.zoomScale(p.z),g=p.x+Math.pow(2,p.z)*t.wrap,_=c.identity(new Float64Array(16));return c.translate(_,_,[g*f,p.y*f,0]),c.scale(_,_,[f/c.EXTENT,f/c.EXTENT,1]),c.multiply(_,a?this.alignedProjMatrix:this.projMatrix,_),l[s]=new Float32Array(_),l[s]}customLayerMatrix(){return this.mercatorMatrix.slice()}_constrain(){if(!this.center||!this.width||!this.height||this._constraining)return;this._constraining=!0;let t,a,s,l,p=-90,f=90,g=-180,_=180;const b=this.size,w=this._unmodified;if(this.latRange){const V=this.latRange;p=c.mercatorYfromLat(V[1])*this.worldSize,f=c.mercatorYfromLat(V[0])*this.worldSize,t=f-pf&&(l=f-U)}if(this.lngRange){const V=(g+_)/2,U=c.wrap(E.x,V-this.worldSize/2,V+this.worldSize/2),Z=b.x/2;U-Z_&&(s=_-Z)}void 0===s&&void 0===l||(this.center=this.unproject(new c.Point(void 0!==s?s:E.x,void 0!==l?l:E.y)).wrap()),this._unmodified=w,this._constraining=!1}_calcMatrices(){if(!this.height)return;const t=this.centerOffset,a=this.point.x,s=this.point.y;this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height,this._pixelPerMeter=c.mercatorZfromAltitude(1,this.center.lat)*this.worldSize;let l=c.identity(new Float64Array(16));c.scale(l,l,[this.width/2,-this.height/2,1]),c.translate(l,l,[1,-1,0]),this.labelPlaneMatrix=l,l=c.identity(new Float64Array(16)),c.scale(l,l,[1,-1,1]),c.translate(l,l,[-1,-1,0]),c.scale(l,l,[2/this.width,2/this.height,1]),this.glCoordMatrix=l;const p=this.cameraToCenterDistance+this._elevation*this._pixelPerMeter/Math.cos(this._pitch),f=Math.min(this.elevation,this._minEleveationForCurrentTile),g=p-f*this._pixelPerMeter/Math.cos(this._pitch),_=f<0?g:p,b=Math.PI/2+this._pitch,w=this._fov*(.5+t.y/this.height),E=Math.sin(w)*_/Math.sin(c.clamp(Math.PI-b-w,.01,Math.PI-.01)),P=this.getHorizon(),V=2*Math.atan(P/this.cameraToCenterDistance)*(.5+t.y/(2*P)),U=Math.sin(V)*_/Math.sin(c.clamp(Math.PI-b-V,.01,Math.PI-.01)),Z=Math.min(E,U),O=1.01*(Math.cos(Math.PI/2-this._pitch)*Z+_),W=this.height/50;l=new Float64Array(16),c.perspective(l,this._fov,this.width/this.height,W,O),l[8]=2*-t.x/this.width,l[9]=2*t.y/this.height,c.scale(l,l,[1,-1,1]),c.translate(l,l,[0,0,-this.cameraToCenterDistance]),c.rotateX(l,l,this._pitch),c.rotateZ(l,l,this.angle),c.translate(l,l,[-a,-s,0]),this.mercatorMatrix=c.scale([],l,[this.worldSize,this.worldSize,this.worldSize]),c.scale(l,l,[1,1,this._pixelPerMeter]),this.pixelMatrix=c.multiply(new Float64Array(16),this.labelPlaneMatrix,l),c.translate(l,l,[0,0,-this.elevation]),this.projMatrix=l,this.invProjMatrix=c.invert([],l),this.pixelMatrix3D=c.multiply(new Float64Array(16),this.labelPlaneMatrix,l);const te=this.width%2/2,j=this.height%2/2,K=Math.cos(this.angle),ne=Math.sin(this.angle),se=a-Math.round(a)+K*te+ne*j,oe=s-Math.round(s)+K*j+ne*te,he=new Float64Array(l);if(c.translate(he,he,[se>.5?se-1:se,oe>.5?oe-1:oe,0]),this.alignedProjMatrix=he,l=c.invert(new Float64Array(16),this.pixelMatrix),!l)throw new Error("failed to invert matrix");this.pixelMatrixInverse=l,this._posMatrixCache={},this._alignedPosMatrixCache={}}maxPitchScaleFactor(){if(!this.pixelMatrixInverse)return 1;const t=this.pointCoordinate(new c.Point(0,0)),a=[t.x*this.worldSize,t.y*this.worldSize,0,1];return c.transformMat4(a,a,this.pixelMatrix)[3]/this.cameraToCenterDistance}getCameraPoint(){const t=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new c.Point(0,t))}getCameraQueryGeometry(t){const a=this.getCameraPoint();if(1===t.length)return[t[0],a];{let s=a.x,l=a.y,p=a.x,f=a.y;for(const g of t)s=Math.min(s,g.x),l=Math.min(l,g.y),p=Math.max(p,g.x),f=Math.max(f,g.y);return[new c.Point(s,l),new c.Point(p,l),new c.Point(p,f),new c.Point(s,f),new c.Point(s,l)]}}}class va{constructor(t){this._getCurrentHash=()=>{const a=window.location.hash.replace("#","");if(this._hashName){let s;return a.split("&").map(l=>l.split("=")).forEach(l=>{l[0]===this._hashName&&(s=l)}),(s&&s[1]||"").split("/")}return a.split("/")},this._onHashChange=()=>{const a=this._getCurrentHash();if(a.length>=3&&!a.some(s=>isNaN(s))){const s=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(a[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+a[2],+a[1]],zoom:+a[0],bearing:s,pitch:+(a[4]||0)}),!0}return!1},this._updateHashUnthrottled=()=>{const a=window.location.href.replace(/(#.+)?$/,this.getHashString());try{window.history.replaceState(window.history.state,null,a)}catch{}},this._updateHash=function(a,s){let l=!1,p=null;const f=()=>{p=null,l&&(a(),p=setTimeout(f,300),l=!1)};return()=>(l=!0,p||f(),p)}(this._updateHashUnthrottled),this._hashName=t&&encodeURIComponent(t)}addTo(t){return this._map=t,addEventListener("hashchange",this._onHashChange,!1),this._map.on("moveend",this._updateHash),this}remove(){return removeEventListener("hashchange",this._onHashChange,!1),this._map.off("moveend",this._updateHash),clearTimeout(this._updateHash()),delete this._map,this}getHashString(t){const a=this._map.getCenter(),s=Math.round(100*this._map.getZoom())/100,l=Math.ceil((s*Math.LN2+Math.log(512/360/.5))/Math.LN10),p=Math.pow(10,l),f=Math.round(a.lng*p)/p,g=Math.round(a.lat*p)/p,_=this._map.getBearing(),b=this._map.getPitch();let w="";if(w+=t?`/${f}/${g}/${s}`:`${s}/${g}/${f}`,(_||b)&&(w+="/"+Math.round(10*_)/10),b&&(w+=`/${Math.round(b)}`),this._hashName){const E=this._hashName;let P=!1;const V=window.location.hash.slice(1).split("&").map(U=>{const Z=U.split("=")[0];return Z===E?(P=!0,`${Z}=${w}`):U}).filter(U=>U);return P||V.push(`${E}=${w}`),`#${V.join("&")}`}return`#${w}`}}const mn={linearity:.3,easing:c.bezier(0,0,.3,1)},Po=c.extend({deceleration:2500,maxSpeed:1400},mn),ko=c.extend({deceleration:20,maxSpeed:1400},mn),Lo=c.extend({deceleration:1e3,maxSpeed:360},mn),Do=c.extend({deceleration:1e3,maxSpeed:90},mn);class Ro{constructor(t){this._map=t,this.clear()}clear(){this._inertiaBuffer=[]}record(t){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:c.browser.now(),settings:t})}_drainInertiaBuffer(){const t=this._inertiaBuffer,a=c.browser.now();for(;t.length>0&&a-t[0].time>160;)t.shift()}_onMoveEnd(t){if(this._drainInertiaBuffer(),this._inertiaBuffer.length<2)return;const a={zoom:0,bearing:0,pitch:0,pan:new c.Point(0,0),pinchAround:void 0,around:void 0};for(const{settings:p}of this._inertiaBuffer)a.zoom+=p.zoomDelta||0,a.bearing+=p.bearingDelta||0,a.pitch+=p.pitchDelta||0,p.panDelta&&a.pan._add(p.panDelta),p.around&&(a.around=p.around),p.pinchAround&&(a.pinchAround=p.pinchAround);const s=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,l={};if(a.pan.mag()){const p=fn(a.pan.mag(),s,c.extend({},Po,t||{}));l.offset=a.pan.mult(p.amount/a.pan.mag()),l.center=this._map.transform.center,ra(l,p)}if(a.zoom){const p=fn(a.zoom,s,ko);l.zoom=this._map.transform.zoom+p.amount,ra(l,p)}if(a.bearing){const p=fn(a.bearing,s,Lo);l.bearing=this._map.transform.bearing+c.clamp(p.amount,-179,179),ra(l,p)}if(a.pitch){const p=fn(a.pitch,s,Do);l.pitch=this._map.transform.pitch+p.amount,ra(l,p)}if(l.zoom||l.bearing){const p=void 0===a.pinchAround?a.around:a.pinchAround;l.around=p?this._map.unproject(p):this._map.getCenter()}return this.clear(),c.extend(l,{noMoveStart:!0})}}function ra(h,t){(!h.duration||h.durationa.unproject(_)),g=p.reduce((_,b,w,E)=>_.add(b.div(E.length)),new c.Point(0,0));super(t,{points:p,point:g,lngLats:f,lngLat:a.unproject(g),originalEvent:s}),this._defaultPrevented=!1}}class Bo extends c.Event{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(t,a,s){super(t,{originalEvent:s}),this._defaultPrevented=!1}}class Zr{constructor(t,a){this._map=t,this._clickTolerance=a.clickTolerance}reset(){delete this._mousedownPos}wheel(t){return this._firePreventable(new Bo(t.type,this._map,t))}mousedown(t,a){return this._mousedownPos=a,this._firePreventable(new ei(t.type,this._map,t))}mouseup(t){this._map.fire(new ei(t.type,this._map,t))}click(t,a){this._mousedownPos&&this._mousedownPos.dist(a)>=this._clickTolerance||this._map.fire(new ei(t.type,this._map,t))}dblclick(t){return this._firePreventable(new ei(t.type,this._map,t))}mouseover(t){this._map.fire(new ei(t.type,this._map,t))}mouseout(t){this._map.fire(new ei(t.type,this._map,t))}touchstart(t){return this._firePreventable(new wr(t.type,this._map,t))}touchmove(t){this._map.fire(new wr(t.type,this._map,t))}touchend(t){this._map.fire(new wr(t.type,this._map,t))}touchcancel(t){this._map.fire(new wr(t.type,this._map,t))}_firePreventable(t){if(this._map.fire(t),t.defaultPrevented)return{}}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class gn{constructor(t){this._map=t}reset(){this._delayContextMenu=!1,this._ignoreContextMenu=!0,delete this._contextMenuEvent}mousemove(t){this._map.fire(new ei(t.type,this._map,t))}mousedown(){this._delayContextMenu=!0,this._ignoreContextMenu=!1}mouseup(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new ei("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)}contextmenu(t){this._delayContextMenu?this._contextMenuEvent=t:this._ignoreContextMenu||this._map.fire(new ei(t.type,this._map,t)),this._map.listens("contextmenu")&&t.preventDefault()}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class yn{constructor(t){this._map=t}get transform(){return this._map._requestedCameraState||this._map.transform}get center(){return{lng:this.transform.center.lng,lat:this.transform.center.lat}}get zoom(){return this.transform.zoom}get pitch(){return this.transform.pitch}get bearing(){return this.transform.bearing}unproject(t){return this.transform.pointLocation(c.Point.convert(t),this._map.terrain)}}class kl{constructor(t,a){this._map=t,this._tr=new yn(t),this._el=t.getCanvasContainer(),this._container=t.getContainer(),this._clickTolerance=a.clickTolerance||1}isEnabled(){return!!this._enabled}isActive(){return!!this._active}enable(){this.isEnabled()||(this._enabled=!0)}disable(){this.isEnabled()&&(this._enabled=!1)}mousedown(t,a){this.isEnabled()&&t.shiftKey&&0===t.button&&(re.disableDrag(),this._startPos=this._lastPos=a,this._active=!0)}mousemoveWindow(t,a){if(!this._active)return;const s=a;if(this._lastPos.equals(s)||!this._box&&s.dist(this._startPos)p.fitScreenCoordinates(s,l,this._tr.bearing,{linear:!0})};this._fireEvent("boxzoomcancel",t)}keydown(t){this._active&&27===t.keyCode&&(this.reset(),this._fireEvent("boxzoomcancel",t))}reset(){this._active=!1,this._container.classList.remove("maplibregl-crosshair"),this._box&&(re.remove(this._box),this._box=null),re.enableDrag(),delete this._startPos,delete this._lastPos}_fireEvent(t,a){return this._map.fire(new c.Event(t,{originalEvent:a}))}}function zs(h,t){if(h.length!==t.length)throw new Error(`The number of touches and points are not equal - touches ${h.length}, points ${t.length}`);const a={};for(let s=0;sthis.numTouches)&&(this.aborted=!0),this.aborted||(void 0===this.startTime&&(this.startTime=t.timeStamp),s.length===this.numTouches&&(this.centroid=function(l){const p=new c.Point(0,0);for(const f of l)p._add(f);return p.div(l.length)}(a),this.touches=zs(s,a)))}touchmove(t,a,s){if(this.aborted||!this.centroid)return;const l=zs(s,a);for(const p in this.touches){const f=l[p];(!f||f.dist(this.touches[p])>30)&&(this.aborted=!0)}}touchend(t,a,s){if((!this.centroid||t.timeStamp-this.startTime>500)&&(this.aborted=!0),0===s.length){const l=!this.aborted&&this.centroid;if(this.reset(),l)return l}}}class ba{constructor(t){this.singleTap=new Fo(t),this.numTaps=t.numTaps,this.reset()}reset(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()}touchstart(t,a,s){this.singleTap.touchstart(t,a,s)}touchmove(t,a,s){this.singleTap.touchmove(t,a,s)}touchend(t,a,s){const l=this.singleTap.touchend(t,a,s);if(l){const p=t.timeStamp-this.lastTime<500,f=!this.lastTap||this.lastTap.dist(l)<30;if(p&&f||this.reset(),this.count++,this.lastTime=t.timeStamp,this.lastTap=l,this.count===this.numTaps)return this.reset(),l}}}class aa{constructor(t){this._tr=new yn(t),this._zoomIn=new ba({numTouches:1,numTaps:2}),this._zoomOut=new ba({numTouches:2,numTaps:1}),this.reset()}reset(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()}touchstart(t,a,s){this._zoomIn.touchstart(t,a,s),this._zoomOut.touchstart(t,a,s)}touchmove(t,a,s){this._zoomIn.touchmove(t,a,s),this._zoomOut.touchmove(t,a,s)}touchend(t,a,s){const l=this._zoomIn.touchend(t,a,s),p=this._zoomOut.touchend(t,a,s),f=this._tr;return l?(this._active=!0,t.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:g=>g.easeTo({duration:300,zoom:f.zoom+1,around:f.unproject(l)},{originalEvent:t})}):p?(this._active=!0,t.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:g=>g.easeTo({duration:300,zoom:f.zoom-1,around:f.unproject(p)},{originalEvent:t})}):void 0}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class Ee{constructor(t){this._enabled=!!t.enable,this._moveStateManager=t.moveStateManager,this._clickTolerance=t.clickTolerance||1,this._moveFunction=t.move,this._activateOnStart=!!t.activateOnStart,t.assignEvents(this),this.reset()}reset(t){this._active=!1,this._moved=!1,delete this._lastPoint,this._moveStateManager.endMove(t)}_move(...t){const a=this._moveFunction(...t);if(a.bearingDelta||a.pitchDelta||a.around||a.panDelta)return this._active=!0,a}dragStart(t,a){this.isEnabled()&&!this._lastPoint&&this._moveStateManager.isValidStartEvent(t)&&(this._moveStateManager.startMove(t),this._lastPoint=a.length?a[0]:a,this._activateOnStart&&this._lastPoint&&(this._active=!0))}dragMove(t,a){if(!this.isEnabled())return;const s=this._lastPoint;if(!s)return;if(t.preventDefault(),!this._moveStateManager.isValidMoveEvent(t))return void this.reset(t);const l=a.length?a[0]:a;return!this._moved&&l.dist(s){h.mousedown=h.dragStart,h.mousemoveWindow=h.dragMove,h.mouseup=h.dragEnd,h.contextmenu=function(t){t.preventDefault()}},ve=({enable:h,clickTolerance:t,bearingDegreesPerPixelMoved:a=.8})=>{const s=new wa({checkCorrectEvent:l=>0===re.mouseButton(l)&&l.ctrlKey||2===re.mouseButton(l)});return new Ee({clickTolerance:t,move:(l,p)=>({bearingDelta:(p.x-l.x)*a}),moveStateManager:s,enable:h,assignEvents:Wn})},Hn=({enable:h,clickTolerance:t,pitchDegreesPerPixelMoved:a=-.5})=>{const s=new wa({checkCorrectEvent:l=>0===re.mouseButton(l)&&l.ctrlKey||2===re.mouseButton(l)});return new Ee({clickTolerance:t,move:(l,p)=>({pitchDelta:(p.y-l.y)*a}),moveStateManager:s,enable:h,assignEvents:Wn})};class Ll{constructor(t,a){this._minTouches=t.cooperativeGestures?2:1,this._clickTolerance=t.clickTolerance||1,this._map=a,this.reset()}reset(){this._active=!1,this._touches={},this._sum=new c.Point(0,0),setTimeout(()=>{this._cancelCooperativeMessage=!1},200)}touchstart(t,a,s){return this._calculateTransform(t,a,s)}touchmove(t,a,s){if(this._map._cooperativeGestures&&(2===this._minTouches&&s.length<2&&!this._cancelCooperativeMessage?this._map._onCooperativeGesture(t,!1,s.length):this._cancelCooperativeMessage||(this._cancelCooperativeMessage=!0)),this._active&&!(s.length0&&(this._active=!0);const l=zs(s,a),p=new c.Point(0,0),f=new c.Point(0,0);let g=0;for(const b in l){const w=l[b],E=this._touches[b];E&&(p._add(w),f._add(w.sub(E)),g++,l[b]=w)}if(this._touches=l,gMath.abs(h.x)}class Ls extends Ps{constructor(t){super(),this._map=t}reset(){super.reset(),this._valid=void 0,delete this._firstMove,delete this._lastPoints}touchstart(t,a,s){super.touchstart(t,a,s),this._currentTouchCount=s.length}_start(t){this._lastPoints=t,_n(t[0].sub(t[1]))&&(this._valid=!1)}_move(t,a,s){if(this._map._cooperativeGestures&&this._currentTouchCount<3)return;const l=t[0].sub(this._lastPoints[0]),p=t[1].sub(this._lastPoints[1]);return this._valid=this.gestureBeginsVertically(l,p,s.timeStamp),this._valid?(this._lastPoints=t,this._active=!0,{pitchDelta:(l.y+p.y)/2*-.5}):void 0}gestureBeginsVertically(t,a,s){if(void 0!==this._valid)return this._valid;const l=t.mag()>=2,p=a.mag()>=2;if(!l&&!p)return;if(!l||!p)return void 0===this._firstMove&&(this._firstMove=s),s-this._firstMove<100&&void 0;const f=t.y>0==a.y>0;return _n(t)&&_n(a)&&f}}const Ds={panStep:100,bearingStep:15,pitchStep:10};class Rs{constructor(t){this._tr=new yn(t);const a=Ds;this._panStep=a.panStep,this._bearingStep=a.bearingStep,this._pitchStep=a.pitchStep,this._rotationDisabled=!1}reset(){this._active=!1}keydown(t){if(t.altKey||t.ctrlKey||t.metaKey)return;let a=0,s=0,l=0,p=0,f=0;switch(t.keyCode){case 61:case 107:case 171:case 187:a=1;break;case 189:case 109:case 173:a=-1;break;case 37:t.shiftKey?s=-1:(t.preventDefault(),p=-1);break;case 39:t.shiftKey?s=1:(t.preventDefault(),p=1);break;case 38:t.shiftKey?l=1:(t.preventDefault(),f=-1);break;case 40:t.shiftKey?l=-1:(t.preventDefault(),f=1);break;default:return}return this._rotationDisabled&&(s=0,l=0),{cameraAnimation:g=>{const _=this._tr;g.easeTo({duration:300,easeId:"keyboardHandler",easing:Ki,zoom:a?Math.round(_.zoom)+a*(t.shiftKey?2:1):_.zoom,bearing:_.bearing+s*this._bearingStep,pitch:_.pitch+l*this._pitchStep,offset:[-p*this._panStep,-f*this._panStep],center:_.center},{originalEvent:t})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}disableRotation(){this._rotationDisabled=!0}enableRotation(){this._rotationDisabled=!1}}function Ki(h){return h*(2-h)}const Gr=4.000244140625;class No{constructor(t,a){this._onTimeout=s=>{this._type="wheel",this._delta-=this._lastValue,this._active||this._start(s)},this._map=t,this._tr=new yn(t),this._el=t.getCanvasContainer(),this._triggerRenderFrame=a,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=.0022222222222222222}setZoomRate(t){this._defaultZoomRate=t}setWheelZoomRate(t){this._wheelZoomRate=t}isEnabled(){return!!this._enabled}isActive(){return!!this._active||void 0!==this._finishTimeout}isZooming(){return!!this._zooming}enable(t){this.isEnabled()||(this._enabled=!0,this._aroundCenter=!!t&&"center"===t.around)}disable(){this.isEnabled()&&(this._enabled=!1)}wheel(t){if(!this.isEnabled())return;if(this._map._cooperativeGestures){if(!t[this._map._metaKey])return;t.preventDefault()}let a=t.deltaMode===WheelEvent.DOM_DELTA_LINE?40*t.deltaY:t.deltaY;const s=c.browser.now(),l=s-(this._lastWheelEventTime||0);this._lastWheelEventTime=s,0!==a&&a%Gr==0?this._type="wheel":0!==a&&Math.abs(a)<4?this._type="trackpad":l>400?(this._type=null,this._lastValue=a,this._timeout=setTimeout(this._onTimeout,40,t)):this._type||(this._type=Math.abs(l*a)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,a+=this._lastValue)),t.shiftKey&&a&&(a/=4),this._type&&(this._lastWheelEvent=t,this._delta-=a,this._active||this._start(t)),t.preventDefault()}_start(t){if(!this._delta)return;this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);const a=re.mousePos(this._el,t),s=this._tr;this._around=c.LngLat.convert(this._aroundCenter?s.center:s.unproject(a)),this._aroundPoint=s.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._triggerRenderFrame())}renderFrame(){if(!this._frameId||(this._frameId=null,!this.isActive()))return;const t=this._tr.transform;if(0!==this._delta){const g="wheel"===this._type&&Math.abs(this._delta)>Gr?this._wheelZoomRate:this._defaultZoomRate;let _=2/(1+Math.exp(-Math.abs(this._delta*g)));this._delta<0&&0!==_&&(_=1/_);const b="number"==typeof this._targetZoom?t.zoomScale(this._targetZoom):t.scale;this._targetZoom=Math.min(t.maxZoom,Math.max(t.minZoom,t.scaleZoom(b*_))),"wheel"===this._type&&(this._startZoom=t.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}const a="number"==typeof this._targetZoom?this._targetZoom:t.zoom,s=this._startZoom,l=this._easing;let p,f=!1;if("wheel"===this._type&&s&&l){const g=Math.min((c.browser.now()-this._lastWheelEventTime)/200,1),_=l(g);p=c.interpolate.number(s,a,_),g<1?this._frameId||(this._frameId=!0):f=!0}else p=a,f=!0;return this._active=!0,f&&(this._active=!1,this._finishTimeout=setTimeout(()=>{this._zooming=!1,this._triggerRenderFrame(),delete this._targetZoom,delete this._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!f,zoomDelta:p-t.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}_smoothOutEasing(t){let a=c.defaultEasing;if(this._prevEase){const s=this._prevEase,l=(c.browser.now()-s.start)/s.duration,p=s.easing(l+.01)-s.easing(l),f=.27/Math.sqrt(p*p+1e-4)*.01,g=Math.sqrt(.0729-f*f);a=c.bezier(f,g,.25,1)}return this._prevEase={start:c.browser.now(),duration:t,easing:a},a}reset(){this._active=!1}}class Bs{constructor(t,a){this._clickZoom=t,this._tapZoom=a}enable(){this._clickZoom.enable(),this._tapZoom.enable()}disable(){this._clickZoom.disable(),this._tapZoom.disable()}isEnabled(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()}isActive(){return this._clickZoom.isActive()||this._tapZoom.isActive()}}class Fs{constructor(t){this._tr=new yn(t),this.reset()}reset(){this._active=!1}dblclick(t,a){return t.preventDefault(),{cameraAnimation:s=>{s.easeTo({duration:300,zoom:this._tr.zoom+(t.shiftKey?-1:1),around:this._tr.unproject(a)},{originalEvent:t})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class Os{constructor(){this._tap=new ba({numTouches:1,numTaps:1}),this.reset()}reset(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,delete this._tapPoint,this._tap.reset()}touchstart(t,a,s){if(!this._swipePoint)if(this._tapTime){const l=a[0],p=t.timeStamp-this._tapTime<500,f=this._tapPoint.dist(l)<30;p&&f?s.length>0&&(this._swipePoint=l,this._swipeTouch=s[0].identifier):this.reset()}else this._tap.touchstart(t,a,s)}touchmove(t,a,s){if(this._tapTime){if(this._swipePoint){if(s[0].identifier!==this._swipeTouch)return;const l=a[0],p=l.y-this._swipePoint.y;return this._swipePoint=l,t.preventDefault(),this._active=!0,{zoomDelta:p/128}}}else this._tap.touchmove(t,a,s)}touchend(t,a,s){if(this._tapTime)this._swipePoint&&0===s.length&&this.reset();else{const l=this._tap.touchend(t,a,s);l&&(this._tapTime=t.timeStamp,this._tapPoint=l)}}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class $o{constructor(t,a,s){this._el=t,this._mousePan=a,this._touchPan=s}enable(t){this._inertiaOptions=t||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("maplibregl-touch-drag-pan")}disable(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("maplibregl-touch-drag-pan")}isEnabled(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()}isActive(){return this._mousePan.isActive()||this._touchPan.isActive()}}class Sr{constructor(t,a,s){this._pitchWithRotate=t.pitchWithRotate,this._mouseRotate=a,this._mousePitch=s}enable(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()}disable(){this._mouseRotate.disable(),this._mousePitch.disable()}isEnabled(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())}isActive(){return this._mouseRotate.isActive()||this._mousePitch.isActive()}}class Dt{constructor(t,a,s,l){this._el=t,this._touchZoom=a,this._touchRotate=s,this._tapDragZoom=l,this._rotationDisabled=!1,this._enabled=!0}enable(t){this._touchZoom.enable(t),this._rotationDisabled||this._touchRotate.enable(t),this._tapDragZoom.enable(),this._el.classList.add("maplibregl-touch-zoom-rotate")}disable(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("maplibregl-touch-zoom-rotate")}isEnabled(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()}isActive(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()}disableRotation(){this._rotationDisabled=!0,this._touchRotate.disable()}enableRotation(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()}}const Sa=h=>h.zoom||h.drag||h.pitch||h.rotate;class Us extends c.Event{}function Kn(h){return h.panDelta&&h.panDelta.mag()||h.zoomDelta||h.bearingDelta||h.pitchDelta}class Zo{constructor(t,a){this.handleWindowEvent=l=>{this.handleEvent(l,`${l.type}Window`)},this.handleEvent=(l,p)=>{if("blur"===l.type)return void this.stop(!0);this._updatingCamera=!0;const f="renderFrame"===l.type?void 0:l,g={needsRenderFrame:!1},_={},b={},w=l.touches,E=w?this._getMapTouches(w):void 0,P=E?re.touchPos(this._el,E):re.mousePos(this._el,l);for(const{handlerName:Z,handler:O,allowed:W}of this._handlers){if(!O.isEnabled())continue;let te;this._blockedByActive(b,W,Z)?O.reset():O[p||l.type]&&(te=O[p||l.type](l,P,E),this.mergeHandlerResult(g,_,te,Z,f),te&&te.needsRenderFrame&&this._triggerRenderFrame()),(te||O.isActive())&&(b[Z]=O)}const V={};for(const Z in this._previousActiveHandlers)b[Z]||(V[Z]=f);this._previousActiveHandlers=b,(Object.keys(V).length||Kn(g))&&(this._changes.push([g,_,V]),this._triggerRenderFrame()),(Object.keys(b).length||Kn(g))&&this._map._stop(!0),this._updatingCamera=!1;const{cameraAnimation:U}=g;U&&(this._inertia.clear(),this._fireEvents({},{},!0),this._changes=[],U(this._map))},this._map=t,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new Ro(t),this._bearingSnap=a.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(a);const s=this._el;this._listeners=[[s,"touchstart",{passive:!0}],[s,"touchmove",{passive:!1}],[s,"touchend",void 0],[s,"touchcancel",void 0],[s,"mousedown",void 0],[s,"mousemove",void 0],[s,"mouseup",void 0],[document,"mousemove",{capture:!0}],[document,"mouseup",void 0],[s,"mouseover",void 0],[s,"mouseout",void 0],[s,"dblclick",void 0],[s,"click",void 0],[s,"keydown",{capture:!1}],[s,"keyup",void 0],[s,"wheel",{passive:!1}],[s,"contextmenu",void 0],[window,"blur",void 0]];for(const[l,p,f]of this._listeners)re.addEventListener(l,p,l===document?this.handleWindowEvent:this.handleEvent,f)}destroy(){for(const[t,a,s]of this._listeners)re.removeEventListener(t,a,t===document?this.handleWindowEvent:this.handleEvent,s)}_addDefaultHandlers(t){const a=this._map,s=a.getCanvasContainer();this._add("mapEvent",new Zr(a,t));const l=a.boxZoom=new kl(a,t);this._add("boxZoom",l),t.interactive&&t.boxZoom&&l.enable();const p=new aa(a),f=new Fs(a);a.doubleClickZoom=new Bs(f,p),this._add("tapZoom",p),this._add("clickZoom",f),t.interactive&&t.doubleClickZoom&&a.doubleClickZoom.enable();const g=new Os;this._add("tapDragZoom",g);const _=a.touchPitch=new Ls(a);this._add("touchPitch",_),t.interactive&&t.touchPitch&&a.touchPitch.enable(t.touchPitch);const b=ve(t),w=Hn(t);a.dragRotate=new Sr(t,b,w),this._add("mouseRotate",b,["mousePitch"]),this._add("mousePitch",w,["mouseRotate"]),t.interactive&&t.dragRotate&&a.dragRotate.enable();const E=(({enable:W,clickTolerance:te})=>{const j=new wa({checkCorrectEvent:K=>0===re.mouseButton(K)&&!K.ctrlKey});return new Ee({clickTolerance:te,move:(K,ne)=>({around:ne,panDelta:ne.sub(K)}),activateOnStart:!0,moveStateManager:j,enable:W,assignEvents:Wn})})(t),P=new Ll(t,a);a.dragPan=new $o(s,E,P),this._add("mousePan",E),this._add("touchPan",P,["touchZoom","touchRotate"]),t.interactive&&t.dragPan&&a.dragPan.enable(t.dragPan);const V=new Dl,U=new Uo;a.touchZoomRotate=new Dt(s,U,V,g),this._add("touchRotate",V,["touchPan","touchZoom"]),this._add("touchZoom",U,["touchPan","touchRotate"]),t.interactive&&t.touchZoomRotate&&a.touchZoomRotate.enable(t.touchZoomRotate);const Z=a.scrollZoom=new No(a,()=>this._triggerRenderFrame());this._add("scrollZoom",Z,["mousePan"]),t.interactive&&t.scrollZoom&&a.scrollZoom.enable(t.scrollZoom);const O=a.keyboard=new Rs(a);this._add("keyboard",O),t.interactive&&t.keyboard&&a.keyboard.enable(),this._add("blockableMapEvent",new gn(a))}_add(t,a,s){this._handlers.push({handlerName:t,handler:a,allowed:s}),this._handlersById[t]=a}stop(t){if(!this._updatingCamera){for(const{handler:a}of this._handlers)a.reset();this._inertia.clear(),this._fireEvents({},{},t),this._changes=[]}}isActive(){for(const{handler:t}of this._handlers)if(t.isActive())return!0;return!1}isZooming(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()}isRotating(){return!!this._eventsInProgress.rotate}isMoving(){return Boolean(Sa(this._eventsInProgress))||this.isZooming()}_blockedByActive(t,a,s){for(const l in t)if(l!==s&&(!a||a.indexOf(l)<0))return!0;return!1}_getMapTouches(t){const a=[];for(const s of t)this._el.contains(s.target)&&a.push(s);return a}mergeHandlerResult(t,a,s,l,p){if(!s)return;c.extend(t,s);const f={handlerName:l,originalEvent:s.originalEvent||p};void 0!==s.zoomDelta&&(a.zoom=f),void 0!==s.panDelta&&(a.drag=f),void 0!==s.pitchDelta&&(a.pitch=f),void 0!==s.bearingDelta&&(a.rotate=f)}_applyChanges(){const t={},a={},s={};for(const[l,p,f]of this._changes)l.panDelta&&(t.panDelta=(t.panDelta||new c.Point(0,0))._add(l.panDelta)),l.zoomDelta&&(t.zoomDelta=(t.zoomDelta||0)+l.zoomDelta),l.bearingDelta&&(t.bearingDelta=(t.bearingDelta||0)+l.bearingDelta),l.pitchDelta&&(t.pitchDelta=(t.pitchDelta||0)+l.pitchDelta),void 0!==l.around&&(t.around=l.around),void 0!==l.pinchAround&&(t.pinchAround=l.pinchAround),l.noInertia&&(t.noInertia=l.noInertia),c.extend(a,p),c.extend(s,f);this._updateMapTransform(t,a,s),this._changes=[]}_updateMapTransform(t,a,s){const l=this._map,p=l._getTransformForUpdate(),f=l.terrain;if(!(Kn(t)||f&&this._terrainMovement))return this._fireEvents(a,s,!0);let{panDelta:g,zoomDelta:_,bearingDelta:b,pitchDelta:w,around:E,pinchAround:P}=t;void 0!==P&&(E=P),l._stop(!0),E=E||l.transform.centerPoint;const V=p.pointLocation(g?E.sub(g):E);b&&(p.bearing+=b),w&&(p.pitch+=w),_&&(p.zoom+=_),f?this._terrainMovement||!a.drag&&!a.zoom?a.drag&&this._terrainMovement?p.center=p.pointLocation(p.centerPoint.sub(g)):p.setLocationAtPoint(V,E):(this._terrainMovement=!0,this._map._elevationFreeze=!0,p.setLocationAtPoint(V,E),this._map.once("moveend",()=>{this._map._elevationFreeze=!1,this._terrainMovement=!1,p.recalculateZoom(l.terrain)})):p.setLocationAtPoint(V,E),l._applyUpdatedTransform(p),this._map._update(),t.noInertia||this._inertia.record(t),this._fireEvents(a,s,!0)}_fireEvents(t,a,s){const l=Sa(this._eventsInProgress),p=Sa(t),f={};for(const w in t){const{originalEvent:E}=t[w];this._eventsInProgress[w]||(f[`${w}start`]=E),this._eventsInProgress[w]=t[w]}!l&&p&&this._fireEvent("movestart",p.originalEvent);for(const w in f)this._fireEvent(w,f[w]);p&&this._fireEvent("move",p.originalEvent);for(const w in t){const{originalEvent:E}=t[w];this._fireEvent(w,E)}const g={};let _;for(const w in this._eventsInProgress){const{handlerName:E,originalEvent:P}=this._eventsInProgress[w];this._handlersById[E].isActive()||(delete this._eventsInProgress[w],_=a[E]||P,g[`${w}end`]=_)}for(const w in g)this._fireEvent(w,g[w]);const b=Sa(this._eventsInProgress);if(s&&(l||p)&&!b){this._updatingCamera=!0;const w=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),E=P=>0!==P&&-this._bearingSnap{delete this._frameId,this.handleEvent(new Us("renderFrame",{timeStamp:t})),this._applyChanges()})}_triggerRenderFrame(){void 0===this._frameId&&(this._frameId=this._requestFrame())}}class Go extends c.Evented{constructor(t,a){super(),this._renderFrameCallback=()=>{const s=Math.min((c.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(s)),s<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},this._moving=!1,this._zooming=!1,this.transform=t,this._bearingSnap=a.bearingSnap,this.on("moveend",()=>{delete this._requestedCameraState})}getCenter(){return new c.LngLat(this.transform.center.lng,this.transform.center.lat)}setCenter(t,a){return this.jumpTo({center:t},a)}panBy(t,a,s){return t=c.Point.convert(t).mult(-1),this.panTo(this.transform.center,c.extend({offset:t},a),s)}panTo(t,a,s){return this.easeTo(c.extend({center:t},a),s)}getZoom(){return this.transform.zoom}setZoom(t,a){return this.jumpTo({zoom:t},a),this}zoomTo(t,a,s){return this.easeTo(c.extend({zoom:t},a),s)}zoomIn(t,a){return this.zoomTo(this.getZoom()+1,t,a),this}zoomOut(t,a){return this.zoomTo(this.getZoom()-1,t,a),this}getBearing(){return this.transform.bearing}setBearing(t,a){return this.jumpTo({bearing:t},a),this}getPadding(){return this.transform.padding}setPadding(t,a){return this.jumpTo({padding:t},a),this}rotateTo(t,a,s){return this.easeTo(c.extend({bearing:t},a),s)}resetNorth(t,a){return this.rotateTo(0,c.extend({duration:1e3},t),a),this}resetNorthPitch(t,a){return this.easeTo(c.extend({bearing:0,pitch:0,duration:1e3},t),a),this}snapToNorth(t,a){return Math.abs(this.getBearing()){if(this._zooming&&(s.zoom=c.interpolate.number(l,_,se)),this._rotating&&(s.bearing=c.interpolate.number(p,b,se)),this._pitching&&(s.pitch=c.interpolate.number(f,w,se)),this._padding&&(s.interpolatePadding(g,E,se),V=s.centerPoint.add(P)),this.terrain&&!t.freezeElevation&&this._updateElevation(se),j)s.setLocationAtPoint(j,K);else{const oe=s.zoomScale(s.zoom-l),he=_>l?Math.min(2,te):Math.max(.5,te),ce=Math.pow(he,1-se),pe=s.unproject(O.add(W.mult(se*ce)).mult(oe));s.setLocationAtPoint(s.renderWorldCopies?pe.wrap():pe,V)}this._applyUpdatedTransform(s),this._fireMoveEvents(a)},se=>{this.terrain&&this._finalizeElevation(),this._afterEase(a,se)},t),this}_prepareEase(t,a,s={}){this._moving=!0,a||s.moving||this.fire(new c.Event("movestart",t)),this._zooming&&!s.zooming&&this.fire(new c.Event("zoomstart",t)),this._rotating&&!s.rotating&&this.fire(new c.Event("rotatestart",t)),this._pitching&&!s.pitching&&this.fire(new c.Event("pitchstart",t))}_prepareElevation(t){this._elevationCenter=t,this._elevationStart=this.transform.elevation,this._elevationTarget=this.terrain.getElevationForLngLatZoom(t,this.transform.tileZoom),this._elevationFreeze=!0}_updateElevation(t){this.transform._minEleveationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this._elevationCenter,this.transform.tileZoom);const a=this.terrain.getElevationForLngLatZoom(this._elevationCenter,this.transform.tileZoom);if(t<1&&a!==this._elevationTarget){const s=this._elevationTarget-this._elevationStart;this._elevationStart+=t*(s-(a-(s*t+this._elevationStart))/(1-t)),this._elevationTarget=a}this.transform.elevation=c.interpolate.number(this._elevationStart,this._elevationTarget,t)}_finalizeElevation(){this._elevationFreeze=!1,this.transform.recalculateZoom(this.terrain)}_getTransformForUpdate(){return this.transformCameraUpdate?(this._requestedCameraState||(this._requestedCameraState=this.transform.clone()),this._requestedCameraState):this.transform}_applyUpdatedTransform(t){if(!this.transformCameraUpdate)return;const a=t.clone(),{center:s,zoom:l,pitch:p,bearing:f,elevation:g}=this.transformCameraUpdate(a);s&&(a.center=s),void 0!==l&&(a.zoom=l),void 0!==p&&(a.pitch=p),void 0!==f&&(a.bearing=f),void 0!==g&&(a.elevation=g),this.transform.apply(a)}_fireMoveEvents(t){this.fire(new c.Event("move",t)),this._zooming&&this.fire(new c.Event("zoom",t)),this._rotating&&this.fire(new c.Event("rotate",t)),this._pitching&&this.fire(new c.Event("pitch",t))}_afterEase(t,a){if(this._easeId&&a&&this._easeId===a)return;delete this._easeId;const s=this._zooming,l=this._rotating,p=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,s&&this.fire(new c.Event("zoomend",t)),l&&this.fire(new c.Event("rotateend",t)),p&&this.fire(new c.Event("pitchend",t)),this.fire(new c.Event("moveend",t))}flyTo(t,a){if(!t.essential&&c.browser.prefersReducedMotion){const Ae=c.pick(t,["center","zoom","bearing","pitch","around"]);return this.jumpTo(Ae,a)}this.stop(),t=c.extend({offset:[0,0],speed:1.2,curve:1.42,easing:c.defaultEasing},t);const s=this._getTransformForUpdate(),l=this.getZoom(),p=this.getBearing(),f=this.getPitch(),g=this.getPadding(),_="zoom"in t?c.clamp(+t.zoom,s.minZoom,s.maxZoom):l,b="bearing"in t?this._normalizeBearing(t.bearing,p):p,w="pitch"in t?+t.pitch:f,E="padding"in t?t.padding:s.padding,P=s.zoomScale(_-l),V=c.Point.convert(t.offset);let U=s.centerPoint.add(V);const Z=s.pointLocation(U),O=c.LngLat.convert(t.center||Z);this._normalizeCenter(O);const W=s.project(Z),te=s.project(O).sub(W);let j=t.curve;const K=Math.max(s.width,s.height),ne=K/P,se=te.mag();if("minZoom"in t){const Ae=c.clamp(Math.min(t.minZoom,l,_),s.minZoom,s.maxZoom),Mt=K/s.zoomScale(Ae-l);j=Math.sqrt(Mt/se*2)}const oe=j*j;function he(Ae){const Mt=(ne*ne-K*K+(Ae?-1:1)*oe*oe*se*se)/(2*(Ae?ne:K)*oe*se);return Math.log(Math.sqrt(Mt*Mt+1)-Mt)}function ce(Ae){return(Math.exp(Ae)-Math.exp(-Ae))/2}function pe(Ae){return(Math.exp(Ae)+Math.exp(-Ae))/2}const ze=he(!1);let at=function(Ae){return pe(ze)/pe(ze+j*Ae)},ye=function(Ae){return K*((pe(ze)*(ce(Mt=ze+j*Ae)/pe(Mt))-ce(ze))/oe)/se;var Mt},Ne=(he(!0)-ze)/j;if(Math.abs(se)<1e-6||!isFinite(Ne)){if(Math.abs(K-ne)<1e-6)return this.easeTo(t,a);const Ae=net.maxDuration&&(t.duration=0),this._zooming=!0,this._rotating=p!==b,this._pitching=w!==f,this._padding=!s.isPaddingEqual(E),this._prepareEase(a,!1),this.terrain&&this._prepareElevation(O),this._ease(Ae=>{const Mt=Ae*Ne,et=1/at(Mt);s.zoom=1===Ae?_:l+s.scaleZoom(et),this._rotating&&(s.bearing=c.interpolate.number(p,b,Ae)),this._pitching&&(s.pitch=c.interpolate.number(f,w,Ae)),this._padding&&(s.interpolatePadding(g,E,Ae),U=s.centerPoint.add(V)),this.terrain&&!t.freezeElevation&&this._updateElevation(Ae);const Ye=1===Ae?O:s.unproject(W.add(te.mult(ye(Mt))).mult(et));s.setLocationAtPoint(s.renderWorldCopies?Ye.wrap():Ye,U),this._applyUpdatedTransform(s),this._fireMoveEvents(a)},()=>{this.terrain&&this._finalizeElevation(),this._afterEase(a)},t),this}isEasing(){return!!this._easeFrameId}stop(){return this._stop()}_stop(t,a){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){const s=this._onEaseEnd;delete this._onEaseEnd,s.call(this,a)}if(!t){const s=this.handlers;s&&s.stop(!1)}return this}_ease(t,a,s){!1===s.animate||0===s.duration?(t(1),a()):(this._easeStart=c.browser.now(),this._easeOptions=s,this._onEaseFrame=t,this._onEaseEnd=a,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))}_normalizeBearing(t,a){t=c.wrap(t,-180,180);const s=Math.abs(t-a);return Math.abs(t-360-a)180?-360:s<-180?360:0}queryTerrainElevation(t){return this.terrain?this.terrain.getElevationForLngLatZoom(c.LngLat.convert(t),this.transform.tileZoom)-this.transform.elevation:null}}class jo{constructor(t={}){this._toggleAttribution=()=>{this._container.classList.contains("maplibregl-compact")&&(this._container.classList.contains("maplibregl-compact-show")?(this._container.setAttribute("open",""),this._container.classList.remove("maplibregl-compact-show")):(this._container.classList.add("maplibregl-compact-show"),this._container.removeAttribute("open")))},this._updateData=a=>{!a||"metadata"!==a.sourceDataType&&"visibility"!==a.sourceDataType&&"style"!==a.dataType&&"terrain"!==a.type||this._updateAttributions()},this._updateCompact=()=>{this._map.getCanvasContainer().offsetWidth<=640||this._compact?!1===this._compact?this._container.setAttribute("open",""):this._container.classList.contains("maplibregl-compact")||this._container.classList.contains("maplibregl-attrib-empty")||(this._container.setAttribute("open",""),this._container.classList.add("maplibregl-compact","maplibregl-compact-show")):(this._container.setAttribute("open",""),this._container.classList.contains("maplibregl-compact")&&this._container.classList.remove("maplibregl-compact","maplibregl-compact-show"))},this._updateCompactMinimize=()=>{this._container.classList.contains("maplibregl-compact")&&this._container.classList.contains("maplibregl-compact-show")&&this._container.classList.remove("maplibregl-compact-show")},this.options=t}getDefaultPosition(){return"bottom-right"}onAdd(t){return this._map=t,this._compact=this.options&&this.options.compact,this._container=re.create("details","maplibregl-ctrl maplibregl-ctrl-attrib"),this._compactButton=re.create("summary","maplibregl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=re.create("div","maplibregl-ctrl-attrib-inner",this._container),this._updateAttributions(),this._updateCompact(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("terrain",this._updateData),this._map.on("resize",this._updateCompact),this._map.on("drag",this._updateCompactMinimize),this._container}onRemove(){re.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("terrain",this._updateData),this._map.off("resize",this._updateCompact),this._map.off("drag",this._updateCompactMinimize),this._map=void 0,this._compact=void 0,this._attribHTML=void 0}_setElementTitle(t,a){const s=this._map._getUIString(`AttributionControl.${a}`);t.title=s,t.setAttribute("aria-label",s)}_updateAttributions(){if(!this._map.style)return;let t=[];if(this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?t=t.concat(this.options.customAttribution.map(l=>"string"!=typeof l?"":l)):"string"==typeof this.options.customAttribution&&t.push(this.options.customAttribution)),this._map.style.stylesheet){const l=this._map.style.stylesheet;this.styleOwner=l.owner,this.styleId=l.id}const a=this._map.style.sourceCaches;for(const l in a){const p=a[l];if(p.used||p.usedForTerrain){const f=p.getSource();f.attribution&&t.indexOf(f.attribution)<0&&t.push(f.attribution)}}t=t.filter(l=>String(l).trim()),t.sort((l,p)=>l.length-p.length),t=t.filter((l,p)=>{for(let f=p+1;f=0)return!1;return!0});const s=t.join(" | ");s!==this._attribHTML&&(this._attribHTML=s,t.length?(this._innerContainer.innerHTML=s,this._container.classList.remove("maplibregl-attrib-empty")):this._container.classList.add("maplibregl-attrib-empty"),this._updateCompact(),this._editLink=null)}}class Cr{constructor(t={}){this._updateCompact=()=>{const a=this._container.children;if(a.length){const s=a[0];this._map.getCanvasContainer().offsetWidth<=640||this._compact?!1!==this._compact&&s.classList.add("maplibregl-compact"):s.classList.remove("maplibregl-compact")}},this.options=t}getDefaultPosition(){return"bottom-left"}onAdd(t){this._map=t,this._compact=this.options&&this.options.compact,this._container=re.create("div","maplibregl-ctrl");const a=re.create("a","maplibregl-ctrl-logo");return a.target="_blank",a.rel="noopener nofollow",a.href="https://maplibre.org/",a.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),a.setAttribute("rel","noopener nofollow"),this._container.appendChild(a),this._container.style.display="block",this._map.on("resize",this._updateCompact),this._updateCompact(),this._container}onRemove(){re.remove(this._container),this._map.off("resize",this._updateCompact),this._map=void 0,this._compact=void 0}}class Yn{constructor(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1}add(t){const a=++this._id;return this._queue.push({callback:t,id:a,cancelled:!1}),a}remove(t){const a=this._currentlyRunning,s=a?this._queue.concat(a):this._queue;for(const l of s)if(l.id===t)return void(l.cancelled=!0)}run(t=0){if(this._currentlyRunning)throw new Error("Attempting to run(), but is already running.");const a=this._currentlyRunning=this._queue;this._queue=[];for(const s of a)if(!s.cancelled&&(s.callback(t),this._cleared))break;this._cleared=!1,this._currentlyRunning=!1}clear(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]}}const De={"AttributionControl.ToggleAttribution":"Toggle attribution","AttributionControl.MapFeedback":"Map feedback","FullscreenControl.Enter":"Enter fullscreen","FullscreenControl.Exit":"Exit fullscreen","GeolocateControl.FindMyLocation":"Find my location","GeolocateControl.LocationNotAvailable":"Location not available","LogoControl.Title":"Mapbox logo","NavigationControl.ResetBearing":"Reset bearing to north","NavigationControl.ZoomIn":"Zoom in","NavigationControl.ZoomOut":"Zoom out","ScaleControl.Feet":"ft","ScaleControl.Meters":"m","ScaleControl.Kilometers":"km","ScaleControl.Miles":"mi","ScaleControl.NauticalMiles":"nm","TerrainControl.enableTerrain":"Enable terrain","TerrainControl.disableTerrain":"Disable terrain"};var Ve=c.createLayout([{name:"a_pos3d",type:"Int16",components:3}]);class Jn extends c.Evented{constructor(t){super(),this.sourceCache=t,this._tiles={},this._renderableTilesKeys=[],this._sourceTileCache={},this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.deltaZoom=1,t.usedForTerrain=!0,t.tileSize=this.tileSize*2**this.deltaZoom}destruct(){this.sourceCache.usedForTerrain=!1,this.sourceCache.tileSize=null}update(t,a){this.sourceCache.update(t,a),this._renderableTilesKeys=[];const s={};for(const l of t.coveringTiles({tileSize:this.tileSize,minzoom:this.minzoom,maxzoom:this.maxzoom,reparseOverscaled:!1,terrain:a}))s[l.key]=!0,this._renderableTilesKeys.push(l.key),this._tiles[l.key]||(l.posMatrix=new Float64Array(16),c.ortho(l.posMatrix,0,c.EXTENT,0,c.EXTENT,0,1),this._tiles[l.key]=new we(l,this.tileSize));for(const l in this._tiles)s[l]||delete this._tiles[l]}freeRtt(t){for(const a in this._tiles){const s=this._tiles[a];(!t||s.tileID.equals(t)||s.tileID.isChildOf(t)||t.isChildOf(s.tileID))&&(s.rtt=[])}}getRenderableTiles(){return this._renderableTilesKeys.map(t=>this.getTileByID(t))}getTileByID(t){return this._tiles[t]}getTerrainCoords(t){const a={};for(const s of this._renderableTilesKeys){const l=this._tiles[s].tileID;if(l.canonical.equals(t.canonical)){const p=t.clone();p.posMatrix=new Float64Array(16),c.ortho(p.posMatrix,0,c.EXTENT,0,c.EXTENT,0,1),a[s]=p}else if(l.canonical.isChildOf(t.canonical)){const p=t.clone();p.posMatrix=new Float64Array(16);const f=l.canonical.z-t.canonical.z,g=l.canonical.x-(l.canonical.x>>f<>f<>f;c.ortho(p.posMatrix,0,b,0,b,0,1),c.translate(p.posMatrix,p.posMatrix,[-g*b,-_*b,0]),a[s]=p}else if(t.canonical.isChildOf(l.canonical)){const p=t.clone();p.posMatrix=new Float64Array(16);const f=t.canonical.z-l.canonical.z,g=t.canonical.x-(t.canonical.x>>f<>f<>f;c.ortho(p.posMatrix,0,c.EXTENT,0,c.EXTENT,0,1),c.translate(p.posMatrix,p.posMatrix,[g*b,_*b,0]),c.scale(p.posMatrix,p.posMatrix,[1/2**f,1/2**f,0]),a[s]=p}}return a}getSourceTile(t,a){const s=this.sourceCache._source;let l=t.overscaledZ-this.deltaZoom;if(l>s.maxzoom&&(l=s.maxzoom),l=s.minzoom&&(!p||!p.dem);)p=this.sourceCache.getTileByID(t.scaledTo(l--).key);return p}tilesAfterTime(t=Date.now()){return Object.values(this._tiles).filter(a=>a.timeAdded>=t)}}class Vs{constructor(t,a,s){this.painter=t,this.sourceCache=new Jn(a),this.options=s,this.exaggeration="number"==typeof s.exaggeration?s.exaggeration:1,this.qualityFactor=2,this.meshSize=128,this._demMatrixCache={},this.coordsIndex=[],this._coordsTextureSize=1024}getDEMElevation(t,a,s,l=c.EXTENT){var p;if(!(a>=0&&a=0&&st.canonical.z&&(t.canonical.z>=l?p=t.canonical.z-l:c.warnOnce("cannot calculate elevation if elevation maxzoom > source.maxzoom"));const f=t.canonical.x-(t.canonical.x>>p<>p<>8<<4|p>>8,a[f+3]=0;const s=new c.RGBAImage({width:this._coordsTextureSize,height:this._coordsTextureSize},new Uint8Array(a.buffer)),l=new Te(t,s,t.gl.RGBA,{premultiply:!1});return l.bind(t.gl.NEAREST,t.gl.CLAMP_TO_EDGE),this._coordsTexture=l,l}pointCoordinate(t){const a=new Uint8Array(4),s=this.painter.context,l=s.gl;s.bindFramebuffer.set(this.getFramebuffer("coords").framebuffer),l.readPixels(t.x,this.painter.height/devicePixelRatio-t.y-1,1,1,l.RGBA,l.UNSIGNED_BYTE,a),s.bindFramebuffer.set(null);const p=a[0]+(a[2]>>4<<8),f=a[1]+((15&a[2])<<8),g=this.coordsIndex[255-a[3]],_=g&&this.sourceCache.getTileByID(g);if(!_)return null;const b=this._coordsTextureSize,w=(1<<_.tileID.canonical.z)*b;return new c.MercatorCoordinate((_.tileID.canonical.x*b+p)/w,(_.tileID.canonical.y*b+f)/w,this.getElevation(_.tileID,p,f,b))}getTerrainMesh(){if(this._mesh)return this._mesh;const t=this.painter.context,a=new c.Pos3dArray,s=new c.TriangleIndexArray,l=this.meshSize,p=c.EXTENT/l,f=l*l;for(let E=0;E<=l;E++)for(let P=0;P<=l;P++)a.emplaceBack(P*p,E*p,0);for(let E=0;Et.id!==a),this._recentlyUsed.push(t.id)}stampObject(t){t.stamp=++this._stamp}getOrCreateFreeObject(){for(const a of this._recentlyUsed)if(!this._objects[a].inUse)return this._objects[a];if(this._objects.length>=this._size)throw new Error("No free RenderPool available, call freeAllObjects() required!");const t=this._createObject(this._objects.length);return this._objects.push(t),t}freeObject(t){t.inUse=!1}freeAllObjects(){for(const t of this._objects)this.freeObject(t)}isFull(){return!(this._objects.length!t.inUse)}}const gi={background:!0,fill:!0,line:!0,raster:!0,hillshade:!0};class qo{constructor(t,a){this.painter=t,this.terrain=a,this.pool=new Ns(t.context,30,a.sourceCache.tileSize*a.qualityFactor)}destruct(){this.pool.destruct()}getTexture(t){return this.pool.getObjectForId(t.rtt[this._stacks.length-1].id).texture}prepareForRender(t,a){this._stacks=[],this._prevType=null,this._rttTiles=[],this._renderableTiles=this.terrain.sourceCache.getRenderableTiles(),this._renderableLayerIds=t._order.filter(s=>!t._layers[s].isHidden(a)),this._coordsDescendingInv={};for(const s in t.sourceCaches){this._coordsDescendingInv[s]={};const l=t.sourceCaches[s].getVisibleCoordinates();for(const p of l){const f=this.terrain.sourceCache.getTerrainCoords(p);for(const g in f)this._coordsDescendingInv[s][g]||(this._coordsDescendingInv[s][g]=[]),this._coordsDescendingInv[s][g].push(f[g])}}this._coordsDescendingInvStr={};for(const s of t._order){const l=t._layers[s],p=l.source;if(gi[l.type]&&!this._coordsDescendingInvStr[p]){this._coordsDescendingInvStr[p]={};for(const f in this._coordsDescendingInv[p])this._coordsDescendingInvStr[p][f]=this._coordsDescendingInv[p][f].map(g=>g.key).sort().join()}}for(const s of this._renderableTiles)for(const l in this._coordsDescendingInvStr){const p=this._coordsDescendingInvStr[l][s.tileID.key];p&&p!==s.rttCoords[l]&&(s.rtt=[])}}renderLayer(t){if(t.isHidden(this.painter.transform.zoom))return!1;const a=t.type,s=this.painter,l=this._renderableLayerIds[this._renderableLayerIds.length-1]===t.id;if(gi[a]&&(this._prevType&&gi[this._prevType]||this._stacks.push([]),this._prevType=a,this._stacks[this._stacks.length-1].push(t.id),!l))return!0;if(gi[this._prevType]||gi[a]&&l){this._prevType=a;const p=this._stacks.length-1,f=this._stacks[p]||[];for(const g of this._renderableTiles){if(this.pool.isFull()&&(Gn(this.painter,this.terrain,this._rttTiles),this._rttTiles=[],this.pool.freeAllObjects()),this._rttTiles.push(g),g.rtt[p]){const b=this.pool.getObjectForId(g.rtt[p].id);if(b.stamp===g.rtt[p].stamp){this.pool.useObject(b);continue}}const _=this.pool.getOrCreateFreeObject();this.pool.useObject(_),this.pool.stampObject(_),g.rtt[p]={id:_.id,stamp:_.stamp},s.context.bindFramebuffer.set(_.fbo.framebuffer),s.context.clear({color:c.Color.transparent,stencil:0}),s.currentStencilSource=void 0;for(let b=0;b{h.touchstart=h.dragStart,h.touchmoveWindow=h.dragMove,h.touchend=h.dragEnd},Nt={showCompass:!0,showZoom:!0,visualizePitch:!1};class ti{constructor(t,a,s=!1){this.mousedown=f=>{this.startMouse(c.extend({},f,{ctrlKey:!0,preventDefault:()=>f.preventDefault()}),re.mousePos(this.element,f)),re.addEventListener(window,"mousemove",this.mousemove),re.addEventListener(window,"mouseup",this.mouseup)},this.mousemove=f=>{this.moveMouse(f,re.mousePos(this.element,f))},this.mouseup=f=>{this.mouseRotate.dragEnd(f),this.mousePitch&&this.mousePitch.dragEnd(f),this.offTemp()},this.touchstart=f=>{1!==f.targetTouches.length?this.reset():(this._startPos=this._lastPos=re.touchPos(this.element,f.targetTouches)[0],this.startTouch(f,this._startPos),re.addEventListener(window,"touchmove",this.touchmove,{passive:!1}),re.addEventListener(window,"touchend",this.touchend))},this.touchmove=f=>{1!==f.targetTouches.length?this.reset():(this._lastPos=re.touchPos(this.element,f.targetTouches)[0],this.moveTouch(f,this._lastPos))},this.touchend=f=>{0===f.targetTouches.length&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos){this.mouseRotate.reset(),this.mousePitch&&this.mousePitch.reset(),this.touchRotate.reset(),this.touchPitch&&this.touchPitch.reset(),delete this._startPos,delete this._lastPos,this.offTemp()},this._clickTolerance=10;const l=t.dragRotate._mouseRotate.getClickTolerance(),p=t.dragRotate._mousePitch.getClickTolerance();this.element=a,this.mouseRotate=ve({clickTolerance:l,enable:!0}),this.touchRotate=(({enable:f,clickTolerance:g,bearingDegreesPerPixelMoved:_=.8})=>{const b=new Va;return new Ee({clickTolerance:g,move:(w,E)=>({bearingDelta:(E.x-w.x)*_}),moveStateManager:b,enable:f,assignEvents:$a})})({clickTolerance:l,enable:!0}),this.map=t,s&&(this.mousePitch=Hn({clickTolerance:p,enable:!0}),this.touchPitch=(({enable:f,clickTolerance:g,pitchDegreesPerPixelMoved:_=-.5})=>{const b=new Va;return new Ee({clickTolerance:g,move:(w,E)=>({pitchDelta:(E.y-w.y)*_}),moveStateManager:b,enable:f,assignEvents:$a})})({clickTolerance:p,enable:!0})),re.addEventListener(a,"mousedown",this.mousedown),re.addEventListener(a,"touchstart",this.touchstart,{passive:!1}),re.addEventListener(a,"touchcancel",this.reset)}startMouse(t,a){this.mouseRotate.dragStart(t,a),this.mousePitch&&this.mousePitch.dragStart(t,a),re.disableDrag()}startTouch(t,a){this.touchRotate.dragStart(t,a),this.touchPitch&&this.touchPitch.dragStart(t,a),re.disableDrag()}moveMouse(t,a){const s=this.map,{bearingDelta:l}=this.mouseRotate.dragMove(t,a)||{};if(l&&s.setBearing(s.getBearing()+l),this.mousePitch){const{pitchDelta:p}=this.mousePitch.dragMove(t,a)||{};p&&s.setPitch(s.getPitch()+p)}}moveTouch(t,a){const s=this.map,{bearingDelta:l}=this.touchRotate.dragMove(t,a)||{};if(l&&s.setBearing(s.getBearing()+l),this.touchPitch){const{pitchDelta:p}=this.touchPitch.dragMove(t,a)||{};p&&s.setPitch(s.getPitch()+p)}}off(){const t=this.element;re.removeEventListener(t,"mousedown",this.mousedown),re.removeEventListener(t,"touchstart",this.touchstart,{passive:!1}),re.removeEventListener(window,"touchmove",this.touchmove,{passive:!1}),re.removeEventListener(window,"touchend",this.touchend),re.removeEventListener(t,"touchcancel",this.reset),this.offTemp()}offTemp(){re.enableDrag(),re.removeEventListener(window,"mousemove",this.mousemove),re.removeEventListener(window,"mouseup",this.mouseup),re.removeEventListener(window,"touchmove",this.touchmove,{passive:!1}),re.removeEventListener(window,"touchend",this.touchend)}}let jr;function Za(h,t,a){if(h=new c.LngLat(h.lng,h.lat),t){const s=new c.LngLat(h.lng-360,h.lat),l=new c.LngLat(h.lng+360,h.lat),p=a.locationPoint(h).distSqr(t);a.locationPoint(s).distSqr(t)180;){const s=a.locationPoint(h);if(s.x>=0&&s.y>=0&&s.x<=a.width&&s.y<=a.height)break;h.lng>a.center.lng?h.lng-=360:h.lng+=360}return h}const Ga={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function Qn(h,t,a){const s=h.classList;for(const l in Ga)s.remove(`maplibregl-${a}-anchor-${l}`);s.add(`maplibregl-${a}-anchor-${t}`)}class xn extends c.Evented{constructor(t){if(super(),this._onKeyPress=a=>{const s=a.code,l=a.charCode||a.keyCode;"Space"!==s&&"Enter"!==s&&32!==l&&13!==l||this.togglePopup()},this._onMapClick=a=>{const s=a.originalEvent.target,l=this._element;this._popup&&(s===l||l.contains(s))&&this.togglePopup()},this._update=a=>{if(!this._map)return;this._map.transform.renderWorldCopies&&(this._lngLat=Za(this._lngLat,this._pos,this._map.transform)),this._pos=this._map.project(this._lngLat)._add(this._offset);let s="";"viewport"===this._rotationAlignment||"auto"===this._rotationAlignment?s=`rotateZ(${this._rotation}deg)`:"map"===this._rotationAlignment&&(s=`rotateZ(${this._rotation-this._map.getBearing()}deg)`);let l="";"viewport"===this._pitchAlignment||"auto"===this._pitchAlignment?l="rotateX(0deg)":"map"===this._pitchAlignment&&(l=`rotateX(${this._map.getPitch()}deg)`),a&&"moveend"!==a.type||(this._pos=this._pos.round()),re.setTransform(this._element,`${Ga[this._anchor]} translate(${this._pos.x}px, ${this._pos.y}px) ${l} ${s}`),this._map.terrain&&!this._opacityTimeout&&(this._opacityTimeout=setTimeout(()=>{const p=this._map.unproject(this._pos),f=40075016.686*Math.abs(Math.cos(this._lngLat.lat*Math.PI/180))/Math.pow(2,this._map.transform.tileZoom+8);this._element.style.opacity=p.distanceTo(this._lngLat)>20*f?"0.2":"1.0",this._opacityTimeout=null},100))},this._onMove=a=>{if(!this._isDragging){const s=this._clickTolerance||this._map._clickTolerance;this._isDragging=a.point.dist(this._pointerdownPos)>=s}this._isDragging&&(this._pos=a.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none","pending"===this._state&&(this._state="active",this.fire(new c.Event("dragstart"))),this.fire(new c.Event("drag")))},this._onUp=()=>{this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),"active"===this._state&&this.fire(new c.Event("dragend")),this._state="inactive"},this._addDragHandler=a=>{this._element.contains(a.originalEvent.target)&&(a.preventDefault(),this._positionDelta=a.point.sub(this._pos).add(this._offset),this._pointerdownPos=a.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},this._anchor=t&&t.anchor||"center",this._color=t&&t.color||"#3FB1CE",this._scale=t&&t.scale||1,this._draggable=t&&t.draggable||!1,this._clickTolerance=t&&t.clickTolerance||0,this._isDragging=!1,this._state="inactive",this._rotation=t&&t.rotation||0,this._rotationAlignment=t&&t.rotationAlignment||"auto",this._pitchAlignment=t&&t.pitchAlignment&&"auto"!==t.pitchAlignment?t.pitchAlignment:this._rotationAlignment,t&&t.element)this._element=t.element,this._offset=c.Point.convert(t&&t.offset||[0,0]);else{this._defaultMarker=!0,this._element=re.create("div"),this._element.setAttribute("aria-label","Map marker");const a=re.createNS("http://www.w3.org/2000/svg","svg"),s=41,l=27;a.setAttributeNS(null,"display","block"),a.setAttributeNS(null,"height",`${s}px`),a.setAttributeNS(null,"width",`${l}px`),a.setAttributeNS(null,"viewBox",`0 0 ${l} ${s}`);const p=re.createNS("http://www.w3.org/2000/svg","g");p.setAttributeNS(null,"stroke","none"),p.setAttributeNS(null,"stroke-width","1"),p.setAttributeNS(null,"fill","none"),p.setAttributeNS(null,"fill-rule","evenodd");const f=re.createNS("http://www.w3.org/2000/svg","g");f.setAttributeNS(null,"fill-rule","nonzero");const g=re.createNS("http://www.w3.org/2000/svg","g");g.setAttributeNS(null,"transform","translate(3.0, 29.0)"),g.setAttributeNS(null,"fill","#000000");const _=[{rx:"10.5",ry:"5.25002273"},{rx:"10.5",ry:"5.25002273"},{rx:"9.5",ry:"4.77275007"},{rx:"8.5",ry:"4.29549936"},{rx:"7.5",ry:"3.81822308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}];for(const W of _){const te=re.createNS("http://www.w3.org/2000/svg","ellipse");te.setAttributeNS(null,"opacity","0.04"),te.setAttributeNS(null,"cx","10.5"),te.setAttributeNS(null,"cy","5.80029008"),te.setAttributeNS(null,"rx",W.rx),te.setAttributeNS(null,"ry",W.ry),g.appendChild(te)}const b=re.createNS("http://www.w3.org/2000/svg","g");b.setAttributeNS(null,"fill",this._color);const w=re.createNS("http://www.w3.org/2000/svg","path");w.setAttributeNS(null,"d","M27,13.5 C27,19.074644 20.250001,27.000002 14.75,34.500002 C14.016665,35.500004 12.983335,35.500004 12.25,34.500002 C6.7499993,27.000002 0,19.222562 0,13.5 C0,6.0441559 6.0441559,0 13.5,0 C20.955844,0 27,6.0441559 27,13.5 Z"),b.appendChild(w);const E=re.createNS("http://www.w3.org/2000/svg","g");E.setAttributeNS(null,"opacity","0.25"),E.setAttributeNS(null,"fill","#000000");const P=re.createNS("http://www.w3.org/2000/svg","path");P.setAttributeNS(null,"d","M13.5,0 C6.0441559,0 0,6.0441559 0,13.5 C0,19.222562 6.7499993,27 12.25,34.5 C13,35.522727 14.016664,35.500004 14.75,34.5 C20.250001,27 27,19.074644 27,13.5 C27,6.0441559 20.955844,0 13.5,0 Z M13.5,1 C20.415404,1 26,6.584596 26,13.5 C26,15.898657 24.495584,19.181431 22.220703,22.738281 C19.945823,26.295132 16.705119,30.142167 13.943359,33.908203 C13.743445,34.180814 13.612715,34.322738 13.5,34.441406 C13.387285,34.322738 13.256555,34.180814 13.056641,33.908203 C10.284481,30.127985 7.4148684,26.314159 5.015625,22.773438 C2.6163816,19.232715 1,15.953538 1,13.5 C1,6.584596 6.584596,1 13.5,1 Z"),E.appendChild(P);const V=re.createNS("http://www.w3.org/2000/svg","g");V.setAttributeNS(null,"transform","translate(6.0, 7.0)"),V.setAttributeNS(null,"fill","#FFFFFF");const U=re.createNS("http://www.w3.org/2000/svg","g");U.setAttributeNS(null,"transform","translate(8.0, 8.0)");const Z=re.createNS("http://www.w3.org/2000/svg","circle");Z.setAttributeNS(null,"fill","#000000"),Z.setAttributeNS(null,"opacity","0.25"),Z.setAttributeNS(null,"cx","5.5"),Z.setAttributeNS(null,"cy","5.5"),Z.setAttributeNS(null,"r","5.4999962");const O=re.createNS("http://www.w3.org/2000/svg","circle");O.setAttributeNS(null,"fill","#FFFFFF"),O.setAttributeNS(null,"cx","5.5"),O.setAttributeNS(null,"cy","5.5"),O.setAttributeNS(null,"r","5.4999962"),U.appendChild(Z),U.appendChild(O),f.appendChild(g),f.appendChild(b),f.appendChild(E),f.appendChild(V),f.appendChild(U),a.appendChild(f),a.setAttributeNS(null,"height",s*this._scale+"px"),a.setAttributeNS(null,"width",l*this._scale+"px"),this._element.appendChild(a),this._offset=c.Point.convert(t&&t.offset||[0,-14])}if(this._element.classList.add("maplibregl-marker"),this._element.addEventListener("dragstart",a=>{a.preventDefault()}),this._element.addEventListener("mousedown",a=>{a.preventDefault()}),Qn(this._element,this._anchor,"marker"),t&&t.className)for(const a of t.className.split(" "))this._element.classList.add(a);this._popup=null}addTo(t){return this.remove(),this._map=t,t.getCanvasContainer().appendChild(this._element),t.on("move",this._update),t.on("moveend",this._update),this.setDraggable(this._draggable),this._update(),this._map.on("click",this._onMapClick),this}remove(){return this._opacityTimeout&&(clearTimeout(this._opacityTimeout),delete this._opacityTimeout),this._map&&(this._map.off("click",this._onMapClick),this._map.off("move",this._update),this._map.off("moveend",this._update),this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler),this._map.off("mouseup",this._onUp),this._map.off("touchend",this._onUp),this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),delete this._map),re.remove(this._element),this._popup&&this._popup.remove(),this}getLngLat(){return this._lngLat}setLngLat(t){return this._lngLat=c.LngLat.convert(t),this._pos=null,this._popup&&this._popup.setLngLat(this._lngLat),this._update(),this}getElement(){return this._element}setPopup(t){if(this._popup&&(this._popup.remove(),this._popup=null,this._element.removeEventListener("keypress",this._onKeyPress),this._originalTabIndex||this._element.removeAttribute("tabindex")),t){if(!("offset"in t.options)){const l=Math.sqrt(Math.pow(13.5,2)/2);t.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[0,-38.1],"bottom-left":[l,-1*(24.6+l)],"bottom-right":[-l,-1*(24.6+l)],left:[13.5,-24.6],right:[-13.5,-24.6]}:this._offset}this._popup=t,this._lngLat&&this._popup.setLngLat(this._lngLat),this._originalTabIndex=this._element.getAttribute("tabindex"),this._originalTabIndex||this._element.setAttribute("tabindex","0"),this._element.addEventListener("keypress",this._onKeyPress)}return this}getPopup(){return this._popup}togglePopup(){const t=this._popup;return t?(t.isOpen()?t.remove():t.addTo(this._map),this):this}getOffset(){return this._offset}setOffset(t){return this._offset=c.Point.convert(t),this._update(),this}addClassName(t){this._element.classList.add(t)}removeClassName(t){this._element.classList.remove(t)}toggleClassName(t){return this._element.classList.toggle(t)}setDraggable(t){return this._draggable=!!t,this._map&&(t?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this}isDraggable(){return this._draggable}setRotation(t){return this._rotation=t||0,this._update(),this}getRotation(){return this._rotation}setRotationAlignment(t){return this._rotationAlignment=t||"auto",this._update(),this}getRotationAlignment(){return this._rotationAlignment}setPitchAlignment(t){return this._pitchAlignment=t&&"auto"!==t?t:this._rotationAlignment,this._update(),this}getPitchAlignment(){return this._pitchAlignment}}const $s={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0};let na=0,Ea=!1;const Zs={maxWidth:100,unit:"metric"};function es(h,t,a){const s=a&&a.maxWidth||100,l=h._container.clientHeight/2,p=h.unproject([0,l]),f=h.unproject([s,l]),g=p.distanceTo(f);if(a&&"imperial"===a.unit){const _=3.2808*g;_>5280?Ta(t,s,_/5280,h._getUIString("ScaleControl.Miles")):Ta(t,s,_,h._getUIString("ScaleControl.Feet"))}else a&&"nautical"===a.unit?Ta(t,s,g/1852,h._getUIString("ScaleControl.NauticalMiles")):g>=1e3?Ta(t,s,g/1e3,h._getUIString("ScaleControl.Kilometers")):Ta(t,s,g,h._getUIString("ScaleControl.Meters"))}function Ta(h,t,a,s){const l=function(p){const f=Math.pow(10,`${Math.floor(p)}`.length-1);let g=p/f;return g=g>=10?10:g>=5?5:g>=3?3:g>=2?2:g>=1?1:function(_){const b=Math.pow(10,Math.ceil(-Math.log(_)/Math.LN10));return Math.round(_*b)/b}(g),f*g}(a);h.style.width=t*(l/a)+"px",h.innerHTML=`${l} ${s}`}const Gs={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},js=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", ");function ts(h){if(h){if("number"==typeof h){const t=Math.round(Math.sqrt(.5*Math.pow(h,2)));return{center:new c.Point(0,0),top:new c.Point(0,h),"top-left":new c.Point(t,t),"top-right":new c.Point(-t,t),bottom:new c.Point(0,-h),"bottom-left":new c.Point(t,-t),"bottom-right":new c.Point(-t,-t),left:new c.Point(h,0),right:new c.Point(-h,0)}}if(h instanceof c.Point||Array.isArray(h)){const t=c.Point.convert(h);return{center:t,top:t,"top-left":t,"top-right":t,bottom:t,"bottom-left":t,"bottom-right":t,left:t,right:t}}return{center:c.Point.convert(h.center||[0,0]),top:c.Point.convert(h.top||[0,0]),"top-left":c.Point.convert(h["top-left"]||[0,0]),"top-right":c.Point.convert(h["top-right"]||[0,0]),bottom:c.Point.convert(h.bottom||[0,0]),"bottom-left":c.Point.convert(h["bottom-left"]||[0,0]),"bottom-right":c.Point.convert(h["bottom-right"]||[0,0]),left:c.Point.convert(h.left||[0,0]),right:c.Point.convert(h.right||[0,0])}}return ts(new c.Point(0,0))}const qs={extend:(h,...t)=>c.extend(h,...t),run(h){h()},logToElement(h,t=!1,a="log"){const s=window.document.getElementById(a);s&&(t&&(s.innerHTML=""),s.innerHTML+=`
${h}`)}};class gt{static get version(){return"3.3.0"}static get workerCount(){return vi.workerCount}static set workerCount(t){vi.workerCount=t}static get maxParallelImageRequests(){return c.config.MAX_PARALLEL_IMAGE_REQUESTS}static set maxParallelImageRequests(t){c.config.MAX_PARALLEL_IMAGE_REQUESTS=t}static get workerUrl(){return c.config.WORKER_URL}static set workerUrl(t){c.config.WORKER_URL=t}static addProtocol(t,a){c.config.REGISTERED_PROTOCOLS[t]=a}static removeProtocol(t){delete c.config.REGISTERED_PROTOCOLS[t]}}return gt.Map=class extends Go{constructor(h){if(c.PerformanceUtils.mark(c.PerformanceMarkers.create),null!=(h=c.extend({},Rl,h)).minZoom&&null!=h.maxZoom&&h.minZoom>h.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(null!=h.minPitch&&null!=h.maxPitch&&h.minPitch>h.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(null!=h.minPitch&&h.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(null!=h.maxPitch&&h.maxPitch>85)throw new Error("maxPitch must be less than or equal to 85");if(super(new Xn(h.minZoom,h.maxZoom,h.minPitch,h.maxPitch,h.renderWorldCopies),{bearingSnap:h.bearingSnap}),this._cooperativeGesturesOnWheel=t=>{this._onCooperativeGesture(t,t[this._metaKey],1)},this._contextLost=t=>{t.preventDefault(),this._frame&&(this._frame.cancel(),this._frame=null),this.fire(new c.Event("webglcontextlost",{originalEvent:t}))},this._contextRestored=t=>{this._setupPainter(),this.resize(),this._update(),this.fire(new c.Event("webglcontextrestored",{originalEvent:t}))},this._onMapScroll=t=>{if(t.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1},this._onWindowOnline=()=>{this._update()},this._interactive=h.interactive,this._cooperativeGestures=h.cooperativeGestures,this._metaKey=0===navigator.platform.indexOf("Mac")?"metaKey":"ctrlKey",this._maxTileCacheSize=h.maxTileCacheSize,this._maxTileCacheZoomLevels=h.maxTileCacheZoomLevels,this._failIfMajorPerformanceCaveat=h.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=h.preserveDrawingBuffer,this._antialias=h.antialias,this._trackResize=h.trackResize,this._bearingSnap=h.bearingSnap,this._refreshExpiredTiles=h.refreshExpiredTiles,this._fadeDuration=h.fadeDuration,this._crossSourceCollisions=h.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=h.collectResourceTiming,this._renderTaskQueue=new Yn,this._controls=[],this._mapId=c.uniqueId(),this._locale=c.extend({},De,h.locale),this._clickTolerance=h.clickTolerance,this._overridePixelRatio=h.pixelRatio,this._maxCanvasSize=h.maxCanvasSize,this.transformCameraUpdate=h.transformCameraUpdate,this._imageQueueHandle=hi.addThrottleControl(()=>this.isMoving()),this._requestManager=new Nr(h.transformRequest),"string"==typeof h.container){if(this._container=document.getElementById(h.container),!this._container)throw new Error(`Container '${h.container}' not found.`)}else{if(!(h.container instanceof HTMLElement))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=h.container}if(h.maxBounds&&this.setMaxBounds(h.maxBounds),this._setupContainer(),this._setupPainter(),this.on("move",()=>this._update(!1)),this.on("moveend",()=>this._update(!1)),this.on("zoom",()=>this._update(!0)),this.on("terrain",()=>{this.painter.terrainFacilitator.dirty=!0,this._update(!0)}),this.once("idle",()=>{this._idleTriggered=!0}),typeof window<"u"){addEventListener("online",this._onWindowOnline,!1);let t=!1;this._resizeObserver=new ResizeObserver(a=>{t?this._trackResize&&this.resize(a)._update():t=!0}),this._resizeObserver.observe(this._container)}this.handlers=new Zo(this,h),this._cooperativeGestures&&this._setupCooperativeGestures(),this._hash=h.hash&&new va("string"==typeof h.hash&&h.hash||void 0).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:h.center,zoom:h.zoom,bearing:h.bearing,pitch:h.pitch}),h.bounds&&(this.resize(),this.fitBounds(h.bounds,c.extend({},h.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=h.localIdeographFontFamily,this._validateStyle=h.validateStyle,h.style&&this.setStyle(h.style,{localIdeographFontFamily:h.localIdeographFontFamily}),h.attributionControl&&this.addControl(new jo({customAttribution:h.customAttribution})),h.maplibreLogo&&this.addControl(new Cr,h.logoPosition),this.on("style.load",()=>{this.transform.unmodified&&this.jumpTo(this.style.stylesheet)}),this.on("data",t=>{this._update("style"===t.dataType),this.fire(new c.Event(`${t.dataType}data`,t))}),this.on("dataloading",t=>{this.fire(new c.Event(`${t.dataType}dataloading`,t))}),this.on("dataabort",t=>{this.fire(new c.Event("sourcedataabort",t))})}_getMapId(){return this._mapId}addControl(h,t){if(void 0===t&&(t=h.getDefaultPosition?h.getDefaultPosition():"top-right"),!h||!h.onAdd)return this.fire(new c.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));const a=h.onAdd(this);this._controls.push(h);const s=this._controlPositions[t];return-1!==t.indexOf("bottom")?s.insertBefore(a,s.firstChild):s.appendChild(a),this}removeControl(h){if(!h||!h.onRemove)return this.fire(new c.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));const t=this._controls.indexOf(h);return t>-1&&this._controls.splice(t,1),h.onRemove(this),this}hasControl(h){return this._controls.indexOf(h)>-1}calculateCameraOptionsFromTo(h,t,a,s){return null==s&&this.terrain&&(s=this.terrain.getElevationForLngLatZoom(a,this.transform.tileZoom)),super.calculateCameraOptionsFromTo(h,t,a,s)}resize(h){var t;const a=this._containerDimensions(),s=a[0],l=a[1],p=this._getClampedPixelRatio(s,l);if(this._resizeCanvas(s,l,p),this.painter.resize(s,l,p),this.painter.overLimit()){const g=this.painter.context.gl;this._maxCanvasSize=[g.drawingBufferWidth,g.drawingBufferHeight];const _=this._getClampedPixelRatio(s,l);this._resizeCanvas(s,l,_),this.painter.resize(s,l,_)}this.transform.resize(s,l),null===(t=this._requestedCameraState)||void 0===t||t.resize(s,l);const f=!this._moving;return f&&(this.stop(),this.fire(new c.Event("movestart",h)).fire(new c.Event("move",h))),this.fire(new c.Event("resize",h)),f&&this.fire(new c.Event("moveend",h)),this}_getClampedPixelRatio(h,t){const{0:a,1:s}=this._maxCanvasSize,l=this.getPixelRatio(),p=h*l,f=t*l;return Math.min(p>a?a/p:1,f>s?s/f:1)*l}getPixelRatio(){var h;return null!==(h=this._overridePixelRatio)&&void 0!==h?h:devicePixelRatio}setPixelRatio(h){this._overridePixelRatio=h,this.resize()}getBounds(){return this.transform.getBounds()}getMaxBounds(){return this.transform.getMaxBounds()}setMaxBounds(h){return this.transform.setMaxBounds(Ue.convert(h)),this._update()}setMinZoom(h){if((h=h??-2)>=-2&&h<=this.transform.maxZoom)return this.transform.minZoom=h,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=h,this._update(),this.getZoom()>h&&this.setZoom(h),this;throw new Error("maxZoom must be greater than the current minZoom")}getMaxZoom(){return this.transform.maxZoom}setMinPitch(h){if((h=h??0)<0)throw new Error("minPitch must be greater than or equal to 0");if(h>=0&&h<=this.transform.maxPitch)return this.transform.minPitch=h,this._update(),this.getPitch()85)throw new Error("maxPitch must be less than or equal to 85");if(h>=this.transform.minPitch)return this.transform.maxPitch=h,this._update(),this.getPitch()>h&&this.setPitch(h),this;throw new Error("maxPitch must be greater than the current minPitch")}getMaxPitch(){return this.transform.maxPitch}getRenderWorldCopies(){return this.transform.renderWorldCopies}setRenderWorldCopies(h){return this.transform.renderWorldCopies=h,this._update()}getCooperativeGestures(){return this._cooperativeGestures}setCooperativeGestures(h){return this._cooperativeGestures=h,this._cooperativeGestures?this._setupCooperativeGestures():this._destroyCooperativeGestures(),this}project(h){return this.transform.locationPoint(c.LngLat.convert(h),this.style&&this.terrain)}unproject(h){return this.transform.pointLocation(c.Point.convert(h),this.terrain)}isMoving(){var h;return this._moving||(null===(h=this.handlers)||void 0===h?void 0:h.isMoving())}isZooming(){var h;return this._zooming||(null===(h=this.handlers)||void 0===h?void 0:h.isZooming())}isRotating(){var h;return this._rotating||(null===(h=this.handlers)||void 0===h?void 0:h.isRotating())}_createDelegatedListener(h,t,a){if("mouseenter"===h||"mouseover"===h){let s=!1;return{layer:t,listener:a,delegates:{mousemove:p=>{const f=this.getLayer(t)?this.queryRenderedFeatures(p.point,{layers:[t]}):[];f.length?s||(s=!0,a.call(this,new ei(h,this,p.originalEvent,{features:f}))):s=!1},mouseout:()=>{s=!1}}}}if("mouseleave"===h||"mouseout"===h){let s=!1;return{layer:t,listener:a,delegates:{mousemove:f=>{(this.getLayer(t)?this.queryRenderedFeatures(f.point,{layers:[t]}):[]).length?s=!0:s&&(s=!1,a.call(this,new ei(h,this,f.originalEvent)))},mouseout:f=>{s&&(s=!1,a.call(this,new ei(h,this,f.originalEvent)))}}}}{const s=l=>{const p=this.getLayer(t)?this.queryRenderedFeatures(l.point,{layers:[t]}):[];p.length&&(l.features=p,a.call(this,l),delete l.features)};return{layer:t,listener:a,delegates:{[h]:s}}}}on(h,t,a){if(void 0===a)return super.on(h,t);const s=this._createDelegatedListener(h,t,a);this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[h]=this._delegatedListeners[h]||[],this._delegatedListeners[h].push(s);for(const l in s.delegates)this.on(l,s.delegates[l]);return this}once(h,t,a){if(void 0===a)return super.once(h,t);const s=this._createDelegatedListener(h,t,a);for(const l in s.delegates)this.once(l,s.delegates[l]);return this}off(h,t,a){return void 0===a?super.off(h,t):(this._delegatedListeners&&this._delegatedListeners[h]&&(s=>{const l=this._delegatedListeners[h];for(let p=0;pthis._updateStyle(h,t));const a=this.style&&t.transformStyle?this.style.serialize():void 0;return this.style&&(this.style.setEventedParent(null),this.style._remove(!h)),h?(this.style=new Oi(this,t||{}),this.style.setEventedParent(this,{style:this.style}),"string"==typeof h?this.style.loadURL(h,t,a):this.style.loadJSON(h,t,a),this):(delete this.style,this)}_lazyInitEmptyStyle(){this.style||(this.style=new Oi(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())}_diffStyle(h,t){if("string"==typeof h){const a=this._requestManager.transformRequest(h,Et.Style);c.getJSON(a,(s,l)=>{s?this.fire(new c.ErrorEvent(s)):l&&this._updateDiff(l,t)})}else"object"==typeof h&&this._updateDiff(h,t)}_updateDiff(h,t){try{this.style.setState(h,t)&&this._update(!0)}catch(a){c.warnOnce(`Unable to perform style diff: ${a.message||a.error||a}. Rebuilding the style from scratch.`),this._updateStyle(h,t)}}getStyle(){if(this.style)return this.style.serialize()}isStyleLoaded(){return this.style?this.style.loaded():c.warnOnce("There is no style added to the map.")}addSource(h,t){return this._lazyInitEmptyStyle(),this.style.addSource(h,t),this._update(!0)}isSourceLoaded(h){const t=this.style&&this.style.sourceCaches[h];if(void 0!==t)return t.loaded();this.fire(new c.ErrorEvent(new Error(`There is no source with ID '${h}'`)))}setTerrain(h){if(this.style._checkLoaded(),this._terrainDataCallback&&this.style.off("data",this._terrainDataCallback),h){const t=this.style.sourceCaches[h.source];if(!t)throw new Error(`cannot load terrain, because there exists no source with ID: ${h.source}`);for(const a in this.style._layers){const s=this.style._layers[a];"hillshade"===s.type&&s.source===h.source&&c.warnOnce("You are using the same source for a hillshade layer and for 3D terrain. Please consider using two separate sources to improve rendering quality.")}this.terrain=new Vs(this.painter,t,h),this.painter.renderToTexture=new qo(this.painter,this.terrain),this.transform._minEleveationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this._terrainDataCallback=a=>{"style"===a.dataType?this.terrain.sourceCache.freeRtt():"source"===a.dataType&&a.tile&&(a.sourceId!==h.source||this._elevationFreeze||(this.transform._minEleveationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom)),this.terrain.sourceCache.freeRtt(a.tile.tileID))},this.style.on("data",this._terrainDataCallback)}else this.terrain&&this.terrain.sourceCache.destruct(),this.terrain=null,this.painter.renderToTexture&&this.painter.renderToTexture.destruct(),this.painter.renderToTexture=null,this.transform._minEleveationForCurrentTile=0,this.transform.elevation=0;return this.fire(new c.Event("terrain",{terrain:h})),this}getTerrain(){return this.terrain&&this.terrain.options}areTilesLoaded(){const h=this.style&&this.style.sourceCaches;for(const t in h){const a=h[t]._tiles;for(const s in a){const l=a[s];if("loaded"!==l.state&&"errored"!==l.state)return!1}}return!0}addSourceType(h,t,a){return this._lazyInitEmptyStyle(),this.style.addSourceType(h,t,a)}removeSource(h){return this.style.removeSource(h),this._update(!0)}getSource(h){return this.style.getSource(h)}addImage(h,t,a={}){const{pixelRatio:s=1,sdf:l=!1,stretchX:p,stretchY:f,content:g}=a;if(this._lazyInitEmptyStyle(),!(t instanceof HTMLImageElement||c.isImageBitmap(t))){if(void 0===t.width||void 0===t.height)return this.fire(new c.ErrorEvent(new Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));{const{width:_,height:b,data:w}=t,E=t;return this.style.addImage(h,{data:new c.RGBAImage({width:_,height:b},new Uint8Array(w)),pixelRatio:s,stretchX:p,stretchY:f,content:g,sdf:l,version:0,userImage:E}),E.onAdd&&E.onAdd(this,h),this}}{const{width:_,height:b,data:w}=c.browser.getImageData(t);this.style.addImage(h,{data:new c.RGBAImage({width:_,height:b},w),pixelRatio:s,stretchX:p,stretchY:f,content:g,sdf:l,version:0})}}updateImage(h,t){const a=this.style.getImage(h);if(!a)return this.fire(new c.ErrorEvent(new Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));const s=t instanceof HTMLImageElement||c.isImageBitmap(t)?c.browser.getImageData(t):t,{width:l,height:p,data:f}=s;if(void 0===l||void 0===p)return this.fire(new c.ErrorEvent(new Error("Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));if(l!==a.data.width||p!==a.data.height)return this.fire(new c.ErrorEvent(new Error("The width and height of the updated image must be that same as the previous version of the image")));const g=!(t instanceof HTMLImageElement||c.isImageBitmap(t));return a.data.replace(f,g),this.style.updateImage(h,a),this}getImage(h){return this.style.getImage(h)}hasImage(h){return h?!!this.style.getImage(h):(this.fire(new c.ErrorEvent(new Error("Missing required image id"))),!1)}removeImage(h){this.style.removeImage(h)}loadImage(h,t){hi.getImage(this._requestManager.transformRequest(h,Et.Image),t)}listImages(){return this.style.listImages()}addLayer(h,t){return this._lazyInitEmptyStyle(),this.style.addLayer(h,t),this._update(!0)}moveLayer(h,t){return this.style.moveLayer(h,t),this._update(!0)}removeLayer(h){return this.style.removeLayer(h),this._update(!0)}getLayer(h){return this.style.getLayer(h)}setLayerZoomRange(h,t,a){return this.style.setLayerZoomRange(h,t,a),this._update(!0)}setFilter(h,t,a={}){return this.style.setFilter(h,t,a),this._update(!0)}getFilter(h){return this.style.getFilter(h)}setPaintProperty(h,t,a,s={}){return this.style.setPaintProperty(h,t,a,s),this._update(!0)}getPaintProperty(h,t){return this.style.getPaintProperty(h,t)}setLayoutProperty(h,t,a,s={}){return this.style.setLayoutProperty(h,t,a,s),this._update(!0)}getLayoutProperty(h,t){return this.style.getLayoutProperty(h,t)}setGlyphs(h,t={}){return this._lazyInitEmptyStyle(),this.style.setGlyphs(h,t),this._update(!0)}getGlyphs(){return this.style.getGlyphsUrl()}addSprite(h,t,a={}){return this._lazyInitEmptyStyle(),this.style.addSprite(h,t,a,s=>{s||this._update(!0)}),this}removeSprite(h){return this._lazyInitEmptyStyle(),this.style.removeSprite(h),this._update(!0)}getSprite(){return this.style.getSprite()}setSprite(h,t={}){return this._lazyInitEmptyStyle(),this.style.setSprite(h,t,a=>{a||this._update(!0)}),this}setLight(h,t={}){return this._lazyInitEmptyStyle(),this.style.setLight(h,t),this._update(!0)}getLight(){return this.style.getLight()}setFeatureState(h,t){return this.style.setFeatureState(h,t),this._update()}removeFeatureState(h,t){return this.style.removeFeatureState(h,t),this._update()}getFeatureState(h){return this.style.getFeatureState(h)}getContainer(){return this._container}getCanvasContainer(){return this._canvasContainer}getCanvas(){return this._canvas}_containerDimensions(){let h=0,t=0;return this._container&&(h=this._container.clientWidth||400,t=this._container.clientHeight||300),[h,t]}_setupContainer(){const h=this._container;h.classList.add("maplibregl-map");const t=this._canvasContainer=re.create("div","maplibregl-canvas-container",h);this._interactive&&t.classList.add("maplibregl-interactive"),this._canvas=re.create("canvas","maplibregl-canvas",t),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("tabindex","0"),this._canvas.setAttribute("aria-label","Map"),this._canvas.setAttribute("role","region");const a=this._containerDimensions(),s=this._getClampedPixelRatio(a[0],a[1]);this._resizeCanvas(a[0],a[1],s);const l=this._controlContainer=re.create("div","maplibregl-control-container",h),p=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right"].forEach(f=>{p[f]=re.create("div",`maplibregl-ctrl-${f} `,l)}),this._container.addEventListener("scroll",this._onMapScroll,!1)}_setupCooperativeGestures(){this._cooperativeGesturesScreen=re.create("div","maplibregl-cooperative-gesture-screen",this._container);let h="boolean"!=typeof this._cooperativeGestures&&this._cooperativeGestures.windowsHelpText?this._cooperativeGestures.windowsHelpText:"Use Ctrl + scroll to zoom the map";0===navigator.platform.indexOf("Mac")&&(h="boolean"!=typeof this._cooperativeGestures&&this._cooperativeGestures.macHelpText?this._cooperativeGestures.macHelpText:"Use \u2318 + scroll to zoom the map"),this._cooperativeGesturesScreen.innerHTML=`\n
${h}
\n
${"boolean"!=typeof this._cooperativeGestures&&this._cooperativeGestures.mobileHelpText?this._cooperativeGestures.mobileHelpText:"Use two fingers to move the map"}
\n `,this._cooperativeGesturesScreen.setAttribute("aria-hidden","true"),this._canvasContainer.addEventListener("wheel",this._cooperativeGesturesOnWheel,!1),this._canvasContainer.classList.add("maplibregl-cooperative-gestures")}_destroyCooperativeGestures(){re.remove(this._cooperativeGesturesScreen),this._canvasContainer.removeEventListener("wheel",this._cooperativeGesturesOnWheel,!1),this._canvasContainer.classList.remove("maplibregl-cooperative-gestures")}_resizeCanvas(h,t,a){this._canvas.width=Math.floor(a*h),this._canvas.height=Math.floor(a*t),this._canvas.style.width=`${h}px`,this._canvas.style.height=`${t}px`}_setupPainter(){const h={alpha:!0,stencil:!0,depth:!0,failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1};let t=null;this._canvas.addEventListener("webglcontextcreationerror",s=>{t={requestedAttributes:h},s&&(t.statusMessage=s.statusMessage,t.type=s.type)},{once:!0});const a=this._canvas.getContext("webgl2",h)||this._canvas.getContext("webgl",h);if(!a){const s="Failed to initialize WebGL";throw t?(t.message=s,new Error(JSON.stringify(t))):new Error(s)}this.painter=new zo(a,this.transform),Bt.testSupport(a)}_onCooperativeGesture(h,t,a){return!t&&a<2&&(this._cooperativeGesturesScreen.classList.add("maplibregl-show"),setTimeout(()=>{this._cooperativeGesturesScreen.classList.remove("maplibregl-show")},100)),!1}loaded(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}_update(h){return this.style&&this.style._loaded?(this._styleDirty=this._styleDirty||h,this._sourcesDirty=!0,this.triggerRepaint(),this):this}_requestRenderFrame(h){return this._update(),this._renderTaskQueue.add(h)}_cancelRenderFrame(h){this._renderTaskQueue.remove(h)}_render(h){const t=this._idleTriggered?this._fadeDuration:0;if(this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(h),this._removed)return;let a=!1;if(this.style&&this._styleDirty){this._styleDirty=!1;const l=this.transform.zoom,p=c.browser.now();this.style.zoomHistory.update(l,p);const f=new c.EvaluationParameters(l,{now:p,fadeDuration:t,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),g=f.crossFadingFactor();1===g&&g===this._crossFadingFactor||(a=!0,this._crossFadingFactor=g),this.style.update(f)}this.style&&this._sourcesDirty&&(this._sourcesDirty=!1,this.style._updateSources(this.transform)),this.terrain?(this.terrain.sourceCache.update(this.transform,this.terrain),this.transform._minEleveationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this._elevationFreeze||(this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom))):(this.transform._minEleveationForCurrentTile=0,this.transform.elevation=0),this._placementDirty=this.style&&this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,t,this._crossSourceCollisions),this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showOverdrawInspector:this._showOverdrawInspector,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:t,showPadding:this.showPadding}),this.fire(new c.Event("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,c.PerformanceUtils.mark(c.PerformanceMarkers.load),this.fire(new c.Event("load"))),this.style&&(this.style.hasTransitions()||a)&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles();const s=this._sourcesDirty||this._styleDirty||this._placementDirty;return s||this._repaint?this.triggerRepaint():!this.isMoving()&&this.loaded()&&this.fire(new c.Event("idle")),!this._loaded||this._fullyLoaded||s||(this._fullyLoaded=!0,c.PerformanceUtils.mark(c.PerformanceMarkers.fullLoad)),this}redraw(){return this.style&&(this._frame&&(this._frame.cancel(),this._frame=null),this._render(0)),this}remove(){var h;this._hash&&this._hash.remove();for(const a of this._controls)a.onRemove(this);this._controls=[],this._frame&&(this._frame.cancel(),this._frame=null),this._renderTaskQueue.clear(),this.painter.destroy(),this.handlers.destroy(),delete this.handlers,this.setStyle(null),typeof window<"u"&&removeEventListener("online",this._onWindowOnline,!1),hi.removeThrottleControl(this._imageQueueHandle),null===(h=this._resizeObserver)||void 0===h||h.disconnect();const t=this.painter.context.gl.getExtension("WEBGL_lose_context");t&&t.loseContext(),this._canvas.removeEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.removeEventListener("webglcontextlost",this._contextLost,!1),re.remove(this._canvasContainer),re.remove(this._controlContainer),this._cooperativeGestures&&this._destroyCooperativeGestures(),this._container.classList.remove("maplibregl-map"),c.PerformanceUtils.clearMetrics(),this._removed=!0,this.fire(new c.Event("remove"))}triggerRepaint(){this.style&&!this._frame&&(this._frame=c.browser.frame(h=>{c.PerformanceUtils.frame(h),this._frame=null,this._render(h)}))}get showTileBoundaries(){return!!this._showTileBoundaries}set showTileBoundaries(h){this._showTileBoundaries!==h&&(this._showTileBoundaries=h,this._update())}get showPadding(){return!!this._showPadding}set showPadding(h){this._showPadding!==h&&(this._showPadding=h,this._update())}get showCollisionBoxes(){return!!this._showCollisionBoxes}set showCollisionBoxes(h){this._showCollisionBoxes!==h&&(this._showCollisionBoxes=h,h?this.style._generateCollisionBoxes():this._update())}get showOverdrawInspector(){return!!this._showOverdrawInspector}set showOverdrawInspector(h){this._showOverdrawInspector!==h&&(this._showOverdrawInspector=h,this._update())}get repaint(){return!!this._repaint}set repaint(h){this._repaint!==h&&(this._repaint=h,this.triggerRepaint())}get vertices(){return!!this._vertices}set vertices(h){this._vertices=h,this._update()}get version(){return"3.3.0"}getCameraTargetElevation(){return this.transform.elevation}},gt.NavigationControl=class{constructor(h){this._updateZoomButtons=()=>{const t=this._map.getZoom(),a=t===this._map.getMaxZoom(),s=t===this._map.getMinZoom();this._zoomInButton.disabled=a,this._zoomOutButton.disabled=s,this._zoomInButton.setAttribute("aria-disabled",a.toString()),this._zoomOutButton.setAttribute("aria-disabled",s.toString())},this._rotateCompassArrow=()=>{const t=this.options.visualizePitch?`scale(${1/Math.pow(Math.cos(this._map.transform.pitch*(Math.PI/180)),.5)}) rotateX(${this._map.transform.pitch}deg) rotateZ(${this._map.transform.angle*(180/Math.PI)}deg)`:`rotate(${this._map.transform.angle*(180/Math.PI)}deg)`;this._compassIcon.style.transform=t},this._setButtonTitle=(t,a)=>{const s=this._map._getUIString(`NavigationControl.${a}`);t.title=s,t.setAttribute("aria-label",s)},this.options=c.extend({},Nt,h),this._container=re.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._container.addEventListener("contextmenu",t=>t.preventDefault()),this.options.showZoom&&(this._zoomInButton=this._createButton("maplibregl-ctrl-zoom-in",t=>this._map.zoomIn({},{originalEvent:t})),re.create("span","maplibregl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden","true"),this._zoomOutButton=this._createButton("maplibregl-ctrl-zoom-out",t=>this._map.zoomOut({},{originalEvent:t})),re.create("span","maplibregl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden","true")),this.options.showCompass&&(this._compass=this._createButton("maplibregl-ctrl-compass",t=>{this.options.visualizePitch?this._map.resetNorthPitch({},{originalEvent:t}):this._map.resetNorth({},{originalEvent:t})}),this._compassIcon=re.create("span","maplibregl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden","true"))}onAdd(h){return this._map=h,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),this._map.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&this._map.on("pitch",this._rotateCompassArrow),this._map.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new ti(this._map,this._compass,this.options.visualizePitch)),this._container}onRemove(){re.remove(this._container),this.options.showZoom&&this._map.off("zoom",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&this._map.off("pitch",this._rotateCompassArrow),this._map.off("rotate",this._rotateCompassArrow),this._handler.off(),delete this._handler),delete this._map}_createButton(h,t){const a=re.create("button",h,this._container);return a.type="button",a.addEventListener("click",t),a}},gt.GeolocateControl=class extends c.Evented{constructor(h){super(),this._onSuccess=t=>{if(this._map){if(this._isOutOfMapMaxBounds(t))return this._setErrorState(),this.fire(new c.Event("outofmaxbounds",t)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=t,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background");break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}this.options.showUserLocation&&"OFF"!==this._watchState&&this._updateMarker(t),this.options.trackUserLocation&&"ACTIVE_LOCK"!==this._watchState||this._updateCamera(t),this.options.showUserLocation&&this._dotElement.classList.remove("maplibregl-user-location-dot-stale"),this.fire(new c.Event("geolocate",t)),this._finish()}},this._updateCamera=t=>{const a=new c.LngLat(t.coords.longitude,t.coords.latitude),s=t.coords.accuracy,l=this._map.getBearing(),p=c.extend({bearing:l},this.options.fitBoundsOptions),f=Ue.fromLngLat(a,s);this._map.fitBounds(f,p,{geolocateSource:!0})},this._updateMarker=t=>{if(t){const a=new c.LngLat(t.coords.longitude,t.coords.latitude);this._accuracyCircleMarker.setLngLat(a).addTo(this._map),this._userLocationDotMarker.setLngLat(a).addTo(this._map),this._accuracy=t.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},this._onZoom=()=>{this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},this._onError=t=>{if(this._map){if(this.options.trackUserLocation)if(1===t.code){this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;const a=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=a,this._geolocateButton.setAttribute("aria-label",a),void 0!==this._geolocationWatchID&&this._clearWatch()}else{if(3===t.code&&Ea)return;this._setErrorState()}"OFF"!==this._watchState&&this.options.showUserLocation&&this._dotElement.classList.add("maplibregl-user-location-dot-stale"),this.fire(new c.Event("error",t)),this._finish()}},this._finish=()=>{this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},this._setupUI=t=>{if(this._map){if(this._container.addEventListener("contextmenu",a=>a.preventDefault()),this._geolocateButton=re.create("button","maplibregl-ctrl-geolocate",this._container),re.create("span","maplibregl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden","true"),this._geolocateButton.type="button",!1===t){c.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");const a=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=a,this._geolocateButton.setAttribute("aria-label",a)}else{const a=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=a,this._geolocateButton.setAttribute("aria-label",a)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=re.create("div","maplibregl-user-location-dot"),this._userLocationDotMarker=new xn({element:this._dotElement}),this._circleElement=re.create("div","maplibregl-user-location-accuracy-circle"),this._accuracyCircleMarker=new xn({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",a=>{a.geolocateSource||"ACTIVE_LOCK"!==this._watchState||a.originalEvent&&"resize"===a.originalEvent.type||(this._watchState="BACKGROUND",this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this.fire(new c.Event("trackuserlocationend")))})}},this.options=c.extend({},$s,h)}onAdd(h){return this._map=h,this._container=re.create("div","maplibregl-ctrl maplibregl-ctrl-group"),function(t,a=!1){void 0===jr||a?void 0!==window.navigator.permissions?window.navigator.permissions.query({name:"geolocation"}).then(s=>{jr="denied"!==s.state,t(jr)}).catch(()=>{jr=!!window.navigator.geolocation,t(jr)}):(jr=!!window.navigator.geolocation,t(jr)):t(jr)}(this._setupUI),this._container}onRemove(){void 0!==this._geolocationWatchID&&(window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),re.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,na=0,Ea=!1}_isOutOfMapMaxBounds(h){const t=this._map.getMaxBounds(),a=h.coords;return t&&(a.longitudet.getEast()||a.latitudet.getNorth())}_setErrorState(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting");break;case"ACTIVE_ERROR":break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}}_updateCircleRadius(){const h=this._map.getBounds(),t=h.getSouthEast(),a=h.getNorthEast(),s=t.distanceTo(a),l=Math.ceil(this._accuracy/(s/this._map._container.clientHeight)*2);this._circleElement.style.width=`${l}px`,this._circleElement.style.height=`${l}px`}trigger(){if(!this._setup)return c.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new c.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":na--,Ea=!1,this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this.fire(new c.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new c.Event("trackuserlocationstart"));break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"OFF":break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}if("OFF"===this._watchState&&void 0!==this._geolocationWatchID)this._clearWatch();else if(void 0===this._geolocationWatchID){let h;this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),na++,na>1?(h={maximumAge:6e5,timeout:0},Ea=!0):(h=this.options.positionOptions,Ea=!1),this._geolocationWatchID=window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,h)}}else window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0}_clearWatch(){window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)}},gt.AttributionControl=jo,gt.LogoControl=Cr,gt.ScaleControl=class{constructor(h){this._onMove=()=>{es(this._map,this._container,this.options)},this.setUnit=t=>{this.options.unit=t,es(this._map,this._container,this.options)},this.options=c.extend({},Zs,h)}getDefaultPosition(){return"bottom-left"}onAdd(h){return this._map=h,this._container=re.create("div","maplibregl-ctrl maplibregl-ctrl-scale",h.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container}onRemove(){re.remove(this._container),this._map.off("move",this._onMove),this._map=void 0}},gt.FullscreenControl=class extends c.Evented{constructor(h={}){super(),this._onFullscreenChange=()=>{(window.document.fullscreenElement||window.document.mozFullScreenElement||window.document.webkitFullscreenElement||window.document.msFullscreenElement)===this._container!==this._fullscreen&&this._handleFullscreenChange()},this._onClickFullscreen=()=>{this._isFullscreen()?this._exitFullscreen():this._requestFullscreen()},this._fullscreen=!1,h&&h.container&&(h.container instanceof HTMLElement?this._container=h.container:c.warnOnce("Full screen control 'container' must be a DOM element.")),"onfullscreenchange"in document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in document&&(this._fullscreenchange="MSFullscreenChange")}onAdd(h){return this._map=h,this._container||(this._container=this._map.getContainer()),this._controlContainer=re.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._setupUI(),this._controlContainer}onRemove(){re.remove(this._controlContainer),this._map=null,window.document.removeEventListener(this._fullscreenchange,this._onFullscreenChange)}_setupUI(){const h=this._fullscreenButton=re.create("button","maplibregl-ctrl-fullscreen",this._controlContainer);re.create("span","maplibregl-ctrl-icon",h).setAttribute("aria-hidden","true"),h.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),window.document.addEventListener(this._fullscreenchange,this._onFullscreenChange)}_updateTitle(){const h=this._getTitle();this._fullscreenButton.setAttribute("aria-label",h),this._fullscreenButton.title=h}_getTitle(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")}_isFullscreen(){return this._fullscreen}_handleFullscreenChange(){this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("maplibregl-ctrl-shrink"),this._fullscreenButton.classList.toggle("maplibregl-ctrl-fullscreen"),this._updateTitle(),this._fullscreen?(this.fire(new c.Event("fullscreenstart")),this._map._cooperativeGestures&&(this._prevCooperativeGestures=this._map._cooperativeGestures,this._map.setCooperativeGestures())):(this.fire(new c.Event("fullscreenend")),this._prevCooperativeGestures&&(this._map.setCooperativeGestures(this._prevCooperativeGestures),delete this._prevCooperativeGestures))}_exitFullscreen(){window.document.exitFullscreen?window.document.exitFullscreen():window.document.mozCancelFullScreen?window.document.mozCancelFullScreen():window.document.msExitFullscreen?window.document.msExitFullscreen():window.document.webkitCancelFullScreen?window.document.webkitCancelFullScreen():this._togglePseudoFullScreen()}_requestFullscreen(){this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen?this._container.webkitRequestFullscreen():this._togglePseudoFullScreen()}_togglePseudoFullScreen(){this._container.classList.toggle("maplibregl-pseudo-fullscreen"),this._handleFullscreenChange(),this._map.resize()}},gt.TerrainControl=class{constructor(h){this._toggleTerrain=()=>{this._map.getTerrain()?this._map.setTerrain(null):this._map.setTerrain(this.options),this._updateTerrainIcon()},this._updateTerrainIcon=()=>{this._terrainButton.classList.remove("maplibregl-ctrl-terrain"),this._terrainButton.classList.remove("maplibregl-ctrl-terrain-enabled"),this._map.terrain?(this._terrainButton.classList.add("maplibregl-ctrl-terrain-enabled"),this._terrainButton.title=this._map._getUIString("TerrainControl.disableTerrain")):(this._terrainButton.classList.add("maplibregl-ctrl-terrain"),this._terrainButton.title=this._map._getUIString("TerrainControl.enableTerrain"))},this.options=h}onAdd(h){return this._map=h,this._container=re.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._terrainButton=re.create("button","maplibregl-ctrl-terrain",this._container),re.create("span","maplibregl-ctrl-icon",this._terrainButton).setAttribute("aria-hidden","true"),this._terrainButton.type="button",this._terrainButton.addEventListener("click",this._toggleTerrain),this._updateTerrainIcon(),this._map.on("terrain",this._updateTerrainIcon),this._container}onRemove(){re.remove(this._container),this._map.off("terrain",this._updateTerrainIcon),this._map=void 0}},gt.Popup=class extends c.Evented{constructor(h){super(),this.remove=()=>(this._content&&re.remove(this._content),this._container&&(re.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new c.Event("close")),this),this._onMouseUp=t=>{this._update(t.point)},this._onMouseMove=t=>{this._update(t.point)},this._onDrag=t=>{this._update(t.point)},this._update=t=>{if(!this._map||!this._lngLat&&!this._trackPointer||!this._content)return;if(!this._container){if(this._container=re.create("div","maplibregl-popup",this._map.getContainer()),this._tip=re.create("div","maplibregl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className)for(const f of this.options.className.split(" "))this._container.classList.add(f);this._trackPointer&&this._container.classList.add("maplibregl-popup-track-pointer")}if(this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=Za(this._lngLat,this._pos,this._map.transform)),this._trackPointer&&!t)return;const a=this._pos=this._trackPointer&&t?t:this._map.project(this._lngLat);let s=this.options.anchor;const l=ts(this.options.offset);if(!s){const f=this._container.offsetWidth,g=this._container.offsetHeight;let _;_=a.y+l.bottom.ythis._map.transform.height-g?["bottom"]:[],a.xthis._map.transform.width-f/2&&_.push("right"),s=0===_.length?"bottom":_.join("-")}const p=a.add(l[s]).round();re.setTransform(this._container,`${Ga[s]} translate(${p.x}px,${p.y}px)`),Qn(this._container,s,"popup")},this._onClose=()=>{this.remove()},this.options=c.extend(Object.create(Gs),h)}addTo(h){return this._map&&this.remove(),this._map=h,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer")):this._map.on("move",this._update),this.fire(new c.Event("open")),this}isOpen(){return!!this._map}getLngLat(){return this._lngLat}setLngLat(h){return this._lngLat=c.LngLat.convert(h),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.remove("maplibregl-track-pointer")),this}trackPointer(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer")),this}getElement(){return this._container}setText(h){return this.setDOMContent(document.createTextNode(h))}setHTML(h){const t=document.createDocumentFragment(),a=document.createElement("body");let s;for(a.innerHTML=h;s=a.firstChild,s;)t.appendChild(s);return this.setDOMContent(t)}getMaxWidth(){var h;return null===(h=this._container)||void 0===h?void 0:h.style.maxWidth}setMaxWidth(h){return this.options.maxWidth=h,this._update(),this}setDOMContent(h){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=re.create("div","maplibregl-popup-content",this._container);return this._content.appendChild(h),this._createCloseButton(),this._update(),this._focusFirstElement(),this}addClassName(h){this._container&&this._container.classList.add(h)}removeClassName(h){this._container&&this._container.classList.remove(h)}setOffset(h){return this.options.offset=h,this._update(),this}toggleClassName(h){if(this._container)return this._container.classList.toggle(h)}_createCloseButton(){this.options.closeButton&&(this._closeButton=re.create("button","maplibregl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))}_focusFirstElement(){if(!this.options.focusAfterOpen||!this._container)return;const h=this._container.querySelector(js);h&&h.focus()}},gt.Marker=xn,gt.Style=Oi,gt.LngLat=c.LngLat,gt.LngLatBounds=Ue,gt.Point=c.Point,gt.MercatorCoordinate=c.MercatorCoordinate,gt.Evented=c.Evented,gt.AJAXError=c.AJAXError,gt.config=c.config,gt.CanvasSource=Q,gt.GeoJSONSource=Ot,gt.ImageSource=pt,gt.RasterDEMTileSource=ai,gt.RasterTileSource=Ct,gt.VectorTileSource=Lt,gt.VideoSource=ft,gt.setRTLTextPlugin=c.setRTLTextPlugin,gt.getRTLTextPluginStatus=c.getRTLTextPluginStatus,gt.prewarm=function(){or().acquire(fe)},gt.clearPrewarmedResources=function(){const h=Wi;h&&(h.isPreloaded()&&1===h.numActive()?(h.release(fe),Wi=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},qs.extend(gt,{isSafari:c.isSafari,getPerformanceMetrics:c.PerformanceUtils.getPerformanceMetrics}),gt}),ka}()}}]); \ No newline at end of file diff --git a/899.697f411c6548efc1.js b/899.697f411c6548efc1.js new file mode 100644 index 000000000..022e96cc2 --- /dev/null +++ b/899.697f411c6548efc1.js @@ -0,0 +1 @@ +(self.webpackChunkdemo_maps=self.webpackChunkdemo_maps||[]).push([[899],{2658:(Bt,ot)=>{ot.read=function(a,G,D,k,z){var U,I,S=8*z-k-1,P=(1<>1,d=-7,u=D?z-1:0,c=D?-1:1,s=a[G+u];for(u+=c,U=s&(1<<-d)-1,s>>=-d,d+=S;d>0;U=256*U+a[G+u],u+=c,d-=8);for(I=U&(1<<-d)-1,U>>=-d,d+=k;d>0;I=256*I+a[G+u],u+=c,d-=8);if(0===U)U=1-p;else{if(U===P)return I?NaN:1/0*(s?-1:1);I+=Math.pow(2,k),U-=p}return(s?-1:1)*I*Math.pow(2,U-k)},ot.write=function(a,G,D,k,z,U){var I,S,P,p=8*U-z-1,d=(1<>1,c=23===z?Math.pow(2,-24)-Math.pow(2,-77):0,s=k?0:U-1,f=k?1:-1,n=G<0||0===G&&1/G<0?1:0;for(G=Math.abs(G),isNaN(G)||G===1/0?(S=isNaN(G)?1:0,I=d):(I=Math.floor(Math.log(G)/Math.LN2),G*(P=Math.pow(2,-I))<1&&(I--,P*=2),(G+=I+u>=1?c/P:c*Math.pow(2,1-u))*P>=2&&(I++,P/=2),I+u>=d?(S=0,I=d):I+u>=1?(S=(G*P-1)*Math.pow(2,z),I+=u):(S=G*Math.pow(2,u-1)*Math.pow(2,z),I=0));z>=8;a[D+s]=255&S,s+=f,S/=256,z-=8);for(I=I<0;a[D+s]=255&I,s+=f,I/=256,p-=8);a[D+s-f]|=128*n}},6697:(Bt,ot,a)=>{"use strict";Bt.exports=D;var G=a(2658);function D(A){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(A)?A:new Uint8Array(A||0),this.pos=0,this.type=0,this.length=this.buf.length}D.Varint=0,D.Fixed64=1,D.Bytes=2,D.Fixed32=5;var k=4294967296,z=1/k,I=typeof TextDecoder>"u"?null:new TextDecoder("utf8");function P(A){return A.type===D.Bytes?A.readVarint()+A.pos:A.pos+1}function s(A,L,b){var M=L<=16383?1:L<=2097151?2:L<=268435455?3:Math.floor(Math.log(L)/(7*Math.LN2));b.realloc(M);for(var C=b.pos-1;C>=A;C--)b.buf[C+M]=b.buf[C]}function f(A,L){for(var b=0;b>>8,A[b+2]=L>>>16,A[b+3]=L>>>24}function R(A,L){return(A[L]|A[L+1]<<8|A[L+2]<<16)+(A[L+3]<<24)}D.prototype={destroy:function(){this.buf=null},readFields:function(A,L,b){for(b=b||this.length;this.pos>3,N=this.pos;this.type=7&M,A(C,L,this),this.pos===N&&this.skip(M)}return L},readMessage:function(A,L){return this.readFields(A,L,this.readVarint()+this.pos)},readFixed32:function(){var A=O(this.buf,this.pos);return this.pos+=4,A},readSFixed32:function(){var A=R(this.buf,this.pos);return this.pos+=4,A},readFixed64:function(){var A=O(this.buf,this.pos)+O(this.buf,this.pos+4)*k;return this.pos+=8,A},readSFixed64:function(){var A=O(this.buf,this.pos)+R(this.buf,this.pos+4)*k;return this.pos+=8,A},readFloat:function(){var A=G.read(this.buf,this.pos,!0,23,4);return this.pos+=4,A},readDouble:function(){var A=G.read(this.buf,this.pos,!0,52,8);return this.pos+=8,A},readVarint:function(A){var b,M,L=this.buf;return b=127&(M=L[this.pos++]),M<128||(b|=(127&(M=L[this.pos++]))<<7,M<128)||(b|=(127&(M=L[this.pos++]))<<14,M<128)||(b|=(127&(M=L[this.pos++]))<<21,M<128)?b:function S(A,L,b){var C,N,M=b.buf;if(C=(112&(N=M[b.pos++]))>>4,N<128||(C|=(127&(N=M[b.pos++]))<<3,N<128)||(C|=(127&(N=M[b.pos++]))<<10,N<128)||(C|=(127&(N=M[b.pos++]))<<17,N<128)||(C|=(127&(N=M[b.pos++]))<<24,N<128)||(C|=(1&(N=M[b.pos++]))<<31,N<128))return function p(A,L,b){return b?4294967296*L+(A>>>0):4294967296*(L>>>0)+(A>>>0)}(A,C,L);throw new Error("Expected varint not more than 10 bytes")}(b|=(15&(M=L[this.pos]))<<28,A,this)},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var A=this.readVarint();return A%2==1?(A+1)/-2:A/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var A=this.readVarint()+this.pos,L=this.pos;return this.pos=A,A-L>=12&&I?function K(A,L,b){return I.decode(A.subarray(L,b))}(this.buf,L,A):function W(A,L,b){for(var M="",C=L;C239?4:N>223?3:N>191?2:1;if(C+it>b)break;1===it?N<128&&(H=N):2===it?128==(192&(Y=A[C+1]))&&(H=(31&N)<<6|63&Y)<=127&&(H=null):3===it?(st=A[C+2],128==(192&(Y=A[C+1]))&&128==(192&st)&&((H=(15&N)<<12|(63&Y)<<6|63&st)<=2047||H>=55296&&H<=57343)&&(H=null)):4===it&&(st=A[C+2],ht=A[C+3],128==(192&(Y=A[C+1]))&&128==(192&st)&&128==(192&ht)&&((H=(15&N)<<18|(63&Y)<<12|(63&st)<<6|63&ht)<=65535||H>=1114112)&&(H=null)),null===H?(H=65533,it=1):H>65535&&(H-=65536,M+=String.fromCharCode(H>>>10&1023|55296),H=56320|1023&H),M+=String.fromCharCode(H),C+=it}return M}(this.buf,L,A)},readBytes:function(){var A=this.readVarint()+this.pos,L=this.buf.subarray(this.pos,A);return this.pos=A,L},readPackedVarint:function(A,L){if(this.type!==D.Bytes)return A.push(this.readVarint(L));var b=P(this);for(A=A||[];this.pos127;);else if(L===D.Bytes)this.pos=this.readVarint()+this.pos;else if(L===D.Fixed32)this.pos+=4;else{if(L!==D.Fixed64)throw new Error("Unimplemented type: "+L);this.pos+=8}},writeTag:function(A,L){this.writeVarint(A<<3|L)},realloc:function(A){for(var L=this.length||16;L268435455||A<0?function d(A,L){var b,M;if(A>=0?(b=A%4294967296|0,M=A/4294967296|0):(M=~(-A/4294967296),4294967295^(b=~(-A%4294967296))?b=b+1|0:(b=0,M=M+1|0)),A>=0x10000000000000000||A<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");L.realloc(10),function u(A,L,b){b.buf[b.pos++]=127&A|128,A>>>=7,b.buf[b.pos++]=127&A|128,A>>>=7,b.buf[b.pos++]=127&A|128,A>>>=7,b.buf[b.pos++]=127&A|128,b.buf[b.pos]=127&(A>>>=7)}(b,0,L),function c(A,L){var b=(7&A)<<4;L.buf[L.pos++]|=b|((A>>>=3)?128:0),A&&(L.buf[L.pos++]=127&A|((A>>>=7)?128:0),A&&(L.buf[L.pos++]=127&A|((A>>>=7)?128:0),A&&(L.buf[L.pos++]=127&A|((A>>>=7)?128:0),A&&(L.buf[L.pos++]=127&A|((A>>>=7)?128:0),A&&(L.buf[L.pos++]=127&A)))))}(M,L)}(A,this):(this.realloc(4),this.buf[this.pos++]=127&A|(A>127?128:0),!(A<=127)&&(this.buf[this.pos++]=127&(A>>>=7)|(A>127?128:0),!(A<=127)&&(this.buf[this.pos++]=127&(A>>>=7)|(A>127?128:0),!(A<=127)&&(this.buf[this.pos++]=A>>>7&127))))},writeSVarint:function(A){this.writeVarint(A<0?2*-A-1:2*A)},writeBoolean:function(A){this.writeVarint(Boolean(A))},writeString:function(A){A=String(A),this.realloc(4*A.length),this.pos++;var L=this.pos;this.pos=function nt(A,L,b){for(var C,N,M=0;M55295&&C<57344){if(!N){C>56319||M+1===L.length?(A[b++]=239,A[b++]=191,A[b++]=189):N=C;continue}if(C<56320){A[b++]=239,A[b++]=191,A[b++]=189,N=C;continue}C=N-55296<<10|C-56320|65536,N=null}else N&&(A[b++]=239,A[b++]=191,A[b++]=189,N=null);C<128?A[b++]=C:(C<2048?A[b++]=C>>6|192:(C<65536?A[b++]=C>>12|224:(A[b++]=C>>18|240,A[b++]=C>>12&63|128),A[b++]=C>>6&63|128),A[b++]=63&C|128)}return b}(this.buf,A,this.pos);var b=this.pos-L;b>=128&&s(L,b,this),this.pos=L-1,this.writeVarint(b),this.pos+=b},writeFloat:function(A){this.realloc(4),G.write(this.buf,A,this.pos,!0,23,4),this.pos+=4},writeDouble:function(A){this.realloc(8),G.write(this.buf,A,this.pos,!0,52,8),this.pos+=8},writeBytes:function(A){var L=A.length;this.writeVarint(L),this.realloc(L);for(var b=0;b=128&&s(b,M,this),this.pos=b-1,this.writeVarint(M),this.pos+=M},writeMessage:function(A,L,b){this.writeTag(A,D.Bytes),this.writeRawMessage(L,b)},writePackedVarint:function(A,L){L.length&&this.writeMessage(A,f,L)},writePackedSVarint:function(A,L){L.length&&this.writeMessage(A,n,L)},writePackedBoolean:function(A,L){L.length&&this.writeMessage(A,e,L)},writePackedFloat:function(A,L){L.length&&this.writeMessage(A,h,L)},writePackedDouble:function(A,L){L.length&&this.writeMessage(A,g,L)},writePackedFixed32:function(A,L){L.length&&this.writeMessage(A,E,L)},writePackedSFixed32:function(A,L){L.length&&this.writeMessage(A,v,L)},writePackedFixed64:function(A,L){L.length&&this.writeMessage(A,x,L)},writePackedSFixed64:function(A,L){L.length&&this.writeMessage(A,w,L)},writeBytesField:function(A,L){this.writeTag(A,D.Bytes),this.writeBytes(L)},writeFixed32Field:function(A,L){this.writeTag(A,D.Fixed32),this.writeFixed32(L)},writeSFixed32Field:function(A,L){this.writeTag(A,D.Fixed32),this.writeSFixed32(L)},writeFixed64Field:function(A,L){this.writeTag(A,D.Fixed64),this.writeFixed64(L)},writeSFixed64Field:function(A,L){this.writeTag(A,D.Fixed64),this.writeSFixed64(L)},writeVarintField:function(A,L){this.writeTag(A,D.Varint),this.writeVarint(L)},writeSVarintField:function(A,L){this.writeTag(A,D.Varint),this.writeSVarint(L)},writeStringField:function(A,L){this.writeTag(A,D.Bytes),this.writeString(L)},writeFloatField:function(A,L){this.writeTag(A,D.Fixed32),this.writeFloat(L)},writeDoubleField:function(A,L){this.writeTag(A,D.Fixed64),this.writeDouble(L)},writeBooleanField:function(A,L){this.writeVarintField(A,Boolean(L))}}},3431:(Bt,ot,a)=>{"use strict";a.d(ot,{Z:()=>be});var S=6378137,p=.0066943799901413165,d=484813681109536e-20,u=Math.PI/2,n=1e-10,h=.017453292519943295,g=57.29577951308232,e=Math.PI/4,E=2*Math.PI,v=3.14159265359,x={greenwich:0,lisbon:-9.131906111111,paris:2.337229166667,bogota:-74.080916666667,madrid:-3.687938888889,rome:12.452333333333,bern:7.439583333333,jakarta:106.807719444444,ferro:-17.666666666667,brussels:4.367975,stockholm:18.058277777778,athens:23.7163375,oslo:10.722916666667};const w={ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937}};var O=/[\s_\-\/\(\)]/g;function y(t,l){if(t[l])return t[l];for(var X,_=Object.keys(t),B=l.toLowerCase().replace(O,""),j=-1;++j<_.length;)if((X=_[j]).toLowerCase().replace(O,"")===B)return t[X]}function R(t){var B,j,X,l={},_=t.split("+").map(function(tt){return tt.trim()}).filter(function(tt){return tt}).reduce(function(tt,ut){var Et=ut.split("=");return Et.push(!0),tt[Et[0].toLowerCase()]=Et[1],tt},{}),et={proj:"projName",datum:"datumCode",rf:function(tt){l.rf=parseFloat(tt)},lat_0:function(tt){l.lat0=tt*h},lat_1:function(tt){l.lat1=tt*h},lat_2:function(tt){l.lat2=tt*h},lat_ts:function(tt){l.lat_ts=tt*h},lon_0:function(tt){l.long0=tt*h},lon_1:function(tt){l.long1=tt*h},lon_2:function(tt){l.long2=tt*h},alpha:function(tt){l.alpha=parseFloat(tt)*h},gamma:function(tt){l.rectified_grid_angle=parseFloat(tt)},lonc:function(tt){l.longc=tt*h},x_0:function(tt){l.x0=parseFloat(tt)},y_0:function(tt){l.y0=parseFloat(tt)},k_0:function(tt){l.k0=parseFloat(tt)},k:function(tt){l.k0=parseFloat(tt)},a:function(tt){l.a=parseFloat(tt)},b:function(tt){l.b=parseFloat(tt)},r_a:function(){l.R_A=!0},zone:function(tt){l.zone=parseInt(tt,10)},south:function(){l.utmSouth=!0},towgs84:function(tt){l.datum_params=tt.split(",").map(function(ut){return parseFloat(ut)})},to_meter:function(tt){l.to_meter=parseFloat(tt)},units:function(tt){l.units=tt;var ut=y(w,tt);ut&&(l.to_meter=ut.to_meter)},from_greenwich:function(tt){l.from_greenwich=tt*h},pm:function(tt){var ut=y(x,tt);l.from_greenwich=(ut||parseFloat(tt))*h},nadgrids:function(tt){"@null"===tt?l.datumCode="none":l.nadgrids=tt},axis:function(tt){var ut="ewnsud";3===tt.length&&-1!==ut.indexOf(tt.substr(0,1))&&-1!==ut.indexOf(tt.substr(1,1))&&-1!==ut.indexOf(tt.substr(2,1))&&(l.axis=tt)},approx:function(){l.approx=!0}};for(B in _)j=_[B],B in et?"function"==typeof(X=et[B])?X(j):l[X]=j:l[B]=j;return"string"==typeof l.datumCode&&"WGS84"!==l.datumCode&&(l.datumCode=l.datumCode.toLowerCase()),l}var C=/\s/,N=/[A-Za-z]/,H=/[A-Za-z84_]/,it=/[,\]]/,Y=/[\d\.E\-\+]/;function st(t){if("string"!=typeof t)throw new Error("not a string");this.text=t.trim(),this.level=0,this.place=0,this.root=null,this.stack=[],this.currentObject=null,this.state=1}function Tt(t,l,_){Array.isArray(l)&&(_.unshift(l),l=null);var j=_.reduce(function(X,et){return vt(et,X),X},l?{}:t);l&&(t[l]=j)}function vt(t,l){if(Array.isArray(t)){var _=t.shift();if("PARAMETER"===_&&(_=t.shift()),1===t.length)return Array.isArray(t[0])?(l[_]={},void vt(t[0],l[_])):void(l[_]=t[0]);if(t.length)if("TOWGS84"!==_){if("AXIS"===_)return _ in l||(l[_]=[]),void l[_].push(t);var B;switch(Array.isArray(_)||(l[_]={}),_){case"UNIT":case"PRIMEM":case"VERT_DATUM":return l[_]={name:t[0].toLowerCase(),convert:t[1]},void(3===t.length&&vt(t[2],l[_]));case"SPHEROID":case"ELLIPSOID":return l[_]={name:t[0],a:t[1],rf:t[2]},void(4===t.length&&vt(t[3],l[_]));case"PROJECTEDCRS":case"PROJCRS":case"GEOGCS":case"GEOCCS":case"PROJCS":case"LOCAL_CS":case"GEODCRS":case"GEODETICCRS":case"GEODETICDATUM":case"EDATUM":case"ENGINEERINGDATUM":case"VERT_CS":case"VERTCRS":case"VERTICALCRS":case"COMPD_CS":case"COMPOUNDCRS":case"ENGINEERINGCRS":case"ENGCRS":case"FITTED_CS":case"LOCAL_DATUM":case"DATUM":return t[0]=["name",t[0]],void Tt(l,_,t);default:for(B=-1;++B0?90:-90)):(t.lat0=Gt(t.lat1>0?90:-90),t.lat_ts=t.lat1)}(j),j}function zt(t){var l=this;if(2===arguments.length){var _=arguments[1];zt[t]="string"==typeof _?"+"===_.charAt(0)?R(arguments[1]):ie(arguments[1]):_}else if(1===arguments.length){if(Array.isArray(t))return t.map(function(B){Array.isArray(B)?zt.apply(l,B):zt(B)});if("string"==typeof t){if(t in zt)return zt[t]}else"EPSG"in t?zt["EPSG:"+t.EPSG]=t:"ESRI"in t?zt["ESRI:"+t.ESRI]=t:"IAU2000"in t?zt["IAU2000:"+t.IAU2000]=t:console.log(t);return}}st.prototype.readCharicter=function(){var t=this.text[this.place++];if(4!==this.state)for(;C.test(t);){if(this.place>=this.text.length)return;t=this.text[this.place++]}switch(this.state){case 1:return this.neutral(t);case 2:return this.keyword(t);case 4:return this.quoted(t);case 5:return this.afterquote(t);case 3:return this.number(t);case-1:return}},st.prototype.afterquote=function(t){if('"'===t)return this.word+='"',void(this.state=4);if(it.test(t))return this.word=this.word.trim(),void this.afterItem(t);throw new Error("havn't handled \""+t+'" in afterquote yet, index '+this.place)},st.prototype.afterItem=function(t){return","===t?(null!==this.word&&this.currentObject.push(this.word),this.word=null,void(this.state=1)):"]"===t?(this.level--,null!==this.word&&(this.currentObject.push(this.word),this.word=null),this.state=1,this.currentObject=this.stack.pop(),void(this.currentObject||(this.state=-1))):void 0},st.prototype.number=function(t){if(!Y.test(t)){if(it.test(t))return this.word=parseFloat(this.word),void this.afterItem(t);throw new Error("havn't handled \""+t+'" in number yet, index '+this.place)}this.word+=t},st.prototype.quoted=function(t){'"'!==t?this.word+=t:this.state=5},st.prototype.keyword=function(t){if(H.test(t))this.word+=t;else{if("["===t){var l=[];return l.push(this.word),this.level++,null===this.root?this.root=l:this.currentObject.push(l),this.stack.push(this.currentObject),this.currentObject=l,void(this.state=1)}if(!it.test(t))throw new Error("havn't handled \""+t+'" in keyword yet, index '+this.place);this.afterItem(t)}},st.prototype.neutral=function(t){if(N.test(t))return this.word=t,void(this.state=2);if('"'===t)return this.word="",void(this.state=4);if(Y.test(t))return this.word=t,void(this.state=3);if(!it.test(t))throw new Error("havn't handled \""+t+'" in neutral yet, index '+this.place);this.afterItem(t)},st.prototype.output=function(){for(;this.place90&&_*g<-90&&l*g>180&&l*g<-180)return null;if(Math.abs(Math.abs(_)-u)<=n)return null;if(this.sphere)B=this.x0+this.a*this.k0*Wt(l-this.long0),j=this.y0+this.a*this.k0*Math.log(Math.tan(e+.5*_));else{var X=Math.sin(_),et=he(this.e,_,X);B=this.x0+this.a*this.k0*Wt(l-this.long0),j=this.y0-this.a*this.k0*Math.log(et)}return t.x=B,t.y=j,t},inverse:function It(t){var B,j,l=t.x-this.x0,_=t.y-this.y0;if(this.sphere)j=u-2*Math.atan(Math.exp(-_/(this.a*this.k0)));else{var X=Math.exp(-_/(this.a*this.k0));if(-9999===(j=_e(this.e,X)))return null}return B=Wt(this.long0+l/(this.a*this.k0)),t.x=B,t.y=j,t},names:["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"]},{init:function F(){},forward:Q,inverse:Q,names:["longlat","identity"]}],St={},Nt=[];function Xt(t,l){var _=Nt.length;return t.names?(Nt[_]=t,t.names.forEach(function(B){St[B.toLowerCase()]=_}),this):(console.log(l),!0)}const se={start:function Ee(){_t.forEach(Xt)},add:Xt,get:function Jt(t){if(!t)return!1;var l=t.toLowerCase();return typeof St[l]<"u"&&Nt[St[l]]?Nt[St[l]]:void 0}};var Qt={MERIT:{a:6378137,rf:298.257,ellipseName:"MERIT 1983"},SGS85:{a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"},GRS80:{a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"},IAU76:{a:6378140,rf:298.257,ellipseName:"IAU 1976"},airy:{a:6377563.396,b:6356256.91,ellipseName:"Airy 1830"},APL4:{a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"},NWL9D:{a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"},mod_airy:{a:6377340.189,b:6356034.446,ellipseName:"Modified Airy"},andrae:{a:6377104.43,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"},aust_SA:{a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"},GRS67:{a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"},bessel:{a:6377397.155,rf:299.1528128,ellipseName:"Bessel 1841"},bess_nam:{a:6377483.865,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"},clrk66:{a:6378206.4,b:6356583.8,ellipseName:"Clarke 1866"},clrk80:{a:6378249.145,rf:293.4663,ellipseName:"Clarke 1880 mod."},clrk80ign:{a:6378249.2,b:6356515,rf:293.4660213,ellipseName:"Clarke 1880 (IGN)"},clrk58:{a:6378293.645208759,rf:294.2606763692654,ellipseName:"Clarke 1858"},CPM:{a:6375738.7,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"},delmbr:{a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"},engelis:{a:6378136.05,rf:298.2566,ellipseName:"Engelis 1985"},evrst30:{a:6377276.345,rf:300.8017,ellipseName:"Everest 1830"},evrst48:{a:6377304.063,rf:300.8017,ellipseName:"Everest 1948"},evrst56:{a:6377301.243,rf:300.8017,ellipseName:"Everest 1956"},evrst69:{a:6377295.664,rf:300.8017,ellipseName:"Everest 1969"},evrstSS:{a:6377298.556,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"},fschr60:{a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"},fschr60m:{a:6378155,rf:298.3,ellipseName:"Fischer 1960"},fschr68:{a:6378150,rf:298.3,ellipseName:"Fischer 1968"},helmert:{a:6378200,rf:298.3,ellipseName:"Helmert 1906"},hough:{a:6378270,rf:297,ellipseName:"Hough"},intl:{a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"},kaula:{a:6378163,rf:298.24,ellipseName:"Kaula 1961"},lerch:{a:6378139,rf:298.257,ellipseName:"Lerch 1979"},mprts:{a:6397300,rf:191,ellipseName:"Maupertius 1738"},new_intl:{a:6378157.5,b:6356772.2,ellipseName:"New International 1967"},plessis:{a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"},krass:{a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"},SEasia:{a:6378155,b:6356773.3205,ellipseName:"Southeast Asia"},walbeck:{a:6376896,b:6355834.8467,ellipseName:"Walbeck"},WGS60:{a:6378165,rf:298.3,ellipseName:"WGS 60"},WGS66:{a:6378145,rf:298.25,ellipseName:"WGS 66"},WGS7:{a:6378135,rf:298.26,ellipseName:"WGS 72"}},Fe=Qt.WGS84={a:6378137,rf:298.257223563,ellipseName:"WGS 84"};Qt.sphere={a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"};var Ge={wgs84:{towgs84:"0,0,0",ellipse:"WGS84",datumName:"WGS84"},ch1903:{towgs84:"674.374,15.056,405.346",ellipse:"bessel",datumName:"swiss"},ggrs87:{towgs84:"-199.87,74.79,246.62",ellipse:"GRS80",datumName:"Greek_Geodetic_Reference_System_1987"},nad83:{towgs84:"0,0,0",ellipse:"GRS80",datumName:"North_American_Datum_1983"},nad27:{nadgrids:"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",ellipse:"clrk66",datumName:"North_American_Datum_1927"},potsdam:{towgs84:"598.1,73.7,418.2,0.202,0.045,-2.455,6.7",ellipse:"bessel",datumName:"Potsdam Rauenberg 1950 DHDN"},carthage:{towgs84:"-263.0,6.0,431.0",ellipse:"clark80",datumName:"Carthage 1934 Tunisia"},hermannskogel:{towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Hermannskogel"},osni52:{towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"airy",datumName:"Irish National"},ire65:{towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"mod_airy",datumName:"Ireland 1965"},rassadiran:{towgs84:"-133.63,-157.5,-158.62",ellipse:"intl",datumName:"Rassadiran"},nzgd49:{towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",ellipse:"intl",datumName:"New Zealand Geodetic Datum 1949"},osgb36:{towgs84:"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",ellipse:"airy",datumName:"Airy 1830"},s_jtsk:{towgs84:"589,76,480",ellipse:"bessel",datumName:"S-JTSK (Ferro)"},beduaram:{towgs84:"-106,-87,188",ellipse:"clrk80",datumName:"Beduaram"},gunung_segara:{towgs84:"-403,684,41",ellipse:"bessel",datumName:"Gunung Segara Jakarta"},rnb72:{towgs84:"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",ellipse:"intl",datumName:"Reseau National Belge 1972"}};var ii={};function q(t){if(0===t.length)return null;var l="@"===t[0];return l&&(t=t.slice(1)),"null"===t?{name:"null",mandatory:!l,grid:null,isNull:!0}:{name:t,mandatory:!l,grid:ii[t]||null,isNull:!1}}function $(t){return t/3600*Math.PI/180}function Rt(t,l,_){return String.fromCharCode.apply(null,new Uint8Array(t.buffer.slice(l,_)))}function ne(t){return t.map(function(l){return[$(l.longitudeShift),$(l.latitudeShift)]})}function me(t,l,_){return{name:Rt(t,l+8,l+16).trim(),parent:Rt(t,l+24,l+24+8).trim(),lowerLatitude:t.getFloat64(l+72,_),upperLatitude:t.getFloat64(l+88,_),lowerLongitude:t.getFloat64(l+104,_),upperLongitude:t.getFloat64(l+120,_),latitudeInterval:t.getFloat64(l+136,_),longitudeInterval:t.getFloat64(l+152,_),gridNodeCount:t.getInt32(l+168,_)}}function Me(t,l,_,B){for(var j=l+176,et=[],tt=0;tt<_.gridNodeCount;tt++){var ut={latitudeShift:t.getFloat32(j+16*tt,B),longitudeShift:t.getFloat32(j+16*tt+4,B),latitudeAccuracy:t.getFloat32(j+16*tt+8,B),longitudeAccuracy:t.getFloat32(j+16*tt+12,B)};et.push(ut)}return et}function Re(t,l){if(!(this instanceof Re))return new Re(t);l=l||function(Et){if(Et)throw Et};var _=function qt(t){if(!function de(t){return"string"==typeof t}(t))return t;if(function ce(t){return t in ue}(t))return ue[t];if(function dt(t){return Se.some(function(l){return t.indexOf(l)>-1})}(t)){var l=ie(t);if(function At(t){var l=y(t,"authority");if(l){var _=y(l,"epsg");return _&&Ot.indexOf(_)>-1}}(l))return ue["EPSG:3857"];var _=function Yt(t){var l=y(t,"extension");if(l)return y(l,"proj4")}(l);return _?R(_):l}return function ge(t){return"+"===t[0]}(t)?R(t):void 0}(t);if("object"==typeof _){var B=Re.projections.get(_.projName);if(B){if(_.datumCode&&"none"!==_.datumCode){var j=y(Ge,_.datumCode);j&&(_.datum_params=_.datum_params||(j.towgs84?j.towgs84.split(","):null),_.ellps=j.ellipse,_.datumName=j.datumName?j.datumName:_.datumCode)}_.k0=_.k0||1,_.axis=_.axis||"enu",_.ellps=_.ellps||"wgs84",_.lat1=_.lat1||_.lat0;var X=function We(t,l,_,B,j){if(!t){var X=y(Qt,B);X||(X=Fe),t=X.a,l=X.b,_=X.rf}return _&&!l&&(l=(1-1/_)*t),(0===_||Math.abs(t-l)3&&(0!==tt.datum_params[3]||0!==tt.datum_params[4]||0!==tt.datum_params[5]||0!==tt.datum_params[6])&&(tt.datum_type=2,tt.datum_params[3]*=d,tt.datum_params[4]*=d,tt.datum_params[5]*=d,tt.datum_params[6]=tt.datum_params[6]/1e6+1)),et&&(tt.datum_type=3,tt.grids=et),tt.a=_,tt.b=B,tt.es=j,tt.ep2=X,tt}(_.datumCode,_.datum_params,X.a,X.b,et.es,et.ep2,tt);Mt(this,_),Mt(this,B),this.a=X.a,this.b=X.b,this.rf=X.rf,this.sphere=X.sphere,this.es=et.es,this.e=et.e,this.ep2=et.ep2,this.datum=ut,this.init(),l(null,this)}else l(t)}else l(t)}(Re.projections=se).start();const De=Re;function Xe(t,l,_){var et,tt,Et,B=t.x,j=t.y,X=t.z?t.z:0;if(j<-u&&j>-1.001*u)j=-u;else if(j>u&&j<1.001*u)j=u;else{if(j<-u)return{x:-1/0,y:-1/0,z:t.z};if(j>u)return{x:1/0,y:1/0,z:t.z}}return B>Math.PI&&(B-=2*Math.PI),tt=Math.sin(j),Et=Math.cos(j),{x:((et=_/Math.sqrt(1-l*(tt*tt)))+X)*Et*Math.cos(B),y:(et+X)*Et*Math.sin(B),z:(et*(1-l)+X)*tt}}function ni(t,l,_,B){var tt,ut,Et,Ut,Pt,Vt,ae,re,oe,ye,Te,Ne,Be,Ce,Je,Ke=t.x,pe=t.y,ke=t.z?t.z:0;if(tt=Math.sqrt(Ke*Ke+pe*pe),ut=Math.sqrt(Ke*Ke+pe*pe+ke*ke),tt/_<1e-12){if(Ce=0,ut/_<1e-12)return Je=-B,{x:t.x,y:t.y,z:t.z}}else Ce=Math.atan2(pe,Ke);Et=ke/ut,re=(Ut=tt/ut)*(1-l)*(Pt=1/Math.sqrt(1-l*(2-l)*Ut*Ut)),oe=Et*Pt,Be=0;do{Be++,Vt=l*(ae=_/Math.sqrt(1-l*oe*oe))/(ae+(Je=tt*re+ke*oe-ae*(1-l*oe*oe))),Ne=(Te=Et*(Pt=1/Math.sqrt(1-Vt*(2-Vt)*Ut*Ut)))*re-(ye=Ut*(1-Vt)*Pt)*oe,re=ye,oe=Te}while(Ne*Ne>1e-24&&Be<30);return{x:Ce,y:Math.atan(Te/Math.abs(ye)),z:Je}}function yi(t){return 1===t||2===t}function bi(t,l,_){if(null===t.grids||0===t.grids.length)return console.log("Grid shift grids not found"),-1;for(var B={x:-_.x,y:_.y},j={x:Number.NaN,y:Number.NaN},et=[],tt=0;ttB.y||Et.ll[0]-Ut>B.x||Et.ll[1]+(Et.lim[1]-1)*Et.del[1]+Ut1e-12&&Math.abs(ut.y)>1e-12);if(et<0)return console.log("Inverse grid shift iterator failed to converge."),B;B.x=Wt(X.x+_.ll[0]),B.y=X.y+_.ll[1]}else isNaN(X.x)||(B.x=t.x+X.x,B.y=t.y+X.y);return B}function ui(t,l){var et,_={x:t.x/l.del[0],y:t.y/l.del[1]},B_x=Math.floor(_.x),B_y=Math.floor(_.y),j_x=_.x-1*B_x,j_y=_.y-1*B_y,X={x:Number.NaN,y:Number.NaN};if(B_x<0||B_x>=l.lim[0]||B_y<0||B_y>=l.lim[1])return X;var tt_x=l.cvs[et=B_y*l.lim[0]+B_x][0],tt_y=l.cvs[et][1];et++;var ut_x=l.cvs[et][0],ut_y=l.cvs[et][1],Et_x=l.cvs[et+=l.lim[0]][0],Et_y=l.cvs[et][1];et--;var Ut_y=l.cvs[et][1],Pt=j_x*j_y,Vt=j_x*(1-j_y),ae=(1-j_x)*(1-j_y),re=(1-j_x)*j_y;return X.x=ae*tt_x+Vt*ut_x+re*l.cvs[et][0]+Pt*Et_x,X.y=ae*tt_y+Vt*ut_y+re*Ut_y+Pt*Et_y,X}function Ei(t,l,_){var et,tt,ut,B=_.x,j=_.y,X=_.z||0,Et={};for(ut=0;ut<3;ut++)if(!l||2!==ut||void 0!==_.z)switch(0===ut?(et=B,tt=-1!=="ew".indexOf(t.axis[ut])?"x":"y"):1===ut?(et=j,tt=-1!=="ns".indexOf(t.axis[ut])?"y":"x"):(et=X,tt="z"),t.axis[ut]){case"e":case"n":Et[tt]=et;break;case"w":case"s":Et[tt]=-et;break;case"u":void 0!==_[tt]&&(Et.z=et);break;case"d":void 0!==_[tt]&&(Et.z=-et);break;default:return null}return Et}function _i(t){var l={x:t[0],y:t[1]};return t.length>2&&(l.z=t[2]),t.length>3&&(l.m=t[3]),l}function Gi(t){if("function"==typeof Number.isFinite){if(Number.isFinite(t))return;throw new TypeError("coordinates must be finite numbers")}if("number"!=typeof t||t!=t||!isFinite(t))throw new TypeError("coordinates must be finite numbers")}function ri(t,l,_,B){var j,X=void 0!==(_=Array.isArray(_)?_i(_):{x:_.x,y:_.y,z:_.z,m:_.m}).z;if(function si(t){Gi(t.x),Gi(t.y)}(_),t.datum&&l.datum&&function Ci(t,l){return(1===t.datum.datum_type||2===t.datum.datum_type||3===t.datum.datum_type)&&"WGS84"!==l.datumCode||(1===l.datum.datum_type||2===l.datum.datum_type||3===l.datum.datum_type)&&"WGS84"!==t.datumCode}(t,l)&&(_=ri(t,j=new De("WGS84"),_,B),t=j),B&&"enu"!==t.axis&&(_=Ei(t,!1,_)),"longlat"===t.projName)_={x:_.x*h,y:_.y*h,z:_.z||0};else if(t.to_meter&&(_={x:_.x*t.to_meter,y:_.y*t.to_meter,z:_.z||0}),!(_=t.inverse(_)))return;if(t.from_greenwich&&(_.x+=t.from_greenwich),_=function Mn(t,l,_){if(function je(t,l){return!(t.datum_type!==l.datum_type||t.a!==l.a||Math.abs(t.es-l.es)>5e-11)&&(1===t.datum_type?t.datum_params[0]===l.datum_params[0]&&t.datum_params[1]===l.datum_params[1]&&t.datum_params[2]===l.datum_params[2]:2!==t.datum_type||t.datum_params[0]===l.datum_params[0]&&t.datum_params[1]===l.datum_params[1]&&t.datum_params[2]===l.datum_params[2]&&t.datum_params[3]===l.datum_params[3]&&t.datum_params[4]===l.datum_params[4]&&t.datum_params[5]===l.datum_params[5]&&t.datum_params[6]===l.datum_params[6])}(t,l)||5===t.datum_type||5===l.datum_type)return _;var B=t.a,j=t.es;if(3===t.datum_type){if(0!==bi(t,!1,_))return;B=S,j=p}var et=l.a,tt=l.b,ut=l.es;return 3===l.datum_type&&(et=S,tt=6356752.314,ut=p),j!==ut||B!==et||yi(t.datum_type)||yi(l.datum_type)?(_=Xe(_,j,B),yi(t.datum_type)&&(_=function vi(t,l,_){if(1===l)return{x:t.x+_[0],y:t.y+_[1],z:t.z+_[2]};if(2===l){var et=_[3],tt=_[4],ut=_[5],Et=_[6];return{x:Et*(t.x-ut*t.y+tt*t.z)+_[0],y:Et*(ut*t.x+t.y-et*t.z)+_[1],z:Et*(-tt*t.x+et*t.y+t.z)+_[2]}}}(_,t.datum_type,t.datum_params)),yi(l.datum_type)&&(_=function gi(t,l,_){if(1===l)return{x:t.x-_[0],y:t.y-_[1],z:t.z-_[2]};if(2===l){var et=_[3],tt=_[4],ut=_[5],Et=_[6],Ut=(t.x-_[0])/Et,Pt=(t.y-_[1])/Et,Vt=(t.z-_[2])/Et;return{x:Ut+ut*Pt-tt*Vt,y:-ut*Ut+Pt+et*Vt,z:tt*Ut-et*Pt+Vt}}}(_,l.datum_type,l.datum_params)),_=ni(_,ut,et,tt),3!==l.datum_type||0===bi(l,!0,_)?_:void 0):_}(t.datum,l.datum,_))return l.from_greenwich&&(_={x:_.x-l.from_greenwich,y:_.y,z:_.z||0}),"longlat"===l.projName?_={x:_.x*g,y:_.y*g,z:_.z||0}:(_=l.forward(_),l.to_meter&&(_={x:_.x/l.to_meter,y:_.y/l.to_meter,z:_.z||0})),B&&"enu"!==l.axis?Ei(l,!0,_):(X||delete _.z,_)}var xi=De("WGS84");function Ri(t,l,_,B){var j,X,et;return Array.isArray(_)?(j=ri(t,l,_,B)||{x:NaN,y:NaN},_.length>2?typeof t.name<"u"&&"geocent"===t.name||typeof l.name<"u"&&"geocent"===l.name?"number"==typeof j.z?[j.x,j.y,j.z].concat(_.splice(3)):[j.x,j.y,_[2]].concat(_.splice(3)):[j.x,j.y].concat(_.splice(2)):[j.x,j.y]):(X=ri(t,l,_,B),2===(et=Object.keys(_)).length||et.forEach(function(tt){if(typeof t.name<"u"&&"geocent"===t.name||typeof l.name<"u"&&"geocent"===l.name){if("x"===tt||"y"===tt||"z"===tt)return}else if("x"===tt||"y"===tt)return;X[tt]=_[tt]}),X)}function Vi(t){return t instanceof De?t:t.oProj?t.oProj:De(t)}const Oi=function Ws(t,l,_){t=Vi(t);var j,B=!1;return typeof l>"u"?(l=t,t=xi,B=!0):(typeof l.x<"u"||Array.isArray(l))&&(_=l,l=t,t=xi,B=!0),l=Vi(l),_?Ri(t,l,_):(j={forward:function(X,et){return Ri(t,l,X,et)},inverse:function(X,et){return Ri(l,t,X,et)}},B&&(j.oProj=l),j)};const Gs={forward:Pn,inverse:function cs(t){var l=zn(On(t.toUpperCase()));return l.lat&&l.lon?[l.lon,l.lat,l.lon,l.lat]:[l.left,l.bottom,l.right,l.top]},toPoint:Cn};function Pn(t,l){return l=l||5,function Bi(t,l){var _="00000"+t.easting,B="00000"+t.northing;return t.zoneNumber+t.zoneLetter+function Kn(t,l,_){var B=cn(_);return function kn(t,l,_){var B=_-1,j="AJSAJS".charCodeAt(B),X="AFAFAF".charCodeAt(B),et=j+t-1,tt=X+l,ut=!1;return et>90&&(et=et-90+65-1,ut=!0),(73===et||j<73&&et>73||(et>73||j<73)&&ut)&&et++,(79===et||j<79&&et>79||(et>79||j<79)&&ut)&&73==++et&&et++,et>90&&(et=et-90+65-1),tt>86?(tt=tt-86+65-1,ut=!0):ut=!1,(73===tt||X<73&&tt>73||(tt>73||X<73)&&ut)&&tt++,(79===tt||X<79&&tt>79||(tt>79||X<79)&&ut)&&73==++tt&&tt++,tt>86&&(tt=tt-86+65-1),String.fromCharCode(et)+String.fromCharCode(tt)}(Math.floor(t/1e5),Math.floor(l/1e5)%20,B)}(t.easting,t.northing,t.zoneNumber)+_.substr(_.length-5,l)+B.substr(B.length-5,l)}(function ds(t){var tt,ut,Et,Ut,Pt,oe,ye,l=t.lat,_=t.lon,B=6378137,j=.00669438,X=.9996,ae=Rn(l),re=Rn(_);ye=Math.floor((_+180)/6)+1,180===_&&(ye=60),l>=56&&l<64&&_>=3&&_<12&&(ye=32),l>=72&&l<84&&(_>=0&&_<9?ye=31:_>=9&&_<21?ye=33:_>=21&&_<33?ye=35:_>=33&&_<42&&(ye=37)),oe=Rn(6*(ye-1)-180+3),tt=j/(1-j),ut=B/Math.sqrt(1-j*Math.sin(ae)*Math.sin(ae)),Et=Math.tan(ae)*Math.tan(ae),Ut=tt*Math.cos(ae)*Math.cos(ae);var Te=X*ut*((Pt=Math.cos(ae)*(re-oe))+(1-Et+Ut)*Pt*Pt*Pt/6+(5-18*Et+Et*Et+72*Ut-58*tt)*Pt*Pt*Pt*Pt*Pt/120)+5e5,Ne=X*(B*(.9983242984503243*ae-.002514607064228144*Math.sin(2*ae)+2639046602129982e-21*Math.sin(4*ae)-35*j*j*j/3072*Math.sin(6*ae))+ut*Math.tan(ae)*(Pt*Pt/2+(5-Et+9*Ut+4*Ut*Ut)*Pt*Pt*Pt*Pt/24+(61-58*Et+Et*Et+600*Ut-330*tt)*Pt*Pt*Pt*Pt*Pt*Pt/720));return l<0&&(Ne+=1e7),{northing:Math.round(Ne),easting:Math.round(Te),zoneNumber:ye,zoneLetter:zs(l)}}({lat:t[1],lon:t[0]}),l)}function Cn(t){var l=zn(On(t.toUpperCase()));return l.lat&&l.lon?[l.lon,l.lat]:[(l.left+l.right)/2,(l.top+l.bottom)/2]}function Rn(t){return t*(Math.PI/180)}function Gn(t){return t/Math.PI*180}function zn(t){var l=t.northing,_=t.easting,B=t.zoneLetter,j=t.zoneNumber;if(j<0||j>60)return null;var ut,Ut,Pt,Vt,ae,re,ye,Te,Ne,X=.9996,tt=.00669438,Et=(1-Math.sqrt(1-tt))/(1+Math.sqrt(1-tt)),Be=_-5e5,Ke=l;B<"N"&&(Ke-=1e7),ye=6*(j-1)-180+3,ut=tt/(1-tt),Ne=(Te=Ke/X/6367449.145945056)+(3*Et/2-27*Et*Et*Et/32)*Math.sin(2*Te)+(21*Et*Et/16-55*Et*Et*Et*Et/32)*Math.sin(4*Te)+151*Et*Et*Et/96*Math.sin(6*Te),Ut=6378137/Math.sqrt(1-tt*Math.sin(Ne)*Math.sin(Ne)),Pt=Math.tan(Ne)*Math.tan(Ne),Vt=ut*Math.cos(Ne)*Math.cos(Ne),ae=6378137*(1-tt)/Math.pow(1-tt*Math.sin(Ne)*Math.sin(Ne),1.5),re=Be/(Ut*X);var pe=Ne-Ut*Math.tan(Ne)/ae*(re*re/2-(5+3*Pt+10*Vt-4*Vt*Vt-9*ut)*re*re*re*re/24+(61+90*Pt+298*Vt+45*Pt*Pt-252*ut-3*Vt*Vt)*re*re*re*re*re*re/720);pe=Gn(pe);var Ce,ke=(re-(1+2*Pt+Vt)*re*re*re/6+(5-2*Vt+28*Pt-3*Vt*Vt+8*ut+24*Pt*Pt)*re*re*re*re*re/120)/Math.cos(Ne);if(ke=ye+Gn(ke),t.accuracy){var Pe=zn({northing:t.northing+t.accuracy,easting:t.easting+t.accuracy,zoneLetter:t.zoneLetter,zoneNumber:t.zoneNumber});Ce={top:Pe.lat,right:Pe.lon,bottom:pe,left:ke}}else Ce={lat:pe,lon:ke};return Ce}function zs(t){var l="Z";return 84>=t&&t>=72?l="X":72>t&&t>=64?l="W":64>t&&t>=56?l="V":56>t&&t>=48?l="U":48>t&&t>=40?l="T":40>t&&t>=32?l="S":32>t&&t>=24?l="R":24>t&&t>=16?l="Q":16>t&&t>=8?l="P":8>t&&t>=0?l="N":0>t&&t>=-8?l="M":-8>t&&t>=-16?l="L":-16>t&&t>=-24?l="K":-24>t&&t>=-32?l="J":-32>t&&t>=-40?l="H":-40>t&&t>=-48?l="G":-48>t&&t>=-56?l="F":-56>t&&t>=-64?l="E":-64>t&&t>=-72?l="D":-72>t&&t>=-80&&(l="C"),l}function cn(t){var l=t%6;return 0===l&&(l=6),l}function On(t){if(t&&0===t.length)throw"MGRSPoint coverting from nothing";for(var j,l=t.length,_=null,B="",X=0;!/[A-Z]/.test(j=t.charAt(X));){if(X>=2)throw"MGRSPoint bad conversion from: "+t;B+=j,X++}var et=parseInt(B,10);if(0===X||X+3>l)throw"MGRSPoint bad conversion from: "+t;var tt=t.charAt(X++);if(tt<="A"||"B"===tt||"Y"===tt||tt>="Z"||"I"===tt||"O"===tt)throw"MGRSPoint zone letter "+tt+" not handled: "+t;_=t.substring(X,X+=2);for(var ut=cn(et),Et=function Yi(t,l){for(var _="AJSAJS".charCodeAt(l-1),B=1e5,j=!1;_!==t.charCodeAt(0);){if(73==++_&&_++,79===_&&_++,_>90){if(j)throw"Bad character: "+t;_=65,j=!0}B+=1e5}return B}(_.charAt(0),ut),Ut=function fs(t,l){if(t>"V")throw"MGRSPoint given invalid Northing "+t;for(var _="AFAFAF".charCodeAt(l-1),B=0,j=!1;_!==t.charCodeAt(0);){if(73==++_&&_++,79===_&&_++,_>86){if(j)throw"Bad character: "+t;_=65,j=!0}B+=1e5}return B}(_.charAt(1),ut);Ut0&&(oe=1e5/Math.pow(10,Vt),ye=t.substring(X,X+Vt),ae=parseFloat(ye)*oe,Te=t.substring(X+Vt),re=parseFloat(Te)*oe),{easting:ae+Et,northing:re+Ut,zoneLetter:tt,zoneNumber:et,accuracy:oe}}function Hi(t){var l;switch(t){case"C":l=11e5;break;case"D":l=2e6;break;case"E":l=28e5;break;case"F":l=37e5;break;case"G":l=46e5;break;case"H":l=55e5;break;case"J":l=64e5;break;case"K":l=73e5;break;case"L":l=82e5;break;case"M":l=91e5;break;case"N":l=0;break;case"P":l=8e5;break;case"Q":l=17e5;break;case"R":l=26e5;break;case"S":l=35e5;break;case"T":l=44e5;break;case"U":l=53e5;break;case"V":l=62e5;break;case"W":l=7e6;break;case"X":l=79e5;break;default:l=-1}if(l>=0)return l;throw"Invalid zone letter: "+t}function zi(t,l,_){if(!(this instanceof zi))return new zi(t,l,_);if(Array.isArray(t))this.x=t[0],this.y=t[1],this.z=t[2]||0;else if("object"==typeof t)this.x=t.x,this.y=t.y,this.z=t.z||0;else if("string"==typeof t&&typeof l>"u"){var B=t.split(",");this.x=parseFloat(B[0],10),this.y=parseFloat(B[1],10),this.z=parseFloat(B[2],10)||0}else this.x=t,this.y=l,this.z=_||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}zi.fromMGRS=function(t){return new zi(Cn(t))},zi.prototype.toMGRS=function(t){return Pn([this.x,this.y],t)};const Xn=zi;var _s=.01953125,Ki=.01068115234375;function Jn(t){var l=[];l[0]=1-t*(.25+t*(.046875+t*(_s+t*Ki))),l[1]=t*(.75-t*(.046875+t*(_s+t*Ki)));var _=t*t;return l[2]=_*(.46875-t*(.013020833333333334+.007120768229166667*t)),l[3]=(_*=t)*(.3645833333333333-.005696614583333333*t),l[4]=_*t*.3076171875,l}function Ti(t,l,_,B){return B[0]*t-(_*=l)*(B[1]+(l*=l)*(B[2]+l*(B[3]+l*B[4])))}function Qn(t,l,_){for(var B=1/(1-l),j=t,X=20;X;--X){var et=Math.sin(j),tt=1-l*et*et;if(j-=tt=(Ti(j,et,Math.cos(j),_)-t)*(tt*Math.sqrt(tt))*B,Math.abs(tt)n?Math.tan(_):0,oe=Math.pow(re,2),ye=Math.pow(oe,2);j=1-this.es*Math.pow(tt,2),Ut/=Math.sqrt(j);var Te=Ti(_,tt,ut,this.en);X=this.a*(this.k0*Ut*(1+Pt/6*(1-oe+Vt+Pt/20*(5-18*oe+ye+14*Vt-58*oe*Vt+Pt/42*(61+179*ye-ye*oe-479*oe)))))+this.x0,et=this.a*(this.k0*(Te-this.ml0+tt*B*Ut/2*(1+Pt/12*(5-oe+9*Vt+4*ae+Pt/30*(61+ye-58*oe+270*Vt-330*oe*Vt+Pt/56*(1385+543*ye-ye*oe-3111*oe))))))+this.y0}else{var Et=ut*Math.sin(B);if(Math.abs(Math.abs(Et)-1)=1){if(Et-1>n)return 93;et=0}else et=Math.acos(et);_<0&&(et=-et),et=this.a*this.k0*(et-this.lat0)+this.y0}return t.x=X,t.y=et,t},inverse:function Sn(t){var l,_,B,j,X=1/this.a*(t.x-this.x0),et=1/this.a*(t.y-this.y0);if(this.es)if(_=Qn(l=this.ml0+et/this.k0,this.es,this.en),Math.abs(_)n?Math.tan(_):0,re=this.ep2*Math.pow(Vt,2),oe=Math.pow(re,2),ye=Math.pow(ae,2),Te=Math.pow(ye,2);l=1-this.es*Math.pow(Pt,2);var Ne=X*Math.sqrt(l)/this.k0,Be=Math.pow(Ne,2);B=_-(l*=ae)*Be/(1-this.es)*.5*(1-Be/12*(5+3*ye-9*re*ye+re-4*oe-Be/30*(61+90*ye-252*re*ye+45*Te+46*re-Be/56*(1385+3633*ye+4095*Te+1574*Te*ye)))),j=Wt(this.long0+Ne*(1-Be/6*(1+2*ye+re-Be/20*(5+28*ye+24*Te+8*re*ye+6*re-Be/42*(61+662*ye+1320*Te+720*Te*ye))))/Vt)}else B=u*jt(et),j=0;else{var tt=Math.exp(X/this.k0),ut=.5*(tt-1/tt),Ut=Math.cos(this.lat0+et/this.k0);l=Math.sqrt((1-Math.pow(Ut,2))/(1+Math.pow(ut,2))),B=Math.asin(l),et<0&&(B=-B),j=0===ut&&0===Ut?0:Wt(Math.atan2(ut,Ut)+this.long0)}return t.x=j,t.y=B,t},names:["Fast_Transverse_Mercator","Fast Transverse Mercator"]};function dn(t){var l=Math.exp(t);return(l-1/l)/2}function wi(t,l){t=Math.abs(t),l=Math.abs(l);var _=Math.max(t,l),B=Math.min(t,l)/(_||1);return _*Math.sqrt(1+Math.pow(B,2))}function qn(t,l){for(var et,_=2*Math.cos(2*l),B=t.length-1,j=t[B],X=0;--B>=0;)et=_*j-X+t[B],X=j,j=et;return l+et*Math.sin(2*l)}function at(t,l,_){for(var re,oe,B=Math.sin(l),j=Math.cos(l),X=dn(_),et=function Kt(t){var l=Math.exp(t);return(l+1/l)/2}(_),tt=2*j*et,ut=-2*B*X,Et=t.length-1,Ut=t[Et],Pt=0,Vt=0,ae=0;--Et>=0;)re=Vt,oe=Pt,Ut=tt*(Vt=Ut)-re-ut*(Pt=ae)+t[Et],ae=ut*Vt-oe+tt*Pt;return[(tt=B*et)*Ut-(ut=j*X)*ae,tt*ae+ut*Ut]}const ee={init:function ft(){if(!this.approx&&(isNaN(this.es)||this.es<=0))throw new Error('Incorrect elliptical usage. Try using the +approx option in the proj string, or PROJECTION["Fast_Transverse_Mercator"] in the WKT.');this.approx&&(en.init.apply(this),this.forward=en.forward,this.inverse=en.inverse),this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var t=this.es/(1+Math.sqrt(1-this.es)),l=t/(2-t),_=l;this.cgb[0]=l*(2+l*(-2/3+l*(l*(116/45+l*(26/45+l*(-2854/675)))-2))),this.cbg[0]=l*(l*(2/3+l*(4/3+l*(-82/45+l*(32/45+l*(4642/4725)))))-2),this.cgb[1]=(_*=l)*(7/3+l*(l*(-227/45+l*(2704/315+l*(2323/945)))-1.6)),this.cbg[1]=_*(5/3+l*(-16/15+l*(-13/9+l*(904/315+l*(-1522/945))))),this.cgb[2]=(_*=l)*(56/15+l*(-136/35+l*(-1262/105+l*(73814/2835)))),this.cbg[2]=_*(-26/15+l*(34/21+l*(1.6+l*(-12686/2835)))),this.cgb[3]=(_*=l)*(4279/630+l*(-332/35+l*(-399572/14175))),this.cbg[3]=_*(1237/630+l*(l*(-24832/14175)-2.4)),this.cgb[4]=(_*=l)*(4174/315+l*(-144838/6237)),this.cbg[4]=_*(-734/315+l*(109598/31185)),this.cgb[5]=(_*=l)*(601676/22275),this.cbg[5]=_*(444337/155925),_=Math.pow(l,2),this.Qn=this.k0/(1+l)*(1+_*(1/4+_*(1/64+_/256))),this.utg[0]=l*(l*(2/3+l*(-37/96+l*(1/360+l*(81/512+l*(-96199/604800)))))-.5),this.gtu[0]=l*(.5+l*(-2/3+l*(5/16+l*(41/180+l*(-127/288+l*(7891/37800)))))),this.utg[1]=_*(-1/48+l*(-1/15+l*(437/1440+l*(-46/105+l*(1118711/3870720))))),this.gtu[1]=_*(13/48+l*(l*(557/1440+l*(281/630+l*(-1983433/1935360)))-.6)),this.utg[2]=(_*=l)*(-17/480+l*(37/840+l*(209/4480+l*(-5569/90720)))),this.gtu[2]=_*(61/240+l*(-103/140+l*(15061/26880+l*(167603/181440)))),this.utg[3]=(_*=l)*(-4397/161280+l*(11/504+l*(830251/7257600))),this.gtu[3]=_*(49561/161280+l*(-179/168+l*(6601661/7257600))),this.utg[4]=(_*=l)*(-4583/161280+l*(108847/3991680)),this.gtu[4]=_*(34729/80640+l*(-3418889/1995840)),this.utg[5]=(_*=l)*(-20648693/638668800),this.gtu[5]=.6650675310896665*_;var B=qn(this.cbg,this.lat0);this.Zb=-this.Qn*(B+function Ys(t,l){for(var et,_=2*Math.cos(l),B=t.length-1,j=t[B],X=0;--B>=0;)et=_*j-X+t[B],X=j,j=et;return Math.sin(l)*et}(this.gtu,2*B))},forward:function yt(t){var l=Wt(t.x-this.long0),_=t.y;_=qn(this.cbg,_);var B=Math.sin(_),j=Math.cos(_),X=Math.sin(l),et=Math.cos(l);_=Math.atan2(B,et*j),l=Math.atan2(X*j,wi(B,j*et)),l=function Vs(t){var l=Math.abs(t);return l=function Es(t){var l=1+t,_=l-1;return 0===_?t:t*Math.log(l)/_}(l*(1+l/(wi(1,l)+1))),t<0?-l:l}(Math.tan(l));var ut,Et,tt=at(this.gtu,2*_,2*l);return _+=tt[0],l+=tt[1],Math.abs(l)<=2.623395162778?(ut=this.a*(this.Qn*l)+this.x0,Et=this.a*(this.Qn*_+this.Zb)+this.y0):(ut=1/0,Et=1/0),t.x=ut,t.y=Et,t},inverse:function wt(t){var B,j,l=1/this.a*(t.x-this.x0),_=1/this.a*(t.y-this.y0);if(_=(_-this.Zb)/this.Qn,l/=this.Qn,Math.abs(l)<=2.623395162778){var X=at(this.utg,2*_,2*l);_+=X[0],l+=X[1],l=Math.atan(dn(l));var et=Math.sin(_),tt=Math.cos(_),ut=Math.sin(l),Et=Math.cos(l);_=Math.atan2(et*Et,wi(ut,Et*tt)),B=Wt((l=Math.atan2(ut,Et*tt))+this.long0),j=qn(this.cgb,_)}else B=1/0,j=1/0;return t.x=B,t.y=j,t},names:["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc","Transverse_Mercator","Transverse Mercator","tmerc"]},He={init:function Oe(){var t=function ve(t,l){if(void 0===t){if((t=Math.floor(30*(Wt(l)+Math.PI)/Math.PI)+1)<0)return 0;if(t>60)return 60}return t}(this.zone,this.long0);if(void 0===t)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(t)-183)*h,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,ee.init.apply(this),this.forward=ee.forward,this.inverse=ee.inverse},names:["Universal Transverse Mercator System","utm"],dependsOn:"etmerc"};function ti(t,l){return Math.pow((1-t)/(1+t),l)}const Pi={init:function li(){var t=Math.sin(this.lat0),l=Math.cos(this.lat0);l*=l,this.rc=Math.sqrt(1-this.es)/(1-this.es*t*t),this.C=Math.sqrt(1+this.es*l*l/(1-this.es)),this.phic0=Math.asin(t/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+e)/(Math.pow(Math.tan(.5*this.lat0+e),this.C)*ti(this.e*t,this.ratexp))},forward:function pi(t){var l=t.x,_=t.y;return t.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*_+e),this.C)*ti(this.e*Math.sin(_),this.ratexp))-u,t.x=this.C*l,t},inverse:function ci(t){for(var _=t.x/this.C,B=t.y,j=Math.pow(Math.tan(.5*B+e)/this.K,1/this.C),X=20;X>0&&(B=2*Math.atan(j*ti(this.e*Math.sin(t.y),-.5*this.e))-u,!(Math.abs(B-t.y)<1e-14));--X)t.y=B;return X?(t.x=_,t.y=B,t):null},names:["gauss"]},Fi={init:function fi(){Pi.init.apply(this),this.rc&&(this.sinc0=Math.sin(this.phic0),this.cosc0=Math.cos(this.phic0),this.R2=2*this.rc,this.title||(this.title="Oblique Stereographic Alternative"))},forward:function Ii(t){var l,_,B,j;return t.x=Wt(t.x-this.long0),Pi.forward.apply(this,[t]),l=Math.sin(t.y),_=Math.cos(t.y),B=Math.cos(t.x),t.x=(j=this.k0*this.R2/(1+this.sinc0*l+this.cosc0*_*B))*_*Math.sin(t.x),t.y=j*(this.cosc0*l-this.sinc0*_*B),t.x=this.a*t.x+this.x0,t.y=this.a*t.y+this.y0,t},inverse:function Di(t){var l,_,B,j,X;if(t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,t.x/=this.k0,t.y/=this.k0,X=Math.sqrt(t.x*t.x+t.y*t.y)){var et=2*Math.atan2(X,this.R2);l=Math.sin(et),_=Math.cos(et),j=Math.asin(_*this.sinc0+t.y*l*this.cosc0/X),B=Math.atan2(t.x*l,X*this.cosc0*_-t.y*this.sinc0*l)}else j=this.phic0,B=0;return t.x=B,t.y=j,Pi.inverse.apply(this,[t]),t.x=Wt(t.x+this.long0),t},names:["Stereographic_North_Pole","Oblique_Stereographic","Polar_Stereographic","sterea","Oblique Stereographic Alternative","Double_Stereographic"]},es={init:function ts(){this.coslat0=Math.cos(this.lat0),this.sinlat0=Math.sin(this.lat0),this.sphere?1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=n&&(this.k0=.5*(1+jt(this.lat0)*Math.sin(this.lat_ts))):(Math.abs(this.coslat0)<=n&&(this.con=this.lat0>0?1:-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=n&&(this.k0=.5*this.cons*Zt(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/he(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=Zt(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-u,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))},forward:function fn(t){var X,et,tt,ut,Et,Ut,l=t.x,_=t.y,B=Math.sin(_),j=Math.cos(_),Pt=Wt(l-this.long0);return Math.abs(Math.abs(l-this.long0)-Math.PI)<=n&&Math.abs(_+this.lat0)<=n?(t.x=NaN,t.y=NaN,t):this.sphere?(X=2*this.k0/(1+this.sinlat0*B+this.coslat0*j*Math.cos(Pt)),t.x=this.a*X*j*Math.sin(Pt)+this.x0,t.y=this.a*X*(this.coslat0*B-this.sinlat0*j*Math.cos(Pt))+this.y0,t):(et=2*Math.atan(this.ssfn_(_,B,this.e))-u,ut=Math.cos(et),tt=Math.sin(et),Math.abs(this.coslat0)<=n?(Et=he(this.e,_*this.con,this.con*B),t.x=this.x0+(Ut=2*this.a*this.k0*Et/this.cons)*Math.sin(l-this.long0),t.y=this.y0-this.con*Ut*Math.cos(l-this.long0),t):(Math.abs(this.sinlat0)0?this.long0+Math.atan2(t.x,-1*t.y):this.long0+Math.atan2(t.x,t.y)):Wt(this.long0+Math.atan2(t.x*Math.sin(tt),et*this.coslat0*Math.cos(tt)-t.y*this.sinlat0*Math.sin(tt))),t.x=l,t.y=_,t)}if(Math.abs(this.coslat0)<=n){if(et<=n)return _=this.lat0,t.x=l=this.long0,t.y=_,t;t.x*=this.con,t.y*=this.con,_=this.con*_e(this.e,et*this.cons/(2*this.a*this.k0)),l=this.con*Wt(this.con*this.long0+Math.atan2(t.x,-1*t.y))}else j=2*Math.atan(et*this.cosX0/(2*this.a*this.k0*this.ms1)),l=this.long0,et<=n?X=this.X0:(X=Math.asin(Math.cos(j)*this.sinX0+t.y*Math.sin(j)*this.cosX0/et),l=Wt(this.long0+Math.atan2(t.x*Math.sin(j),et*this.cosX0*Math.cos(j)-t.y*this.sinX0*Math.sin(j)))),_=-1*_e(this.e,Math.tan(.5*(u+X)));return t.x=l,t.y=_,t},names:["stere","Stereographic_South_Pole","Polar Stereographic (variant B)"],ssfn_:function xs(t,l,_){return l*=_,Math.tan(.5*(u+t))*Math.pow((1-l)/(1+l),.5*_)}},pa={init:function Ps(){var t=this.lat0;this.lambda0=this.long0;var l=Math.sin(t),_=this.a,j=1/this.rf,X=2*j-Math.pow(j,2),et=this.e=Math.sqrt(X);this.R=this.k0*_*Math.sqrt(1-X)/(1-X*Math.pow(l,2)),this.alpha=Math.sqrt(1+X/(1-X)*Math.pow(Math.cos(t),4)),this.b0=Math.asin(l/this.alpha);var tt=Math.log(Math.tan(Math.PI/4+this.b0/2)),ut=Math.log(Math.tan(Math.PI/4+t/2)),Et=Math.log((1+et*l)/(1-et*l));this.K=tt-this.alpha*ut+this.alpha*et/2*Et},forward:function ga(t){var l=Math.log(Math.tan(Math.PI/4-t.y/2)),_=this.e/2*Math.log((1+this.e*Math.sin(t.y))/(1-this.e*Math.sin(t.y))),j=2*(Math.atan(Math.exp(-this.alpha*(l+_)+this.K))-Math.PI/4),X=this.alpha*(t.x-this.lambda0),et=Math.atan(Math.sin(X)/(Math.sin(this.b0)*Math.tan(j)+Math.cos(this.b0)*Math.cos(X))),tt=Math.asin(Math.cos(this.b0)*Math.sin(j)-Math.sin(this.b0)*Math.cos(j)*Math.cos(X));return t.y=this.R/2*Math.log((1+Math.sin(tt))/(1-Math.sin(tt)))+this.y0,t.x=this.R*et+this.x0,t},inverse:function _a(t){for(var B=(t.x-this.x0)/this.R,j=2*(Math.atan(Math.exp((t.y-this.y0)/this.R))-Math.PI/4),X=Math.asin(Math.cos(this.b0)*Math.sin(j)+Math.sin(this.b0)*Math.cos(j)*Math.cos(B)),et=Math.atan(Math.sin(B)/(Math.cos(this.b0)*Math.cos(B)-Math.sin(this.b0)*Math.tan(j))),tt=this.lambda0+et/this.alpha,ut=0,Et=X,Ut=-1e3,Pt=0;Math.abs(Et-Ut)>1e-7;){if(++Pt>20)return;ut=1/this.alpha*(Math.log(Math.tan(Math.PI/4+X/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(Et))/2)),Ut=Et,Et=2*Math.atan(Math.exp(ut))-Math.PI/2}return t.x=tt,t.y=Et,t},names:["somerc"]};var In=1e-7;const Ma={init:function va(){var t,l,_,B,j,X,et,tt,ut,Et,Pt,Ut=0,Vt=0,ae=0,re=0,oe=0,ye=0,Te=0;this.no_off=function An(t){var _="object"==typeof t.PROJECTION?Object.keys(t.PROJECTION)[0]:t.PROJECTION;return"no_uoff"in t||"no_off"in t||-1!==["Hotine_Oblique_Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin"].indexOf(_)}(this),this.no_rot="no_rot"in this;var Be=!1;"alpha"in this&&(Be=!0);var Ke=!1;if("rectified_grid_angle"in this&&(Ke=!0),Be&&(Te=this.alpha),Ke&&(Ut=this.rectified_grid_angle*h),Be||Ke)Vt=this.longc;else if(ae=this.long1,oe=this.lat1,re=this.long2,ye=this.lat2,Math.abs(oe-ye)<=In||(t=Math.abs(oe))<=In||Math.abs(t-u)<=In||Math.abs(Math.abs(this.lat0)-u)<=In||Math.abs(Math.abs(ye)-u)<=In)throw new Error;var pe=1-this.es;l=Math.sqrt(pe),Math.abs(this.lat0)>n?(tt=Math.sin(this.lat0),_=Math.cos(this.lat0),t=1-this.es*tt*tt,this.B=_*_,this.B=Math.sqrt(1+this.es*this.B*this.B/pe),this.A=this.B*this.k0*l/t,(j=(B=this.B*l/(_*Math.sqrt(t)))*B-1)<=0?j=0:(j=Math.sqrt(j),this.lat0<0&&(j=-j)),this.E=j+=B,this.E*=Math.pow(he(this.e,this.lat0,tt),this.B)):(this.B=1/l,this.A=this.k0,this.E=B=j=1),Be||Ke?(Be?(Pt=Math.asin(Math.sin(Te)/B),Ke||(Ut=Te)):(Pt=Ut,Te=Math.asin(B*Math.sin(Pt))),this.lam0=Vt-Math.asin(.5*(j-1/j)*Math.tan(Pt))/this.B):(X=Math.pow(he(this.e,oe,Math.sin(oe)),this.B),et=Math.pow(he(this.e,ye,Math.sin(ye)),this.B),j=this.E/X,ut=(et-X)/(et+X),Et=((Et=this.E*this.E)-et*X)/(Et+et*X),(t=ae-re)<-Math.pi?re-=E:t>Math.pi&&(re+=E),this.lam0=Wt(.5*(ae+re)-Math.atan(Et*Math.tan(.5*this.B*(ae-re))/ut)/this.B),Pt=Math.atan(2*Math.sin(this.B*Wt(ae-this.lam0))/(j-1/j)),Ut=Te=Math.asin(B*Math.sin(Pt))),this.singam=Math.sin(Pt),this.cosgam=Math.cos(Pt),this.sinrot=Math.sin(Ut),this.cosrot=Math.cos(Ut),this.rB=1/this.B,this.ArB=this.A*this.rB,this.BrA=1/this.ArB,this.no_off?this.u_0=0:(this.u_0=Math.abs(this.ArB*Math.atan(Math.sqrt(B*B-1)/Math.cos(Te))),this.lat0<0&&(this.u_0=-this.u_0)),j=.5*Pt,this.v_pole_n=this.ArB*Math.log(Math.tan(e-j)),this.v_pole_s=this.ArB*Math.log(Math.tan(e+j))},forward:function ya(t){var _,B,j,X,et,tt,ut,Et,l={};if(t.x=t.x-this.lam0,Math.abs(Math.abs(t.y)-u)>n){if(_=.5*((et=this.E/Math.pow(he(this.e,t.y,Math.sin(t.y)),this.B))-(tt=1/et)),B=.5*(et+tt),X=Math.sin(this.B*t.x),j=(_*this.singam-X*this.cosgam)/B,Math.abs(Math.abs(j)-1)0?this.v_pole_n:this.v_pole_s,ut=this.ArB*t.y;return this.no_rot?(l.x=ut,l.y=Et):(l.x=Et*this.cosrot+(ut-=this.u_0)*this.sinrot,l.y=ut*this.cosrot-Et*this.sinrot),l.x=this.a*l.x+this.x0,l.y=this.a*l.y+this.y0,l},inverse:function Ea(t){var l,_,B,j,X,et,tt,ut={};if(t.x=1/this.a*(t.x-this.x0),t.y=1/this.a*(t.y-this.y0),this.no_rot?(_=t.y,l=t.x):(_=t.x*this.cosrot-t.y*this.sinrot,l=t.y*this.cosrot+t.x*this.sinrot+this.u_0),j=.5*((B=Math.exp(-this.BrA*_))-1/B),X=.5*(B+1/B),tt=((et=Math.sin(this.BrA*l))*this.cosgam+j*this.singam)/X,Math.abs(Math.abs(tt)-1)n?Math.log(B/tt)/Math.log(j/ut):l,isNaN(this.ns)&&(this.ns=l),this.f0=B/(this.ns*Math.pow(j,this.ns)),this.rh=this.a*this.f0*Math.pow(Et,this.ns),this.title||(this.title="Lambert Conformal Conic")}},forward:function gn(t){var l=t.x,_=t.y;Math.abs(2*Math.abs(_)-Math.PI)<=n&&(_=jt(_)*(u-2*n));var j,X,B=Math.abs(Math.abs(_)-u);if(B>n)j=he(this.e,_,Math.sin(_)),X=this.a*this.f0*Math.pow(j,this.ns);else{if((B=_*this.ns)<=0)return null;X=0}var et=this.ns*Wt(l-this.long0);return t.x=this.k0*(X*Math.sin(et))+this.x0,t.y=this.k0*(this.rh-X*Math.cos(et))+this.y0,t},inverse:function Pa(t){var l,_,B,j,X,et=(t.x-this.x0)/this.k0,tt=this.rh-(t.y-this.y0)/this.k0;this.ns>0?(l=Math.sqrt(et*et+tt*tt),_=1):(l=-Math.sqrt(et*et+tt*tt),_=-1);var ut=0;if(0!==l&&(ut=Math.atan2(_*et,_*tt)),0!==l||this.ns>0){if(_=1/this.ns,B=Math.pow(l/(this.a*this.f0),_),-9999===(j=_e(this.e,B)))return null}else j=-u;return X=Wt(ut/this.ns+this.long0),t.x=X,t.y=j,t},names:["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_1SP","Lambert_Conformal_Conic_2SP","lcc","Lambert Conic Conformal (1SP)","Lambert Conic Conformal (2SP)"]},Ra={init:function Cr(){this.a=6377397.155,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.4334234309119251),this.k0||(this.k0=.9999),this.s45=.785398163397448,this.s90=2*this.s45,this.fi0=this.lat0,this.e2=this.es,this.e=Math.sqrt(this.e2),this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2)),this.uq=1.04216856380474,this.u0=Math.asin(Math.sin(this.fi0)/this.alfa),this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2),this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g,this.k1=this.k0,this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2)),this.s0=1.37008346281555,this.n=Math.sin(this.s0),this.ro0=this.k1*this.n0/Math.tan(this.s0),this.ad=this.s90-this.uq},forward:function Rr(t){var l,_,B,j,X,et,tt,Et=t.y,Ut=Wt(t.x-this.long0);return l=Math.pow((1+this.e*Math.sin(Et))/(1-this.e*Math.sin(Et)),this.alfa*this.e/2),_=2*(Math.atan(this.k*Math.pow(Math.tan(Et/2+this.s45),this.alfa)/l)-this.s45),B=-Ut*this.alfa,j=Math.asin(Math.cos(this.ad)*Math.sin(_)+Math.sin(this.ad)*Math.cos(_)*Math.cos(B)),X=Math.asin(Math.cos(_)*Math.sin(B)/Math.cos(j)),et=this.n*X,tt=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(j/2+this.s45),this.n),t.y=tt*Math.cos(et)/1,t.x=tt*Math.sin(et)/1,this.czech||(t.y*=-1,t.x*=-1),t},inverse:function Or(t){var l,_,B,j,et,tt,ut,Et=t.x;t.x=t.y,t.y=Et,this.czech||(t.y*=-1,t.x*=-1),et=Math.sqrt(t.x*t.x+t.y*t.y),j=Math.atan2(t.y,t.x)/Math.sin(this.s0),B=2*(Math.atan(Math.pow(this.ro0/et,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),l=Math.asin(Math.cos(this.ad)*Math.sin(B)-Math.sin(this.ad)*Math.cos(B)*Math.cos(j)),_=Math.asin(Math.cos(B)*Math.sin(j)/Math.cos(l)),t.x=this.long0-_/this.alfa,tt=l,ut=0;var Ut=0;do{t.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(l/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(tt))/(1-this.e*Math.sin(tt)),this.e/2))-this.s45),Math.abs(tt-t.y)<1e-10&&(ut=1),tt=t.y,Ut+=1}while(0===ut&&Ut<15);return Ut>=15?null:t},names:["Krovak","krovak"]};function di(t,l,_,B,j){return t*j-l*Math.sin(2*j)+_*Math.sin(4*j)-B*Math.sin(6*j)}function bn(t){return 1-.25*t*(1+t/16*(3+1.25*t))}function mn(t){return.375*t*(1+.25*t*(1+.46875*t))}function ki(t){return.05859375*t*t*(1+.75*t)}function is(t){return t*t*t*(35/3072)}function Ln(t,l,_){var B=l*_;return t/Math.sqrt(1-B*B)}function wn(t){return Math.abs(t)1e-7?(1-t*t)*(l/(1-(_=t*l)*_)-.5/t*Math.log((1-_)/(1+_))):2*l}const Lr={init:function $s(){var l,t=Math.abs(this.lat0);if(this.mode=Math.abs(t-u)0)switch(this.qp=nn(this.e,1),this.mmf=.5/(1-this.es),this.apa=function Da(t){var l,_=[];return _[0]=.3333333333333333*t,_[0]+=.17222222222222222*(l=t*t),_[1]=.06388888888888888*l,_[0]+=.10257936507936508*(l*=t),_[1]+=.0664021164021164*l,_[2]=.016415012942191543*l,_}(this.es),this.mode){case this.N_POLE:case this.S_POLE:this.dd=1;break;case this.EQUIT:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case this.OBLIQ:this.rq=Math.sqrt(.5*this.qp),l=Math.sin(this.lat0),this.sinb1=nn(this.e,l)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*l*l)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd}else this.mode===this.OBLIQ&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))},forward:function Sr(t){var l,_,B,j,X,et,tt,ut,Et,Ut,Pt=t.x,Vt=t.y;if(Pt=Wt(Pt-this.long0),this.sphere){if(X=Math.sin(Vt),Ut=Math.cos(Vt),B=Math.cos(Pt),this.mode===this.OBLIQ||this.mode===this.EQUIT){if((_=this.mode===this.EQUIT?1+Ut*B:1+this.sinph0*X+this.cosph0*Ut*B)<=n)return null;l=(_=Math.sqrt(2/_))*Ut*Math.sin(Pt),_*=this.mode===this.EQUIT?X:this.cosph0*X-this.sinph0*Ut*B}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(B=-B),Math.abs(Vt+this.lat0)=0?(l=(Et=Math.sqrt(et))*j,_=B*(this.mode===this.S_POLE?Et:-Et)):l=_=0}}return t.x=this.a*l+this.x0,t.y=this.a*_+this.y0,t},inverse:function Ir(t){t.x-=this.x0,t.y-=this.y0;var B,j,X,et,tt,ut,Et,l=t.x/this.a,_=t.y/this.a;if(this.sphere){var Pt,Ut=0,Vt=0;if((j=.5*(Pt=Math.sqrt(l*l+_*_)))>1)return null;switch(j=2*Math.asin(j),(this.mode===this.OBLIQ||this.mode===this.EQUIT)&&(Vt=Math.sin(j),Ut=Math.cos(j)),this.mode){case this.EQUIT:j=Math.abs(Pt)<=n?0:Math.asin(_*Vt/Pt),l*=Vt,_=Ut*Pt;break;case this.OBLIQ:j=Math.abs(Pt)<=n?this.lat0:Math.asin(Ut*this.sinph0+_*Vt*this.cosph0/Pt),l*=Vt*this.cosph0,_=(Ut-Math.sin(j)*this.sinph0)*Pt;break;case this.N_POLE:_=-_,j=u-j;break;case this.S_POLE:j-=u}B=0!==_||this.mode!==this.EQUIT&&this.mode!==this.OBLIQ?Math.atan2(l,_):0}else{if(Et=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(l/=this.dd,_*=this.dd,(ut=Math.sqrt(l*l+_*_))1&&(t=t>1?1:-1),Math.asin(t)}const Ua={init:function qs(){Math.abs(this.lat1+this.lat2)n?(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)},forward:function Za(t){var l=t.x,_=t.y;this.sin_phi=Math.sin(_),this.cos_phi=Math.cos(_);var B=nn(this.e3,this.sin_phi),j=this.a*Math.sqrt(this.c-this.ns0*B)/this.ns0,X=this.ns0*Wt(l-this.long0),et=j*Math.sin(X)+this.x0,tt=this.rh-j*Math.cos(X)+this.y0;return t.x=et,t.y=tt,t},inverse:function wr(t){var l,B,j,X,et;return t.x-=this.x0,t.y=this.rh-t.y+this.y0,this.ns0>=0?(l=Math.sqrt(t.x*t.x+t.y*t.y),B=1):(l=-Math.sqrt(t.x*t.x+t.y*t.y),B=-1),j=0,0!==l&&(j=Math.atan2(B*t.x,B*t.y)),B=l*this.ns0/this.a,et=this.sphere?Math.asin((this.c-B*B)/(2*this.ns0)):this.phi1z(this.e3,(this.c-B*B)/this.ns0),X=Wt(j/this.ns0+this.long0),t.x=X,t.y=et,t},names:["Albers_Conic_Equal_Area","Albers","aea"],phi1z:function Dr(t,l){var _,j,X,et,tt=Wi(.5*l);if(t0||Math.abs(et)<=n?(tt=this.x0+1*this.a*_*Math.sin(B)/et,ut=this.y0+1*this.a*(this.cos_p14*l-this.sin_p14*_*j)/et):(tt=this.x0+this.infinity_dist*_*Math.sin(B),ut=this.y0+this.infinity_dist*(this.cos_p14*l-this.sin_p14*_*j)),t.x=tt,t.y=ut,t},inverse:function Fr(t){var l,_,B,j,X,et;return t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,t.x/=this.k0,t.y/=this.k0,(l=Math.sqrt(t.x*t.x+t.y*t.y))?(j=Math.atan2(l,this.rc),_=Math.sin(j),et=Wi((B=Math.cos(j))*this.sin_p14+t.y*_*this.cos_p14/l),X=Math.atan2(t.x*_,l*this.cos_p14*B-t.y*this.sin_p14*_),X=Wt(this.long0+X)):(et=this.phic0,X=0),t.x=X,t.y=et,t},names:["gnom"]},Ss={init:function tr(){this.sphere||(this.k0=Zt(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))},forward:function Ur(t){var B,j,_=t.y,X=Wt(t.x-this.long0);if(this.sphere)B=this.x0+this.a*X*Math.cos(this.lat_ts),j=this.y0+this.a*Math.sin(_)/Math.cos(this.lat_ts);else{var et=nn(this.e,Math.sin(_));B=this.x0+this.a*this.k0*X,j=this.y0+this.a*et*.5/this.k0}return t.x=B,t.y=j,t},inverse:function er(t){var l,_;return t.x-=this.x0,t.y-=this.y0,this.sphere?(l=Wt(this.long0+t.x/this.a/Math.cos(this.lat_ts)),_=Math.asin(t.y/this.a*Math.cos(this.lat_ts))):(_=function Zr(t,l){var _=1-(1-t*t)/(2*t)*Math.log((1-t)/(1+t));if(Math.abs(Math.abs(l)-_)<1e-6)return l<0?-1*u:u;for(var j,X,et,tt,B=Math.asin(.5*l),ut=0;ut<30;ut++)if(X=Math.sin(B),et=Math.cos(B),tt=t*X,B+=j=Math.pow(1-tt*tt,2)/(2*et)*(l/(1-t*t)-X/(1-tt*tt)+.5/t*Math.log((1-tt)/(1+tt))),Math.abs(j)<=1e-10)return B;return NaN}(this.e,2*t.y*this.k0/this.a),l=Wt(this.long0+t.x/(this.a*this.k0))),t.x=l,t.y=_,t},names:["cea"]},ir={init:function Is(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Equidistant Cylindrical (Plate Carre)",this.rc=Math.cos(this.lat_ts)},forward:function jr(t){var _=t.y,B=Wt(t.x-this.long0),j=wn(_-this.lat0);return t.x=this.x0+this.a*B*this.rc,t.y=this.y0+this.a*j,t},inverse:function Ga(t){var _=t.y;return t.x=Wt(this.long0+(t.x-this.x0)/(this.a*this.rc)),t.y=wn(this.lat0+(_-this.y0)/this.a),t},names:["Equirectangular","Equidistant_Cylindrical","eqc"]},Fn={init:function sr(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=bn(this.es),this.e1=mn(this.es),this.e2=ki(this.es),this.e3=is(this.es),this.ml0=this.a*di(this.e0,this.e1,this.e2,this.e3,this.lat0)},forward:function Xi(t){var B,j,X,_=t.y,et=Wt(t.x-this.long0);if(X=et*Math.sin(_),this.sphere)Math.abs(_)<=n?(B=this.a*et,j=-1*this.a*this.lat0):(B=this.a*Math.sin(X)/Math.tan(_),j=this.a*(wn(_-this.lat0)+(1-Math.cos(X))/Math.tan(_)));else if(Math.abs(_)<=n)B=this.a*et,j=-1*this.ml0;else{var tt=Ln(this.a,this.e,Math.sin(_))/Math.tan(_);B=tt*Math.sin(X),j=this.a*di(this.e0,this.e1,this.e2,this.e3,_)-this.ml0+tt*(1-Math.cos(X))}return t.x=B+this.x0,t.y=j+this.y0,t},inverse:function Br(t){var l,_,B,j,X,et,tt,ut,Et;if(B=t.x-this.x0,j=t.y-this.y0,this.sphere)if(Math.abs(j+this.a*this.lat0)<=n)l=Wt(B/this.a+this.long0),_=0;else{var Ut;for(tt=B*B/this.a/this.a+(et=this.lat0+j/this.a)*et,ut=et,X=20;X;--X)if(ut+=Et=-1*(et*(ut*(Ut=Math.tan(ut))+1)-ut-.5*(ut*ut+tt)*Ut)/((ut-et)/Ut-1),Math.abs(Et)<=n){_=ut;break}l=Wt(this.long0+Math.asin(B*Math.tan(ut)/this.a)/Math.sin(_))}else if(Math.abs(j+this.ml0)<=n)_=0,l=Wt(this.long0+B/this.a);else{var Pt,Vt,ae,re,oe;for(tt=B*B/this.a/this.a+(et=(this.ml0+j)/this.a)*et,ut=et,X=20;X;--X)if(oe=this.e*Math.sin(ut),Pt=Math.sqrt(1-oe*oe)*Math.tan(ut),Vt=this.a*di(this.e0,this.e1,this.e2,this.e3,ut),ae=this.e0-2*this.e1*Math.cos(2*ut)+4*this.e2*Math.cos(4*ut)-6*this.e3*Math.cos(6*ut),ut-=Et=(et*(Pt*(re=Vt/this.a)+1)-re-.5*Pt*(re*re+tt))/(this.es*Math.sin(2*ut)*(re*re+tt-2*et*re)/(4*Pt)+(et-re)*(Pt*ae-2/Math.sin(2*ut))-ae),Math.abs(Et)<=n){_=ut;break}Pt=Math.sqrt(1-this.es*Math.pow(Math.sin(_),2))*Math.tan(_),l=Wt(this.long0+Math.asin(B*Pt/this.a)/Math.sin(_))}return t.x=l,t.y=_,t},names:["Polyconic","poly"]},Ka={init:function or(){this.A=[],this.A[1]=.6399175073,this.A[2]=-.1358797613,this.A[3]=.063294409,this.A[4]=-.02526853,this.A[5]=.0117879,this.A[6]=-.0055161,this.A[7]=.0026906,this.A[8]=-.001333,this.A[9]=67e-5,this.A[10]=-34e-5,this.B_re=[],this.B_im=[],this.B_re[1]=.7557853228,this.B_im[1]=0,this.B_re[2]=.249204646,this.B_im[2]=.003371507,this.B_re[3]=-.001541739,this.B_im[3]=.04105856,this.B_re[4]=-.10162907,this.B_im[4]=.01727609,this.B_re[5]=-.26623489,this.B_im[5]=-.36249218,this.B_re[6]=-.6870983,this.B_im[6]=-1.1651967,this.C_re=[],this.C_im=[],this.C_re[1]=1.3231270439,this.C_im[1]=0,this.C_re[2]=-.577245789,this.C_im[2]=-.007809598,this.C_re[3]=.508307513,this.C_im[3]=-.112208952,this.C_re[4]=-.15094762,this.C_im[4]=.18200602,this.C_re[5]=1.01418179,this.C_im[5]=1.64497696,this.C_re[6]=1.9660549,this.C_im[6]=2.5127645,this.D=[],this.D[1]=1.5627014243,this.D[2]=.5185406398,this.D[3]=-.03333098,this.D[4]=-.1052906,this.D[5]=-.0368594,this.D[6]=.007317,this.D[7]=.0122,this.D[8]=.00394,this.D[9]=-.0013},forward:function Wr(t){var l,et=(t.y-this.lat0)/d*1e-5,tt=t.x-this.long0,ut=1,Et=0;for(l=1;l<=10;l++)Et+=this.A[l]*(ut*=et);var oe,Ut=Et,Pt=tt,Vt=1,ae=0,ye=0,Te=0;for(l=1;l<=6;l++)oe=ae*Ut+Vt*Pt,ye=ye+this.B_re[l]*(Vt=Vt*Ut-ae*Pt)-this.B_im[l]*(ae=oe),Te=Te+this.B_im[l]*Vt+this.B_re[l]*ae;return t.x=Te*this.a+this.x0,t.y=ye*this.a+this.y0,t},inverse:function Gr(t){var l,Pt,et=(t.y-this.y0)/this.a,tt=(t.x-this.x0)/this.a,ut=1,Et=0,Vt=0,ae=0;for(l=1;l<=6;l++)Pt=Et*et+ut*tt,Vt=Vt+this.C_re[l]*(ut=ut*et-Et*tt)-this.C_im[l]*(Et=Pt),ae=ae+this.C_im[l]*ut+this.C_re[l]*Et;for(var re=0;re.999999999999&&(_=.999999999999),l=Math.asin(_);var B=Wt(this.long0+t.x/(.900316316158*this.a*Math.cos(l)));B<-Math.PI&&(B=-Math.PI),B>Math.PI&&(B=Math.PI),_=(2*l+Math.sin(2*l))/Math.PI,Math.abs(_)>1&&(_=1);var j=Math.asin(_);return t.x=B,t.y=j,t},names:["Mollweide","moll"]},we={init:function dr(){Math.abs(this.lat1+this.lat2)=0?(_=Math.sqrt(t.x*t.x+t.y*t.y),l=1):(_=-Math.sqrt(t.x*t.x+t.y*t.y),l=-1);var X=0;return 0!==_&&(X=Math.atan2(l*t.x,l*t.y)),this.sphere?(j=Wt(this.long0+X/this.ns),B=wn(this.g-_/this.a),t.x=j,t.y=B,t):(B=ns(this.g-_/this.a,this.e0,this.e1,this.e2,this.e3),j=Wt(this.long0+X/this.ns),t.x=j,t.y=B,t)},names:["Equidistant_Conic","eqdc"]},sn={init:function qa(){this.R=this.a},forward:function to(t){var j,X,_=t.y,B=Wt(t.x-this.long0);Math.abs(_)<=n&&(j=this.x0+this.R*B,X=this.y0);var et=Wi(2*Math.abs(_/Math.PI));(Math.abs(B)<=n||Math.abs(Math.abs(_)-u)<=n)&&(j=this.x0,X=_>=0?this.y0+Math.PI*this.R*Math.tan(.5*et):this.y0+Math.PI*this.R*-Math.tan(.5*et));var tt=.5*Math.abs(Math.PI/B-B/Math.PI),ut=tt*tt,Et=Math.sin(et),Ut=Math.cos(et),Pt=Ut/(Et+Ut-1),ae=Pt*(2/Et-1),re=ae*ae,oe=Math.PI*this.R*(tt*(Pt-re)+Math.sqrt(ut*(Pt-re)*(Pt-re)-(re+ut)*(Pt*Pt-re)))/(re+ut);B<0&&(oe=-oe),j=this.x0+oe;var ye=ut+Pt;return oe=Math.PI*this.R*(ae*ye-tt*Math.sqrt((re+ut)*(ut+1)-ye*ye))/(re+ut),X=_>=0?this.y0+oe:this.y0-oe,t.x=j,t.y=X,t},inverse:function Xr(t){var l,_,B,j,X,et,tt,ut,Et,Ut,Pt,Vt;return t.x-=this.x0,t.y-=this.y0,Pt=Math.PI*this.R,X=(B=t.x/Pt)*B+(j=t.y/Pt)*j,Pt=3*(j*j/(ut=-2*(et=-Math.abs(j)*(1+X))+1+2*j*j+X*X)+(2*(tt=et-2*j*j+B*B)*tt*tt/ut/ut/ut-9*et*tt/ut/ut)/27)/(Et=(et-tt*tt/3/ut)/ut)/(Ut=2*Math.sqrt(-Et/3)),Math.abs(Pt)>1&&(Pt=Pt>=0?1:-1),Vt=Math.acos(Pt)/3,_=t.y>=0?(-Ut*Math.cos(Vt+Math.PI/3)-tt/3/ut)*Math.PI:-(-Ut*Math.cos(Vt+Math.PI/3)-tt/3/ut)*Math.PI,l=Math.abs(B)2*u*this.a?void 0:(_=l/this.a,B=Math.sin(_),j=Math.cos(_),X=this.long0,Math.abs(l)<=n?et=this.lat0:(et=Wi(j*this.sin_p12+t.y*B*this.cos_p12/l),tt=Math.abs(this.lat0)-u,X=Math.abs(tt)<=n?Wt(this.lat0>=0?this.long0+Math.atan2(t.x,-t.y):this.long0-Math.atan2(-t.x,t.y)):Wt(this.long0+Math.atan2(t.x*B,l*this.cos_p12*j-t.y*this.sin_p12*B))),t.x=X,t.y=et,t):(ut=bn(this.es),Et=mn(this.es),Ut=ki(this.es),Pt=is(this.es),Math.abs(this.sin_p12-1)<=n?(et=ns(((Vt=this.a*di(ut,Et,Ut,Pt,u))-(l=Math.sqrt(t.x*t.x+t.y*t.y)))/this.a,ut,Et,Ut,Pt),X=Wt(this.long0+Math.atan2(t.x,-1*t.y)),t.x=X,t.y=et,t):Math.abs(this.sin_p12+1)<=n?(Vt=this.a*di(ut,Et,Ut,Pt,u),et=ns(((l=Math.sqrt(t.x*t.x+t.y*t.y))-Vt)/this.a,ut,Et,Ut,Pt),X=Wt(this.long0+Math.atan2(t.x,t.y)),t.x=X,t.y=et,t):(l=Math.sqrt(t.x*t.x+t.y*t.y),ye=Math.atan2(t.x,t.y),re=Ln(this.a,this.e,this.sin_p12),Te=Math.cos(ye),Ke=3*this.es*(1-(Be=-(Ne=this.e*this.cos_p12*Te)*Ne/(1-this.es)))*this.sin_p12*this.cos_p12*Te/(1-this.es),Ce=1-Be*(ke=(pe=l/re)-Be*(1+Be)*Math.pow(pe,3)/6-Ke*(1+3*Be)*Math.pow(pe,4)/24)*ke/2-pe*ke*ke*ke/6,oe=Math.asin(this.sin_p12*Math.cos(ke)+this.cos_p12*Math.sin(ke)*Te),X=Wt(this.long0+Math.asin(Math.sin(ye)*Math.sin(ke)/Math.cos(oe))),Pe=Math.sin(oe),et=Math.atan2((Pe-this.es*Ce*this.sin_p12)*Math.tan(oe),Pe*(1-this.es)),t.x=X,t.y=et,t))},names:["Azimuthal_Equidistant","aeqd"]},rn={init:function no(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0)},forward:function so(t){var l,_,B,j,et,tt,ut,Ut=t.y;return B=Wt(t.x-this.long0),l=Math.sin(Ut),_=Math.cos(Ut),j=Math.cos(B),((et=this.sin_p14*l+this.cos_p14*_*j)>0||Math.abs(et)<=n)&&(tt=1*this.a*_*Math.sin(B),ut=this.y0+1*this.a*(this.cos_p14*l-this.sin_p14*_*j)),t.x=tt,t.y=ut,t},inverse:function Yr(t){var l,_,B,j,X,et,tt;return t.x-=this.x0,t.y-=this.y0,_=Wi((l=Math.sqrt(t.x*t.x+t.y*t.y))/this.a),B=Math.sin(_),j=Math.cos(_),et=this.long0,Math.abs(l)<=n?(tt=this.lat0,t.x=et,t.y=tt,t):(tt=Wi(j*this.sin_p14+t.y*B*this.cos_p14/l),X=Math.abs(this.lat0)-u,Math.abs(X)<=n?(et=Wt(this.lat0>=0?this.long0+Math.atan2(t.x,-t.y):this.long0-Math.atan2(-t.x,t.y)),t.x=et,t.y=tt,t):(et=Wt(this.long0+Math.atan2(t.x*B,l*this.cos_p14*j-t.y*this.sin_p14*B)),t.x=et,t.y=tt,t))},names:["ortho"]};function as(t,l,_,B){var j;return te&&j<=u+e?(B.value=2,j-=u):j>u+e||j<=-(u+e)?(B.value=3,j=j>=0?j-v:j+v):(B.value=4,j+=u)),j}function vn(t,l){var _=t+l;return _<-v?_+=E:_>+v&&(_-=E),_}const oo={init:function ro(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Quadrilateralized Spherical Cube",this.face=this.lat0>=u-e/2?5:this.lat0<=-(u-e/2)?6:Math.abs(this.long0)<=e?1:Math.abs(this.long0)<=u+e?this.long0>0?2:4:3,0!==this.es&&(this.one_minus_f=1-(this.a-this.b)/this.a,this.one_minus_f_squared=this.one_minus_f*this.one_minus_f)},forward:function ao(t){var _,B,j,X,et,tt,l={x:0,y:0},ut={value:0};if(t.x-=this.long0,_=0!==this.es?Math.atan(this.one_minus_f_squared*Math.tan(t.y)):t.y,B=t.x,5===this.face)X=u-_,B>=e&&B<=u+e?(ut.value=1,j=B-u):B>u+e||B<=-(u+e)?(ut.value=2,j=B>0?B-v:B+v):B>-(u+e)&&B<=-e?(ut.value=3,j=B+u):(ut.value=4,j=B);else if(6===this.face)X=u+_,B>=e&&B<=u+e?(ut.value=1,j=-B+u):B=-e?(ut.value=2,j=-B):B<-e&&B>=-(u+e)?(ut.value=3,j=-B-u):(ut.value=4,j=B>0?-B+v:-B-v);else{var Et,Ut,Pt,Vt,ae,re;2===this.face?B=vn(B,+u):3===this.face?B=vn(B,+v):4===this.face&&(B=vn(B,-u)),Vt=Math.sin(_),ae=Math.cos(_),re=Math.sin(B),Et=ae*Math.cos(B),Ut=ae*re,Pt=Vt,1===this.face?j=as(X=Math.acos(Et),Pt,Ut,ut):2===this.face?j=as(X=Math.acos(Ut),Pt,-Et,ut):3===this.face?j=as(X=Math.acos(-Et),Pt,-Ut,ut):4===this.face?j=as(X=Math.acos(-Ut),Pt,Et,ut):(X=j=0,ut.value=1)}return tt=Math.atan(12/v*(j+Math.acos(Math.sin(j)*Math.cos(e))-u)),et=Math.sqrt((1-Math.cos(X))/(Math.cos(tt)*Math.cos(tt))/(1-Math.cos(Math.atan(1/Math.cos(j))))),2===ut.value?tt+=u:3===ut.value?tt+=v:4===ut.value&&(tt+=1.5*v),l.x=et*Math.cos(tt),l.y=et*Math.sin(tt),l.x=l.x*this.a+this.x0,l.y=l.y*this.a+this.y0,t.x=l.x,t.y=l.y,t},inverse:function Jr(t){var _,B,j,X,et,tt,ut,Et,Ut,oe,ye,Te,l={lam:0,phi:0},Pt={value:0};if(t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,B=Math.atan(Math.sqrt(t.x*t.x+t.y*t.y)),_=Math.atan2(t.y,t.x),t.x>=0&&t.x>=Math.abs(t.y)?Pt.value=1:t.y>=0&&t.y>=Math.abs(t.x)?(Pt.value=2,_-=u):t.x<0&&-t.x>=Math.abs(t.y)?(Pt.value=3,_=_<0?_+v:_-v):(Pt.value=4,_+=u),Ut=v/12*Math.tan(_),et=Math.sin(Ut)/(Math.cos(Ut)-1/Math.sqrt(2)),tt=Math.atan(et),(ut=1-(j=Math.cos(_))*j*(X=Math.tan(B))*X*(1-Math.cos(Math.atan(1/Math.cos(tt)))))<-1?ut=-1:ut>1&&(ut=1),5===this.face)Et=Math.acos(ut),l.phi=u-Et,l.lam=1===Pt.value?tt+u:2===Pt.value?tt<0?tt+v:tt-v:3===Pt.value?tt-u:tt;else if(6===this.face)Et=Math.acos(ut),l.phi=Et-u,l.lam=1===Pt.value?-tt+u:2===Pt.value?-tt:3===Pt.value?-tt-u:tt<0?-tt-v:-tt+v;else{var Vt,ae,re;Ut=(Vt=ut)*Vt,ae=(Ut+=(re=Ut>=1?0:Math.sqrt(1-Ut)*Math.sin(tt))*re)>=1?0:Math.sqrt(1-Ut),2===Pt.value?(Ut=ae,ae=-re,re=Ut):3===Pt.value?(ae=-ae,re=-re):4===Pt.value&&(Ut=ae,ae=re,re=-Ut),2===this.face?(Ut=Vt,Vt=-ae,ae=Ut):3===this.face?(Vt=-Vt,ae=-ae):4===this.face&&(Ut=Vt,Vt=ae,ae=-Ut),l.phi=Math.acos(-re)-u,l.lam=Math.atan2(ae,Vt),2===this.face?l.lam=vn(l.lam,-u):3===this.face?l.lam=vn(l.lam,-v):4===this.face&&(l.lam=vn(l.lam,+u))}return 0!==this.es&&(oe=l.phi<0?1:0,ye=Math.tan(l.phi),Te=this.b/Math.sqrt(ye*ye+this.one_minus_f_squared),l.phi=Math.atan(Math.sqrt(this.a*this.a-Te*Te)/(this.one_minus_f*Te)),oe&&(l.phi=-l.phi)),l.lam+=this.long0,t.x=l.lam,t.y=l.phi,t},names:["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"]};var ws=[[1,22199e-21,-715515e-10,31103e-10],[.9986,-482243e-9,-24897e-9,-13309e-10],[.9954,-83103e-8,-448605e-10,-9.86701e-7],[.99,-.00135364,-59661e-9,36777e-10],[.9822,-.00167442,-449547e-11,-572411e-11],[.973,-.00214868,-903571e-10,1.8736e-8],[.96,-.00305085,-900761e-10,164917e-11],[.9427,-.00382792,-653386e-10,-26154e-10],[.9216,-.00467746,-10457e-8,481243e-11],[.8962,-.00536223,-323831e-10,-543432e-11],[.8679,-.00609363,-113898e-9,332484e-11],[.835,-.00698325,-640253e-10,9.34959e-7],[.7986,-.00755338,-500009e-10,9.35324e-7],[.7597,-.00798324,-35971e-9,-227626e-11],[.7186,-.00851367,-701149e-10,-86303e-10],[.6732,-.00986209,-199569e-9,191974e-10],[.6213,-.010418,883923e-10,624051e-11],[.5722,-.00906601,182e-6,624051e-11],[.5322,-.00677797,275608e-9,624051e-11]],Nn=[[-520417e-23,.0124,121431e-23,-845284e-16],[.062,.0124,-1.26793e-9,4.22642e-10],[.124,.0124,5.07171e-9,-1.60604e-9],[.186,.0123999,-1.90189e-8,6.00152e-9],[.248,.0124002,7.10039e-8,-2.24e-8],[.31,.0123992,-2.64997e-7,8.35986e-8],[.372,.0124029,9.88983e-7,-3.11994e-7],[.434,.0123893,-369093e-11,-4.35621e-7],[.4958,.0123198,-102252e-10,-3.45523e-7],[.5571,.0121916,-154081e-10,-5.82288e-7],[.6176,.0119938,-241424e-10,-5.25327e-7],[.6769,.011713,-320223e-10,-5.16405e-7],[.7346,.0113541,-397684e-10,-6.09052e-7],[.7903,.0109107,-489042e-10,-104739e-11],[.8435,.0103431,-64615e-9,-1.40374e-9],[.8936,.00969686,-64636e-9,-8547e-9],[.9394,.00840947,-192841e-9,-42106e-10],[.9761,.00616527,-256e-6,-42106e-10],[1,.00328947,-319159e-9,-42106e-10]],Ds=function(t,l){return t[0]+l*(t[1]+l*(t[2]+l*t[3]))};const Bo={init:function ta(){this.x0=this.x0||0,this.y0=this.y0||0,this.long0=this.long0||0,this.es=0,this.title=this.title||"Robinson"},forward:function ho(t){var l=Wt(t.x-this.long0),_=Math.abs(t.y),B=Math.floor(11.459155902616464*_);B<0?B=0:B>=18&&(B=17);var j={x:Ds(ws[B],_=g*(_-.08726646259971647*B))*l,y:Ds(Nn[B],_)};return t.y<0&&(j.y=-j.y),j.x=j.x*this.a*.8487+this.x0,j.y=j.y*this.a*1.3523+this.y0,j},inverse:function ea(t){var l={x:(t.x-this.x0)/(.8487*this.a),y:Math.abs(t.y-this.y0)/(1.3523*this.a)};if(l.y>=1)l.x/=ws[18][0],l.y=t.y<0?-u:u;else{var _=Math.floor(18*l.y);for(_<0?_=0:_>=18&&(_=17);;)if(Nn[_][0]>l.y)--_;else{if(!(Nn[_+1][0]<=l.y))break;++_}var B=Nn[_],j=5*(l.y-B[0])/(Nn[_+1][0]-B[0]);j=function Uo(t,l,_,B){for(var j=l;B;--B){var X=t(j);if(j-=X,Math.abs(X)<_)break}return j}(function(X){return(Ds(B,X)-l.y)/function(t,l){return t[1]+l*(2*t[2]+3*l*t[3])}(B,X)},j,n,100),l.x/=Ds(ws[_],j),l.y=(5*_+j)*h,t.y<0&&(l.y=-l.y)}return l.x=Wt(l.x+this.long0),l},names:["Robinson","robin"]},r={init:function Wo(){this.name="geocent"},forward:function uo(t){return Xe(t,this.es,this.a)},inverse:function Go(t){return ni(t,this.es,this.a,this.b)},names:["Geocentric","geocentric","geocent","Geocent"]};var o={h:{def:1e5,num:!0},azi:{def:0,num:!0,degrees:!0},tilt:{def:0,num:!0,degrees:!0},long0:{def:0,num:!0},lat0:{def:0,num:!0}};const xt={init:function T(){if(Object.keys(o).forEach(function(_){if(typeof this[_]>"u")this[_]=o[_].def;else{if(o[_].num&&isNaN(this[_]))throw new Error("Invalid parameter value, must be numeric "+_+" = "+this[_]);o[_].num&&(this[_]=parseFloat(this[_]))}o[_].degrees&&(this[_]=this[_]*h)}.bind(this)),Math.abs(Math.abs(this.lat0)-u)1e10)throw new Error("Invalid height");this.p=1+this.pn1,this.rp=1/this.p,this.h1=1/this.pn1,this.pfact=(this.p+1)*this.h1,this.es=0;var t=this.tilt,l=this.azi;this.cg=Math.cos(l),this.sg=Math.sin(l),this.cw=Math.cos(t),this.sw=Math.sin(t)},forward:function Z(t){t.x-=this.long0;var j,X,et,tt,l=Math.sin(t.y),_=Math.cos(t.y),B=Math.cos(t.x);switch(this.mode){case 3:X=this.sinph0*l+this.cosph0*_*B;break;case 2:X=_*B;break;case 1:X=-l;break;case 0:X=l}switch(j=(X=this.pn1/(this.p-X))*_*Math.sin(t.x),this.mode){case 3:X*=this.cosph0*l-this.sinph0*_*B;break;case 2:X*=l;break;case 0:X*=-_*B;break;case 1:X*=_*B}return j=(j*this.cg-X*this.sg)*this.cw*(tt=1/((et=X*this.cg+j*this.sg)*this.sw*this.h1+this.cw)),X=et*tt,t.x=j*this.a,t.y=X*this.a,t},inverse:function J(t){t.x/=this.a,t.y/=this.a;var _,B,j,l={x:t.x,y:t.y};t.x=(_=this.pn1*t.x*(j=1/(this.pn1-t.y*this.sw)))*this.cg+(B=this.pn1*t.y*this.cw*j)*this.sg,t.y=B*this.cg-_*this.sg;var X=wi(t.x,t.y);if(Math.abs(X)1e10)throw new Error;if(this.radius_g=1+this.radius_g_1,this.C=this.radius_g*this.radius_g-1,0!==this.es){var t=1-this.es,l=1/t;this.radius_p=Math.sqrt(t),this.radius_p2=t,this.radius_p_inv2=l,this.shape="ellipse"}else this.radius_p=1,this.radius_p2=1,this.radius_p_inv2=1,this.shape="sphere";this.title||(this.title="Geostationary Satellite View")},forward:function Dt(t){var B,j,X,et,l=t.x,_=t.y;if(l-=this.long0,"ellipse"===this.shape){_=Math.atan(this.radius_p2*Math.tan(_));var tt=this.radius_p/wi(this.radius_p*Math.cos(_),Math.sin(_));if(j=tt*Math.cos(l)*Math.cos(_),X=tt*Math.sin(l)*Math.cos(_),et=tt*Math.sin(_),(this.radius_g-j)*j-X*X-et*et*this.radius_p_inv2<0)return t.x=Number.NaN,t.y=Number.NaN,t;B=this.radius_g-j,this.flip_axis?(t.x=this.radius_g_1*Math.atan(X/wi(et,B)),t.y=this.radius_g_1*Math.atan(et/B)):(t.x=this.radius_g_1*Math.atan(X/B),t.y=this.radius_g_1*Math.atan(et/wi(X,B)))}else"sphere"===this.shape&&(B=Math.cos(_),j=Math.cos(l)*B,X=Math.sin(l)*B,et=Math.sin(_),B=this.radius_g-j,this.flip_axis?(t.x=this.radius_g_1*Math.atan(X/wi(et,B)),t.y=this.radius_g_1*Math.atan(et/B)):(t.x=this.radius_g_1*Math.atan(X/B),t.y=this.radius_g_1*Math.atan(et/wi(X,B))));return t.x=t.x*this.a,t.y=t.y*this.a,t},inverse:function Ft(t){var j,X,et,tt,l=-1,_=0,B=0;if(t.x=t.x/this.a,t.y=t.y/this.a,"ellipse"===this.shape){this.flip_axis?(B=Math.tan(t.y/this.radius_g_1),_=Math.tan(t.x/this.radius_g_1)*wi(1,B)):(_=Math.tan(t.x/this.radius_g_1),B=Math.tan(t.y/this.radius_g_1)*wi(1,_));var ut=B/this.radius_p;if((et=(X=2*this.radius_g*l)*X-4*(j=_*_+ut*ut+l*l)*this.C)<0)return t.x=Number.NaN,t.y=Number.NaN,t;tt=(-X-Math.sqrt(et))/(2*j),l=this.radius_g+tt*l,_*=tt,B*=tt,t.x=Math.atan2(_,l),t.y=Math.atan(B*Math.cos(t.x)/l),t.y=Math.atan(this.radius_p_inv2*Math.tan(t.y))}else if("sphere"===this.shape){if(this.flip_axis?(B=Math.tan(t.y/this.radius_g_1),_=Math.tan(t.x/this.radius_g_1)*Math.sqrt(1+B*B)):(_=Math.tan(t.x/this.radius_g_1),B=Math.tan(t.y/this.radius_g_1)*Math.sqrt(1+_*_)),(et=(X=2*this.radius_g*l)*X-4*(j=_*_+B*B+l*l)*this.C)<0)return t.x=Number.NaN,t.y=Number.NaN,t;tt=(-X-Math.sqrt(et))/(2*j),l=this.radius_g+tt*l,_*=tt,B*=tt,t.x=Math.atan2(_,l),t.y=Math.atan(B*Math.cos(t.x)/l)}return t.x=t.x+this.long0,t},names:["Geostationary Satellite View","Geostationary_Satellite","geos"]};Oi.defaultDatum="WGS84",Oi.Proj=De,Oi.WGS84=new Oi.Proj("WGS84"),Oi.Point=Xn,Oi.toPoint=_i,Oi.defs=ue,Oi.nadgrid=function Qe(t,l){var _=new DataView(l),B=function mt(t){var l=t.getInt32(8,!1);return 11!==l&&(11!==(l=t.getInt32(8,!0))&&console.warn("Failed to detect nadgrid endian-ness, defaulting to little-endian"),!0)}(_),j=function pt(t,l){return{nFields:t.getInt32(8,l),nSubgridFields:t.getInt32(24,l),nSubgrids:t.getInt32(40,l),shiftType:Rt(t,56,64).trim(),fromSemiMajorAxis:t.getFloat64(120,l),fromSemiMinorAxis:t.getFloat64(136,l),toSemiMajorAxis:t.getFloat64(152,l),toSemiMinorAxis:t.getFloat64(168,l)}}(_,B);j.nSubgrids>1&&console.log("Only single NTv2 subgrids are currently supported, subsequent sub grids are ignored");var X=function Ht(t,l,_){for(var j=[],X=0;XO;){if(y-O>600){var W=y-O+1,K=w-O+1,nt=Math.log(W),A=.5*Math.exp(2*nt/3),L=.5*Math.sqrt(nt*A*(W-A)/W)*(K-W/2<0?-1:1);v(x,w,Math.max(O,Math.floor(w-K*A/W+L)),Math.min(y,Math.floor(w+(W-K)*A/W+L)),R)}var C=x[w],N=O,H=y;for(a(x,O,w),R(x[y],C)>0&&a(x,O,y);N0;)H--}0===R(x[O],C)?a(x,O,H):a(x,++H,y),H<=w&&(O=H+1),w<=H&&(y=H-1)}}(n,h,g||0,e||n.length-1,E||G)}function a(n,h,g){var e=n[h];n[h]=n[g],n[g]=e}function G(n,h){return nh?1:0}var D=function(n){void 0===n&&(n=9),this._maxEntries=Math.max(4,n),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function k(n,h,g){if(!g)return h.indexOf(n);for(var e=0;e=n.minX&&h.maxY>=n.minY}function s(n){return{children:n,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function f(n,h,g,e,E){for(var v=[h,g];v.length;)if(!((g=v.pop())-(h=v.pop())<=e)){var x=h+Math.ceil((g-h)/e/2)*e;ot(n,x,h,g,E),v.push(h,x,x,g)}}return D.prototype.all=function(){return this._all(this.data,[])},D.prototype.search=function(n){var h=this.data,g=[];if(!c(n,h))return g;for(var e=this.toBBox,E=[];h;){for(var v=0;v=0&&E[h].children.length>this._maxEntries;)this._split(E,h),h--;this._adjustParentBBoxes(e,E,h)},D.prototype._split=function(n,h){var g=n[h],e=g.children.length,E=this._minEntries;this._chooseSplitAxis(g,E,e);var v=this._chooseSplitIndex(g,E,e),x=s(g.children.splice(v,g.children.length-v));x.height=g.height,x.leaf=g.leaf,z(g,this.toBBox),z(x,this.toBBox),h?n[h-1].children.push(x):this._splitRoot(g,x)},D.prototype._splitRoot=function(n,h){this.data=s([n,h]),this.data.height=n.height+1,this.data.leaf=!1,z(this.data,this.toBBox)},D.prototype._chooseSplitIndex=function(n,h,g){for(var e,E,v,x,w,O,y,R=1/0,W=1/0,K=h;K<=g-h;K++){var nt=U(n,0,K,this.toBBox),A=U(n,K,g,this.toBBox),L=(E=nt,v=A,void 0,void 0,void 0,void 0,x=Math.max(E.minX,v.minX),w=Math.max(E.minY,v.minY),O=Math.min(E.maxX,v.maxX),y=Math.min(E.maxY,v.maxY),Math.max(0,O-x)*Math.max(0,y-w)),b=p(nt)+p(A);L=h;R--){var W=n.children[R];I(x,n.leaf?E(W):W),w+=d(x)}return w},D.prototype._adjustParentBBoxes=function(n,h,g){for(var e=g;e>=0;e--)I(h[e],n)},D.prototype._condense=function(n){for(var h=n.length-1,g=void 0;h>=0;h--)0===n[h].children.length?h>0?(g=n[h-1].children).splice(g.indexOf(n[h]),1):this.clear():z(n[h],this.toBBox)},D}()},3307:(Bt,ot,a)=>{"use strict";a.d(ot,{j:()=>It});var G=a(790),D=a(7393);class z{constructor(m){this.total=m}call(m,F){return F.subscribe(new U(m,this.total))}}class U extends D.L{constructor(m,F){super(m),this.total=F,this.count=0}_next(m){++this.count>this.total&&this.destination.next(m)}}var I=a(5548),S=a(513),P=a(7521),p=a(1591),d=a(9633),u=a(6581),c=a(1119),s=a(9015),f=a(992);const n="units",h=[1,2,5],g=25.4/.28,E=class e extends u.Z{constructor(m){m=m||{};const F=document.createElement("div");F.style.pointerEvents="none",super({element:F,render:m.render,target:m.target});const Q=void 0!==m.className?m.className:m.bar?"ol-scale-bar":"ol-scale-line";this.innerElement_=document.createElement("div"),this.innerElement_.className=Q+"-inner",this.element.className=Q+" "+c.XV,this.element.appendChild(this.innerElement_),this.viewState_=null,this.minWidth_=void 0!==m.minWidth?m.minWidth:64,this.maxWidth_=m.maxWidth,this.renderedVisible_=!1,this.renderedWidth_=void 0,this.renderedHTML_="",this.addChangeListener(n,this.handleUnitsChanged_),this.setUnits(m.units||"metric"),this.scaleBar_=m.bar||!1,this.scaleBarSteps_=m.steps||4,this.scaleBarText_=m.text||!1,this.dpi_=m.dpi||void 0}getUnits(){return this.get(n)}handleUnitsChanged_(){this.updateElement_()}setUnits(m){this.set(n,m)}setDpi(m){this.dpi_=m}updateElement_(){const m=this.viewState_;if(!m)return void(this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1));const F=m.center,Q=m.projection,V=this.getUnits();let _t=(0,s._Q)(Q,m.resolution,F,"degrees"==V?"degrees":"m");const St=this.minWidth_*(this.dpi_||g)/g,Nt=void 0!==this.maxWidth_?this.maxWidth_*(this.dpi_||g)/g:void 0;let Xt=St*_t,Jt="";if("degrees"==V){const Ve=s.Wm.degrees;Xt*=Ve,Xt=Nt){se=Ye,Qt=We,Fe=Ge;break}if(Qt>=St)break;Ye=se,We=Qt,Ge=Fe,++Ee}const Ue=this.scaleBar_?this.createScaleBar(Qt,se,Jt):se.toFixed(Fe<0?-Fe:0)+" "+Jt;this.renderedHTML_!=Ue&&(this.innerElement_.innerHTML=Ue,this.renderedHTML_=Ue),this.renderedWidth_!=Qt&&(this.innerElement_.style.width=Qt+"px",this.renderedWidth_=Qt),this.renderedVisible_||(this.element.style.display="",this.renderedVisible_=!0)}createScaleBar(m,F,Q){const V=this.getScaleForResolution(),lt=V<1?Math.round(1/V).toLocaleString()+" : 1":"1 : "+Math.round(V).toLocaleString(),_t=this.scaleBarSteps_,St=m/_t,Nt=[this.createMarker("absolute")];for(let Jt=0;Jt<_t;++Jt)Nt.push(`
`+this.createMarker("relative")+(Jt%2==0||2===_t?this.createStepText(Jt,m,!1,F,Q):"")+"
");return Nt.push(this.createStepText(_t,m,!0,F,Q)),(this.scaleBarText_?`
`+lt+"
":"")+Nt.join("")}createMarker(m){return`
`}createStepText(m,F,Q,V,lt){const St=(0===m?0:Math.round(V/this.scaleBarSteps_*m*100)/100)+(0===m?"":" "+lt);return`
`+St+"
"}getScaleForResolution(){return(0,s._Q)(this.viewState_.projection,this.viewState_.resolution,this.viewState_.center,"m")*(1e3/25.4)*(this.dpi_||g)}render(m){const F=m.frameState;this.viewState_=F?F.viewState:null,this.updateElement_()}};var v=a(1014),x=a(5622),w=a(2716),O=a(5415);const y="projection",R="coordinateFormat",K=class W extends u.Z{constructor(m){m=m||{};const F=document.createElement("div");F.className=void 0!==m.className?m.className:"ol-mouse-position",super({element:F,render:m.render,target:m.target}),this.addChangeListener(y,this.handleProjectionChanged_),m.coordinateFormat&&this.setCoordinateFormat(m.coordinateFormat),m.projection&&this.setProjection(m.projection),this.renderOnMouseOut_=void 0!==m.placeholder,this.placeholder_=this.renderOnMouseOut_?m.placeholder:" ",this.renderedHTML_=F.innerHTML,this.mapProjection_=null,this.transform_=null,this.wrapX_=!1!==m.wrapX}handleProjectionChanged_(){this.transform_=null}getCoordinateFormat(){return this.get(R)}getProjection(){return this.get(y)}handleMouseMove(m){const F=this.getMap();this.updateHTML_(F.getEventPixel(m))}handleMouseOut(m){this.updateHTML_(null)}setMap(m){if(super.setMap(m),m){const F=m.getViewport();this.listenerKeys.push((0,w.oL)(F,x.Z.POINTERMOVE,this.handleMouseMove,this)),this.renderOnMouseOut_&&this.listenerKeys.push((0,w.oL)(F,x.Z.POINTEROUT,this.handleMouseOut,this)),this.updateHTML_(null)}}setCoordinateFormat(m){this.set(R,m)}setProjection(m){this.set(y,(0,s.U2)(m))}updateHTML_(m){let F=this.placeholder_;if(m&&this.mapProjection_){if(!this.transform_){const lt=this.getProjection();this.transform_=lt?(0,s.WO)(this.mapProjection_,lt):s.gD}const V=this.getMap().getCoordinateFromPixelInternal(m);if(V){const lt=(0,s.Cs)();if(lt&&(this.transform_=(0,s.WO)(this.mapProjection_,lt)),this.transform_(V,V),this.wrapX_){const St=lt||this.getProjection()||this.mapProjection_;(0,O.Cf)(V,St)}const _t=this.getCoordinateFormat();F=_t?_t(V):V.toString()}}(!this.renderedHTML_||F!==this.renderedHTML_)&&(this.element.innerHTML=F,this.renderedHTML_=F)}render(m){const F=m.frameState;F?this.mapProjection_!=F.viewState.projection&&(this.mapProjection_=F.viewState.projection,this.transform_=null):this.mapProjection_=null}};var nt=a(3044),A=a(3161),L=a(3842);const b=["fullscreenchange","webkitfullscreenchange","MSFullscreenChange"];function N(ct){const m=ct.body;return!!(m.webkitRequestFullscreen||m.requestFullscreen&&ct.fullscreenEnabled)}function H(ct){return!(!ct.webkitIsFullScreen&&!ct.fullscreenElement)}function it(ct){ct.requestFullscreen?ct.requestFullscreen():ct.webkitRequestFullscreen&&ct.webkitRequestFullscreen()}const ht=class C extends u.Z{constructor(m){m=m||{},super({element:document.createElement("div"),target:m.target}),this.keys_=void 0!==m.keys&&m.keys,this.source_=m.source,this.isInFullscreen_=!1,this.boundHandleMapTargetChange_=this.handleMapTargetChange_.bind(this),this.cssClassName_=void 0!==m.className?m.className:"ol-full-screen",this.documentListeners_=[],this.activeClassName_=void 0!==m.activeClassName?m.activeClassName.split(" "):[this.cssClassName_+"-true"],this.inactiveClassName_=void 0!==m.inactiveClassName?m.inactiveClassName.split(" "):[this.cssClassName_+"-false"];const F=void 0!==m.label?m.label:"\u2922";this.labelNode_="string"==typeof F?document.createTextNode(F):F;const Q=void 0!==m.labelActive?m.labelActive:"\xd7";this.labelActiveNode_="string"==typeof Q?document.createTextNode(Q):Q;const V=m.tipLabel?m.tipLabel:"Toggle full-screen";this.button_=document.createElement("button"),this.button_.title=V,this.button_.setAttribute("type","button"),this.button_.appendChild(this.labelNode_),this.button_.addEventListener(nt.Z.CLICK,this.handleClick_.bind(this),!1),this.setClassName_(this.button_,this.isInFullscreen_),this.element.className=`${this.cssClassName_} ${c.XV} ${c.hg}`,this.element.appendChild(this.button_)}handleClick_(m){m.preventDefault(),this.handleFullScreen_()}handleFullScreen_(){const m=this.getMap();if(!m)return;const F=m.getOwnerDocument();if(N(F))if(H(F))!function st(ct){ct.exitFullscreen?ct.exitFullscreen():ct.webkitExitFullscreen&&ct.webkitExitFullscreen()}(F);else{let Q;Q=this.source_?"string"==typeof this.source_?F.getElementById(this.source_):this.source_:m.getTargetElement(),this.keys_?function Y(ct){ct.webkitRequestFullscreen?ct.webkitRequestFullscreen():it(ct)}(Q):it(Q)}}handleFullScreenChange_(){const m=this.getMap();if(!m)return;const F=this.isInFullscreen_;this.isInFullscreen_=H(m.getOwnerDocument()),F!==this.isInFullscreen_&&(this.setClassName_(this.button_,this.isInFullscreen_),this.isInFullscreen_?((0,L.$H)(this.labelActiveNode_,this.labelNode_),this.dispatchEvent("enterfullscreen")):((0,L.$H)(this.labelNode_,this.labelActiveNode_),this.dispatchEvent("leavefullscreen")),m.updateSize())}setClassName_(m,F){F?(m.classList.remove(...this.inactiveClassName_),m.classList.add(...this.activeClassName_)):(m.classList.remove(...this.activeClassName_),m.classList.add(...this.inactiveClassName_))}setMap(m){const F=this.getMap();F&&F.removeChangeListener(A.Z.TARGET,this.boundHandleMapTargetChange_),super.setMap(m),this.handleMapTargetChange_(),m&&m.addChangeListener(A.Z.TARGET,this.boundHandleMapTargetChange_)}handleMapTargetChange_(){const m=this.documentListeners_;for(let Q=0,V=m.length;Q.75*Qt||se>.75*Fe?this.resetExtent_():(0,zt.r4)(Nt,lt)||this.recenter_()}resetExtent_(){const m=this.getMap(),F=this.ovmap_,Q=m.getSize(),lt=m.getView().calculateExtentInternal(Q),_t=F.getView(),St=Math.log(7.5)/Math.LN2,Nt=1/(.1*Math.pow(2,St/2));(0,zt.H9)(lt,Nt),_t.fitInternal((0,ue.oJ)(lt))}recenter_(){const m=this.getMap(),F=this.ovmap_,Q=m.getView();F.getView().setCenterInternal(Q.getCenterInternal())}updateBox_(){const m=this.getMap(),F=this.ovmap_;if(!m.isRendered()||!F.isRendered())return;const Q=m.getSize(),V=m.getView(),lt=F.getView(),_t=this.rotateWithView_?0:-V.getRotation(),St=this.boxOverlay_,Nt=this.boxOverlay_.getElement(),Xt=V.getCenterInternal(),Jt=V.getResolution(),Ee=lt.getResolution(),se=Q[0]*Jt/Ee,Qt=Q[1]*Jt/Ee;St.setPosition(Xt),Nt&&(Nt.style.width=se+"px",Nt.style.height=Qt+"px",Nt.style.transform="rotate("+_t+"rad)")}updateBoxAfterOvmapIsRendered_(){this.ovmapPostrenderKey_||(this.ovmapPostrenderKey_=(0,w.Vx)(this.ovmap_,Ct.Z.POSTRENDER,function(m){delete this.ovmapPostrenderKey_,this.updateBox_()},this))}handleClick_(m){m.preventDefault(),this.handleToggle_()}handleToggle_(){this.element.classList.toggle(c.hN),this.collapsed_?(0,L.$H)(this.collapseLabel_,this.label_):(0,L.$H)(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_;const m=this.ovmap_;if(!this.collapsed_){if(m.isRendered())return this.viewExtent_=void 0,void m.render();m.updateSize(),this.resetExtent_(),this.updateBoxAfterOvmapIsRendered_()}}getCollapsible(){return this.collapsible_}setCollapsible(m){this.collapsible_!==m&&(this.collapsible_=m,this.element.classList.toggle("ol-uncollapsible"),!m&&this.collapsed_&&this.handleToggle_())}setCollapsed(m){!this.collapsible_||this.collapsed_===m||this.handleToggle_()}getCollapsed(){return this.collapsed_}getRotateWithView(){return this.rotateWithView_}setRotateWithView(m){this.rotateWithView_!==m&&(this.rotateWithView_=m,0!==this.getMap().getView().getRotation()&&(this.rotateWithView_?this.handleRotationChanged_():this.ovmap_.getView().setRotation(0),this.viewExtent_=void 0,this.validateExtent_(),this.updateBox_()))}getOverviewMap(){return this.ovmap_}render(m){this.validateExtent_(),this.updateBox_()}};var Ot=a(993),At=a(7274),Yt=a(5267),ge=a(524),qt=a(2663),gt=a(5338),Mt=a(4879),Zt=a(1179),jt=a(4537),Wt=a(7560),he=a(8692);const _e=["mapDiv"];function Le(ct,m){1&ct&&(jt.TgZ(0,"div",3),jt._uU(1,"+"),jt.qZA())}let It=(()=>{class ct{constructor(F,Q){this.mapSvc=F,this.ngZone=Q,this.subs=[],this.mapSize=[0,0],this.initialMapStateSet=!1,this.removePopupsOnMouseLeave=V=>{this.mapSvc.removeAllPopups(lt=>"pointermove"===lt.get("addEvent"))}}ngOnInit(){this.subscribeToMapState(),this.initMap(),this.subscribeToLayers()}ngAfterViewInit(){this.map.setTarget(this.mapDivView.nativeElement),this.subscribeToMapEvents(),this.map.getTargetElement().addEventListener("mouseleave",this.removePopupsOnMouseLeave)}ngAfterViewChecked(){this.updateMapSize()}ngOnDestroy(){this.subs.forEach(Q=>Q.unsubscribe());const F=this.mapStateSvc.getMapState().value;F.options.notifier="user",this.mapStateSvc.setMapState(F),this.map&&(this.map.un("moveend",this.mapOnMoveend),this.map.un("click",this.mapOnClickMove),this.map.un("dblclick",this.mapOnDclick),this.map.getTargetElement().removeEventListener("mouseleave",this.removePopupsOnMouseLeave),this.map.getInteractions().forEach(Q=>{this.map.removeInteraction(Q)}))}getMapDiv(){return this.mapDivView&&this.mapDivView.nativeElement?{width:this.mapDivView.nativeElement.offsetWidth,height:this.mapDivView.nativeElement.offsetHeight}:null}updateMapSize(){const F=this.getMapDiv();if(F)if(F.width===this.mapSize[0]&&F.height===this.mapSize[1]){if(!this.initialMapStateSet){const Q=this.mapStateSvc.getMapState().getValue();this.setMapState(Q),this.initialMapStateSet=!0}}else this.ngZone.runOutsideAngular(()=>{this.map.updateSize(),this.mapSize=this.map.getSize()})}addUpdateLayers(F,Q,V){const lt=this.mapSvc.getLayerGroups(Q)[0].getLayers(),_t=V.reduce((St,Nt)=>St+this.mapSvc.getLayers(Nt).length,0);F.length!==this.mapSvc.getLayers(Q).length?this.mapSvc.setUkisLayers(F,Q,_t):this.updateLayers(F,Q,_t,lt)}updateLayers(F,Q,V,lt){for(const _t of F){const St=this.mapSvc.getLayerByKey({key:"id",value:_t.id},Q);if(St){St.getVisible()!==_t.visible&&((0,Mt.f$)(St,_t.visible,_t instanceof I.AO),this.mapSvc.hideAllPopups(!_t.visible,Jt=>{const se=Jt.getId().toString().split(":")[0];return!se||(se===_t.id?se===_t.id:void 0)})),St.getOpacity()!==_t.opacity&&(0,Mt.yv)(St,_t.opacity,_t instanceof I.AO),this.updateLayerSource(_t,St);const Nt=F.indexOf(_t),Xt=V>0?Nt+V:Nt;St.getZIndex()!==Xt&&((0,Mt.n8)(St,Nt,lt),(0,Mt.AH)(St,Nt,V)),this.updateLayerParamsWith(St,_t)}}}updateLayerSource(F,Q){if(F instanceof I.AO&&Q instanceof P.Z){const V=F.custom_layer.getSource(),lt=Q.getSource();V&&(0,S.sq)(lt)!==(0,S.sq)(V)&&(Q.setSource(V),lt instanceof ge.ZP&<.dispose())}else if(F instanceof I.AO&&F.custom_layer instanceof p.Z&&Q instanceof p.Z){const V=F.custom_layer.getLayers().getArray();Q.getLayers().getArray().forEach((_t,St)=>{const Nt=V[St];if(_t instanceof P.Z&&Nt instanceof P.Z){const Xt=_t.getSource(),Jt=Nt.getSource();Jt&&(0,S.sq)(Xt)!==(0,S.sq)(Jt)&&_t.setSource(Jt)}})}}updateLayerParamsWith(F,Q){switch(Q.type){case I.MR:this.updateWmsLayerParamsWith(F,Q);break;case I.$6:this.updateWmtsLayerParamsWith(F,Q);break;case I.Sw:this.updateGeojsonLayerParamsWith(F,Q);break;case I.KF:this.updateWfsLayerParamsWith(F,Q);break;case I.CY:this.updateTmsLayerParamsWith(F,Q)}}updateTmsLayerParamsWith(F,Q){Q instanceof I.DJ&&(0,gt.bg)(F,Q.options.style,Q.options.styleSource)}updateWfsLayerParamsWith(F,Q){Q.options&&Q.options.style!==F.getStyle()&&F.setStyle(Q.options.style),F.getSource().getUrl()!==Q.url&&F.getSource().setUrl(Q.url)}updateGeojsonLayerParamsWith(F,Q){const V=F.getSource();if(V){if(Q.data){const lt=this.mapSvc.geoJsonToFeatures(Q.data);if(V instanceof qt.Z){const _t=V.getSource();_t.clear(),_t.addFeatures(lt)}else V.clear(),V.addFeatures(lt)}else Q.url&&(V instanceof qt.Z?V.getSource().setUrl(Q.url):V.setUrl(Q.url));"object"==typeof Q?.cluster&&"distance"in Q.cluster&&V instanceof qt.Z&&V.setDistance(Q.cluster.distance)}Q?.options?.style&&F.setStyle(Q.options.style)}updateWmsLayerParamsWith(F,Q){if(F instanceof P.Z){const lt=F.getSource().getParams(),_t=Q.params;this.shallowEqual(lt,_t)||F.getSource().updateParams(_t)}}updateWmtsLayerParamsWith(F,Q){if(F instanceof P.Z){const V=F.getSource(),lt=V.getStyle(),_t=V.getFormat(),St=V.getVersion(),Nt=V.getMatrixSet(),Xt=Q.params.style,Jt=Q.params.format,Ee=Q.params.version,se=Q.params.matrixSetOptions.matrixSet;if(void 0!==Xt&<!==Xt||void 0!==Jt&&_t!==Jt||void 0!==Ee&&St!==Ee||void 0!==se&&Nt!==se){const Qt=Q.filtertype.toLowerCase();this.mapSvc.updateUkisLayer(Q,Qt)}}}shallowEqual(F,Q){const V=Object.getOwnPropertyNames(F),lt=Object.getOwnPropertyNames(Q);if(V.length!==lt.length)return!1;for(const _t of V)if(F[_t]!==Q[_t])return!1;return!0}addUpdateBaseLayers(F){const Q=this.mapSvc.getLayerGroups("baselayers")[0].getLayers();if(F.length!==this.mapSvc.getLayers("baselayers").length){const V=F.filter(lt=>!0===lt.visible);0===V.length?F[0].visible=!0:V.length>1&&(F.forEach(lt=>lt.visible=!1),F[0].visible=!0),this.mapSvc.setUkisLayers(F,"baselayers")}else for(const V of F){const lt=this.mapSvc.getLayerByKey({key:"id",value:V.id},"baselayers");if(lt){const _t=F.indexOf(V);lt.getVisible()!==V.visible&&(0,Mt.f$)(lt,V.visible,V instanceof I.AO),lt.getZIndex()!==_t&&(Q.remove(lt),Q.insertAt(_t,lt),(0,Mt.AH)(lt,_t)),lt.getOpacity()!==V.opacity&&(0,Mt.yv)(lt,V.opacity,V instanceof I.AO),this.updateLayerSource(V,lt),this.updateLayerParamsWith(lt,V)}}}subscribeToLayers(){if(this.layersSvc){const F=this.layersSvc.getBaseLayers().subscribe(lt=>this.addUpdateBaseLayers(lt));this.subs.push(F);const Q=this.layersSvc.getLayers().subscribe(lt=>this.addUpdateLayers(lt,"layers",["baselayers"]));this.subs.push(Q);const V=this.layersSvc.getOverlays().subscribe(lt=>this.addUpdateLayers(lt,"overlays",["baselayers","layers"]));this.subs.push(V)}}setMapState(F){const Q=this.mapStateSvc.getLastAction().getValue();"user"===F.options.notifier&&("setExtent"===Q?this.mapSvc.setExtent(F.extent,!0):"setState"===Q&&(this.mapSvc.setZoom(F.zoom),this.mapSvc.setCenter([F.center.lon,F.center.lat],!0)))}subscribeToMapState(){if(this.mapStateSvc){const F=this.mapStateSvc.getMapState().pipe(function k(ct){return m=>m.lift(new z(ct))}(1)).subscribe(Q=>this.setMapState(Q));this.subs.push(F)}}subscribeToMapEvents(){this.mapOnMoveend=F=>{const Q=this.mapStateSvc.getMapState().getValue(),V=this.mapSvc.getZoom(),lt=this.mapSvc.getCenter(!0),_t=this.mapSvc.getCurrentExtent(!0),St={lat:parseFloat(lt[1]),lon:parseFloat(lt[0])},Nt=new G.U5(V,St,{notifier:"map"},_t,Q.time);this.mapStateSvc.setMapState(Nt)},this.map.on("moveend",this.mapOnMoveend),this.mapOnClickMove=F=>{this.mapSvc.layersOnMapEvent(F)},this.map.on(["click","pointermove"],this.mapOnClickMove),this.mapOnDclick=F=>{this.mapSvc.removeAllPopups()},this.map.on("dblclick",this.mapOnDclick)}initMap(){const F=this.mapSvc.createMap();this.map=F.map;const Q=this.map.getInteractions();(0,Zt.c)().forEach(lt=>{Q.getArray().find(St=>St.constructor.name===lt.constructor.name)||this.map.addInteraction(lt)}),this.setControls(),this.layersSvc||console.log("there is no layersSvc as defined!"),this.mapStateSvc||console.log("there is no mapStateSvc as defined!")}setControls(){const F=[],Q=[];if(this.map&&(this.map.getControls().getArray().forEach(lt=>Q.push(lt)),this.map.getControls().clear()),this.controls&&this.map){if(!1!==this.controls.attribution){let V={collapsible:!0,collapsed:!1};"object"==typeof this.controls.attribution&&(V=Object.assign(V,this.controls.attribution));const lt=new d.Z(V);F.push(lt)}if(this.controls.scaleLine){let V={};"object"==typeof this.controls.scaleLine&&(V=Object.assign(V,this.controls.scaleLine));const lt=new E(V);F.push(lt)}if(!1!==this.controls.zoom){let V={};"object"==typeof this.controls.zoom&&(V=Object.assign(V,this.controls.zoom));const lt=new v.Z(V);F.push(lt)}if(this.controls.mousePosition){let V={coordinateFormat:_t=>(0,O.yZ)(_t,2),projection:"EPSG:4326"};"object"==typeof this.controls.mousePosition&&(V=Object.assign(V,this.controls.mousePosition));const lt=new K(V);F.push(lt)}if(this.controls.fullScreen){let V={};"object"==typeof this.controls.fullScreen&&(V=Object.assign(V,this.controls.fullScreen));const lt=new ht(V);F.push(lt)}if(this.controls.overviewMap){const V=document.createElement("spawn");V.innerHTML='';let lt={layers:[new Ot.Z({source:new At.Z})],label:V};"object"==typeof this.controls.overviewMap&&(lt=Object.assign(lt,this.controls.overviewMap));const _t=new dt(lt);F.push(_t)}if(this.controls.rotate){let V={};"object"==typeof this.controls.rotate&&(V=Object.assign(V,this.controls.rotate));const lt=new Yt.Z(V);F.push(lt)}F.length&&(Q.filter(lt=>!F.includes(lt)).forEach(lt=>F.push(lt)),this.map.getControls().extend(F))}}}return ct.\u0275fac=function(F){return new(F||ct)(jt.Y36(Wt.B),jt.Y36(jt.R0b))},ct.\u0275cmp=jt.Xpm({type:ct,selectors:[["ukis-map-ol"]],viewQuery:function(F,Q){if(1&F&&jt.Gf(_e,5),2&F){let V;jt.iGM(V=jt.CRH())&&(Q.mapDivView=V.first)}},inputs:{layersSvc:"layersSvc",mapStateSvc:["mapState","mapStateSvc"],controls:"controls"},decls:3,vars:1,consts:[["ref","map",1,"map"],["mapDiv",""],["class","crosshair",4,"ngIf"],[1,"crosshair"]],template:function(F,Q){1&F&&(jt.TgZ(0,"div",0,1),jt.YNc(2,Le,2,0,"div",2),jt.qZA()),2&F&&(jt.xp6(2),jt.Q6J("ngIf",Q.controls&&Q.controls.crosshair))},dependencies:[he.O5],styles:['@charset "UTF-8";:root{--ukis-crosshair-color: #ff0004;--ukis-popup-bg-color: rgb(238, 238, 238);--ukis-drop-shadow: drop-shadow(0 1px 4px rgba(0, 0, 0, .2));--ukis-ol-bbox-bg-color: rgba(255, 255, 255, .4);--ukis-ol-bbox-border-color: rgba(87, 87, 87, .4);--ukis-ol-overviewmap-left: .5em;--ukis-ol-overviewmap-bottom: 3em;--ukis-ol-control-bg-color: rgba(87, 87, 87, .6);--ukis-ol-control-border-color: rgba(87, 87, 87, .4)}.map{width:100%;height:100%;position:relative}.ol-popup{position:absolute;background-color:var(--ukis-popup-bg-color);filter:var(--ukis-drop-shadow);padding:15px;border-radius:2px;bottom:12px;left:-50px;min-width:280px;display:none;z-index:1000000}.ol-popup .ol-popup-closer{text-decoration:none;position:absolute;top:0;right:8px;cursor:pointer}.ol-popup .ol-popup-closer:after{content:"\\2716"}.ol-popup:after,.ol-popup:before{top:100%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none}.ol-popup:after{border-top-color:var(--ukis-popup-bg-color);border-width:10px;left:48px;margin-left:-10px}.ol-popup:before{border-width:11px;left:48px;margin-left:-11px}.ol-popup.hidden{visibility:hidden}.crosshair{top:50%;left:50%;font-size:large;color:var(--ukis-crosshair-color);z-index:1;position:absolute;cursor:default}.ol-control{padding:1px;--ol-subtle-background-color: #fff6}.ol-control button{--ol-subtle-foreground-color: #fff;--ol-foreground-color: #fff;cursor:pointer;background-color:var(--ukis-ol-control-bg-color)}.ol-control button:focus{background-color:var(--ukis-ol-control-bg-color)}.ol-control button:hover{background-color:var(--ukis-ol-control-border-color)}.ol-scale-line{background:rgba(255,255,255,.4);line-height:1.375em;padding:1px}.ol-scale-line .ol-scale-line-inner{background:var(--ukis-ol-control-bg-color);border-color:var(--ukis-ol-control-bg-color);--ol-foreground-color: #fff}.ol-attribution:not(.ol-collapsed){padding:0 2px}.ol-attribution ul{font-size:.5rem}.ol-box{background-color:var(--ukis-ol-bbox-bg-color);border-color:var(--ukis-ol-bbox-border-color)!important}.ol-box.ol-drag-select{border-color:var(--clr-color-action-600, var(--fallback-color-no-clr))!important}.ol-overviewmap{left:var(--ukis-ol-overviewmap-left)!important;bottom:var(--ukis-ol-overviewmap-bottom)!important}\n'],encapsulation:2}),ct})()},7560:(Bt,ot,a)=>{"use strict";a.d(ot,{B:()=>Ze});var G=a(4537),D=a(5548),k=a(6942),z=a(5109),U=a(2462),I=a(7521),S=a(1591),P=a(2417),p=a(7319),d=a(4420),u=a(3998),c=a(6906),s=a(993),f=a(7356),n=a(585),h=a(978),g=a(5338),e=a(2705),E=a(6114),v=a(6290),x=a(6027),w=a(3298),O=a(6819),y=a(3242),R=a(9375),W=a(6941),K=a(5809),nt=a(9015);const L=class A extends y.Z{constructor(ct){const m=void 0!==ct.requestEncoding?ct.requestEncoding:"KVP",F=ct.tileGrid;let Q=ct.urls;void 0===Q&&void 0!==ct.url&&(Q=(0,K.Gk)(ct.url)),super({attributions:ct.attributions,attributionsCollapsible:ct.attributionsCollapsible,cacheSize:ct.cacheSize,crossOrigin:ct.crossOrigin,interpolate:ct.interpolate,projection:ct.projection,reprojectionErrorThreshold:ct.reprojectionErrorThreshold,tileClass:ct.tileClass,tileGrid:F,tileLoadFunction:ct.tileLoadFunction,tilePixelRatio:ct.tilePixelRatio,urls:Q,wrapX:void 0!==ct.wrapX&&ct.wrapX,transition:ct.transition,zDirection:ct.zDirection}),this.version_=void 0!==ct.version?ct.version:"1.0.0",this.format_=void 0!==ct.format?ct.format:"image/jpeg",this.dimensions_=void 0!==ct.dimensions?ct.dimensions:{},this.layer_=ct.layer,this.matrixSet_=ct.matrixSet,this.style_=ct.style,this.requestEncoding_=m,this.setKey(this.getKeyForDimensions_()),Q&&Q.length>0&&(this.tileUrlFunction=(0,K.Un)(Q.map(this.createFromWMTSTemplate.bind(this))))}setUrls(ct){this.urls=ct;const m=ct.join("\n");this.setTileUrlFunction((0,K.Un)(ct.map(this.createFromWMTSTemplate.bind(this))),m)}getDimensions(){return this.dimensions_}getFormat(){return this.format_}getLayer(){return this.layer_}getMatrixSet(){return this.matrixSet_}getRequestEncoding(){return this.requestEncoding_}getStyle(){return this.style_}getVersion(){return this.version_}getKeyForDimensions_(){const ct=this.urls?this.urls.slice(0):[];for(const m in this.dimensions_)ct.push(m+"-"+this.dimensions_[m]);return ct.join("/")}updateDimensions(ct){Object.assign(this.dimensions_,ct),this.setKey(this.getKeyForDimensions_())}createFromWMTSTemplate(ct){const m=this.requestEncoding_,F={layer:this.layer_,style:this.style_,tilematrixset:this.matrixSet_};"KVP"==m&&Object.assign(F,{Service:"WMTS",Request:"GetTile",Version:this.version_,Format:this.format_}),ct="KVP"==m?(0,W.B)(ct,F):ct.replace(/\{(\w+?)\}/g,function(lt,_t){return _t.toLowerCase()in F?F[_t.toLowerCase()]:lt});const Q=this.tileGrid,V=this.dimensions_;return function(lt,_t,St){if(!lt)return;const Nt={TileMatrix:Q.getMatrixId(lt[0]),TileCol:lt[1],TileRow:lt[2]};Object.assign(Nt,V);let Xt=ct;return Xt="KVP"==m?(0,W.B)(Xt,Nt):Xt.replace(/\{(\w+?)\}/g,function(Jt,Ee){return Nt[Ee]}),Xt}}};var M=a(1053);const N=class C extends M.Z{constructor(ct){super({extent:ct.extent,origin:ct.origin,origins:ct.origins,resolutions:ct.resolutions,tileSize:ct.tileSize,tileSizes:ct.tileSizes,sizes:ct.sizes}),this.matrixIds_=ct.matrixIds}getMatrixId(ct){return this.matrixIds_[ct]}getMatrixIds(){return this.matrixIds_}};var it=a(3149),Y=a(524),st=a(2663),ht=a(9573),Tt=a(8898),vt=a(4007),Ct=a(2632),bt=a(3669),Gt=a(3431),kt=a(9543),ie=a(2258),zt=a(4720),ue=a(1786),de=a(8185),ce=a(694),Se=a(795),dt=a(5253),Ot=a(2659),At=a(513),Yt=a(9765),ge=a(4879);const qt="type",gt="filtertype",Mt="id",Zt="groupID",jt="groupName",Wt="title",_e="EPSG:4326",Le="popup";let Ze=(()=>{class It{constructor(m,F){this.app=m,this.envInjector=F,this.hitTolerance=0,this.hitLayerCurr=null,this.hitLayerPrev=null,this.projectionChange=new Yt.xQ,this.dynamicPopupComponents=new Map,this.popupEvents=new Yt.xQ,this.filterLayerNoPopup=Q=>{const V=Q.get(Le);let lt=!0;return V||(lt=!1),V&&this.isPopupObj(V)&&!0===V.filterLayer&&(lt=!1),lt},this.map=new k.Z({controls:[]}),this.view=new z.ZP,this.EPSG="EPSG:3857"}createMap(m){const V=new S.Z({layers:[]});V.set(gt,"baselayers"),V.set(Wt,"Base maps"),V.set(Mt,"ID_filtertype_baselayers");const lt=new S.Z({layers:[]});lt.set(gt,"layers"),lt.set(Wt,"Layers"),lt.set(Mt,"ID_filtertype_layers");const _t=new S.Z({layers:[]});_t.set(gt,"overlays"),_t.set(Wt,"Overlays"),_t.set(Mt,"ID_filtertype_overlays"),this.viewOptions={center:(0,nt.vs)([0,0],_e,this.EPSG),zoom:0,projection:(0,nt.U2)(this.EPSG)},this.view.constrainRotation&&(this.viewOptions.constrainRotation=this.view.constrainRotation),this.view.enableRotation&&(this.viewOptions.enableRotation=this.view.enableRotation),this.view.extent&&(this.viewOptions.extent=this.view.extent),this.view.constrainOnlyCenter&&(this.viewOptions.constrainOnlyCenter=this.view.constrainOnlyCenter),this.view.smoothExtentConstraint&&(this.viewOptions.smoothExtentConstraint=this.view.smoothExtentConstraint),this.view.getMaxResolution()&&(this.viewOptions.maxResolution=this.view.getMaxResolution()),this.view.getMinResolution()&&(this.viewOptions.minResolution=this.view.getMinResolution()),this.view.getMaxZoom()&&(this.viewOptions.maxZoom=this.view.getMaxZoom()),this.view.getMinZoom()&&(this.viewOptions.minZoom=this.view.getMinZoom()),this.view.multiWorld&&(this.viewOptions.multiWorld=this.view.multiWorld),this.view.constrainResolution&&(this.viewOptions.constrainResolution=this.view.constrainResolution),this.view.smoothResolutionConstraint&&(this.viewOptions.smoothResolutionConstraint=this.view.smoothResolutionConstraint),this.view.getResolution()&&(this.viewOptions.resolution=this.view.getResolution()),this.view.getResolutions()&&(this.viewOptions.resolutions=this.view.getResolutions()),this.view.rotation&&(this.viewOptions.rotation=this.view.rotation),this.view.zoomFactor&&(this.viewOptions.zoomFactor=this.view.zoomFactor);const St=new z.ZP(this.viewOptions);return this.map.getLayerGroup().getLayers().clear(),[V,lt,_t].map(Nt=>this.map.addLayer(Nt)),this.map.setView(St),this.view=this.map.getView(),this.setProjection(this.EPSG),m&&this.map.setTarget(m),{map:this.map,view:this.view}}setHitTolerance(m){this.hitTolerance=m}getHitTolerance(){return this.hitTolerance}addBboxSelection(m,F,Q,V){Object.assign({className:"ol-drag-select",condition:m},V);const _t=new Ot.Z(V);return F&&_t.on("boxstart",St=>{F(St)}),Q&&_t.on("boxend",St=>{const Nt=_t.getGeometry().getExtent();Q(Nt,St)}),this.map.addInteraction(_t),_t}getLayers(m){const F=m.toLowerCase();let Q;return this.map.getLayers().getArray().forEach(V=>{V.get(gt)===F&&(Q=V.getLayers().getArray())}),Q}getLayersFromGroup(m,F,Q=!1){const V=m.getLayers().getArray();let lt=V;if(Q){let _t=[].concat(V);V.forEach(St=>{St instanceof S.Z&&(_t=_t.concat(this.getLayersFromGroup(St,F,!0)))}),lt=_t}return F?lt.filter(_t=>_t.get(gt)&&_t.get(gt).toLowerCase()===F.toLowerCase()):lt}getLayerByKey(m,F){const Q=this.getLayersFromGroup(this.map.getLayerGroup(),F),V=(0,ge.fA)(Q),lt=[];if(V.forEach(_t=>{_t.get(m.key)&&_t.get(m.key)===m.value&&-1===lt.indexOf(_t)&<.push(_t)}),!lt.length){const _t=this.getLayersFromGroup(this.map.getLayerGroup(),F,!0);_t.length&&_t.forEach(St=>{St.get(m.key)&&St.get(m.key)===m.value&&-1===lt.indexOf(St)&<.push(St)})}return 1===lt.length?lt[0]:null}setRecursiveKey(m,F,Q=gt){m.set(Q,F),m instanceof S.Z&&m.getLayers().forEach(V=>{this.setRecursiveKey(V,F,Q)})}addLayer(m,F){const Q=F.toLowerCase();let V;return this.map.getLayers().getArray().forEach(lt=>{lt.get(gt)===Q&&(this.isLayerInGroup(m,lt)||(V=lt.getLayers().getArray(),this.setRecursiveKey(m,Q,gt),V.push(m),lt.setLayers(new ht.Z(V))))}),V}isLayerInGroup(m,F){return!!F.getLayers().getArray().filter(lt=>lt.get(Mt)===m.get(Mt)).length}getLayerGroups(m){const F=[];return this.map.getLayers().forEach(Q=>{Q instanceof S.Z&&(m?Q.get(gt)&&Q.get(gt).toLowerCase()===m.toLowerCase()&&F.push(Q):F.push(Q))}),F}addLayers(m,F){const Q=F.toLocaleLowerCase();let V;return this.getLayerGroups(Q).forEach(_t=>{_t.getLayers().getLength()>0?(V=_t.getLayers().getArray(),m.map(Nt=>{this.isLayerInGroup(Nt,_t)||V.push(Nt)})):V=m,V.forEach(Nt=>{Nt instanceof S.Z&&this.setRecursiveKey(Nt,Q,gt)}),_t.setLayers(new ht.Z(V))}),V}setLayers(m,F){const Q=F.toLocaleLowerCase(),V=this.getLayerGroups(Q);return m.forEach(lt=>{lt instanceof S.Z&&this.setRecursiveKey(lt,F.toLocaleLowerCase(),gt)}),V.forEach(lt=>{this.cleanUpEventListeners(lt,m),lt.setLayers(new ht.Z(m))}),m}cleanUpEventListeners(m,F){const Q=m.getLayers().getArray().filter(V=>!F.map(lt=>lt.get(Mt)).includes(V.get(Mt)));this.removeListenersFromOldLayers(Q),Q.forEach(V=>m.getLayers().remove(V))}addEventsToLayer(m,F,Q){m.events&&(m.events.layer&&m.events.layer.forEach(V=>{F.getListeners(V.event)||F.on(V.event,V.listener)}),m.events.source&&m.events.source.forEach(V=>{Q.getListeners(V.event)||Q.on(V.event,V.listener)}))}removeListenersFromOldLayers(m){const F=Q=>{if("function"==typeof Q.getSource){const V=Q.getSource();V&&(V instanceof Y.ZP&&V.dispose(),V.hasListener()&&V.disposeInternal())}Q.hasListener()&&Q.disposeInternal()};m.forEach(Q=>{Q instanceof S.Z?Q.getLayers().forEach(V=>{F(V)}):Q instanceof U.Z&&F(Q)})}getLayerGroupForLayer(m){const F=this.getLayersFromGroup(this.map.getLayerGroup(),null,!0);F.push(this.map.getLayerGroup());let Q=null;return F.forEach(V=>{if(V instanceof S.Z){const _t=this.getLayersFromGroup(V).find(St=>St===m);_t&&(Q={group:V,layer:_t})}}),Q}removeLayerByKey(m,F){const Q=F.toLocaleLowerCase(),V=this.getLayerByKey(m,Q);if(V){const lt=this.getLayerGroupForLayer(V);if(lt.group){const _t=this.getLayersFromGroup(lt.group).filter(St=>St!==V);lt.group.setLayers(new ht.Z(_t))}}}updateLayerByKey(m,F,Q){const V=Q.toLocaleLowerCase();this.map.getLayers().forEach(lt=>{if(lt.get(gt)===V){const _t=lt.getLayers();_t.forEach((St,Nt)=>{if(St.get(m.key)&&St.get(m.key)===m.value){const Xt=F.getProperties(),Jt=F.getExtent(),Ee=F.getMaxZoom(),se=F.getMinZoom(),Qt=F.getOpacity(),Fe=F.getVisible(),Ye=F.getZIndex();if(St instanceof I.Z&&F instanceof I.Z){const We=F.getSource();St.setSource(We)}Xt&&St.setProperties(Xt),Jt&&St.setExtent(Jt),Ee&&St.setMaxZoom(Ee),se&&St.setMinZoom(se),Qt&&St.setOpacity(Qt),Fe&&St.setVisible(Fe),Ye&&(0,ge.AH)(St,Ye),St.changed(),_t.setAt(Nt,St)}}),lt.setLayers(_t)}})}removeAllLayers(m){const F=m.toLowerCase();let Q;this.map.getLayers().getArray().forEach(V=>{V.get(gt)===F&&(Q=V.getLayers(),Q.clear())})}setUkisLayers(m,F,Q){const V=F.toLowerCase(),lt=[];if(m.length<1&&"baselayers"!==V?this.removeAllLayers(V):m.forEach((_t,St)=>{const Nt=this.create_layers(_t);Nt&&((0,ge.AH)(Nt,St,Q),lt.push(Nt))}),lt.length>0)return this.setLayers(lt,V),{type:V,layers:lt}}setUkisLayer(m,F){F||(F=m.filtertype);const Q=F.toLowerCase(),lt=this.getLayers(Q).find(St=>St.get(Mt)===m.id),_t=this.create_layers(m);lt?(this.removeLayerByKey({key:Mt,value:lt.get(Mt)},F),this.addLayer(_t,F)):this.addLayer(_t,F)}updateUkisLayer(m,F){F||(F=m.filtertype);const Q=F.toLowerCase(),lt=this.getLayers(Q).find(St=>St.get(Mt)===m.id),_t=this.create_layers(m);_t&&this.updateLayerByKey({key:Mt,value:lt.get(Mt)},_t,F)}create_layers(m){let F;switch(m.type){case D.Aq:F=this.create_xyz_layer(m);break;case D.MR:F=this.create_wms_layer(m);break;case D.$6:F=this.create_wmts_layer(m);break;case D.CY:F=this.create_tms_layer(m);break;case D.Sw:F=this.create_geojson_layer(m);break;case D.R6:F=this.create_kml_layer(m);break;case D.KF:F=this.create_wfs_layer(m);break;case D.ED:F=this.create_custom_layer(m);break;case D.jn:F=this.create_stacked_layer(m)}return F}createOlLayerOptions(m,F,Q){Q&&(m.attribution&&Q.setAttributions([m.attribution]),m.continuousWorld&&(Q.wrapX_=m.continuousWorld),m.popup&&!m.crossOrigin&&null!==m.crossOrigin&&this.sourceSetCross(Q),(m.crossOrigin||null===m.crossOrigin)&&this.sourceSetCross(Q));const V={opacity:m.opacity||1,visible:m.visible,zIndex:1,id:m.id,name:m.name,filtertype:m.filtertype,type:F,legendImg:m.legendImg};return Q&&(V.source=Q),m.popup&&(V.popup=m.popup,V.className=m.id),m.maxResolution&&(V.maxResolution=m.maxResolution),m.minResolution&&(V.minResolution=m.minResolution),m.maxZoom&&(V.maxZoom=m.maxZoom),m.minZoom&&(V.minZoom=m.minZoom),m.bbox&&(V.extent=(0,nt.$A)(m.bbox.slice(0,4),_e,this.getProjection().getCode())),V}create_xyz_layer(m){const F={wrapX:!1};m.crossOrigin&&(F.crossOrigin=m.crossOrigin);const Q=new v.Z(F),V=this.createOlLayerOptions(m,"xyz",Q),_t=new s.Z(Object.assign(V,{preload:0,useInterimTilesOnError:!0}));return this.setSubdomains(m,_t),this.setCrossOrigin(m,_t),this.addEventsToLayer(m,_t,Q),_t}create_tms_layer(m){let F=null;if(m instanceof D.YY)return F=this.create_xyz_layer(m),F.set("type","tms"),F;if(m instanceof D.DJ){const Q=new h.Z({format:new E.Z,tileGrid:(0,e.dl)({minZoom:m.minZoom||void 0,maxZoom:m.maxZoom||void 0}),url:m.url,wrapX:!1}),V=this.createOlLayerOptions(m,"tms",Q);F=new n.Z(Object.assign(V,{declutter:!0,renderMode:"hybrid"})),this.setCrossOrigin(m,F),this.addEventsToLayer(m,F,Q);const _t=m?.options?.style,St=m?.options?.styleSource;return _t&&St&&((0,g.h0)(F,_t),(0,g.bg)(F,_t,St).then(Nt=>{this.setSubdomains(m,F)})),F}}create_wms_layer(m){let F;return"true"===m.params?.TILED||null==m.params?.TILED?F=this.create_tiled_wms_layer(m):"false"===m.params?.TILED&&(F=this.create_image_wms_layer(m)),F}create_tiled_wms_layer(m){const F={params:Object.assign({},this.keysToUppercase(m.params)),wrapX:!1};m.tileSize&&(F.tileGrid=this.getTileGrid("default",null,m.tileSize),delete F.params.tileSize),m.crossOrigin&&(F.crossOrigin=m.crossOrigin);const Q=new w.Z(F),lt=this.createOlLayerOptions(m,"wms",Q),_t=new s.Z(Object.assign(lt,{preload:0,useInterimTilesOnError:!0}));return this.setSubdomains(m,_t),this.addEventsToLayer(m,_t,Q),_t}create_image_wms_layer(m){const F={params:Object.assign({},this.keysToUppercase(m.params)),url:m.url},Q=new O.Z(F),V=this.createOlLayerOptions(m,"wms",Q),_t=new c.Z(Object.assign(V,{}));return this.addEventsToLayer(m,_t,Q),_t}create_wmts_layer(m){if(m instanceof D.RC){let F=this.getTileGrid("wmts"),Q=this.EPSG;m.params.matrixSetOptions&&(Q=m.params.matrixSetOptions.matrixSet,"resolutions"in m.params.matrixSetOptions?F=this.getTileGrid("wmts",null,m.tileSize,null,m.params.matrixSetOptions.resolutions):("resolutionLevels"in m.params.matrixSetOptions||"tileMatrixPrefix"in m.params.matrixSetOptions)&&(F=this.getTileGrid("wmts",m.params.matrixSetOptions.resolutionLevels,m.tileSize,m.params.matrixSetOptions.tileMatrixPrefix,null)),"matrixIds"in m.params.matrixSetOptions&&(F=this.getTileGrid("wmts",null,m.tileSize,null,null,m.params.matrixSetOptions.matrixIds)));let V={url:m.url,tileGrid:F,matrixSet:Q,wrapX:!1,layer:m.params.layer,style:m.params.style};V=Object.assign({},V,m.params),m.crossOrigin&&(V.crossOrigin=m.crossOrigin);const lt=new L(V),_t=this.createOlLayerOptions(m,"wmts",lt),Nt=new s.Z(Object.assign(_t,{}));return this.setSubdomains(m,Nt),this.setCrossOrigin(m,Nt),this.addEventsToLayer(m,Nt,lt),Nt}console.error(`layer with id: ${m.id} and type ${m.type} is no instanceof WmtsLayer!`)}create_wfs_layer(m){let F=null;F=0===m.url.indexOf("http://")||0===m.url.indexOf("https://")?new URL(m.url):new URL(m.url,window.location.origin),F.searchParams.set("srsname",this.EPSG);const Q=new it.Z({format:new Tt.Z,url:F.toString()}),V=this.createOlLayerOptions(m,"wfs",Q),lt={};m.options&&Object.assign(lt,m.options);const _t=new f.Z(Object.assign(V,lt));return m.cluster&&this.setCluster(m,_t,Q,{}),this.setSubdomains(m,_t),this.setCrossOrigin(m,_t),this.addEventsToLayer(m,_t,Q),_t}create_geojson_layer(m){let F;m.data?F=new it.Z({features:this.geoJsonToFeatures(m.data),format:new Tt.Z,wrapX:!1}):m.url&&(F=new it.Z({url:m.url,format:new Tt.Z({dataProjection:_e,featureProjection:this.EPSG}),wrapX:!1}));const Q=this.createOlLayerOptions(m,"geojson",F),V={};m.options&&Object.assign(V,m.options);const lt=new f.Z(Object.assign(Q,V));return m.cluster&&this.setCluster(m,lt,F,{}),this.setCrossOrigin(m,lt),this.addEventsToLayer(m,lt,F),lt}create_kml_layer(m){let F;m.data?F=new it.Z({features:new vt.ZP({extractStyles:!0}).readFeatures(m.data,{dataProjection:_e,featureProjection:this.EPSG}),format:new vt.ZP,wrapX:!1}):m.url&&(F=new it.Z({url:m.url,format:new vt.ZP({extractStyles:!0,crossOrigin:m.crossOrigin&&null===m.crossOrigin?m.crossOrigin:"anonymous"}),wrapX:!1}));const Q=this.createOlLayerOptions(m,"kml",F),V={};m.options&&Object.assign(V,m.options);const lt=new f.Z(Object.assign(Q,V));return m.cluster&&this.setCluster(m,lt,F,{}),this.setCrossOrigin(m,lt),this.addEventsToLayer(m,lt,Q.source),lt}setCrossOrigin(m,F){if(F instanceof I.Z){const Q=F.getSource();m.popup&&!m.crossOrigin&&null!==m.crossOrigin&&this.sourceSetCross(Q),(m.crossOrigin||null===m.crossOrigin)&&this.sourceSetCross(Q)}}setCluster(m,F,Q,V){if(m.cluster){const lt={};"object"==typeof m.cluster&&Object.assign(lt,m.cluster),lt.source=Q;const _t=new st.Z(lt);F.setSource(_t),F.setStyle(St=>{const Nt=St.get("features").length;let Xt=V[Nt];return Xt||(Xt=new ue.ZP({image:new Se.Z({radius:10,stroke:new dt.Z({color:"#fff"}),fill:new ce.Z({color:"#3399CC"})}),text:new de.Z({text:Nt.toString(),fill:new ce.Z({color:"#fff"})})}),V[Nt]=Xt),Xt})}}setSubdomains(m,F){if(m instanceof D.DJ||m instanceof D.YY){const Q=F.getSource();if(m.subdomains){if("wfs"===m.type&&Q instanceof it.Z)m.url=m.url.replace("{s}",`${m.subdomains[0]}-${m.subdomains[m.subdomains.length-1]}`),Q.setUrl(m.url);else if(!(Q instanceof it.Z)){const V=m.subdomains.map(lt=>m.url.replace("{s}",`${lt}`));Q.setUrls(V)}}else Q.setUrl(m.url)}}sourceSetCross(m){(m instanceof R.ZP||m instanceof y.Z||m instanceof x.Z)&&(m.crossOrigin="anonymous",m.crossOrigin_="anonymous")}create_custom_layer(m){if(m.custom_layer){const F=m.custom_layer;if(F instanceof I.Z){const V=F.getSource();m.attribution&&V.setAttributions([m.attribution]),V.wrapX_=!!m.continuousWorld&&m.continuousWorld,this.setCrossOrigin(m,F),this.addEventsToLayer(m,F,V),V instanceof Y.ZP&&F.on("change:source",lt=>{lt.oldValue.dispose()})}else F instanceof S.Z?F.getLayers().forEach(V=>{V.set(Zt,m.id),V.set(jt,m.name);const lt=`${m.id}_${(0,At.sq)(V)}`;if(V.get(Mt)||V.set(Mt,lt),V instanceof I.Z&&(this.setCrossOrigin(m,V),this.addEventsToLayer(m,V,V.getSource())),m.popup&&!V.get(Le)&&(V.set(Le,m.popup),"ol-layer"===V.getClassName()&&(V.className_=lt)),m.bbox){const _t=(0,nt.$A)(m.bbox.slice(0,4),_e,this.getProjection().getCode());V.setExtent(_t)}}):console.error(`The custom_layer of ${m.id} in not a openlayers Layer`);m.maxResolution&&F.setMaxResolution(m.maxResolution),m.minResolution&&F.setMinResolution(m.minResolution),m.maxZoom&&F.setMaxZoom(m.maxZoom),m.minZoom&&F.setMinZoom(m.minZoom);const Q={type:"custom",name:m.name,id:m.id,visible:m.visible,legendImg:m.legendImg,opacity:m.opacity||1,zIndex:1};if(m.popup&&!(F instanceof S.Z)&&(Q.popup=m.popup,F.className_=m.id),m.bbox){const V=(0,nt.$A)(m.bbox.slice(0,4),_e,this.getProjection().getCode());F.setExtent(V)}return F.setProperties(Q),F}console.log("attribute custom_layer not set on layer type custom!",m)}create_stacked_layer(m){if(m instanceof D.WQ){const F=m.layers.map(_t=>(_t.visible=m.visible,_t.opacity=m.opacity,m.popup&&(_t.popup=m.popup),m.events&&(_t.events=m.events),this.create_layers(_t))),Q=this.createOlLayerOptions(m,"custom");return F.forEach(_t=>{_t.set(Zt,m.id),_t.set(jt,m.name)}),new S.Z(Object.assign(Q,{layers:F}))}console.log("layer is not of type StackedLayer!",m)}resolutionsFromExtent(m,F,Q){const V=F,lt=(0,kt.Cr)(m),_t=(0,kt.dz)(m),St=Math.max(_t/Q,lt/Q),Nt=V+1,Xt=new Array(Nt);for(let Jt=0;JtF?`${F}:${Q}`:Q)}getTileGrid(m="default",F,Q,V,lt,_t){const St=F||ie.e,Nt=Q||ie.S,Xt=V||"",Jt=this.getProjection().getExtent(),Ee=this.resolutionsFromExtent(Jt,St,Nt),se=this.matrixIdsFromResolutions(Ee.length,Xt),Qt={extent:Jt,origin:(0,kt.rL)(Jt),resolutions:lt||Ee,tileSize:[Nt,Nt]};return"wmts"===m?(Qt.matrixIds=_t||se,new N(Qt)):"default"===m?new M.Z(Qt):void 0}isPopupObj(m){return m&&"object"==typeof m&&!Array.isArray(m)}isPopupObjMove(m){return this.isPopupObj(m)&&"move"===m.event}isPopupObjClick(m){return this.isPopupObj(m)&&"click"===m.event}isPopupObjArray(m){return Array.isArray(m)&&m.length&&this.isPopupObj(m[0])}isPopupStringArray(m){return Array.isArray(m)&&m.length&&"string"==typeof m[0]}eventIsBrowserEvent(m,F){return"move"===m&&"pointermove"===F.type||"click"===m&&"click"===F.type||void 0}layersOnMapEvent(m){let F=!1;const Q=this.map.getAllLayers();let V=Q.length;const lt=new Map;let _t=null;for(;V--;){const St=Q[V];let Nt=St.getVisible(),Xt=St.getOpacity();const Jt=St.get(Zt);if(Jt){const se=this.getLayerByKey({key:Mt,value:Jt});Nt=se.getVisible(),Xt=se.getOpacity()}const Ee=St.get(Le);if(this.checkForPopupAsObservable(St,Nt,Xt,Ee,lt),Nt&&0!==Xt&&this.filterLayerExtent(St,m.pixel)&&!Ee)break;if(this.filterLayerNoPopup(St)&&St.getData&&St.getData(m.pixel)&&this.checkIsRaster(St)){const se=St.getData(m.pixel);let Qt;if((se instanceof Uint8ClampedArray||se instanceof Uint8Array||se instanceof Float32Array)&&(Qt=se[3]),Qt||se instanceof DataView){_t={layer:St,color:se};break}}else if(this.filterLayerNoPopup(St)&&this.filterLayerExtent(St,m.pixel)&&this.checkIsVector(St)){const se=this.map.getFeaturesAtPixel(m.pixel,{layerFilter:Qt=>St.get(Mt)===Qt.get(Mt)});if(se.length){_t={layer:St,feature:se[0]};break}}}if(_t){const St=_t.layer.get(Le);this.hitLayerCurr=_t.layer.get(Mt),this.hitLayerPrev||(this.hitLayerPrev=this.hitLayerCurr),(_t.color||_t.feature)&&(F=!0),this.hitLayerPrev&&this.hitLayerPrev!==this.hitLayerCurr&&(F=!1,this.hitLayerPrev=this.hitLayerCurr),this.checkTopLayerEvent(m,St)&&this.layerOnEvent(m,_t.layer,_t.color,_t.feature)}F?this.map.getTargetElement().style.cursor="pointer":(this.publishNullPropertiesAsObservable(lt,m),this.removeAllPopups(St=>"pointermove"===St.get("addEvent")),this.map.getTargetElement().style.cursor="")}checkForPopupAsObservable(m,F,Q,V,lt){F&&0!==Q&&V&&(this.isPopupObj(V)&&V.asObservable?lt.set(m.get(Mt),m):this.isPopupObjArray(V)&&V.forEach(_t=>{_t.asObservable&<.set(m.get(Mt),m)}))}publishNullPropertiesAsObservable(m,F){m.size&&m.forEach(Q=>{const V=Q.get(Le),lt=[];this.isPopupObj(V)&&V.asObservable?lt.push(V):this.isPopupObjArray(V)&&V.forEach(_t=>{_t.asObservable&<.push(_t)}),lt.forEach(_t=>{this.eventIsBrowserEvent(_t.event||"click",F)&&this.popupEvents.next({popupObj:_t,popupParams:{layerId:Q.get(Mt),layerName:Q.get("name"),mapEvent:F,layer:Q,properties:null}})})})}checkTopLayerEvent(m,F){let Q=null;const V=(lt,_t)=>{_t.event?this.eventIsBrowserEvent(_t.event,lt)&&this.isPopupObjClick(_t)?Q="click":this.eventIsBrowserEvent(_t.event,lt)&&this.isPopupObjMove(_t)&&(Q="move"):"click"===lt.type&&(Q="click")};return"boolean"==typeof F?!0===F&&"click"===m.type&&(Q="click"):this.isPopupStringArray(F)?"click"===m.type&&(Q="click"):this.isPopupObjArray(F)?F.map(lt=>{V(m,lt)}):V(m,F),Q}checkIsRaster(m){return m instanceof u.Z||m instanceof p.Z}checkIsVector(m){return m instanceof d.Z&&!this.checkIsRaster(m)}layerOnEvent(m,F,Q,V){this.checkIsRaster(F)?this.rasterOnEvent(m,F,Q):this.checkIsVector(F)&&this.vectorOnEvent(m,F,V)}filterLayerExtent(m,F){let Q=!0;const V=m.getExtent();if(V){const lt=this.map.getCoordinateFromPixel(F);(0,kt.b8)(V,lt)||(Q=!1)}return Q}vectorOnEvent(m,F,Q){if(F&&Q){const V=F.get(Le);let lt={};const St=Q.getProperties().features;if(St&&1===St.length)lt=St[0].getProperties();else{if(St&&St.length>1){if("click"===m.type){const Nt=this.getFeaturesExtent(St);return this.setExtent(Nt),!1}return!0}lt=Q.getProperties()}this.prepareAddPopup(F,m,V,Q,lt)}}rasterOnEvent(m,F,Q){const V=F.get(Le);V&&this.prepareAddPopup(F,m,V,null,null,Q)}prepareAddPopup(m,F,Q,V,lt,_t){const St=m.getProperties(),Nt={layerId:St.id,layerName:St.name||St[jt]||null,mapEvent:F,layer:m,properties:lt?Object.assign({},lt):{}};Nt.properties?.geometry&&delete Nt.properties.geometry,V&&(Nt.feature=V),_t&&(Nt.color=_t);const Xt=se=>{se&&se.filterkeys&&(Nt.properties=Object.keys(Nt.properties).filter(Qt=>se.filterkeys.includes(Qt)).reduce((Qt,Fe)=>(Qt[Fe]=Nt.properties[Fe],Qt),{}))};this.isPopupStringArray(Q)?Nt.properties=Object.keys(Nt.properties).filter(se=>Q.includes(se)).reduce((se,Qt)=>(se[Qt]=Nt.properties[Qt],se),{}):this.isPopupObjArray(Q)?Xt(Q.find(Qt=>this.eventIsBrowserEvent(Qt.event,F))):this.isPopupObj(Q)&&Xt(Q);const Jt=se=>{if(se.properties){const Qt=Object.keys(se.properties);Array.isArray(Qt)&&(Nt.properties=Object.keys(Nt.properties).reduce((Fe,Ye)=>{const We=se.properties[Ye];return We?Fe[We]=Nt.properties[Ye]:Fe[Ye]=Nt.properties[Ye],Fe},{}))}};this.isPopupObjArray(Q)?Q.forEach(se=>{this.eventIsBrowserEvent(se.event,F)&&Jt(se)}):this.isPopupObj(Q)&&Jt(Q);const Ee=se=>{"asyncPopup"in se?se.asyncPopup(Nt,Qt=>{se.asObservable?this.publishPopupEvent(se,Nt,Qt):this.addPopup(Nt,se,Qt,se.event,se.single)}):se.asObservable?this.publishPopupEvent(se,Nt):this.addPopup(Nt,se,null,se.event,se.single)};"boolean"==typeof Q||this.isPopupStringArray(Q)?this.addPopup(Nt):this.isPopupObjArray(Q)?Q.forEach(se=>{this.eventIsBrowserEvent(se.event,F)&&Ee(se)}):Q&&Ee(Q)}publishPopupEvent(m,F,Q){Q&&(F.properties=Object.assign(F.properties,Q)),this.popupEvents.next({popupObj:m,popupParams:F})}addPopup(m,F,Q,V,lt){const _t=m.layer.get(Le),St=m.layer.get(Mt),Nt="popup_move_ID",Xt="move_ID_L_F",Jt=this.getPopups().find(Qt=>Qt.getId()===Nt),Ee=m.mapEvent;let se=null;if("move"===V&&(m.color?se=`${St}:${m.color.toString()}`:m.feature?se=`${St}:${(0,At.sq)(m.feature)}`:m.layer&&(se=`${St}:${(0,At.sq)(m.layer)}`)),"move"===V&&"pointermove"===Ee.type&&Jt){let Qt;const Fe=m.feature;if(Qt=Fe&&"Point"===Fe.getGeometry()?.getType()?Fe.getGeometry().getCoordinates():Ee.coordinate,se!==Jt.get(Xt)){const Ye=this.createPopupContainer(Jt,m,F,Q,V);Jt.setElement(Ye)}Jt.setPosition(Qt),Jt.getElement().parentElement.style.zIndex="1"}else if("pointermove"!==Ee.type||V)if("pointermove"===Ee.type&&"click"===V)Jt&&this.removeAllPopups(Qt=>"pointermove"===Qt.get("addEvent"));else{let Qt=null;Qt="move"===V?Nt:m.feature?`${St}:${(0,At.sq)(m.feature)}`:m.layer?`${St}:${(0,At.sq)(m.layer)}`:`${St}:popup_${(new Date).getTime()}`;const Fe={id:Qt,autoPan:{animation:{duration:250}},positioning:"bottom-center",stopEvent:!0,insertFirst:!1};let Ye=Fe;if(this.isPopupObjArray(_t)){const Qe=_t.find(qe=>this.eventIsBrowserEvent(qe.event,Ee));Qe.options&&(Ye=Object.assign(Fe,Qe.options))}else this.isPopupObj(_t)&&_t.options&&(Ye=Object.assign(Fe,_t.options));const We=new P.Z(Ye);se&&We.set(Xt,se),lt&&this.removeAllPopups(Qe=>{const q=Qe.getId().toString().split(":")[0];return!q||(St===q?St===q:void 0)});const Ge=this.getPopups().find(Qe=>Qe.getId()===We.getId()&&We.getId()!==Nt);Ge&&(this.map.removeOverlay(Ge),this.destroyDynamicPopupComponent(Ge.getId().toString()));const Ue=this.createPopupContainer(We,m,F,Q,V);let Ve;We.getId()===Nt?We.set("addEvent","pointermove"):We.set("addEvent",Ee.type),We.set(qt,Le),We.setElement(Ue);const ii=m.feature;Ve=ii&&"Point"===ii.getGeometry()?.getType()?ii.getGeometry().getCoordinates():Ee.coordinate,We.setPosition(Ve),Jt&&"move"===V||this.map.addOverlay(We)}else Jt&&this.removeAllPopups(Qt=>"pointermove"===Qt.get("addEvent"))}createPopupContainer(m,F,Q,V,lt){const _t=document.createElement("div");_t.className="ol-popup-content";let St="";if(Q?.popupFunction){const Xt=Q.popupFunction(F);St="string"==typeof Xt?Xt:this.createPopupHtml(Xt)}else V?St="string"==typeof V?V:this.createPopupHtml(V):Object.keys(F.properties).length&&(St=this.createPopupHtml(F.properties));if(_t.innerHTML=St,Q?.dynamicPopup){const Xt=m.getId().toString();this.destroyDynamicPopupComponent(Xt),this.createDynamicPopupComponent(Xt,_t,F,Q)}const Nt=document.createElement("div");if(Nt.className="ol-popup",Nt.id=m.getId().toString(),Nt.style.display="block",!lt||"move"!==lt){const Xt=document.createElement("a");Xt.className="ol-popup-closer",Nt.appendChild(Xt);const Jt=()=>{Xt.removeEventListener("click",Jt,!1),this.map.removeOverlay(m),this.destroyDynamicPopupComponent(m.getId().toString())};Xt.addEventListener("click",Jt,!1)}return Nt.appendChild(_t),Nt}removeAllPopups(m){let F=this.getPopups();m&&(F=this.getPopups().filter(m)),F.forEach(Q=>{Q.get(qt)===Le&&(this.map.removeOverlay(Q),this.destroyDynamicPopupComponent(Q.getId().toString()))})}hideAllPopups(m,F){let Q=this.getPopups();F&&(Q=this.getPopups().filter(F)),Q.forEach(V=>{if(V.get(qt)===Le){const lt=V.getElement();m?lt.classList.add("hidden"):lt.classList.remove("hidden")}})}createPopupHtml(m){let F="";for(const Q in m)m.hasOwnProperty(Q)&&(F+='");return F+="
'+Q+": "+m[Q]+"
",F}getPopups(){const m=[];return this.map.getOverlays().getArray().slice(0).forEach(F=>{F.get(qt)===Le&&m.push(F)}),m}destroyDynamicPopupComponent(m){this.dynamicPopupComponents.has(m)&&(this.dynamicPopupComponents.get(m).destroy(),this.dynamicPopupComponents.delete(m))}createDynamicPopupComponent(m,F,Q,V){const lt=(0,G.LMc)(V.dynamicPopup.component,{environmentInjector:this.envInjector,hostElement:F});if(V.dynamicPopup.getAttributes){const _t=V.dynamicPopup.getAttributes(Q);for(const St in _t)"undefined"!==_t[St]&&(lt.instance[St]=_t[St])}this.app.attachView(lt.hostView),this.dynamicPopupComponents.set(m,lt)}setExtent(m,F,Q){const V=(0,nt.U2)(F?_e:this.EPSG),lt=(0,nt.$A)(m.slice(0,4),V,this.getProjection().getCode()),_t={size:this.map.getSize()};return Q&&Object.assign(_t,Q),this.map.getView().fit(lt,Q),lt}setCenter(m,F){const Q=(0,nt.U2)(F?_e:this.EPSG),V=(0,nt.vs)(m,Q,this.getProjection().getCode());return this.map.getView().setCenter(V),V}getCenter(m){const F=(0,nt.U2)(m?_e:this.EPSG),Q=(0,nt.U2)(this.getProjection().getCode());return(0,nt.vs)(this.map.getView().getCenter(),Q,F)}getFeaturesExtent(m,F){const Q=m[0].getGeometry().getExtent().slice(0);if(m.forEach(V=>{(0,kt.l7)(Q,V.getGeometry().getExtent())}),F){const V=(0,nt.U2)(_e);return(0,nt.$A)(Q,this.getProjection().getCode(),V)}return Q}getCurrentExtent(m){const F=(0,nt.U2)(m?_e:this.EPSG),Q=this.map.getView().calculateExtent();return(0,nt.$A)(Q,this.getProjection().getCode(),F)}setZoom(m){this.map.getView().setZoom(m)}getZoom(){return this.map.getView().getZoom()}zoomInOut(m,F){const Q=this.map.getView();if(!Q)return;const V=F?.zoomStep||1,lt="+"===m?V:-1*V,_t=Q.getZoom();if(void 0!==_t){const St=Q.getConstrainedZoom(_t+lt);Q.getAnimating()&&Q.cancelAnimations(),Q.animate({zoom:St,duration:F?.duration||250,easing:F?.easing||zt.Vv},Nt=>{F.callback&&F.callback(Nt)})}}geoJsonToFeature(m){return new Tt.Z({dataProjection:_e,featureProjection:this.EPSG}).readFeature(m)}geoJsonToFeatures(m){return new Tt.Z({dataProjection:_e,featureProjection:this.EPSG}).readFeatures(m)}getProjection(){return this.map.getView().getProjection()}reprojectFeatures(m,F,Q){m.getFeatures().forEach(V=>{V.getGeometry().transform(F,Q)})}setProjection(m){if(m){let F={};if(this.viewOptions&&(F=this.viewOptions,F.minResolution=void 0,F.maxResolution=void 0,F.resolution=void 0,F.resolutions=void 0),m instanceof Ct.Z){F.projection=m;const lt=(0,nt.vs)(this.map.getView().getCenter(),this.map.getView().getProjection(),m);F.center=lt,F.zoom=this.map.getView().getZoom()}else"string"==typeof m&&(F.projection=m,F.center=this.map.getView().getCenter(),F.zoom=this.map.getView().getZoom());const Q=new z.ZP(F),V=this.EPSG;this.EPSG=Q.getProjection().getCode(),this.map.setView(Q),this.view=this.map.getView(),this.map.getLayers().getArray().forEach(lt=>{lt.getLayers().getArray().forEach(_t=>{if(_t instanceof I.Z){let St=_t.getSource();for(;St.source;)St=St.source;St instanceof it.Z&&this.reprojectFeatures(St,V,this.EPSG)}})}),this.projectionChange.next(this.getProjection())}}registerProjection(m){Gt.Z.defs(m.code,m.proj4js),(0,bt.z2)(Gt.Z)}getOlProjection(m){return new Ct.Z({code:m.code,extent:m.extent?m.extent:void 0,worldExtent:m.worldExtent?m.worldExtent:void 0,global:!!m.global&&m.global,units:m.units?m.units:void 0})}keysToUppercase(m){return Object.keys(m).forEach(F=>{const Q=F.toUpperCase();Q!==F&&(m[Q]=m[F],delete m[F])}),m}}return It.\u0275fac=function(m){return new(m||It)(G.LFG(G.z2F),G.LFG(G.lqb))},It.\u0275prov=G.Yz7({token:It,factory:It.\u0275fac,providedIn:"root"}),It})()},1899:(Bt,ot,a)=>{"use strict";a.d(ot,{oC:()=>U,BR:()=>G.B});var G=a(7560),k=(a(3307),a(8692)),z=a(4537);let U=(()=>{class I{}return I.\u0275fac=function(P){return new(P||I)},I.\u0275mod=z.oAB({type:I}),I.\u0275inj=z.cJS({providers:[G.B],imports:[k.ez]}),I})()},4879:(Bt,ot,a)=>{"use strict";a.d(ot,{UT:()=>Q,qS:()=>Xt,n8:()=>u,fA:()=>k,yv:()=>p,f$:()=>P,AH:()=>d,vK:()=>z,f_:()=>Zt});var G=a(1591),D=a(8975);function k(q){let $=[];for(const mt of q)if(mt instanceof G.Z){const Rt=k(mt.getLayers().getArray());$=Array.prototype.concat($,Rt)}else $.push(mt);return $}function z(q,$,mt,pt=!1){const Rt=$.getContext("2d");if(!Rt)throw new Error("The target-canvas needs to use a 2d-context.");if(!$.width||!$.height)throw new Error("TargetCanvas: width or height have not been set.");Rt instanceof CanvasRenderingContext2D&&Rt.clearRect(0,0,$.width,$.height);const Ht=q.getSize();$.width=Ht[0],$.height=Ht[1];const ne=k(q.getLayers().getArray()),me=[];for(const Me of ne)if(Me.getVisible()&&Me.getOpacity()>0){const Re=Me.on("postrender",De=>{const Xe=De.context.canvas;Rt instanceof CanvasRenderingContext2D&&(Rt.beginPath(),Rt.drawImage(Xe,0,0,Xe.clientWidth,Xe.clientHeight,0,0,$.width,$.height),Rt.closePath())});Array.isArray(Re)?Re.map(De=>me.push(De)):me.push(Re)}pt?q.on("rendercomplete",Me=>{mt($)}):q.once("rendercomplete",Me=>{for(const Re of me)(0,D.B)(Re);mt($)}),q.renderSync()}function P(q,$,mt=!1){q.setVisible($),!mt&&q instanceof G.Z&&q.getLayers().forEach(Rt=>{P(Rt,$)})}function p(q,$,mt=!1){q.setOpacity($),!mt&&q instanceof G.Z&&q.getLayers().forEach(Rt=>{p(Rt,$)})}function d(q,$,mt){q.setZIndex(mt>0?$+mt:$),q instanceof G.Z&&q.getLayers().forEach(Ht=>{d(Ht,$,mt)})}function u(q,$,mt){mt.remove(q),mt.insertAt($,q)}var c=a(6555),s=a(6906),f=a(9015);const n=q=>{let $=[];for(const mt of q){let pt;pt=Array.isArray(mt[0])?n(mt):mt,$=Array.prototype.concat($,pt)}return $},g=(q,$)=>Math.log(q)/Math.log($),e=(q,$)=>g(q,$)%1==0,w=(q,$,mt)=>{const pt=q.createShader($);if(!pt)throw new Error("No shader was created");if(q.shaderSource(pt,mt),q.compileShader(pt),!q.getShaderParameter(pt,q.COMPILE_STATUS))throw q.deleteShader(pt),new Error(`An error occurred compiling the shader: ${q.getShaderInfoLog(pt)}. \n\n Shader code: ${mt}`);return pt},W=(q,$)=>{q.useProgram($)},M=(q,$,mt)=>{q.bindBuffer(q.ARRAY_BUFFER,mt.buffer),q.enableVertexAttribArray($),q.vertexAttribPointer($,mt.vectorSize,mt.type,mt.normalize,mt.stride,mt.offset)},ht=(q,$,mt,pt)=>{if(mt>q.getParameter(q.MAX_COMBINED_TEXTURE_IMAGE_UNITS))throw new Error(`There are only ${q.getParameter(q.MAX_COMBINED_TEXTURE_IMAGE_UNITS)} texture bind points, but you tried to bind to point nr. ${mt}.`);7===mt&&console.error(`You are about to bind to the dedicated texture-construction bind point (nr. ${mt}).\n If after this call another texture is built, your shader will now use that new texture instead of this one!\n Consider using another bind point.`),q.activeTexture(q.TEXTURE0+mt),q.bindTexture(q.TEXTURE_2D,$),q.uniform1i(pt,mt)},kt=(q,$,mt)=>{const pt=q.getUniformLocation($,mt);if(null===pt)throw new Error(`Couldn't find uniform ${mt} in program.`);return pt},ie=(q,$,mt,pt)=>{switch(mt){case"bool":case"int":q.uniform1i($,pt[0]);break;case"bvec2":case"ivec2":q.uniform2i($,pt[0],pt[1]);break;case"bvec3":case"ivec3":q.uniform3i($,pt[0],pt[1],pt[2]);break;case"bvec4":case"ivec4":q.uniform4i($,pt[0],pt[1],pt[2],pt[3]);break;case"bool[]":case"int[]":q.uniform1iv($,pt);break;case"bvec2[]":case"ivec2[]":q.uniform2iv($,pt);break;case"bvec3[]":case"ivec3[]":q.uniform3iv($,pt);break;case"bvec4[]":case"ivec4[]":q.uniform4iv($,pt);break;case"float":q.uniform1f($,pt[0]);break;case"vec2":q.uniform2f($,pt[0],pt[1]);break;case"vec3":q.uniform3f($,pt[0],pt[1],pt[2]);break;case"vec4":q.uniform4f($,pt[0],pt[1],pt[2],pt[3]);break;case"float[]":q.uniform1fv($,pt);break;case"vec2[]":q.uniform2fv($,pt);break;case"vec3[]":q.uniform3fv($,pt);break;case"vec4[]":q.uniform4fv($,pt);break;case"mat2":q.uniformMatrix2fv($,!1,pt);break;case"mat3":q.uniformMatrix3fv($,!1,pt);break;case"mat4":q.uniformMatrix4fv($,!1,pt);break;default:throw Error(`Type ${mt} not implemented.`)}};class ce{constructor($,mt,pt){this.vertexShaderSource=mt,this.fragmentShaderSource=pt,this.program=((q,$,mt)=>{const pt=q.createProgram();if(!pt)throw new Error("No program was created");const Rt=w(q,q.VERTEX_SHADER,$),Ht=w(q,q.FRAGMENT_SHADER,mt);if(q.attachShader(pt,Rt),q.attachShader(pt,Ht),q.linkProgram(pt),q.detachShader(pt,Rt),q.detachShader(pt,Ht),q.deleteShader(Rt),q.deleteShader(Ht),!q.getProgramParameter(pt,q.LINK_STATUS))throw q.deleteProgram(pt),new Error("Unable to initialize the shader program: "+q.getProgramInfoLog(pt));return pt})($,mt,pt),this.id=function(q){let $=0;for(const mt of q)$+=mt.charCodeAt(0);return`${$}`}(mt+pt)}}class Se{constructor($,mt,pt,Rt,Ht){this.location=kt($,mt.program,pt),this.type=Rt,this.value=Ht,this.variableName=pt}}class dt{constructor($,mt,pt,Rt,Ht){this.location=kt($,mt.program,pt),this.texture=Rt instanceof HTMLImageElement||Rt instanceof HTMLCanvasElement?((q,$)=>{const mt=q.createTexture();if(!mt)throw new Error("No texture was created");q.activeTexture(q.TEXTURE0+7),q.bindTexture(q.TEXTURE_2D,mt);const Rt=q.RGBA,Ht=q.RGBA,ne=q.UNSIGNED_BYTE;let me,Me;return q.texImage2D(q.TEXTURE_2D,0,Rt,Ht,ne,$),q.generateMipmap(q.TEXTURE_2D),q.bindTexture(q.TEXTURE_2D,null),$ instanceof HTMLImageElement?(me=$.naturalWidth,Me=$.naturalHeight):(me=$.width,Me=$.height),{texture:mt,level:0,internalformat:Rt,format:Ht,type:ne,width:me,height:Me,border:0}})($,Rt):Rt,this.bindPoint=Ht,this.variableName=pt}}class Ot{constructor($,mt,pt,Rt,Ht){this.location=kt($,mt.program,pt),this.texture=((q,$)=>{const mt=$.length,pt=$[0].length,Rt=$[0][0].length;if(!e(pt,2)||!e(mt,2))throw new Error(`Texture-data-dimensions must be a power of two, but are ${pt} x ${mt}`);if(4!==Rt)throw new Error(`Expecting 4 channels, but ${Rt} provided`);const Ht=q.createTexture();if(!Ht)throw new Error("No texture was created");q.activeTexture(q.TEXTURE0+7),q.bindTexture(q.TEXTURE_2D,Ht);const Me=q.RGBA,Re=q.RGBA,De=q.UNSIGNED_BYTE,je=new Uint8Array(n($));return 4!==Rt&&q.pixelStorei(q.UNPACK_ALIGNMENT,1),q.texImage2D(q.TEXTURE_2D,0,Me,pt,mt,0,Re,De,je),q.texParameteri(q.TEXTURE_2D,q.TEXTURE_WRAP_S,q.CLAMP_TO_EDGE),q.texParameteri(q.TEXTURE_2D,q.TEXTURE_WRAP_T,q.CLAMP_TO_EDGE),q.texParameteri(q.TEXTURE_2D,q.TEXTURE_MIN_FILTER,q.NEAREST),q.texParameteri(q.TEXTURE_2D,q.TEXTURE_MAG_FILTER,q.NEAREST),q.bindTexture(q.TEXTURE_2D,null),{texture:Ht,level:0,internalformat:Me,format:Re,type:De,width:pt,height:mt,border:0}})($,Rt),this.bindPoint=Ht,this.variableName=pt}}class At{constructor($,mt,pt,Rt,Ht="triangles"){let ne;switch(Ht){case"triangles":ne=$.TRIANGLES;break;case"lines":ne=$.LINES;break;case"points":ne=$.POINTS;break;default:throw new Error(`Invalid drawing mode ${Ht}`)}this.location=((q,$,mt)=>{const pt=q.getAttribLocation($,mt);if(-1===pt)throw new Error(`Couldn't find attribute ${mt} in program.`);return pt})($,mt.program,pt),this.value=((q,$,mt=q.TRIANGLES)=>{const pt=new Float32Array(n($)),Rt=q.createBuffer();if(!Rt)throw new Error("No buffer was created");return q.bindBuffer(q.ARRAY_BUFFER,Rt),q.bufferData(q.ARRAY_BUFFER,pt,q.STATIC_DRAW),q.bindBuffer(q.ARRAY_BUFFER,null),{buffer:Rt,vectorSize:$[0].length,vectorCount:$.length,type:q.FLOAT,normalize:!1,stride:0,offset:0,drawingMode:mt}})($,Rt,ne),this.variableName=pt,this.drawingMode=ne}}class Yt{constructor($,mt,pt="triangles"){let Rt;switch(pt){case"triangles":Rt=$.TRIANGLES;break;case"lines":Rt=$.LINES;break;case"points":Rt=$.POINTS;break;default:throw new Error(`Invalid drawing mode ${pt}`)}this.index=((q,$,mt=q.TRIANGLES)=>{const pt=new Uint16Array(n($)),Rt=q.createBuffer();if(!Rt)throw new Error("No buffer was created");return q.bindBuffer(q.ELEMENT_ARRAY_BUFFER,Rt),q.bufferData(q.ELEMENT_ARRAY_BUFFER,pt,q.STATIC_DRAW),q.bindBuffer(q.ELEMENT_ARRAY_BUFFER,null),{buffer:Rt,count:pt.length,type:q.UNSIGNED_SHORT,offset:0,drawingMode:mt}})($,mt,Rt)}}function ge(q,$){for(const mt of q)if($(mt))return mt;return null}class gt{constructor($,mt,pt,Rt,Ht){this.program=$,this.attributes=mt,this.uniforms=pt,this.textures=Rt,this.index=Ht;const[ne,me,Me,Re]=function qt(q){const $=/^\s*attribute (int|float|vec2|vec3|vec4|mat2|mat3|mat4) (\w*);/gm,mt=/^\s*uniform (int|float|vec2|vec3|vec4|mat2|mat3|mat4) (\w*)(\[\d\])*;/gm,pt=/^\s*uniform sampler2D (\w*);/gm,Rt=/^\s*precision (\w*) float;/gm,Ht=q.fragmentShaderSource+"\n\n\n"+q.vertexShaderSource,ne=[];let me;for(;null!==(me=$.exec(Ht));)ne.push(me[2]);const Me=[];let Re;for(;null!==(Re=mt.exec(Ht));)Me.push(Re[2]);const De=[];let je;for(;null!==(je=pt.exec(Ht));)De.push(je[1]);const Xe=[];let ni;for(;null!==(ni=Rt.exec(Ht));)Xe.push(ni[1]);return[ne,Me,De,Xe]}($);for(const je of ne){const Xe=mt.filter(ni=>ni.variableName===je);if(1!==Xe.length)throw new Error(`Provided ${Xe.length} values for shader's attribute ${je}.`)}for(const je of me){const Xe=pt.filter(ni=>ni.variableName===je);if(1!==Xe.length)throw new Error(`Provided ${Xe.length} values for shader's uniform ${je}.`)}for(const je of Me){const Xe=Rt.filter(ni=>ni.variableName===je);if(1!==Xe.length)throw new Error(`Provided ${Xe.length} values for shader's texture ${je}.`)}1===Re.length&&console.warn("You have only provided one precision qualifier.\n This can cause issues when you want to use a uniform in both the vertex- and the fragment-shader.");const De=this.attributes.map(je=>je.value.vectorCount);if(Math.min(...De)!==Math.max(...De))throw new Error("Your attributes are not of the same length!")}bind($){W($,this.program.program);for(const mt of this.attributes)M($,mt.location,mt.value);for(const mt of this.uniforms)ie($,mt.location,mt.type,mt.value);for(const mt of this.textures)ht($,mt.texture.texture,mt.bindPoint,mt.location);this.index&&((q,$)=>{q.bindBuffer(q.ELEMENT_ARRAY_BUFFER,this.index.index.buffer)})($)}render($,mt,pt,Rt){pt?((q,$,mt)=>{q.bindFramebuffer(q.FRAMEBUFFER,$.framebuffer),mt?($.width/$.height!=mt[2]/mt[3]&&console.warn("Your viewport-aspect is different from the framebuffer-aspect."),q.viewport(...mt)):q.viewport(0,0,$.width,$.height)})($,pt,Rt):((q,$)=>{q.bindFramebuffer(q.FRAMEBUFFER,null),$?(q.canvas.width/q.canvas.height!=$[2]/$[3]&&console.warn("Your viewport-aspect is different from the canvas-aspect."),q.viewport(...$)):q.viewport(0,0,q.canvas.width,q.canvas.height)})($,Rt),mt&&((q,$)=>{q.clearColor($[0],$[1],$[2],$[3]),q.clearDepth(1),q.clear(q.COLOR_BUFFER_BIT|q.DEPTH_BUFFER_BIT)})($,mt),this.index?((q,$)=>{q.drawElements($.drawingMode,$.count,$.type,$.offset)})($,this.index.index):((q,$)=>{q.drawArrays($.drawingMode,$.offset,$.vectorCount)})($,this.attributes[0].value)}updateAttributeData($,mt,pt){const Rt=ge(this.attributes,Ht=>Ht.variableName===mt);if(!Rt)throw new Error(`No such attribute ${mt} to be updated.`);((q,$,mt)=>{const pt=new Float32Array(n(mt));q.bindBuffer(q.ARRAY_BUFFER,$.buffer),q.bufferData(q.ARRAY_BUFFER,pt,q.STATIC_DRAW),q.bindBuffer(q.ARRAY_BUFFER,null)})($,Rt.value,pt)}updateUniformData($,mt,pt){const Rt=ge(this.uniforms,Ht=>Ht.variableName===mt);if(!Rt)throw new Error(`No such uniform ${mt} to be updated.`);Rt.value=pt}updateTextureData($,mt,pt){const Rt=ge(this.textures,ne=>ne.variableName===mt);if(!Rt)throw new Error(`No such texture ${mt} to be updated.`);const Ht=((q,$,mt)=>{if(q.activeTexture(q.TEXTURE0+7),q.bindTexture(q.TEXTURE_2D,$.texture),mt instanceof HTMLImageElement||mt instanceof HTMLCanvasElement)q.texImage2D(q.TEXTURE_2D,0,q.RGBA,q.RGBA,q.UNSIGNED_BYTE,mt);else{const pt=mt[0].length,Rt=mt.length;if(!e(pt,2)||!e(Rt,2))throw new Error(`Texture-data-dimensions must be a power of two, but are ${Rt} x ${pt}`);const Ht=new Uint8Array(n(mt));q.texImage2D(q.TEXTURE_2D,$.level,$.internalformat,$.width,$.height,$.border,$.format,$.type,Ht)}return q.generateMipmap(q.TEXTURE_2D),q.bindTexture(q.TEXTURE_2D,null),mt instanceof HTMLImageElement?($.width=mt.naturalWidth,$.height=mt.naturalHeight):mt instanceof HTMLCanvasElement?($.width=mt.width,$.height=mt.height):($.width=mt[0].length,$.height=mt.length),$})($,Rt.texture,pt);Rt.texture=Ht}}class Mt{constructor($,mt,pt){const Rt=(q=>{const $=q.createFramebuffer();if(!$)throw new Error("Error creating framebuffer");return $})($),Ht=((q,$,mt)=>{if($<=0||mt<=0)throw new Error("Width and height must be positive.");const pt=q.createTexture();if(!pt)throw new Error("No texture was created");return q.activeTexture(q.TEXTURE0+7),q.bindTexture(q.TEXTURE_2D,pt),q.texImage2D(q.TEXTURE_2D,0,q.RGBA,$,mt,0,q.RGBA,q.UNSIGNED_BYTE,null),q.texParameteri(q.TEXTURE_2D,q.TEXTURE_WRAP_S,q.CLAMP_TO_EDGE),q.texParameteri(q.TEXTURE_2D,q.TEXTURE_WRAP_T,q.CLAMP_TO_EDGE),q.texParameteri(q.TEXTURE_2D,q.TEXTURE_MIN_FILTER,q.NEAREST),q.texParameteri(q.TEXTURE_2D,q.TEXTURE_MAG_FILTER,q.NEAREST),q.bindTexture(q.TEXTURE_2D,null),{texture:pt,level:0,internalformat:q.RGBA,format:q.RGBA,type:q.UNSIGNED_BYTE,width:$,height:mt,border:0}})($,mt,pt),ne=((q,$,mt)=>{if(q.bindFramebuffer(q.FRAMEBUFFER,mt),q.framebufferTexture2D(q.FRAMEBUFFER,q.COLOR_ATTACHMENT0,q.TEXTURE_2D,$.texture,0),q.checkFramebufferStatus(q.FRAMEBUFFER)!==q.FRAMEBUFFER_COMPLETE)throw new Error(`Error creating framebuffer: framebuffer-status: ${q.checkFramebufferStatus(q.FRAMEBUFFER)} ; error-code: ${q.getError()}`);return q.bindFramebuffer(q.FRAMEBUFFER,null),{framebuffer:mt,texture:$,width:$.width,height:$.height}})($,Ht,Rt);this.fbo=ne}}function Zt(q,$){const mt=1e3/q;let Rt,Ht,ne,pt=mt;const me=()=>{Rt=window.performance.now(),$(pt),Ht=window.performance.now(),pt=Ht-Rt,ne=Math.max(mt-pt,0),setTimeout(()=>{requestAnimationFrame(me)},ne)};me()}const m=(q,$)=>({vertices:[[-q/2,$/2,0],[-q/2,-$/2,0],[q/2,-$/2,0],[-q/2,$/2,0],[q/2,-$/2,0],[q/2,$/2,0]],texturePositions:[[0,1],[0,0],[1,0],[0,1],[1,0],[1,1]]});class Q extends s.Z{constructor($){super($)}createRenderer(){return this.renderer=new V(this),this.renderer}updateSunAngle($){this.renderer.updateSunAngle($)}}class V extends c.Z{constructor($){super($),this.state="loading";const mt=document.createElement("canvas");mt.width=1200,mt.height=800,mt.style.position="absolute";const pt=mt.getContext("webgl"),Rt=$.getSource(),Ht=Rt.getProjection(),ne=Rt.getImageExtent(),me=this.bboxOntoRectangle(2,2,ne),Me=((q,$=256,mt=256,pt="red")=>{const Rt=document.createElement("canvas").getContext("2d");if(!Rt)throw new Error("no context");return Rt.canvas.width=$,Rt.canvas.height=mt,Rt.font=`bold ${5*mt/6|0}px sans-serif`,Rt.textAlign="center",Rt.textBaseline="middle",Rt.fillStyle=pt,Rt.fillText(q,$/2,mt/2),Rt.canvas})("test",2048,2048,"red"),Re=new ce(pt,"\n attribute vec3 a_position;\n attribute vec2 a_texturePosition;\n uniform mat3 u_world2pix;\n uniform mat3 u_pix2canv;\n varying vec2 v_texturePosition;\n void main() {\n vec3 pixelPosition = u_world2pix * vec3(a_position.x, a_position.y, 1.);\n vec3 canvasPosition = u_pix2canv * pixelPosition;\n gl_Position = vec4(canvasPosition.x, canvasPosition.y, 0., 1.);\n v_texturePosition = a_texturePosition;\n }\n ","\n precision mediump float;\n uniform sampler2D u_srtm;\n uniform float u_imageSize;\n uniform vec3 u_sun;\n varying vec2 v_texturePosition;\n void main() {\n float delta = 4. / u_imageSize;\n float top = texture2D(u_srtm, vec2(v_texturePosition.x, 1. - v_texturePosition.y + delta)).r;\n float bot = texture2D(u_srtm, vec2(v_texturePosition.x, 1. - v_texturePosition.y - delta)).r;\n float lft = texture2D(u_srtm, vec2(v_texturePosition.x + delta, 1. - v_texturePosition.y )).r;\n float rgt = texture2D(u_srtm, vec2(v_texturePosition.x - delta, 1. - v_texturePosition.y )).r;\n\n vec3 surfaceNormal = vec3(\n lft - rgt,\n bot - top,\n 2. * delta\n );\n surfaceNormal = normalize(surfaceNormal);\n vec3 sunNormal = normalize(u_sun);\n float alignment = abs(dot(sunNormal, surfaceNormal));\n\n gl_FragColor = vec4(0., 0., 0., 0.5 * alignment);\n }\n ");W(pt,Re.program);const De=new gt(Re,[new At(pt,Re,"a_position",me.vertices),new At(pt,Re,"a_texturePosition",me.texturePositions)],[new Se(pt,Re,"u_imageSize","float",[2048]),new Se(pt,Re,"u_sun","vec3",[0,0,1]),new Se(pt,Re,"u_world2pix","mat3",n([[1,0,0],[0,1,0],[0,0,1]])),new Se(pt,Re,"u_pix2canv","mat3",n([[1/(mt.width/2),0,0],[0,-1/(mt.height/2),0],[-1,1,1]]))],[new dt(pt,Re,"u_srtm",Me,0)]);De.bind(pt),this.shader=De,this.canvas=mt,this.gl=pt,this.projection=Ht;const je=Rt.getImage(ne,.02197265625,2.440000295639038,Ht);je.addEventListener("change",Xe=>{const ni=je.getImage();this.shader.updateTextureData(this.gl,"u_srtm",ni),this.shader.bind(this.gl),this.state="ready",super.getLayer().changed()}),je.load()}prepareFrame($){if("ready"===this.state){const mt=$.coordinateToPixelTransform;this.shader.updateUniformData(this.gl,"u_world2pix",n([[mt[0],mt[1],0],[mt[2],mt[3],0],[mt[4],mt[5],1]])),this.shader.bind(this.gl),$.viewState.projection!==this.projection&&this.reprojectImage($.viewState.projection)}return!0}renderFrame($,mt){return"ready"===this.state&&(this.shader.render(this.gl),this.transformCanvas($)),this.canvas}renderDeclutter($){}updateSunAngle($){this.shader.updateUniformData(this.gl,"u_sun",[$[0],$[1],1]),this.shader.bind(this.gl),this.shader.render(this.gl)}bboxOntoRectangle($,mt,pt){const Rt=m($,mt);for(const Ht of Rt.vertices){const me=Ht[1];Ht[0]=Ht[0]===$/2?pt[2]:pt[0],Ht[1]=me===mt/2?pt[3]:pt[1]}return Rt}reprojectImage($){const mt=super.getLayer().getSource(),pt=mt.getProjection(),Rt=mt.getImageExtent(),Ht=(0,f.$A)(Rt,pt,$),ne=this.bboxOntoRectangle(2,2,Ht);this.shader.updateAttributeData(this.gl,"a_position",ne.vertices),this.shader.bind(this.gl)}transformCanvas($){const mt=$.layerStatesArray[$.layerIndex],pt=$.pixelRatio,Rt=$.size,Ht=Math.round(Rt[0]*pt),ne=Math.round(Rt[1]*pt),me=mt.opacity;this.canvas.width=Ht,this.canvas.height=ne,this.canvas.style.opacity=`${me}`,this.shader.updateUniformData(this.gl,"u_pix2canv",n([[1/(this.canvas.width/2),0,0],[0,-1/(this.canvas.height/2),0],[-1,1,1]]))}}var lt=a(2308),_t=a(7356),St=a(2663),Nt=a(3842);class Xt extends _t.Z{constructor($){super($),this.options=$}createRenderer(){return new Jt(this,this.options.renderSettings)}updateParas($,mt,pt){const Rt={colorRamp:this.options.renderSettings.colorRamp,maxEdgeLength:this.options.renderSettings.maxEdgeLength,storeInterpolatedPixelData:this.options.renderSettings.storeInterpolatedPixelData,valueProperty:this.options.renderSettings.valueProperty,power:$,showLabels:pt,smooth:mt};super.getRenderer().updateSettings(Rt),this.options.renderSettings=Rt}}class Jt extends lt.Z{constructor($,mt){super($),this.settings=mt,this.container=document.createElement("div"),this.container.classList.add("ol-layer"),this.container.style.setProperty("position","absolute"),this.container.style.setProperty("width","100%"),this.container.style.setProperty("height","100%"),this.webGlCanvas=document.createElement("canvas"),this.webGlCanvas.style.setProperty("position","absolute"),this.webGlCanvas.style.setProperty("left","0px"),this.webGlCanvas.style.setProperty("top","0px"),this.webGlCanvas.style.setProperty("width","100%"),this.webGlCanvas.style.setProperty("height","100%"),this.webGlCanvas.width=1e3,this.webGlCanvas.height=1e3,this.gl=this.webGlCanvas.getContext("webgl"),this.container.appendChild(this.webGlCanvas),this.pointRenderer=new lt.Z($);const pt=$.getSource();this.projection=pt.getProjection();const{coords:Rt,values:Ht,bboxDelta:ne,maxVal:me}=this.parseData(pt,this.settings.valueProperty,this.settings.maxEdgeLength),{observationsBbox:Me,maxEdgeLengthBbox:Re}=this.parseDataBbox(ne,Rt,Ht,me,this.settings.maxEdgeLength);this.bbox=ne;const De=[[1,0,0],[0,1,0],[0,0,1]];this.interpolationShader=se(this.gl,Me,me,this.settings.power,Re),this.valueFb=new Mt(this.gl,this.webGlCanvas.width,this.webGlCanvas.height),this.colorizationShader=Qt(this.gl,this.settings.colorRamp,me,this.settings.smooth,this.valueFb),this.colorFb=new Mt(this.gl,this.webGlCanvas.width,this.webGlCanvas.height),this.arrangementShader=Fe(this.gl,De,De,ne,this.colorFb),this.runInterpolationShader(this.valueFb.fbo),this.runColorizationShader(this.colorFb.fbo)}prepareFrame($){if(this.webGlCanvas.style.opacity=`${$.layerStatesArray[$.layerIndex].opacity}`,$.viewState.projection!==this.projection){this.projection=$.viewState.projection;const Rt=super.getLayer().getSource(),{coords:Ht,values:ne,bboxDelta:me,maxVal:Me}=this.parseData(Rt,this.settings.valueProperty,this.settings.maxEdgeLength),{observationsBbox:Re,maxEdgeLengthBbox:De}=this.parseDataBbox(me,Ht,ne,Me,this.settings.maxEdgeLength);this.updateInterpolationShader(this.settings.power,Re,De),this.runInterpolationShader(this.valueFb.fbo),this.runColorizationShader(this.colorFb.fbo),this.bbox=me}return this.updateArrangementShader($.coordinateToPixelTransform,$.size[0],$.size[1],this.bbox),this.pointRenderer.prepareFrame($),!0}renderFrame($,mt){if(this.runArrangementShader(),this.settings.showLabels){const pt=this.pointRenderer.renderFrame($,this.container);(0,Nt.hF)(this.container,[this.webGlCanvas,pt])}else(0,Nt.hF)(this.container,[this.webGlCanvas]);return this.container}renderDeclutter($){}updateSettings($){const mt=this.settings;this.settings=$,$.power!==mt.power?(this.updateInterpolationShader($.power),this.runInterpolationShader(this.valueFb.fbo),this.updateColorizationShader($.smooth),this.runColorizationShader(this.colorFb.fbo)):$.smooth!==mt.smooth&&(this.updateColorizationShader($.smooth),this.runColorizationShader(this.colorFb.fbo)),super.getLayer().changed()}updateArrangementShader($,mt,pt,Rt){const ne=[[1/(mt/2),0,0],[0,-1/(pt/2),0],[-1,1,1]];this.arrangementShader.updateUniformData(this.gl,"u_world2pix",n([[$[0],$[1],0],[$[2],$[3],0],[$[4],$[5],1]])),this.arrangementShader.updateUniformData(this.gl,"u_pix2clip",n(ne)),this.arrangementShader.updateUniformData(this.gl,"u_bbox",Rt)}runArrangementShader($){this.arrangementShader.bind(this.gl),this.arrangementShader.render(this.gl,[0,0,0,0],$)}updateInterpolationShader($,mt,pt){this.interpolationShader.updateUniformData(this.gl,"u_power",[$]),mt&&this.interpolationShader.updateTextureData(this.gl,"u_dataTexture",[mt]),pt&&this.interpolationShader.updateUniformData(this.gl,"u_maxDistance",[pt])}runInterpolationShader($){this.interpolationShader.bind(this.gl),this.interpolationShader.render(this.gl,[0,0,0,0],$),this.settings.storeInterpolatedPixelData&&(this.interpolatedValues=(q=>{const $=q.getContext("webgl");if(!$)throw new Error("no context");const mt=$.getParameter($.IMPLEMENTATION_COLOR_READ_FORMAT),pt=$.getParameter($.IMPLEMENTATION_COLOR_READ_TYPE);let Rt;if(pt===$.UNSIGNED_BYTE)Rt=new Uint8Array($.drawingBufferWidth*$.drawingBufferHeight*4);else if(pt===$.UNSIGNED_SHORT_5_6_5||pt===$.UNSIGNED_SHORT_4_4_4_4||pt===$.UNSIGNED_SHORT_5_5_5_1)Rt=new Uint16Array($.drawingBufferWidth*$.drawingBufferHeight*4);else{if(pt!==$.FLOAT)throw new Error(`Did not understand pixel data type ${pt} for format ${mt}`);Rt=new Float32Array($.drawingBufferWidth*$.drawingBufferHeight*4)}return $.readPixels(0,0,q.width,q.height,mt,pt,Rt),Rt})(this.webGlCanvas))}updateColorizationShader($){this.colorizationShader.updateUniformData(this.gl,"u_smooth",[$?1:0])}runColorizationShader($){this.colorizationShader.bind(this.gl),this.colorizationShader.render(this.gl,[0,0,0,0],$)}parseData($,mt,pt){let Rt=$.getFeatures();Rt=$ instanceof St.Z?$.getSource().getFeatures():$.getFeatures();const Ht=Rt.map(vi=>vi.getGeometry().getCoordinates()),ne=Rt.map(vi=>parseFloat(vi.getProperties()[mt])),me=Ye(Ht),Me=me[2]-me[0],Re=me[3]-me[1];let De,je;Me>Re?(je=Me-Re,De=0):(je=0,De=Re-Me);const Xe=[me[0]-pt,me[1]-pt,me[2]+De+pt,me[3]+je+pt],ni=ne.reduce((vi,gi)=>gi>vi?gi:vi,0);return{coords:Ht,values:ne,bboxDelta:Xe,maxVal:ni}}parseDataBbox($,mt,pt,Rt,Ht){const ne=We(mt,pt).map(Xe=>{const ni=Ee([Xe[0],Xe[1]],$);return[255*(ni[0]+1)/2,255*(ni[1]+1)/2,255*Xe[2]/Rt,255]}),me=ne.length,Me=((q,$)=>{const mt=Math.ceil(g(q,2));return Math.pow(2,mt)})(me);for(let Xe=0;Xe[(q[0]-$[0])/($[2]-$[0])*2-1,(q[1]-$[1])/($[3]-$[1])*2-1],se=(q,$,mt,pt,Rt)=>{const ne=new ce(q,"\n precision mediump float;\n attribute vec3 a_position;\n attribute vec2 a_texturePosition;\n varying vec2 v_position;\n varying vec2 v_texturePosition;\n\n void main() {\n v_position = a_position.xy;\n v_texturePosition = a_texturePosition;\n gl_Position = vec4(a_position.xy, 0.0, 1.0);\n }\n ","\n precision mediump float;\n uniform float u_power;\n uniform sampler2D u_dataTexture;\n uniform int u_nrDataPoints;\n uniform float u_maxValue;\n uniform float u_maxDistance;\n varying vec2 v_position;\n varying vec2 v_texturePosition;\n\n void main() {\n\n float valSum = 0.0;\n float wSum = 0.0;\n float minD = 10000.0;\n for (int i = 0; i < 10000; i++) {\n if (i > u_nrDataPoints) {\n break;\n }\n vec4 dataPoint = texture2D(u_dataTexture, vec2(float(i) / float(u_nrDataPoints), 0.5));\n if (dataPoint.w > 0.0) { // texture is padded to next power of two with transparent 0-values.\n vec2 coords = dataPoint.xy * 2.0 - 1.0; // transforming coords from [0, 1] to [-1, 1]\n float value = dataPoint.z * u_maxValue; // transforming value from [0, 1] to [0, maxValue]\n\n float d = distance(v_position, coords);\n float w = 1.0 / pow(d, u_power);\n valSum += value * w;\n wSum += w;\n if (d < minD) {\n minD = d;\n }\n }\n }\n float interpolatedValue = valSum / wSum;\n float alpha = 1.0;\n if (minD > u_maxDistance) {\n alpha = 0.0;\n }\n vec4 color = vec4(interpolatedValue / u_maxValue, 0.0, 0.0, alpha);\n\n gl_FragColor = color;\n }\n "),me={vertices:[[-1,1,0],[-1,-1,0],[1,-1,0],[1,1,0]],texturePositions:[[0,1],[0,0],[1,0],[1,1]],vertexIndices:[[0,1,2],[0,2,3]]};return new gt(ne,[new At(q,ne,"a_position",me.vertices),new At(q,ne,"a_texturePosition",me.texturePositions)],[new Se(q,ne,"u_power","float",[pt]),new Se(q,ne,"u_nrDataPoints","int",[$.length]),new Se(q,ne,"u_maxValue","float",[mt]),new Se(q,ne,"u_maxDistance","float",[Rt])],[new Ot(q,ne,"u_dataTexture",[$],0)],new Yt(q,me.vertexIndices))},Qt=(q,$,mt,pt,Rt)=>{const ne=new ce(q,"\n precision mediump float;\n attribute vec2 a_position;\n attribute vec2 a_textureCoord;\n varying vec2 v_textureCoord;\n\n void main() {\n v_textureCoord = a_textureCoord;\n gl_Position = vec4(a_position.xy, 0.0, 1.0);\n }\n ","\n precision mediump float;\n uniform float u_colorRampValues[15];\n uniform vec3 u_colorRampColors[15];\n uniform int u_nrColorRampValues;\n uniform float u_maxValue;\n uniform bool u_smooth;\n uniform sampler2D u_valueTexture;\n varying vec2 v_textureCoord;\n\n vec3 valueToSmoothColor(in float value) {\n if (value < u_colorRampValues[0]) {\n return u_colorRampColors[0];\n }\n for (int i = 1; i < 15; i++) {\n if (i > u_nrColorRampValues) {\n break;\n }\n if (value < u_colorRampValues[i]) {\n float alpha = (value - u_colorRampValues[i-1]) / (u_colorRampValues[i] - u_colorRampValues[i-1]);\n vec3 color = alpha * (u_colorRampColors[i] - u_colorRampColors[i-1]) + u_colorRampColors[i-1];\n return color;\n }\n if (i == u_nrColorRampValues) {\n return u_colorRampColors[i];\n }\n }\n }\n\n vec3 valueToStepColor(in float value) {\n for (int i = 0; i < 15; i++) {\n if (i > u_nrColorRampValues) {\n break;\n }\n if (value < u_colorRampValues[i]) {\n return u_colorRampColors[i];\n }\n if (i == u_nrColorRampValues) {\n return u_colorRampColors[i];\n }\n }\n }\n\n void main() {\n vec4 pixelData = texture2D(u_valueTexture, v_textureCoord);\n float val = pixelData.r * u_maxValue;\n float alpha = pixelData.w;\n vec3 rgb = vec3(0.0, 0.0, 0.0);\n if (alpha > 0.01) {\n if (u_smooth) {\n rgb = valueToSmoothColor(val);\n } else {\n rgb = valueToStepColor(val);\n }\n }\n gl_FragColor = vec4(rgb.x / 255.0, rgb.y / 255.0, rgb.z / 255.0, alpha);\n }\n ");return new gt(ne,[new At(q,ne,"a_position",m(2,2).vertices),new At(q,ne,"a_textureCoord",m(2,2).texturePositions)],[new Se(q,ne,"u_colorRampValues","float[]",$.map(Me=>Me.val)),new Se(q,ne,"u_colorRampColors","vec3[]",n($.map(Me=>Me.rgb))),new Se(q,ne,"u_nrColorRampValues","int",[$.length]),new Se(q,ne,"u_maxValue","float",[mt]),new Se(q,ne,"u_smooth","bool",[pt?1:0])],[new dt(q,ne,"u_valueTexture",Rt.fbo.texture,0)])},Fe=(q,$,mt,pt,Rt)=>{const Ht=new ce(q,"\n precision mediump float;\n attribute vec3 a_pos;\n attribute vec2 a_posTexture;\n uniform mat3 u_world2pix;\n uniform mat3 u_pix2clip;\n uniform vec4 u_bbox;\n varying vec2 v_posTexture;\n\n vec2 clipBbx2worldCoords(vec2 clipCoords, vec4 bbox) {\n float xPerct = ( clipCoords.x + 1.0 ) / 2.0;\n float yPerct = ( clipCoords.y + 1.0 ) / 2.0;\n float xWorld = xPerct * (bbox.z - bbox.x) + bbox.x;\n float yWorld = yPerct * (bbox.w - bbox.y) + bbox.y;\n return vec2(xWorld, yWorld);\n }\n\n void main() {\n v_posTexture = a_posTexture;\n vec2 worldPos = clipBbx2worldCoords(a_pos.xy, u_bbox);\n vec3 clipPos = u_pix2clip * u_world2pix * vec3(worldPos.xy, 1.0);\n gl_Position = vec4(clipPos.xy, 0.0, 1.0);\n }\n ","\n precision mediump float;\n uniform sampler2D u_texture;\n varying vec2 v_posTexture;\n\n void main() {\n gl_FragColor = texture2D(u_texture, v_posTexture);\n }\n ");return new gt(Ht,[new At(q,Ht,"a_pos",m(2,2).vertices),new At(q,Ht,"a_posTexture",m(2,2).texturePositions)],[new Se(q,Ht,"u_world2pix","mat3",n($)),new Se(q,Ht,"u_pix2clip","mat3",n(mt)),new Se(q,Ht,"u_bbox","vec4",pt)],[new dt(q,Ht,"u_texture",Rt.fbo.texture,0)])},Ye=q=>{const $=q.map(me=>me[0]),mt=q.map(me=>me[1]),pt=Math.min(...$),Rt=Math.max(...$);return[pt,Math.min(...mt),Rt,Math.max(...mt)]},We=(q,$)=>{const mt=[];for(let pt=0;pt{"use strict";a.d(ot,{h0:()=>$e,bg:()=>Hr});var G=a(795),D=a(694),k=a(5999),z=a(2929),U=a(5253),I=a(1786),S=a(8185),P=a(2768),p=a(5809),d=a(8898),u=a(7521),c=a(1591),s=a(6114),f=a(6942),n=a(2673),h=a(1053),g=a(3242),e=a(9543),E=a(992),v=a(2705),x=a(9015),w=a(513);Error,Error;const M=class b extends g.Z{constructor(i){if(super({attributions:i.attributions,cacheSize:i.cacheSize,crossOrigin:i.crossOrigin,interpolate:i.interpolate,projection:(0,x.U2)("EPSG:3857"),reprojectionErrorThreshold:i.reprojectionErrorThreshold,state:"loading",tileLoadFunction:i.tileLoadFunction,wrapX:void 0===i.wrapX||i.wrapX,transition:i.transition,zDirection:i.zDirection}),this.tileJSON_=null,this.tileSize_=i.tileSize,i.url)if(i.jsonp)!function O(r,i,o,T){const Z=document.createElement("script"),J="olc_"+(0,w.sq)(i);function rt(){delete window[J],Z.parentNode.removeChild(Z)}Z.async=!0,Z.src=r+(r.includes("?")?"&":"?")+(T||"callback")+"="+J;const xt=setTimeout(function(){rt(),o&&o()},1e4);window[J]=function(Lt){clearTimeout(xt),rt(),i(Lt)},document.head.appendChild(Z)}(i.url,this.handleTileJSONResponse.bind(this),this.handleTileJSONError.bind(this));else{const o=new XMLHttpRequest;o.addEventListener("load",this.onXHRLoad_.bind(this)),o.addEventListener("error",this.onXHRError_.bind(this)),o.open("GET",i.url),o.send()}else i.tileJSON?this.handleTileJSONResponse(i.tileJSON):(0,E.h)(!1,51)}onXHRLoad_(i){const o=i.target;if(!o.status||o.status>=200&&o.status<300){let T;try{T=JSON.parse(o.responseText)}catch{return void this.handleTileJSONError()}this.handleTileJSONResponse(T)}else this.handleTileJSONError()}onXHRError_(i){this.handleTileJSONError()}getTileJSON(){return this.tileJSON_}handleTileJSONResponse(i){const o=(0,x.U2)("EPSG:4326"),T=this.getProjection();let Z;if(void 0!==i.bounds){const Dt=(0,x.WO)(o,T);Z=(0,e.Ne)(i.bounds,Dt)}const J=(0,v.Tl)(T),Lt=(0,v.dl)({extent:J,maxZoom:i.maxzoom||22,minZoom:i.minzoom||0,tileSize:this.tileSize_});if(this.tileGrid=Lt,this.tileUrlFunction=(0,p.uR)(i.tiles,Lt),i.attribution&&!this.getAttributions()){const Dt=void 0!==Z?Z:J;this.setAttributions(function(Ft){return(0,e.kK)(Dt,Ft.extent)?[i.attribution]:null})}this.tileJSON_=i,this.setState("ready")}handleTileJSONError(){this.setState("error")}};var ht,C=a(7356),N=a(3149),H=a(585),it=a(978),Y=a(8742),Tt={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function vt(r){return(r=Math.round(r))<0?0:r>255?255:r}function bt(r){return vt("%"===r[r.length-1]?parseFloat(r)/100*255:parseInt(r))}function Gt(r){return function Ct(r){return r<0?0:r>1?1:r}("%"===r[r.length-1]?parseFloat(r)/100:parseFloat(r))}function kt(r,i,o){return o<0?o+=1:o>1&&(o-=1),6*o<1?r+(i-r)*o*6:2*o<1?i:3*o<2?r+(i-r)*(2/3-o)*6:r}try{ht={}.parseCSSColor=function ie(r){var o,i=r.replace(/ /g,"").toLowerCase();if(i in Tt)return Tt[i].slice();if("#"===i[0])return 4===i.length?(o=parseInt(i.substr(1),16))>=0&&o<=4095?[(3840&o)>>4|(3840&o)>>8,240&o|(240&o)>>4,15&o|(15&o)<<4,1]:null:7===i.length&&(o=parseInt(i.substr(1),16))>=0&&o<=16777215?[(16711680&o)>>16,(65280&o)>>8,255&o,1]:null;var T=i.indexOf("("),Z=i.indexOf(")");if(-1!==T&&Z+1===i.length){var J=i.substr(0,T),rt=i.substr(T+1,Z-(T+1)).split(","),xt=1;switch(J){case"rgba":if(4!==rt.length)return null;xt=Gt(rt.pop());case"rgb":return 3!==rt.length?null:[bt(rt[0]),bt(rt[1]),bt(rt[2]),xt];case"hsla":if(4!==rt.length)return null;xt=Gt(rt.pop());case"hsl":if(3!==rt.length)return null;var Lt=(parseFloat(rt[0])%360+360)%360/360,Dt=Gt(rt[1]),Ft=Gt(rt[2]),$t=Ft<=.5?Ft*(Dt+1):Ft+Dt-Ft*Dt,le=2*Ft-$t;return[vt(255*kt(le,$t,Lt+1/3)),vt(255*kt(le,$t,Lt)),vt(255*kt(le,$t,Lt-1/3)),xt];default:return null}}return null}}catch{}var zt=function(i,o,T,Z){void 0===Z&&(Z=1),this.r=i,this.g=o,this.b=T,this.a=Z};zt.parse=function(i){if(i){if(i instanceof zt)return i;if("string"==typeof i){var o=ht(i);if(o)return new zt(o[0]/255*o[3],o[1]/255*o[3],o[2]/255*o[3],o[3])}}},zt.prototype.toString=function(){var i=this.toArray(),T=i[1],Z=i[2],J=i[3];return"rgba("+Math.round(i[0])+","+Math.round(T)+","+Math.round(Z)+","+J+")"},zt.prototype.toArray=function(){var i=this,J=i.a;return 0===J?[0,0,0,0]:[255*i.r/J,255*i.g/J,255*i.b/J,J]},zt.prototype.toArray01=function(){var i=this,J=i.a;return 0===J?[0,0,0,0]:[i.r/J,i.g/J,i.b/J,J]},zt.prototype.toArray01PremultipliedAlpha=function(){var i=this;return[i.r,i.g,i.b,i.a]},zt.black=new zt(0,0,0,1),zt.white=new zt(1,1,1,1),zt.transparent=new zt(0,0,0,0),zt.red=new zt(1,0,0,1),zt.blue=new zt(0,0,1,1);var ue=zt;function de(r){return"object"==typeof r?["literal",r]:r}function dt(r){switch(r.colorSpace){case"hcl":return"interpolate-hcl";case"lab":return"interpolate-lab";default:return"interpolate"}}function Yt(r,i){var o=de(function At(r,i){return void 0!==r?r:void 0!==i?i:void 0}(r.default,i.default));return void 0===o&&"resolvedImage"===i.type?"":o}function ge(r,i,o){var T=Zt(r,i),Z=["get",r.property];if("categorical"===T&&"boolean"==typeof o[0][0]){for(var J=["case"],rt=0,xt=o;rt3&&i===r[r.length-2]||(T&&2===r.length||r.push(i),r.push(o))}function Zt(r,i){return r.type?r.type:i.expression.interpolated?"exponential":"interval"}function jt(r){for(var i=["concat"],o=/{([^{}]+)}/g,T=0,Z=o.exec(r);null!==Z;Z=o.exec(r)){var J=r.slice(T,o.lastIndex-Z[0].length);T=o.lastIndex,J.length>0&&i.push(J),i.push(["get",Z[1]])}if(1===i.length)return r;if(T":"value"===r.itemType.kind?"array":"array<"+i+">"}return r.kind}var Ee=[Ze,It,ct,m,F,St,Q,Xt(V),Nt];function se(r,i){if("error"===i.kind)return null;if("array"===r.kind){if("array"===i.kind&&(0===i.N&&"value"===i.itemType.kind||!se(r.itemType,i.itemType))&&("number"!=typeof r.N||r.N===i.N))return null}else{if(r.kind===i.kind)return null;if("value"===r.kind)for(var o=0,T=Ee;o=0&&r<=255&&"number"==typeof i&&i>=0&&i<=255&&"number"==typeof o&&o>=0&&o<=255?typeof T>"u"||"number"==typeof T&&T>=0&&T<=1?null:"Invalid rgba value ["+[r,i,o,T].join(", ")+"]: 'a' must be between 0 and 1.":"Invalid rgba value ["+("number"==typeof T?[r,i,o,T]:[r,i,o]).join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}function q(r){if(null===r)return!0;if("string"==typeof r)return!0;if("boolean"==typeof r)return!0;if("number"==typeof r)return!0;if(r instanceof ue)return!0;if(r instanceof We)return!0;if(r instanceof Ve)return!0;if(r instanceof Qe)return!0;if(Array.isArray(r)){for(var i=0,o=r;i2){var xt=i[1];if("string"!=typeof xt||!(xt in me)||"object"===xt)return o.error('The item type argument of "array" must be one of string, number, boolean',1);rt=me[xt],T++}else rt=V;if(i.length>3){if(null!==i[2]&&("number"!=typeof i[2]||i[2]<0||i[2]!==Math.floor(i[2])))return o.error('The length argument to "array" must be a positive integer literal',2);Lt=i[2],T++}Z=Xt(rt,Lt)}else Z=me[J];for(var Dt=[];T1)&&o.push(Z)}}return o.concat(this.args.map(function(J){return J.serialize()}))};var Re=Me,De=function(i){this.type=St,this.sections=i};De.parse=function(i,o){if(i.length<2)return o.error("Expected at least one argument.");var T=i[1];if(!Array.isArray(T)&&"object"==typeof T)return o.error("First argument must be an image or text section.");for(var Z=[],J=!1,rt=1;rt<=i.length-1;++rt){var xt=i[rt];if(J&&"object"==typeof xt&&!Array.isArray(xt)){J=!1;var Lt=null;if(xt["font-scale"]&&!(Lt=o.parse(xt["font-scale"],1,It)))return null;var Dt=null;if(xt["text-font"]&&!(Dt=o.parse(xt["text-font"],1,Xt(ct))))return null;var Ft=null;if(xt["text-color"]&&!(Ft=o.parse(xt["text-color"],1,F)))return null;var $t=Z[Z.length-1];$t.scale=Lt,$t.font=Dt,$t.textColor=Ft}else{var le=o.parse(i[rt],1,V);if(!le)return null;var fe=le.type.kind;if("string"!==fe&&"value"!==fe&&"null"!==fe&&"resolvedImage"!==fe)return o.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");J=!0,Z.push({content:le,scale:null,font:null,textColor:null})}}return new De(Z)},De.prototype.evaluate=function(i){return new Ve(this.sections.map(function(T){var Z=T.content.evaluate(i);return $(Z)===Nt?new Ge("",Z,null,null,null):new Ge(mt(Z),null,T.scale?T.scale.evaluate(i):null,T.font?T.font.evaluate(i).join(","):null,T.textColor?T.textColor.evaluate(i):null)}))},De.prototype.eachChild=function(i){for(var o=0,T=this.sections;o-1),T},Xe.prototype.eachChild=function(i){i(this.input)},Xe.prototype.outputDefined=function(){return!1},Xe.prototype.serialize=function(){return["image",this.input.serialize()]};var ni=Xe,vi={"to-boolean":m,"to-color":F,"to-number":It,"to-string":ct},gi=function(i,o){this.type=i,this.args=o};gi.parse=function(i,o){if(i.length<2)return o.error("Expected at least one argument.");var T=i[0];if(("to-boolean"===T||"to-string"===T)&&2!==i.length)return o.error("Expected one argument.");for(var Z=vi[T],J=[],rt=1;rt4?"Invalid rbga value "+JSON.stringify(o)+": expected an array containing either three or four numeric values.":qe(o[0],o[1],o[2],o[3])))return new ue(o[0]/255,o[1]/255,o[2]/255,o[3])}throw new ne(T||"Could not parse color from value '"+("string"==typeof o?o:String(JSON.stringify(o)))+"'")}if("number"===this.type.kind){for(var Lt=null,Dt=0,Ft=this.args;Dt=i[2]||r[1]<=i[1]||r[3]>=i[3])}function Ws(r,i){var o=function xi(r){return(180+r)/360}(r[0]),T=function Ri(r){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+r*Math.PI/360)))/360}(r[1]),Z=Math.pow(2,i.z);return[Math.round(o*Z*Ci),Math.round(T*Z*Ci)]}function Oi(r,i,o){var T=r[0]-i[0],Z=r[1]-i[1],J=r[0]-o[0],rt=r[1]-o[1];return T*rt-J*Z==0&&T*J<=0&&Z*rt<=0}function ln(r,i,o){return i[1]>r[1]!=o[1]>r[1]&&r[0]<(o[0]-i[0])*(r[1]-i[1])/(o[1]-i[1])+i[0]}function Tn(r,i){for(var o=!1,T=0,Z=i.length;T0&&$t<0||Ft<0&&$t>0}function Li(r,i,o,T){return 0!==function qi(r,i){return r[0]*i[1]-r[1]*i[0]}([T[0]-o[0],T[1]-o[1]],[i[0]-r[0],i[1]-r[1]])&&!(!Mi(r,i,o,T)||!Mi(o,T,r,i))}function un(r,i,o){for(var T=0,Z=o;To[2]){var Z=.5*T,J=r[0]-o[0]>Z?-T:o[0]-r[0]>Z?T:0;0===J&&(J=r[0]-o[2]>Z?-T:o[2]-r[0]>Z?T:0),r[0]+=J}ri(i,r)}function Gn(r,i,o,T){var Z=Math.pow(2,T.z)*Ci,J=[T.x*Ci,T.y*Ci],rt=[];if(!r)return rt;for(var xt=0,Lt=r;xt=0)return!1;var o=!0;return r.eachChild(function(T){o&&!On(T,i)&&(o=!1)}),o}var Yi=function(i,o){this.type=o.type,this.name=i,this.boundExpression=o};Yi.parse=function(i,o){if(2!==i.length||"string"!=typeof i[1])return o.error("'var' expression requires exactly one string literal argument.");var T=i[1];return o.scope.has(T)?new Yi(T,o.scope.get(T)):o.error('Unknown variable "'+T+'". Make sure "'+T+'" has been bound in an enclosing "let" expression before using it.',1)},Yi.prototype.evaluate=function(i){return this.boundExpression.evaluate(i)},Yi.prototype.eachChild=function(){},Yi.prototype.outputDefined=function(){return!1},Yi.prototype.serialize=function(){return["var",this.name]};var fs=Yi,Hi=function(i,o,T,Z,J){void 0===o&&(o=[]),void 0===Z&&(Z=new Le),void 0===J&&(J=[]),this.registry=i,this.path=o,this.key=o.map(function(rt){return"["+rt+"]"}).join(""),this.scope=Z,this.errors=J,this.expectedType=T};Hi.prototype.parse=function(i,o,T,Z,J){return void 0===J&&(J={}),o?this.concat(o,T,Z)._parse(i,J):this._parse(i,J)},Hi.prototype._parse=function(i,o){function T(Ft,$t,le){return"assert"===le?new Re($t,[Ft]):"coerce"===le?new yi($t,[Ft]):Ft}if((null===i||"string"==typeof i||"boolean"==typeof i||"number"==typeof i)&&(i=["literal",i]),Array.isArray(i)){if(0===i.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var Z=i[0];if("string"!=typeof Z)return this.error("Expression name must be a string, but found "+typeof Z+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var J=this.registry[Z];if(J){var rt=J.parse(i,this);if(!rt)return null;if(this.expectedType){var xt=this.expectedType,Lt=rt.type;if("string"!==xt.kind&&"number"!==xt.kind&&"boolean"!==xt.kind&&"object"!==xt.kind&&"array"!==xt.kind||"value"!==Lt.kind)if("color"!==xt.kind&&"formatted"!==xt.kind&&"resolvedImage"!==xt.kind||"value"!==Lt.kind&&"string"!==Lt.kind){if(this.checkSubtype(xt,Lt))return null}else rt=T(rt,xt,o.typeAnnotation||"coerce");else rt=T(rt,xt,o.typeAnnotation||"assert")}if(!(rt instanceof Rt)&&"resolvedImage"!==rt.type.kind&&Xn(rt)){var Dt=new mi;try{rt=new Rt(rt.type,rt.evaluate(Dt))}catch(Ft){return this.error(Ft.message),null}}return rt}return this.error('Unknown expression "'+Z+'". If you wanted a literal array, use ["literal", [...]].',0)}return this.error(typeof i>"u"?"'undefined' value invalid. Use null instead.":"object"==typeof i?'Bare objects invalid. Use ["literal", {...}] instead.':"Expected an array, but found "+typeof i+" instead.")},Hi.prototype.concat=function(i,o,T){var Z="number"==typeof i?this.path.concat(i):this.path,J=T?this.scope.concat(T):this.scope;return new Hi(this.registry,Z,o||null,J,this.errors)},Hi.prototype.error=function(i){for(var o=[],T=arguments.length-1;T-- >0;)o[T]=arguments[T+1];var Z=""+this.key+o.map(function(J){return"["+J+"]"}).join("");this.errors.push(new he(Z,i))},Hi.prototype.checkSubtype=function(i,o){var T=se(i,o);return T&&this.error(T),T};var zi=Hi;function Xn(r){if(r instanceof fs)return Xn(r.boundExpression);if(r instanceof _i&&"error"===r.name)return!1;if(r instanceof Gi)return!1;if(r instanceof Kn)return!1;var i=r instanceof yi||r instanceof Re,o=!0;return r.eachChild(function(T){o=i?o&&Xn(T):o&&T instanceof Rt}),!!o&&cn(r)&&On(r,["zoom","heatmap-density","line-progress","sky-radial-progress","accumulated","is-supported-script","pitch","distance-from-center"])}function gs(r,i){for(var rt,o=r.length-1,T=0,Z=o,J=0;T<=Z;)if((rt=r[J=Math.floor((T+Z)/2)])<=i){if(J===o||ii))throw new ne("Input is not a number.");Z=J-1}return 0}var Ji=function(i,o,T){this.type=i,this.input=o,this.labels=[],this.outputs=[];for(var Z=0,J=T;Z=xt)return o.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',Dt);var $t=o.parse(Lt,Ft,J);if(!$t)return null;J=J||$t.type,Z.push([xt,$t])}return new Ji(J,T,Z)},Ji.prototype.evaluate=function(i){var o=this.labels,T=this.outputs;if(1===o.length)return T[0].evaluate(i);var Z=this.input.evaluate(i);if(Z<=o[0])return T[0].evaluate(i);var J=o.length;return Z>=o[J-1]?T[J-1].evaluate(i):T[gs(o,Z)].evaluate(i)},Ji.prototype.eachChild=function(i){i(this.input);for(var o=0,T=this.outputs;o0&&i.push(this.labels[o]),i.push(this.outputs[o].serialize());return i};var Vn=Ji,_s=Ki;function Ki(r,i,o,T){this.cx=3*r,this.bx=3*(o-r)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*i,this.by=3*(T-i)-this.cy,this.ay=1-this.cy-this.by,this.p1x=r,this.p1y=T,this.p2x=o,this.p2y=T}function Si(r,i,o){return r*(1-o)+i*o}Ki.prototype.sampleCurveX=function(r){return((this.ax*r+this.bx)*r+this.cx)*r},Ki.prototype.sampleCurveY=function(r){return((this.ay*r+this.by)*r+this.cy)*r},Ki.prototype.sampleCurveDerivativeX=function(r){return(3*this.ax*r+2*this.bx)*r+this.cx},Ki.prototype.solveCurveX=function(r,i){var o,T,Z,J,rt;for(typeof i>"u"&&(i=1e-6),Z=r,rt=0;rt<8;rt++){if(J=this.sampleCurveX(Z)-r,Math.abs(J)(T=1))return T;for(;oJ?o=Z:T=Z,Z=.5*(T-o)+o}return Z},Ki.prototype.solve=function(r,i){return this.sampleCurveY(this.solveCurveX(r,i))};var Ks=Object.freeze({__proto__:null,number:Si,color:function ms(r,i,o){return new ue(Si(r.r,i.r,o),Si(r.g,i.g,o),Si(r.b,i.b,o),Si(r.a,i.a,o))},array:function Yn(r,i,o){return r.map(function(T,Z){return Si(T,i[Z],o)})}}),Jn=4/29,Ti=6/29,ys=3*Ti*Ti,ks=Math.PI/180,Xs=180/Math.PI;function Sn(r){return r>.008856451679035631?Math.pow(r,1/3):r/ys+Jn}function $n(r){return r>Ti?r*r*r:ys*(r-Jn)}function en(r){return 255*(r<=.0031308?12.92*r:1.055*Math.pow(r,1/2.4)-.055)}function dn(r){return(r/=255)<=.04045?r/12.92:Math.pow((r+.055)/1.055,2.4)}function wi(r){var i=dn(r.r),o=dn(r.g),T=dn(r.b),Z=Sn((.4124564*i+.3575761*o+.1804375*T)/.95047),J=Sn((.2126729*i+.7151522*o+.072175*T)/1);return{l:116*J-16,a:500*(Z-J),b:200*(J-Sn((.0193339*i+.119192*o+.9503041*T)/1.08883)),alpha:r.a}}function Es(r){var i=(r.l+16)/116,o=isNaN(r.a)?i:i+r.a/500,T=isNaN(r.b)?i:i-r.b/200;return i=1*$n(i),o=.95047*$n(o),T=1.08883*$n(T),new ue(en(3.2404542*o-1.5371385*i-.4985314*T),en(-.969266*o+1.8760108*i+.041556*T),en(.0556434*o-.2040259*i+1.0572252*T),r.alpha)}function Kt(r,i,o){var T=i-r;return r+o*(T>180||T<-180?T-360*Math.round(T/360):T)}var ft={forward:wi,reverse:Es,interpolate:function Vs(r,i,o){return{l:Si(r.l,i.l,o),a:Si(r.a,i.a,o),b:Si(r.b,i.b,o),alpha:Si(r.alpha,i.alpha,o)}}},yt_forward=function qn(r){var i=wi(r),o=i.l,T=i.a,Z=i.b,J=Math.atan2(Z,T)*Xs;return{h:J<0?J+360:J,c:Math.sqrt(T*T+Z*Z),l:o,alpha:r.a}},yt_reverse=function Ys(r){var i=r.h*ks,o=r.c;return Es({l:r.l,a:Math.cos(i)*o,b:Math.sin(i)*o,alpha:r.alpha})},yt_interpolate=function at(r,i,o){return{h:Kt(r.h,i.h,o),c:Si(r.c,i.c,o),l:Si(r.l,i.l,o),alpha:Si(r.alpha,i.alpha,o)}},wt=function(i,o,T,Z,J){this.type=i,this.operator=o,this.interpolation=T,this.input=Z,this.labels=[],this.outputs=[];for(var rt=0,xt=J;rt1}))return o.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);Z={name:"cubic-bezier",controlPoints:Lt}}if(i.length-1<4)return o.error("Expected at least 4 arguments, but found only "+(i.length-1)+".");if((i.length-1)%2!=0)return o.error("Expected an even number of arguments.");if(!(J=o.parse(J,2,It)))return null;var Dt=[],Ft=null;"interpolate-hcl"===T||"interpolate-lab"===T?Ft=F:o.expectedType&&"value"!==o.expectedType.kind&&(Ft=o.expectedType);for(var $t=0;$t=le)return o.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',be);var l=o.parse(fe,t,Ft);if(!l)return null;Ft=Ft||l.type,Dt.push([le,l])}return"number"===Ft.kind||"color"===Ft.kind||"array"===Ft.kind&&"number"===Ft.itemType.kind&&"number"==typeof Ft.N?new wt(Ft,T,Z,J,Dt):o.error("Type "+Jt(Ft)+" is not interpolatable.")},wt.prototype.evaluate=function(i){var o=this.labels,T=this.outputs;if(1===o.length)return T[0].evaluate(i);var Z=this.input.evaluate(i);if(Z<=o[0])return T[0].evaluate(i);var J=o.length;if(Z>=o[J-1])return T[J-1].evaluate(i);var rt=gs(o,Z),Dt=wt.interpolationFactor(this.interpolation,Z,o[rt],o[rt+1]),Ft=T[rt].evaluate(i),$t=T[rt+1].evaluate(i);return"interpolate"===this.operator?Ks[this.type.kind.toLowerCase()](Ft,$t,Dt):"interpolate-hcl"===this.operator?yt_reverse(yt_interpolate(yt_forward(Ft),yt_forward($t),Dt)):ft.reverse(ft.interpolate(ft.forward(Ft),ft.forward($t),Dt))},wt.prototype.eachChild=function(i){i(this.input);for(var o=0,T=this.outputs;o=T.length)throw new ne("Array index out of bounds: "+o+" > "+(T.length-1)+".");if(o!==Math.floor(o))throw new ne("Array index must be an integer, but found "+o+" instead.");return T[o]},He.prototype.eachChild=function(i){i(this.index),i(this.input)},He.prototype.outputDefined=function(){return!1},He.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var ti=He,ei=function(i,o){this.type=m,this.needle=i,this.haystack=o};ei.parse=function(i,o){if(3!==i.length)return o.error("Expected 2 arguments, but found "+(i.length-1)+" instead.");var T=o.parse(i[1],1,V),Z=o.parse(i[2],2,V);return T&&Z?Qt(T.type,[m,ct,It,Ze,V])?new ei(T,Z):o.error("Expected first argument to be of type boolean, string, number or null, but found "+Jt(T.type)+" instead"):null},ei.prototype.evaluate=function(i){var o=this.needle.evaluate(i),T=this.haystack.evaluate(i);if(null==T)return!1;if(!Fe(o,["boolean","string","number","null"]))throw new ne("Expected first argument to be of type boolean, string, number or null, but found "+Jt($(o))+" instead.");if(!Fe(T,["string","array"]))throw new ne("Expected second argument to be of type array or string, but found "+Jt($(T))+" instead.");return T.indexOf(o)>=0},ei.prototype.eachChild=function(i){i(this.needle),i(this.haystack)},ei.prototype.outputDefined=function(){return!0},ei.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var li=ei,pi=function(i,o,T){this.type=It,this.needle=i,this.haystack=o,this.fromIndex=T};pi.parse=function(i,o){if(i.length<=2||i.length>=5)return o.error("Expected 3 or 4 arguments, but found "+(i.length-1)+" instead.");var T=o.parse(i[1],1,V),Z=o.parse(i[2],2,V);if(!T||!Z)return null;if(!Qt(T.type,[m,ct,It,Ze,V]))return o.error("Expected first argument to be of type boolean, string, number or null, but found "+Jt(T.type)+" instead");if(4===i.length){var J=o.parse(i[3],3,It);return J?new pi(T,Z,J):null}return new pi(T,Z)},pi.prototype.evaluate=function(i){var o=this.needle.evaluate(i),T=this.haystack.evaluate(i);if(!Fe(o,["boolean","string","number","null"]))throw new ne("Expected first argument to be of type boolean, string, number or null, but found "+Jt($(o))+" instead.");if(!Fe(T,["string","array"]))throw new ne("Expected second argument to be of type array or string, but found "+Jt($(T))+" instead.");if(this.fromIndex){var Z=this.fromIndex.evaluate(i);return T.indexOf(o,Z)}return T.indexOf(o)},pi.prototype.eachChild=function(i){i(this.needle),i(this.haystack),this.fromIndex&&i(this.fromIndex)},pi.prototype.outputDefined=function(){return!1},pi.prototype.serialize=function(){if(null!=this.fromIndex&&void 0!==this.fromIndex){var i=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),i]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var ci=pi,ai=function(i,o,T,Z,J,rt){this.inputType=i,this.type=o,this.input=T,this.cases=Z,this.outputs=J,this.otherwise=rt};ai.parse=function(i,o){if(i.length<5)return o.error("Expected at least 4 arguments, but found only "+(i.length-1)+".");if(i.length%2!=1)return o.error("Expected an even number of arguments.");var T,Z;o.expectedType&&"value"!==o.expectedType.kind&&(Z=o.expectedType);for(var J={},rt=[],xt=2;xtNumber.MAX_SAFE_INTEGER)return Ft.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if("number"==typeof fe&&Math.floor(fe)!==fe)return Ft.error("Numeric branch labels must be integer values.");if(T){if(Ft.checkSubtype(T,$(fe)))return null}else T=$(fe);if(typeof J[String(fe)]<"u")return Ft.error("Branch labels must be unique.");J[String(fe)]=rt.length}var be=o.parse(Dt,xt,Z);if(!be)return null;Z=Z||be.type,rt.push(be)}var t=o.parse(i[1],1,V);if(!t)return null;var l=o.parse(i[i.length-1],i.length-1,Z);return!l||"value"!==t.type.kind&&o.concat(1).checkSubtype(T,t.type)?null:new ai(T,Z,t,J,rt,l)},ai.prototype.evaluate=function(i){var o=this.input.evaluate(i);return($(o)===this.inputType&&this.outputs[this.cases[o]]||this.otherwise).evaluate(i)},ai.prototype.eachChild=function(i){i(this.input),this.outputs.forEach(i),i(this.otherwise)},ai.prototype.outputDefined=function(){return this.outputs.every(function(i){return i.outputDefined()})&&this.otherwise.outputDefined()},ai.prototype.serialize=function(){for(var i=this,o=["match",this.input.serialize()],Z=[],J={},rt=0,xt=Object.keys(this.cases).sort();rt=5)return o.error("Expected 3 or 4 arguments, but found "+(i.length-1)+" instead.");var T=o.parse(i[1],1,V),Z=o.parse(i[2],2,It);if(!T||!Z)return null;if(!Qt(T.type,[Xt(V),ct,V]))return o.error("Expected first argument to be of type array or string, but found "+Jt(T.type)+" instead");if(4===i.length){var J=o.parse(i[3],3,It);return J?new Di(T.type,T,Z,J):null}return new Di(T.type,T,Z)},Di.prototype.evaluate=function(i){var o=this.input.evaluate(i),T=this.beginIndex.evaluate(i);if(!Fe(o,["string","array"]))throw new ne("Expected first argument to be of type array or string, but found "+Jt($(o))+" instead.");if(this.endIndex){var Z=this.endIndex.evaluate(i);return o.slice(T,Z)}return o.slice(T)},Di.prototype.eachChild=function(i){i(this.input),i(this.beginIndex),this.endIndex&&i(this.endIndex)},Di.prototype.outputDefined=function(){return!1},Di.prototype.serialize=function(){if(null!=this.endIndex&&void 0!==this.endIndex){var i=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),i]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};var Qi=Di;function Fi(r,i){return"=="===r||"!="===r?"boolean"===i.kind||"string"===i.kind||"number"===i.kind||"null"===i.kind||"value"===i.kind:"string"===i.kind||"number"===i.kind||"value"===i.kind}function Ps(r,i,o,T){return 0===T.compare(i,o)}function An(r,i,o){var T="=="!==r&&"!="!==r;return function(){function Z(J,rt,xt){this.type=m,this.lhs=J,this.rhs=rt,this.collator=xt,this.hasUntypedArgument="value"===J.type.kind||"value"===rt.type.kind}return Z.parse=function(rt,xt){if(3!==rt.length&&4!==rt.length)return xt.error("Expected two or three arguments.");var Lt=rt[0],Dt=xt.parse(rt[1],1,V);if(!Dt)return null;if(!Fi(Lt,Dt.type))return xt.concat(1).error('"'+Lt+"\" comparisons are not supported for type '"+Jt(Dt.type)+"'.");var Ft=xt.parse(rt[2],2,V);if(!Ft)return null;if(!Fi(Lt,Ft.type))return xt.concat(2).error('"'+Lt+"\" comparisons are not supported for type '"+Jt(Ft.type)+"'.");if(Dt.type.kind!==Ft.type.kind&&"value"!==Dt.type.kind&&"value"!==Ft.type.kind)return xt.error("Cannot compare types '"+Jt(Dt.type)+"' and '"+Jt(Ft.type)+"'.");T&&("value"===Dt.type.kind&&"value"!==Ft.type.kind?Dt=new Re(Ft.type,[Dt]):"value"!==Dt.type.kind&&"value"===Ft.type.kind&&(Ft=new Re(Dt.type,[Ft])));var $t=null;if(4===rt.length){if("string"!==Dt.type.kind&&"string"!==Ft.type.kind&&"value"!==Dt.type.kind&&"value"!==Ft.type.kind)return xt.error("Cannot use collator to compare non-string types.");if(!($t=xt.parse(rt[3],3,_t)))return null}return new Z(Dt,Ft,$t)},Z.prototype.evaluate=function(rt){var xt=this.lhs.evaluate(rt),Lt=this.rhs.evaluate(rt);if(T&&this.hasUntypedArgument){var Dt=$(xt),Ft=$(Lt);if(Dt.kind!==Ft.kind||"string"!==Dt.kind&&"number"!==Dt.kind)throw new ne('Expected arguments for "'+r+'" to be (string, string) or (number, number), but found ('+Dt.kind+", "+Ft.kind+") instead.")}if(this.collator&&!T&&this.hasUntypedArgument){var $t=$(xt),le=$(Lt);if("string"!==$t.kind||"string"!==le.kind)return i(rt,xt,Lt)}return this.collator?o(rt,xt,Lt,this.collator.evaluate(rt)):i(rt,xt,Lt)},Z.prototype.eachChild=function(rt){rt(this.lhs),rt(this.rhs),this.collator&&rt(this.collator)},Z.prototype.outputDefined=function(){return!0},Z.prototype.serialize=function(){var rt=[r];return this.eachChild(function(xt){rt.push(xt.serialize())}),rt},Z}()}var va=An("==",function xs(r,i,o){return i===o},Ps),ya=An("!=",function ts(r,i,o){return i!==o},function ga(r,i,o,T){return!Ps(0,i,o,T)}),Ea=An("<",function fn(r,i,o){return i",function Ms(r,i,o){return i>o},function ma(r,i,o,T){return T.compare(i,o)>0}),Ma=An("<=",function Ts(r,i,o){return i<=o},function pa(r,i,o,T){return T.compare(i,o)<=0}),Ta=An(">=",function es(r,i,o){return i>=o},function In(r,i,o,T){return T.compare(i,o)>=0}),gn=function(i,o,T,Z,J,rt){this.type=ct,this.number=i,this.locale=o,this.currency=T,this.unit=Z,this.minFractionDigits=J,this.maxFractionDigits=rt};gn.parse=function(i,o){if(3!==i.length)return o.error("Expected two arguments.");var T=o.parse(i[1],1,It);if(!T)return null;var Z=i[2];if("object"!=typeof Z||Array.isArray(Z))return o.error("NumberFormat options argument must be an object.");var J=null;if(Z.locale&&!(J=o.parse(Z.locale,1,ct)))return null;var rt=null;if(Z.currency&&!(rt=o.parse(Z.currency,1,ct)))return null;var xt=null;if(Z.unit&&!(xt=o.parse(Z.unit,1,ct)))return null;var Lt=null;if(Z["min-fraction-digits"]&&!(Lt=o.parse(Z["min-fraction-digits"],1,It)))return null;var Dt=null;return Z["max-fraction-digits"]&&!(Dt=o.parse(Z["max-fraction-digits"],1,It))?null:new gn(T,J,rt,xt,Lt,Dt)},gn.prototype.evaluate=function(i){return new Intl.NumberFormat(this.locale?this.locale.evaluate(i):[],{style:(this.currency?"currency":this.unit&&"unit")||"decimal",currency:this.currency?this.currency.evaluate(i):void 0,unit:this.unit?this.unit.evaluate(i):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(i):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(i):void 0}).format(this.number.evaluate(i))},gn.prototype.eachChild=function(i){i(this.number),this.locale&&i(this.locale),this.currency&&i(this.currency),this.unit&&i(this.unit),this.minFractionDigits&&i(this.minFractionDigits),this.maxFractionDigits&&i(this.maxFractionDigits)},gn.prototype.outputDefined=function(){return!1},gn.prototype.serialize=function(){var i={};return this.locale&&(i.locale=this.locale.serialize()),this.currency&&(i.currency=this.currency.serialize()),this.unit&&(i.unit=this.unit.serialize()),this.minFractionDigits&&(i["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(i["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),i]};var Pa=gn,_n=function(i){this.type=It,this.input=i};_n.parse=function(i,o){if(2!==i.length)return o.error("Expected 1 argument, but found "+(i.length-1)+" instead.");var T=o.parse(i[1],1);return T?"array"!==T.type.kind&&"string"!==T.type.kind&&"value"!==T.type.kind?o.error("Expected argument of type string or array, but found "+Jt(T.type)+" instead."):new _n(T):null},_n.prototype.evaluate=function(i){var o=this.input.evaluate(i);if("string"==typeof o)return o.length;if(Array.isArray(o))return o.length;throw new ne("Expected value to be of type string or array, but found "+Jt($(o))+" instead.")},_n.prototype.eachChild=function(i){i(this.input)},_n.prototype.outputDefined=function(){return!1},_n.prototype.serialize=function(){var i=["length"];return this.eachChild(function(o){i.push(o.serialize())}),i};var Cr={"==":va,"!=":ya,">":xa,"<":Ea,">=":Ta,"<=":Ma,array:Re,at:ti,boolean:Re,case:Ii,coalesce:xe,collator:Gi,format:je,image:ni,in:li,"index-of":ci,interpolate:ee,"interpolate-hcl":ee,"interpolate-lab":ee,length:_n,let:ze,literal:Rt,match:Pi,number:Re,"number-format":Pa,object:Re,slice:Qi,step:Vn,string:Re,"to-boolean":yi,"to-color":yi,"to-number":yi,"to-string":yi,var:fs,within:Kn};function Rr(r,i){var o=i[0],T=i[1],Z=i[2],J=i[3];o=o.evaluate(r),T=T.evaluate(r),Z=Z.evaluate(r);var rt=J?J.evaluate(r):1,xt=qe(o,T,Z,rt);if(xt)throw new ne(xt);return new ue(o/255*rt,T/255*rt,Z/255*rt,rt)}function Or(r,i){return r in i}function Hs(r,i){var o=i[r];return typeof o>"u"?null:o}function di(r){return{type:r}}_i.register(Cr,{error:[{kind:"error"},[ct],function(r,i){throw new ne(i[0].evaluate(r))}],typeof:[ct,[V],function(r,i){return Jt($(i[0].evaluate(r)))}],"to-rgba":[Xt(It,4),[F],function(r,i){return i[0].evaluate(r).toArray()}],rgb:[F,[It,It,It],Rr],rgba:[F,[It,It,It,It],Rr],has:{type:m,overloads:[[[ct],function(r,i){return Or(i[0].evaluate(r),r.properties())}],[[ct,Q],function(r,i){var T=i[1];return Or(i[0].evaluate(r),T.evaluate(r))}]]},get:{type:V,overloads:[[[ct],function(r,i){return Hs(i[0].evaluate(r),r.properties())}],[[ct,Q],function(r,i){var T=i[1];return Hs(i[0].evaluate(r),T.evaluate(r))}]]},"feature-state":[V,[ct],function(r,i){return Hs(i[0].evaluate(r),r.featureState||{})}],properties:[Q,[],function(r){return r.properties()}],"geometry-type":[ct,[],function(r){return r.geometryType()}],id:[V,[],function(r){return r.id()}],zoom:[It,[],function(r){return r.globals.zoom}],pitch:[It,[],function(r){return r.globals.pitch||0}],"distance-from-center":[It,[],function(r){return r.distanceFromCenter()}],"heatmap-density":[It,[],function(r){return r.globals.heatmapDensity||0}],"line-progress":[It,[],function(r){return r.globals.lineProgress||0}],"sky-radial-progress":[It,[],function(r){return r.globals.skyRadialProgress||0}],accumulated:[V,[],function(r){return void 0===r.globals.accumulated?null:r.globals.accumulated}],"+":[It,di(It),function(r,i){for(var o=0,T=0,Z=i;T":[m,[ct,V],function(r,i){var o=i[0],T=i[1],Z=r.properties()[o.value],J=T.value;return typeof Z==typeof J&&Z>J}],"filter-id->":[m,[V],function(r,i){var o=i[0],T=r.id(),Z=o.value;return typeof T==typeof Z&&T>Z}],"filter-<=":[m,[ct,V],function(r,i){var o=i[0],T=i[1],Z=r.properties()[o.value],J=T.value;return typeof Z==typeof J&&Z<=J}],"filter-id-<=":[m,[V],function(r,i){var o=i[0],T=r.id(),Z=o.value;return typeof T==typeof Z&&T<=Z}],"filter->=":[m,[ct,V],function(r,i){var o=i[0],T=i[1],Z=r.properties()[o.value],J=T.value;return typeof Z==typeof J&&Z>=J}],"filter-id->=":[m,[V],function(r,i){var o=i[0],T=r.id(),Z=o.value;return typeof T==typeof Z&&T>=Z}],"filter-has":[m,[V],function(r,i){return i[0].value in r.properties()}],"filter-has-id":[m,[],function(r){return null!==r.id()&&void 0!==r.id()}],"filter-type-in":[m,[Xt(ct)],function(r,i){return i[0].value.indexOf(r.geometryType())>=0}],"filter-id-in":[m,[Xt(V)],function(r,i){return i[0].value.indexOf(r.id())>=0}],"filter-in-small":[m,[ct,Xt(V)],function(r,i){var o=i[0];return i[1].value.indexOf(r.properties()[o.value])>=0}],"filter-in-large":[m,[ct,Xt(V)],function(r,i){var o=i[0],T=i[1];return function Ra(r,i,o,T){for(;o<=T;){var Z=o+T>>1;if(i[Z]===r)return!0;i[Z]>r?T=Z-1:o=Z+1}return!1}(r.properties()[o.value],T.value,0,T.value.length-1)}],all:{type:m,overloads:[[[m,m],function(r,i){var T=i[1];return i[0].evaluate(r)&&T.evaluate(r)}],[di(m),function(r,i){for(var o=0,T=i;o-1}(i))return ki([new he("","zoom expressions not supported")]);var J=Rs(o);return J||Z?J instanceof he?ki([J]):J instanceof ee&&!function wn(r){return!!r.expression&&r.expression.interpolated}(i)?ki([new he("",'"interpolate" expressions cannot be used with this property')]):mn(J?new ss(T?"camera":"composite",r.value,J.labels,J instanceof ee?J.interpolation:void 0):new Cs(T?"constant":"source",r.value)):ki([new he("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')])}function Rs(r){var i=null;if(r instanceof ze)i=Rs(r.result);else if(r instanceof xe)for(var o=0,T=r.args;o":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},expression_name:{type:"enum",values:{let:{group:"Variable binding"},var:{group:"Variable binding"},literal:{group:"Types"},array:{group:"Types"},at:{group:"Lookup"},in:{group:"Lookup"},"index-of":{group:"Lookup"},slice:{group:"Lookup"},case:{group:"Decision"},match:{group:"Decision"},coalesce:{group:"Decision"},step:{group:"Ramps, scales, curves"},interpolate:{group:"Ramps, scales, curves"},"interpolate-hcl":{group:"Ramps, scales, curves"},"interpolate-lab":{group:"Ramps, scales, curves"},ln2:{group:"Math"},pi:{group:"Math"},e:{group:"Math"},typeof:{group:"Types"},string:{group:"Types"},number:{group:"Types"},boolean:{group:"Types"},object:{group:"Types"},collator:{group:"Types"},format:{group:"Types"},image:{group:"Types"},"number-format":{group:"Types"},"to-string":{group:"Types"},"to-number":{group:"Types"},"to-boolean":{group:"Types"},"to-rgba":{group:"Color"},"to-color":{group:"Types"},rgb:{group:"Color"},rgba:{group:"Color"},get:{group:"Lookup"},has:{group:"Lookup"},length:{group:"Lookup"},properties:{group:"Feature data"},"feature-state":{group:"Feature data"},"geometry-type":{group:"Feature data"},id:{group:"Feature data"},zoom:{group:"Camera"},pitch:{group:"Camera"},"distance-from-center":{group:"Camera"},"heatmap-density":{group:"Heatmap"},"line-progress":{group:"Feature data"},"sky-radial-progress":{group:"sky"},accumulated:{group:"Feature data"},"+":{group:"Math"},"*":{group:"Math"},"-":{group:"Math"},"/":{group:"Math"},"%":{group:"Math"},"^":{group:"Math"},sqrt:{group:"Math"},log10:{group:"Math"},ln:{group:"Math"},log2:{group:"Math"},sin:{group:"Math"},cos:{group:"Math"},tan:{group:"Math"},asin:{group:"Math"},acos:{group:"Math"},atan:{group:"Math"},min:{group:"Math"},max:{group:"Math"},round:{group:"Math"},abs:{group:"Math"},ceil:{group:"Math"},floor:{group:"Math"},distance:{group:"Math"},"==":{group:"Decision"},"!=":{group:"Decision"},">":{group:"Decision"},"<":{group:"Decision"},">=":{group:"Decision"},"<=":{group:"Decision"},all:{group:"Decision"},any:{group:"Decision"},"!":{group:"Decision"},within:{group:"Decision"},"is-supported-script":{group:"String"},upcase:{group:"String"},downcase:{group:"String"},concat:{group:"String"},"resolved-locale":{group:"String"}}},fog:{range:{type:"array",default:[.5,10],minimum:-20,maximum:20,length:2,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"high-color":{type:"color","property-type":"data-constant",default:"#245cdf",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"space-color":{type:"color","property-type":"data-constant",default:["interpolate",["linear"],["zoom"],4,"#010b19",7,"#367ab9"],expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-blend":{type:"number","property-type":"data-constant",default:["interpolate",["linear"],["zoom"],4,.2,7,.1],minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"star-intensity":{type:"number","property-type":"data-constant",default:["interpolate",["linear"],["zoom"],5,.35,6,0],minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},projection:{name:{type:"enum",values:{albers:{},equalEarth:{},equirectangular:{},lambertConformalConic:{},mercator:{},naturalEarth:{},winkelTripel:{},globe:{}},default:"mercator",required:!0},center:{type:"array",length:2,value:"number","property-type":"data-constant",minimum:[-180,-90],maximum:[180,90],transition:!1,requires:[{name:["albers","lambertConformalConic"]}]},parallels:{type:"array",length:2,value:"number","property-type":"data-constant",minimum:[-90,-90],maximum:[90,90],transition:!1,requires:[{name:["albers","lambertConformalConic"]}]}},terrain:{source:{type:"string",required:!0},exaggeration:{type:"number","property-type":"data-constant",default:1,minimum:0,maximum:1e3,expression:{interpolated:!0,parameters:["zoom"]},transition:!0,requires:["source"]}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background","paint_sky"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!1,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!1,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-ambient-occlusion-intensity":{"property-type":"data-constant",type:"number",private:!0,default:0,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fill-extrusion-ambient-occlusion-radius":{"property-type":"data-constant",type:"number",private:!0,default:3,minimum:0,expression:{interpolated:!0,parameters:["zoom"]},transition:!0,requires:["fill-extrusion-edge-radius"]}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!1,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-pattern":{type:"resolvedImage",transition:!1,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"},"line-trim-offset":{type:"array",value:"number",length:2,default:[0,0],minimum:[0,0],maximum:[1,1],transition:!1,requires:[{source:"geojson",has:{lineMetrics:!0}}],"property-type":"constant"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_sky:{"sky-type":{type:"enum",values:{gradient:{},atmosphere:{}},default:"atmosphere",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun":{type:"array",value:"number",length:2,units:"degrees",minimum:[0,0],maximum:[360,180],transition:!1,requires:[{"sky-type":"atmosphere"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun-intensity":{type:"number",requires:[{"sky-type":"atmosphere"}],default:10,minimum:0,maximum:100,transition:!1,"property-type":"data-constant"},"sky-gradient-center":{type:"array",requires:[{"sky-type":"gradient"}],value:"number",default:[0,0],length:2,units:"degrees",minimum:[0,0],maximum:[360,180],transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-gradient-radius":{type:"number",requires:[{"sky-type":"gradient"}],default:90,minimum:0,maximum:180,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-gradient":{type:"color",default:["interpolate",["linear"],["sky-radial-progress"],.8,"#87ceeb",1,"white"],transition:!1,requires:[{"sky-type":"gradient"}],expression:{interpolated:!0,parameters:["sky-radial-progress"]},"property-type":"color-ramp"},"sky-atmosphere-halo-color":{type:"color",default:"white",transition:!1,requires:[{"sky-type":"atmosphere"}],"property-type":"data-constant"},"sky-atmosphere-color":{type:"color",default:"white",transition:!1,requires:[{"sky-type":"atmosphere"}],"property-type":"data-constant"},"sky-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}};function Ir(r){if(!0===r||!1===r)return!0;if(!Array.isArray(r)||0===r.length)return!1;switch(r[0]){case"has":return r.length>=2&&"$id"!==r[1]&&"$type"!==r[1];case"in":return r.length>=3&&("string"!=typeof r[1]||Array.isArray(r[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return 3!==r.length||Array.isArray(r[1])||Array.isArray(r[2]);case"any":case"all":for(var i=0,o=r.slice(1);i",">=","<","<=","to-boolean"]);function Na(r,i){return ri?1:0}function Lr(r){if(!Array.isArray(r))return!1;if("within"===r[0])return!0;for(var i=1;i"===i||"<="===i||">="===i?qs(r[1],r[2],i):"any"===i?function Za(r){return["any"].concat(r.map(Wi))}(r.slice(1)):"all"===i?["all"].concat(r.slice(1).map(Wi)):"none"===i?["all"].concat(r.slice(1).map(Wi).map(Os)):"in"===i?wr(r[1],r.slice(2)):"!in"===i?Os(wr(r[1],r.slice(2))):"has"===i?Dr(r[1]):"!has"===i?Os(Dr(r[1])):"within"!==i||r}function qs(r,i,o){switch(r){case"$type":return["filter-type-"+o,i];case"$id":return["filter-id-"+o,i];default:return["filter-"+o,r,i]}}function wr(r,i){if(0===i.length)return!1;switch(r){case"$type":return["filter-type-in",["literal",i]];case"$id":return["filter-id-in",["literal",i]];default:return i.length>200&&!i.some(function(o){return typeof o!=typeof i[0]})?["filter-in-large",r,["literal",i.sort(Na)]]:["filter-in-small",r,["literal",i]]}}function Dr(r){switch(r){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",r]}}function Os(r){return["!",r]}var Ua=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function ja(r,i){var o={};for(var T in r)"ref"!==T&&(o[T]=r[T]);return Ua.forEach(function(Z){Z in i&&(o[Z]=i[Z])}),o}var Fr={thin:100,hairline:100,"ultra-light":100,"extra-light":100,light:200,book:300,regular:400,normal:400,plain:400,roman:400,standard:400,medium:500,"semi-bold":600,"demi-bold":600,bold:700,heavy:800,black:800,"extra-bold":800,"ultra-black":900,"extra-black":900,"ultra-bold":900,"heavy-black":900,fat:900,poster:900},Nr=/(italic|oblique)$/i,Zr={},tr=function(r,i,o){var T=Zr[r];if(!T){Array.isArray(r)||(r=[r]);for(var Z=400,J="normal",rt=[],Dt=0,Ft=r.length;Dt1?le[le.length-2].toLowerCase():"";if(fe==be||fe==be.replace("-","")||t+"-"+fe==be){Z=Fr[be],le.pop(),t&&be.startsWith(t)&&le.pop();break}}"number"==typeof fe&&(Z=fe);var l=le.join(" ").replace("Klokantech Noto Sans","Noto Sans");-1!==l.indexOf(" ")&&(l='"'+l+'"'),rt.push(l)}T=Zr[r]=[J,Z,rt]}return T[0]+" "+T[1]+" "+i+"px"+(o?"/"+o:"")+" "+T[2]},Ur="https://api.mapbox.com";function er(r){var i="mapbox://";return 0!==r.indexOf(i)?"":r.slice(i.length)}function Ss(r,i){var o=er(r);if(!o)return decodeURI(new URL(r,location.href).href);var T="styles/";if(0!==o.indexOf(T))throw new Error("unexpected style url: "+r);var Z=o.slice(T.length);return Ur+"/styles/v1/"+Z+"?&access_token="+i}function Is(r,i,o,T){var Z=new URL(r,T),J=er(r);return J?"mapbox.satellite"===J?"https://api.mapbox.com/v4/"+J+"/{z}/{x}/{y}"+(window.devicePixelRatio>=1.5?"@2x":"")+".webp?access_token="+i:"https://{a-d}.tiles.mapbox.com/v4/"+J+"/{z}/{x}/{y}.vector.pbf?access_token="+i:(i&&Z.searchParams.set(o,i),decodeURI(Z.href))}var jr=0,Ga={},za={};function sr(r){return r*Math.PI/180}var Xi=function(){for(var r=[],i=78271.51696402048;r.length<=24;i/=2)r.push(i);return r}();function Br(r,i){if(typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof OffscreenCanvas<"u")return new OffscreenCanvas(r,i);var o=document.createElement("canvas");return o.width=r,o.height=i,o}function rr(r,i){for(var o=0,T=i.length;o0&&rt.arc(Dt,$t,o*i.pixelRatio,0,2*Math.PI);return rt.fill(),Z}var hr,ka=Array(256).join("\u200a");function lr(r,i){if(i>=.05){for(var o="",T=r.split("\n"),Z=ka.slice(0,Math.round(i/.1)),J=0,rt=T.length;J0&&(o+="\n"),o+=T[J].split("").join(Z);return o}return r}function Kr(){return hr||(hr=Br(1,1).getContext("2d")),hr}function pn(r,i){return Kr().measureText(r).width+(r.length-1)*i}var kr={};function ur(r,i,o,T){if(-1!==r.indexOf("\n")){for(var Z=r.split("\n"),J=[],rt=0,xt=Z.length;rt1){var $t=Kr();$t.font=i;for(var fe=$t.measureText("M").width*o,be="",t=[],l=0,_=Ft.length;l<_;++l){var B=Ft[l],j=be+(be?" ":"")+B;pn(j,T)<=fe?be=j:(be&&t.push(be),be=B)}be&&t.push(be);for(var X=0,et=t.length;X1;++X){var tt=t[X];if(pn(tt,T)<.35*fe){var ut=X>0?pn(t[X-1],T):1/0,Et=X.7*fe&&pn(ae,T)<.6*fe){var re=Vt.split(" "),oe=re.pop();pn(oe,T)<.2*fe&&(t[Ut]=re.join(" "),t[Ut+1]=oe+" "+ae),Pt-=1}}Dt=t.join("\n")}else Dt=r;Dt=lr(Dt,T),kr[Lt]=Dt}return Dt}var As,Xa=/font-family: ?([^;]*);/,Va=/("|')/g;function Ya(r){if(!As){As={};for(var i=document.styleSheets,o=0,T=i.length;o0&&"string"==typeof r[0]&&r[0]in bn}(Dt);if(!$t&&ns(Dt)&&(Dt=function ce(r,i){var o=r.stops;if(!o)return function Se(r,i){var o=["get",r.property];if(void 0===r.default)return"string"===i.type?["string",o]:o;if("enum"===i.type)return["match",o,Object.keys(i.values),o,r.default];var T=["color"===i.type?"to-color":i.type,o,de(r.default)];return"array"===i.type&&T.splice(1,0,i.value,i.length||null),T}(r,i);var T=o&&"object"==typeof o[0][0],Z=T||void 0!==r.property,J=T||!Z;return o=o.map(function(rt){return!Z&&i.tokens&&"string"==typeof rt[1]?[rt[0],jt(rt[1])]:[rt[0],de(rt[1])]}),T?function Ot(r,i,o){for(var T={},Z={},J=[],rt=0;rt=Ie.maxzoom)){var Ko=Ie.filter;if(!Ko||to(Ie.id,Ko,Ce,pe,B)){Ie;var $i=void 0,yn=void 0,na=void 0,on=void 0,En=void 0,Ae=void 0,Fs=ia.index;if(3==ke&&("fill"==Ie.type||"fill-extrusion"==Ie.type))if(yn=we(Ie,"paint",Ie.type+"-opacity",pe,Ce,_,Pe),Ie.type+"-pattern"in ls){var sa=we(Ie,"paint",Ie.type+"-pattern",pe,Ce,_,Pe);if(sa){var co="string"==typeof sa?gr(sa,Be):sa.toString();if(Lt&&Z&&Z[co]){++Je,(!(Ae=oe[Je])||!Ae.getFill()||Ae.getStroke()||Ae.getText())&&(Ae=new I.ZP({fill:new D.Z}),oe[Je]=Ae),na=Ae.getFill(),Ae.setZIndex(Fs);var ko=co+"."+yn,ra=l[ko];if(!ra){var Un=Z[co],Xo=Br(Un.width,Un.height),fo=Xo.getContext("2d");fo.globalAlpha=yn,fo.drawImage(Lt,Un.x,Un.y,Un.width,Un.height,0,0,Un.width,Un.height),ra=fo.createPattern(Xo,"repeat"),l[ko]=ra}na.setColor(ra)}}}else $i=sn(we(Ie,"paint",Ie.type+"-color",pe,Ce,_,Pe),yn),Ie.type+"-outline-color"in ls&&(En=sn(we(Ie,"paint",Ie.type+"-outline-color",pe,Ce,_,Pe),yn)),En||(En=$i),($i||En)&&(++Je,(!(Ae=oe[Je])||$i&&!Ae.getFill()||!$i&&Ae.getFill()||En&&!Ae.getStroke()||!En&&Ae.getStroke()||Ae.getText())&&(Ae=new I.ZP({fill:$i?new D.Z:void 0,stroke:En?new U.Z:void 0}),oe[Je]=Ae),$i&&(na=Ae.getFill()).setColor($i),En&&((on=Ae.getStroke()).setColor(En),on.setWidth(.5)),Ae.setZIndex(Fs));if(1!=ke&&"line"==Ie.type){$i=!("line-pattern"in ls)&&"line-color"in ls?sn(we(Ie,"paint","line-color",pe,Ce,_,Pe),we(Ie,"paint","line-opacity",pe,Ce,_,Pe)):void 0;var go=we(Ie,"paint","line-width",pe,Ce,_,Pe);$i&&go>0&&(++Je,(!(Ae=oe[Je])||!Ae.getStroke()||Ae.getFill()||Ae.getText())&&(Ae=new I.ZP({stroke:new U.Z}),oe[Je]=Ae),(on=Ae.getStroke()).setLineCap(we(Ie,"layout","line-cap",pe,Ce,_,Pe)),on.setLineJoin(we(Ie,"layout","line-join",pe,Ce,_,Pe)),on.setMiterLimit(we(Ie,"layout","line-miter-limit",pe,Ce,_,Pe)),on.setColor($i),on.setWidth(go),on.setLineDash(ls["line-dasharray"]?we(Ie,"paint","line-dasharray",pe,Ce,_,Pe).map(function(ji){return ji*go}):null),Ae.setZIndex(Fs))}var aa=!1,hi=null,Vo=0,pr=void 0,Zi=void 0,_o=void 0;if((1==ke||2==ke)&&"icon-image"in mr){var oa=we(Ie,"layout","icon-image",pe,Ce,_,Pe);if(oa){pr="string"==typeof oa?gr(oa,Be):oa.toString();var mo=void 0,hs=xt?xt(r,pr):void 0;if(Lt&&Z&&Z[pr]||hs){var po=we(Ie,"layout","icon-rotation-alignment",pe,Ce,_,Pe);if(2==ke){var jn=Te.getGeometry();if(jn.getFlatMidpoint||jn.getFlatMidpoints){var la=jn.getExtent();if(Math.sqrt(Math.max(Math.pow((la[2]-la[0])/Ne,2),Math.pow((la[3]-la[1])/Ne,2)))>150){var Ns="MultiLineString"===jn.getType()?jn.getFlatMidpoints():jn.getFlatMidpoint();if(fr||(fr=new z.ZP("Point",Ls=[NaN,NaN],[],{},null)),mo=fr,Ls[0]=Ns[0],Ls[1]=Ns[1],"line"===we(Ie,"layout","symbol-placement",pe,Ce,_,Pe)&&"map"===po)for(var ha=jn.getStride(),vr=jn.getFlatCoordinates(),Zs=0,fl=vr.length-ha;Zs=gl&&Ns[0]<=ml&&Ns[1]>=_l&&Ns[1]<=pl){Vo=Math.atan2(yo-xo,Eo-vo);break}}}}}if(2!==ke||mo){var Yo=we(Ie,"layout","icon-size",pe,Ce,_,Pe),xn=void 0!==ls["icon-color"]?we(Ie,"paint","icon-color",pe,Ce,_,Pe):null;if(!xn||0!==xn.a){var Ho=we(Ie,"paint","icon-halo-color",pe,Ce,_,Pe),Mo=we(Ie,"paint","icon-halo-width",pe,Ce,_,Pe),To=pr+"."+Yo+"."+Mo+"."+Ho;if(null!==xn&&(To+="."+xn),!(Zi=t[To])){var Jo=qa(Ie,pe,Ce,_),ua=void 0;"icon-offset"in mr&&((ua=we(Ie,"layout","icon-offset",pe,Ce,_,Pe))[1]*=-1);var Qo=xn?[255*xn.r,255*xn.g,255*xn.b,xn.a]:void 0;if(hs){var ca={color:Qo,rotateWithView:"map"===po,displacement:ua,declutterMode:Jo};"string"==typeof hs?ca.src=hs:(ca.img=hs,ca.imgSize=[hs.width,hs.height]),Zi=new k.Z(ca)}else{var Us=Z[pr],yr=void 0,Po=void 0,$o=void 0,qo=void 0;Mo?Po=[(yr=Ka(Lt,Us,Mo,Ho)).width,yr.height]:(yr=Lt,Po=Dt,$o=[Us.width,Us.height],qo=[Us.x,Us.y]),Zi=new k.Z({color:Qo,img:yr,imgSize:Po,size:$o,offset:qo,rotateWithView:"map"===po,scale:Yo/Us.pixelRatio,displacement:ua,declutterMode:Jo})}t[To]=Zi}}Zi&&(++Je,(!(Ae=oe[Je])||!Ae.getImage()||Ae.getFill()||Ae.getStroke())&&(Ae=new I.ZP,oe[Je]=Ae),Ae.setGeometry(mo),Zi.setRotation(Vo+sr(we(Ie,"layout","icon-rotate",pe,Ce,_,Pe))),Zi.setOpacity(we(Ie,"paint","icon-opacity",pe,Ce,_,Pe)),Zi.setAnchor(Qa[we(Ie,"layout","icon-anchor",pe,Ce,_,Pe)]),Ae.setImage(Zi),hi=Ae.getText(),Ae.setText(void 0),Ae.setZIndex(Fs),aa=!0,_o=!1)}else _o=!0}}}if(1==ke&&"circle"===Ie.type){++Je,(!(Ae=oe[Je])||!Ae.getImage()||Ae.getFill()||Ae.getStroke())&&(Ae=new I.ZP,oe[Je]=Ae);var tl="circle-radius"in ls?we(Ie,"paint","circle-radius",pe,Ce,_,Pe):5,Co=sn(we(Ie,"paint","circle-stroke-color",pe,Ce,_,Pe),we(Ie,"paint","circle-stroke-opacity",pe,Ce,_,Pe)),Ro=sn(we(Ie,"paint","circle-color",pe,Ce,_,Pe),we(Ie,"paint","circle-opacity",pe,Ce,_,Pe)),Oo=we(Ie,"paint","circle-stroke-width",pe,Ce,_,Pe),el=tl+"."+Co+"."+Ro+"."+Oo;(Zi=t[el])||(Zi=new G.Z({radius:tl,stroke:Co&&Oo>0?new U.Z({width:Oo,color:Co}):void 0,fill:Ro?new D.Z({color:Ro}):void 0,declutterMode:"none"}),t[el]=Zi),Ae.setImage(Zi),hi=Ae.getText(),Ae.setText(void 0),Ae.setGeometry(void 0),Ae.setZIndex(Fs),aa=!0}var Ai=void 0,Er=void 0,xr=void 0,Bn=void 0,Mr=void 0,So=void 0;if("text-field"in mr){Bn=Math.round(we(Ie,"layout","text-size",pe,Ce,_,Pe));var Io=we(Ie,"layout","text-font",pe,Ce,_,Pe);xr=we(Ie,"layout","text-line-height",pe,Ce,_,Pe),(Er=tr(rt?rt(Io):Io,Bn,xr)).includes("sans-serif")||(Er+=",sans-serif"),Mr=we(Ie,"layout","text-letter-spacing",pe,Ce,_,Pe),So=we(Ie,"layout","text-max-width",pe,Ce,_,Pe);var js=we(Ie,"layout","text-field",pe,Ce,_,Pe);Ai="object"==typeof js&&js.sections?1===js.sections.length?js.toString():js.sections.reduce(function(ji,Wn,xl){var hl=Wn.fontStack?Wn.fontStack.split(","):Io,Fo=tr(rt?rt(hl):hl,Bn*(Wn.scale||1),xr),Bs=Wn.text;if("\n"===Bs)return ji.push("\n",""),ji;if(2!=ke){for(var fa=0,El=(Bs=ur(Bs,Fo,So,Mr).split("\n")).length;fa0&&ji.push("\n",""),ji.push(Bs[fa],Fo);return ji}ji.push(lr(Bs,Mr),Fo)},[]):gr(js,Be).trim(),yn=we(Ie,"paint","text-opacity",pe,Ce,_,Pe)}if(Ai&&yn&&!_o){aa||(++Je,(!(Ae=oe[Je])||!Ae.getText()||Ae.getFill()||Ae.getStroke())&&(Ae=new I.ZP,oe[Je]=Ae),Ae.setImage(void 0),Ae.setGeometry(void 0)),Ae.getText()||Ae.setText(hi||new S.Z({padding:[2,2,2,2]})),hi=Ae.getText();var il=mr["text-transform"];"uppercase"==il?Ai=Array.isArray(Ai)?Ai.map(function(ji,Wn){return Wn%2?ji:ji.toUpperCase()}):Ai.toUpperCase():"lowercase"==il&&(Ai=Array.isArray(Ai)?Ai.map(function(ji,Wn){return Wn%2?ji:ji.toLowerCase()}):Ai.toLowerCase());var nl=Array.isArray(Ai)?Ai:2==ke?lr(Ai,Mr):ur(Ai,Er,So,Mr);hi.setText(nl),hi.setFont(Er),hi.setRotation(sr(we(Ie,"layout","text-rotate",pe,Ce,_,Pe)));var da=we(Ie,"layout","text-anchor",pe,Ce,_,Pe),Ao=aa||1==ke?"point":we(Ie,"layout","symbol-placement",pe,Ce,_,Pe);if(hi.setPlacement(Ao),"function"==typeof hi.setRepeat){var vl=we(Ie,"layout","symbol-spacing",pe,Ce,_,Pe);hi.setRepeat(2*vl)}hi.setOverflow("point"===Ao);var us=we(Ie,"paint","text-halo-width",pe,Ce,_,Pe),sl=we(Ie,"layout","text-offset",pe,Ce,_,Pe),rl=we(Ie,"paint","text-translate",pe,Ce,_,Pe),bo=0,Lo=0;if("point"==Ao){var wo="center";-1!==da.indexOf("left")?(wo="left",Lo=us):-1!==da.indexOf("right")&&(wo="right",Lo=-us),hi.setTextAlign(wo);var yl=we(Ie,"layout","text-rotation-alignment",pe,Ce,_,Pe);hi.setRotateWithView("map"==yl)}else hi.setMaxAngle(sr(we(Ie,"layout","text-max-angle",pe,Ce,_,Pe))*Ai.length/nl.length),hi.setTextAlign(),hi.setRotateWithView(!1);var Do="middle";0==da.indexOf("bottom")?(Do="bottom",bo=-us-.5*(xr-1)*Bn):0==da.indexOf("top")&&(Do="top",bo=us+.5*(xr-1)*Bn),hi.setTextBaseline(Do);var al=we(Ie,"layout","text-justify",pe,Ce,_,Pe);hi.setJustify("auto"===al?void 0:al),hi.setOffsetX(sl[0]*Bn+Lo+rl[0]),hi.setOffsetY(sl[1]*Bn+bo+rl[1]),re.setColor(sn(we(Ie,"paint","text-color",pe,Ce,_,Pe),yn)),hi.setFill(re);var ol=sn(we(Ie,"paint","text-halo-color",pe,Ce,_,Pe),yn);if(ol){ae.setColor(ol);var ll=.5*Bn;ae.setWidth((us*=2)<=ll?us:ll),hi.setStroke(ae)}else hi.setStroke(void 0);var Tr=we(Ie,"layout","text-padding",pe,Ce,_,Pe),Pr=hi.getPadding();Tr!==Pr[0]&&(Pr[0]=Tr,Pr[1]=Tr,Pr[2]=Tr,Pr[3]=Tr),Ae.setZIndex(Fs)}}}}if(Je>-1)return oe.length=Je+1,oe}};return r.setStyle(ye),r.set("mapbox-source",j),r.set("mapbox-layers",be),r.set("mapbox-featurestate",{}),ye}function so(r,i){return void 0===i&&(i=512),r.getExtent()?(0,v.dl)({extent:r.getExtent(),tileSize:i,maxZoom:22}).getResolutions():Xi}function Hr(r,i,o,T,Z){void 0===o&&(o=""),void 0===T&&(T={}),void 0===Z&&(Z=void 0);var J,rt,xt,Lt,Dt=!0;return"string"==typeof o||Array.isArray(o)?Lt=o:(Lt=(xt=o).source||xt.layers,T=xt),"string"==typeof T?(J=T,xt={}):(J=T.styleUrl,xt=T),!1===xt.updateSource&&(Dt=!1),Z||(Z=xt.resolutions),!J&&"string"==typeof i&&!i.trim().startsWith("{")&&(J=i),J&&(J=J.startsWith("data:")?location.href:Ss(J,xt.accessToken),xt=function Yr(r,i){return i.accessToken||(i=Object.assign({},i),new URL(r).searchParams.forEach(function(T,Z){i.accessToken=T,i.accessTokenParam=Z})),i}(J,xt)),new Promise(function(Ft,$t){or(i,xt).then(function(le){if(8!=le.version)return $t(new Error("glStyle version 8 required."));if(!(r instanceof C.Z||r instanceof H.Z))return $t(new Error("Can only apply to VectorLayer or VectorTileLayer"));var l,_,B,fe=r instanceof H.Z?"vector":"geojson";if(Lt?rt=Array.isArray(Lt)?le.layers.find(function(ut){return ut.id===Lt[0]}).source:Lt:(rt=Object.keys(le.sources).find(function(ut){return le.sources[ut].type===fe}),Lt=rt),!rt)return $t(new Error("No "+fe+" source found in the glStyle."));function be(){if(!Dt)return Promise.resolve();if(r instanceof H.Z)return function Qr(r,i,o){return new Promise(function(T,Z){(function zr(r,i,o){void 0===o&&(o={});var T=[i,JSON.stringify(r)].toString(),Z=Gr[T];if(!Z||o.transformRequest){var J=r.url;if(J&&!r.tiles){var rt=Is(J,o.accessToken,o.accessTokenParam||"access_token",i||location.href);if(J.startsWith("mapbox://"))Z=Promise.resolve(Object.assign({},r,{url:void 0,tiles:(0,p.Gk)(rt)}));else{var xt={};Z=ar("Source",rt,o,xt).then(function(Lt){return Lt.tiles=Lt.tiles.map(function(Dt){return Wr(Is(Dt,o.accessToken,o.accessTokenParam||"access_token",xt.request.url),o)}),Promise.resolve(Lt)})}}else r=Object.assign({},r,{tiles:r.tiles.map(function(Lt){return Wr(Is(Lt,o.accessToken,o.accessTokenParam||"access_token",i||location.href),o)})}),Z=Promise.resolve(Object.assign({},r));Gr[T]=Z}return Z})(r,i,o).then(function(J){var rt=function Jr(r,i,o){var T=new M({tileJSON:i,tileSize:r.tileSize||i.tileSize||512}),Z=T.getTileJSON(),J=T.getTileGrid(),rt=(0,x.U2)(o.projection||"EPSG:3857"),xt=function ao(r,i){var o=r.bounds;if(o){var T=(0,x.mi)([o[0],o[1]],i),Z=(0,x.mi)([o[2],o[3]],i);return[T[0],T[1],Z[0],Z[1]]}return(0,x.U2)(i).getExtent()}(Z,rt),Lt=rt.getExtent(),Dt=Z.minzoom||0,Ft=Z.maxzoom||22,$t={attributions:T.getAttributions(),projection:rt,tileGrid:new h.Z({origin:Lt?(0,e.rL)(Lt):J.getOrigin(0),extent:xt||J.getExtent(),minZoom:Dt,resolutions:so(rt,i.tileSize).slice(0,Ft+1),tileSize:J.getTileSize(0)})};return Array.isArray(Z.tiles)?$t.urls=Z.tiles:$t.url=Z.tiles,$t}(r,J,o);rt.format=new s.Z,Array.isArray(J.tiles)?rt.urls=J.tiles:rt.url=J.tiles,T(new it.Z(rt))}).catch(Z)})}(le.sources[rt],J,xt).then(function(Pt){var Vt=r.getSource();if(Vt?Pt!==Vt&&(Vt.setTileUrlFunction(Pt.getTileUrlFunction()),Vt.format_||(Vt.format_=Pt.format_),Vt.getAttributions()||Vt.setAttributions(Pt.getAttributions()),Vt.getTileLoadFunction()===it.I&&Vt.setTileLoadFunction(Pt.getTileLoadFunction()),(0,x.OP)(Vt.getProjection(),Pt.getProjection())&&(Vt.tileGrid=Pt.getTileGrid())):r.setSource(Pt),!isFinite(r.getMaxResolution())&&!isFinite(r.getMinZoom())){var ae=r.getSource().getTileGrid();r.setMaxResolution(ae.getResolution(ae.getMinZoom()))}});var ut=le.sources[rt],Et=r.getSource();(!Et||Et.get("mapbox-source")!==ut)&&(Et=function _r(r,i,o){var T=r.data,Z={};if("string"==typeof T){var J=Is(T,o.accessToken,o.accessTokenParam||"access_token",i||location.href);if(o.transformRequest){var rt=o.transformRequest(J,"GeoJSON");rt instanceof Request&&(J=decodeURI(rt.url))}if(/\{bbox-[0-9a-z-]+\}/.test(J)){var Lt=new N.Z({attributions:r.attribution,format:os,url:function(Ft,$t,le){var fe=function ws(r){return"{bbox-"+(r?r.getCode():"EPSG:3857").toLowerCase().replace(/[^a-z0-9]/g,"-")+"}"}(le);return J.replace(fe,Ft.join(",")+","+le.getCode())},strategy:Y.VW});return Lt.set("mapbox-source",r),Lt}return new N.Z({attributions:r.attribution,format:os,url:J})}Z.features=os.readFeatures(T,{featureProjection:(0,x.Cs)()||"EPSG:3857"});var Dt=new N.Z(Object.assign({attributions:r.attribution,format:os},Z));return Dt.set("mapbox-source",r),Dt}(ut,J,xt));var Ut=r.getSource();return Ut?Et!==Ut&&(Ut.getAttributions()||Ut.setAttributions(Et.getAttributions()),Ut.format_||(Ut.format_=Et.getFormat()),Ut.url_=Et.getUrl()):r.setSource(Et),Promise.resolve()}function j(){if(B||le.sprite&&!l)B?(r.setStyle(B),be().then(Ft).catch($t)):$t(new Error("Something went wrong trying to apply style."));else{if(xt.projection&&!Z){var Et=(0,x.U2)(xt.projection).getUnits();"m"!==Et&&(Z=Xi.map(function(Ut){return Ut/x.Wm[Et]}))}B=io(r,le,Lt,Z,l,_,Ha,xt.getImage),r.getStyle()?be().then(Ft).catch($t):$t(new Error("Nothing to show for source ["+rt+"]"))}}if(le.sprite){var X=new URL(function Wa(r,i,o){var T=er(r);if(!T)return decodeURI(new URL(r,o).href);var Z="sprites/";if(0!==T.indexOf(Z))throw new Error("unexpected sprites url: "+r);var J=T.slice(Z.length);return Ur+"/styles/v1/"+J+"/sprite?access_token="+i}(le.sprite,xt.accessToken,J||location.href)),et=.5==(window.devicePixelRatio>=1.5?.5:1)?"@2x":"",tt=X.origin+X.pathname+et+".json"+X.search;new Promise(function(ut,Et){ar("Sprite",tt,xt).then(ut).catch(function(Ut){ar("Sprite",tt=X.origin+X.pathname+".json"+X.search,xt).then(ut).catch(Et)})}).then(function(ut){if(void 0===ut&&$t(new Error("No sprites found.")),l=ut,_=X.origin+X.pathname+et+".png"+X.search,xt.transformRequest){var Et=xt.transformRequest(_,"SpriteImage");Et instanceof Request&&(_=encodeURI(Et.url))}j()}).catch(function(ut){$t(new Error("Sprites cannot be loaded: "+tt+": "+ut.message))})}else j()}).catch($t)})}var rn={};function $e(r,i,o){return void 0===o&&(o={}),or(i,o).then(function(T){!function oi(r,i,o){i.layers.some(function(T){if("background"===T.type){if(r instanceof u.Z)return r.setBackground(function(Z){return as(T,Z,o,{})}),!0;if(r instanceof f.Z||r instanceof c.Z)return r.getLayers().push(function vn(r,i,o){var T=document.createElement("div");return T.className="ol-mapbox-style-background",T.style.position="absolute",T.style.width="100%",T.style.height="100%",new u.Z({source:new n.Z({}),render:function(J){var rt=as(r,J.viewState.resolution,i,o);return T.style.backgroundColor=rt,T}})}(T,o,{})),!0}})}(r,T,o)})}function as(r,i,o,T){var Z={id:r.id,type:r.type},J=r.layout||{},rt=r.paint||{};Z.paint=rt;var Lt,Dt,xt=rr(i,o.resolutions||Xi);return void 0!==rt["background-color"]&&(Lt=we(Z,"paint","background-color",xt,rn,T)),void 0!==rt["background-opacity"]&&(Dt=we(Z,"paint","background-opacity",xt,rn,T)),"none"==J.visibility?void 0:sn(Lt,Dt)}var os=new d.Z},1955:(Bt,ot,a)=>{"use strict";a.d(ot,{Z:()=>k});const G={1:"The view center is not defined",2:"The view resolution is not defined",3:"The view rotation is not defined",4:"`image` and `src` cannot be provided at the same time",5:"`imgSize` must be set when `image` is provided",7:"`format` must be set when `url` is set",8:"Unknown `serverType` configured",9:"`url` must be configured or set using `#setUrl()`",10:"The default `geometryFunction` can only handle `Point` geometries",11:"`options.featureTypes` must be an Array",12:"`options.geometryName` must also be provided when `options.bbox` is set",13:"Invalid corner",14:"Invalid color",15:"Tried to get a value for a key that does not exist in the cache",16:"Tried to set a value for a key that is used already",17:"`resolutions` must be sorted in descending order",18:"Either `origin` or `origins` must be configured, never both",19:"Number of `tileSizes` and `resolutions` must be equal",20:"Number of `origins` and `resolutions` must be equal",22:"Either `tileSize` or `tileSizes` must be configured, never both",24:"Invalid extent or geometry provided as `geometry`",25:"Cannot fit empty extent provided as `geometry`",26:"Features must have an id set",27:"Features must have an id set",28:'`renderMode` must be `"hybrid"` or `"vector"`',30:"The passed `feature` was already added to the source",31:"Tried to enqueue an `element` that was already added to the queue",32:"Transformation matrix cannot be inverted",33:"Invalid units",34:"Invalid geometry layout",36:"Unknown SRS type",37:"Unknown geometry type found",38:"`styleMapValue` has an unknown type",39:"Unknown geometry type",40:"Expected `feature` to have a geometry",41:"Expected an `ol/style/Style` or an array of `ol/style/Style.js`",42:"Question unknown, the answer is 42",43:"Expected `layers` to be an array or a `Collection`",47:"Expected `controls` to be an array or an `ol/Collection`",48:"Expected `interactions` to be an array or an `ol/Collection`",49:"Expected `overlays` to be an array or an `ol/Collection`",50:"`options.featureTypes` should be an Array",51:"Either `url` or `tileJSON` options must be provided",52:"Unknown `serverType` configured",53:"Unknown `tierSizeCalculation` configured",55:"The {-y} placeholder requires a tile grid with extent",56:"mapBrowserEvent must originate from a pointer event",57:"At least 2 conditions are required",59:"Invalid command found in the PBF",60:"Missing or invalid `size`",61:"Cannot determine IIIF Image API version from provided image information JSON",62:"A `WebGLArrayBuffer` must either be of type `ELEMENT_ARRAY_BUFFER` or `ARRAY_BUFFER`",64:"Layer opacity must be a number",66:"`forEachFeatureAtCoordinate` cannot be used on a WebGL layer if the hit detection logic has not been enabled. This is done by providing adequate shaders using the `hitVertexShader` and `hitFragmentShader` properties of `WebGLPointsLayerRenderer`",67:"A layer can only be added to the map once. Use either `layer.setMap()` or `map.addLayer()`, not both",68:"A VectorTile source can only be rendered if it has a projection compatible with the view projection",69:"`width` or `height` cannot be provided together with `scale`"};class D extends Error{constructor(U){const I=G[U];super(I),this.code=U,this.name="AssertionError",this.message=I}}const k=D},9573:(Bt,ot,a)=>{"use strict";a.d(ot,{Z:()=>P});var G=a(1955),D=a(4115),k=a(448),z=a(3615);class I extends z.ZP{constructor(d,u,c){super(d),this.element=u,this.index=c}}const P=class S extends D.Z{constructor(d,u){if(super(),this.unique_=!!(u=u||{}).unique,this.array_=d||[],this.unique_)for(let c=0,s=this.array_.length;c0;)this.pop()}extend(d){for(let u=0,c=d.length;uthis.getLength())throw new Error("Index out of bounds: "+d);this.unique_&&this.assertUnique_(u),this.array_.splice(d,0,u),this.updateLength_(),this.dispatchEvent(new I(k.Z.ADD,u,d))}pop(){return this.removeAt(this.getLength()-1)}push(d){this.unique_&&this.assertUnique_(d);const u=this.getLength();return this.insertAt(u,d),this.getLength()}remove(d){const u=this.array_;for(let c=0,s=u.length;c=this.getLength())return;const u=this.array_[d];return this.array_.splice(d,1),this.updateLength_(),this.dispatchEvent(new I(k.Z.REMOVE,u,d)),u}setAt(d,u){if(d>=this.getLength())return void this.insertAt(d,u);if(d<0)throw new Error("Index out of bounds: "+d);this.unique_&&this.assertUnique_(u,d);const s=this.array_[d];this.array_[d]=u,this.dispatchEvent(new I(k.Z.REMOVE,s,d)),this.dispatchEvent(new I(k.Z.ADD,u,d))}updateLength_(){this.set("length",this.array_.length)}assertUnique_(d,u){for(let c=0,s=this.array_.length;c{"use strict";a.d(ot,{Z:()=>G});const G={ADD:"add",REMOVE:"remove"}},6450:(Bt,ot,a)=>{"use strict";a.d(ot,{Z:()=>D});const D=class G{constructor(){this.disposed=!1}dispose(){this.disposed||(this.disposed=!0,this.disposeInternal())}disposeInternal(){}}},3413:(Bt,ot,a)=>{"use strict";a.d(ot,{Z:()=>S});var G=a(4115),D=a(3044),k=a(992),z=a(2716);class U extends G.Z{constructor(p){super(),this.id_=void 0,this.geometryName_="geometry",this.style_=null,this.styleFunction_=void 0,this.geometryChangeKey_=null,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),p&&("function"==typeof p.getSimplifiedGeometry?this.setGeometry(p):this.setProperties(p))}clone(){const p=new U(this.hasProperties()?this.getProperties():null);p.setGeometryName(this.getGeometryName());const d=this.getGeometry();d&&p.setGeometry(d.clone());const u=this.getStyle();return u&&p.setStyle(u),p}getGeometry(){return this.get(this.geometryName_)}getId(){return this.id_}getGeometryName(){return this.geometryName_}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}handleGeometryChange_(){this.changed()}handleGeometryChanged_(){this.geometryChangeKey_&&((0,z.bN)(this.geometryChangeKey_),this.geometryChangeKey_=null);const p=this.getGeometry();p&&(this.geometryChangeKey_=(0,z.oL)(p,D.Z.CHANGE,this.handleGeometryChange_,this)),this.changed()}setGeometry(p){this.set(this.geometryName_,p)}setStyle(p){this.style_=p,this.styleFunction_=p?function I(P){if("function"==typeof P)return P;let p;return Array.isArray(P)?p=P:((0,k.h)("function"==typeof P.getZIndex,41),p=[P]),function(){return p}}(p):void 0,this.changed()}setId(p){this.id_=p,this.changed()}setGeometryName(p){this.removeChangeListener(this.geometryName_,this.handleGeometryChanged_),this.geometryName_=p,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),this.handleGeometryChanged_()}}const S=U},1309:(Bt,ot,a)=>{"use strict";a.d(ot,{K:()=>P,Z:()=>p});var G=a(3044),D=a(1649),k=a(1501),z=a(5063),U=a(9543),I=a(2716);function P(d,u,c){const s=d;let f=!0,n=!1,h=!1;const g=[(0,I.Vx)(s,G.Z.LOAD,function(){h=!0,n||u()})];return s.src&&z.Tp?(n=!0,s.decode().then(function(){f&&u()}).catch(function(e){f&&(h?u():c())})):g.push((0,I.Vx)(s,G.Z.ERROR,c)),function(){f=!1,g.forEach(I.bN)}}const p=class S extends D.Z{constructor(u,c,s,f,n,h,g){super(u,c,s,k.Z.IDLE),this.src_=f,this.image_=new Image,null!==n&&(this.image_.crossOrigin=n),this.context_=g,this.unlisten_=null,this.state=k.Z.IDLE,this.imageLoadFunction_=h}getImage(){if(this.state==k.Z.LOADED&&this.context_&&!(this.image_ instanceof HTMLCanvasElement)){const u=this.context_.canvas;u.width=this.image_.width,u.height=this.image_.height,this.context_.drawImage(this.image_,0,0),this.image_=this.context_.canvas}return this.image_}handleImageError_(){this.state=k.Z.ERROR,this.unlistenImage_(),this.changed()}handleImageLoad_(){void 0===this.resolution&&(this.resolution=(0,U.Cr)(this.extent)/this.image_.height),this.state=k.Z.LOADED,this.unlistenImage_(),this.changed()}load(){(this.state==k.Z.IDLE||this.state==k.Z.ERROR)&&(this.state=k.Z.LOADING,this.changed(),this.imageLoadFunction_(this,this.src_),this.unlisten_=P(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))}setImage(u){this.image_=u,this.resolution=(0,U.Cr)(this.extent)/this.image_.height}unlistenImage_(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)}}},1649:(Bt,ot,a)=>{"use strict";a.d(ot,{Z:()=>U});var G=a(1398),D=a(3044),k=a(513);const U=class z extends G.Z{constructor(S,P,p,d){super(),this.extent=S,this.pixelRatio_=p,this.resolution=P,this.state=d}changed(){this.dispatchEvent(D.Z.CHANGE)}getExtent(){return this.extent}getImage(){return(0,k.O3)()}getPixelRatio(){return this.pixelRatio_}getResolution(){return this.resolution}getState(){return this.state}load(){(0,k.O3)()}}},443:(Bt,ot,a)=>{"use strict";a.d(ot,{Z:()=>z});var G=a(1649),D=a(1501);const z=class k extends G.Z{constructor(I,S,P,p,d){super(I,S,P,void 0!==d?D.Z.IDLE:D.Z.LOADED),this.loader_=void 0!==d?d:null,this.canvas_=p,this.error_=null}getError(){return this.error_}handleLoad_(I){I?(this.error_=I,this.state=D.Z.ERROR):this.state=D.Z.LOADED,this.changed()}load(){this.state==D.Z.IDLE&&(this.state=D.Z.LOADING,this.changed(),this.loader_(this.handleLoad_.bind(this)))}getImage(){return this.canvas_}}},1501:(Bt,ot,a)=>{"use strict";a.d(ot,{Z:()=>G});const G={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},8879:(Bt,ot,a)=>{"use strict";a.d(ot,{Z:()=>S});var G=a(8786),D=a(4700),k=a(3842),z=a(1309);const S=class U extends G.Z{constructor(p,d,u,c,s,f){super(p,d,f),this.crossOrigin_=c,this.src_=u,this.key=u,this.image_=new Image,null!==c&&(this.image_.crossOrigin=c),this.unlisten_=null,this.tileLoadFunction_=s}getImage(){return this.image_}setImage(p){this.image_=p,this.state=D.Z.LOADED,this.unlistenImage_(),this.changed()}handleImageError_(){this.state=D.Z.ERROR,this.unlistenImage_(),this.image_=function I(){const P=(0,k.E4)(1,1);return P.fillStyle="rgba(0,0,0,0)",P.fillRect(0,0,1,1),P.canvas}(),this.changed()}handleImageLoad_(){const p=this.image_;this.state=p.naturalWidth&&p.naturalHeight?D.Z.LOADED:D.Z.EMPTY,this.unlistenImage_(),this.changed()}load(){this.state==D.Z.ERROR&&(this.state=D.Z.IDLE,this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==D.Z.IDLE&&(this.state=D.Z.LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=(0,z.K)(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))}unlistenImage_(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)}}},6942:(Bt,ot,a)=>{"use strict";a.d(ot,{Z:()=>ge});var G=a(4115),D=a(9573),k=a(448),z=a(6450),U=a(1334),I=a(513),S=a(7139),P=a(9543),p=a(9118),d=a(7521),u=a(5415);function s(qt,gt){p.c.expire()}const f=class c extends z.Z{constructor(gt){super(),this.map_=gt}dispatchRenderEvent(gt,Mt){(0,I.O3)()}calculateMatrices2D(gt){const Mt=gt.viewState,Zt=gt.coordinateToPixelTransform,jt=gt.pixelToCoordinateTransform;(0,S.qC)(Zt,gt.size[0]/2,gt.size[1]/2,1/Mt.resolution,-1/Mt.resolution,-Mt.rotation,-Mt.center[0],-Mt.center[1]),(0,S.nb)(jt,Zt)}forEachFeatureAtCoordinate(gt,Mt,Zt,jt,Wt,he,_e,Le){let Ze;const It=Mt.viewState;function ct(Xt,Jt,Ee,se){return Wt.call(he,Jt,Xt?Ee:null,se)}const m=It.projection,F=(0,u.Cf)(gt.slice(),m),Q=[[0,0]];if(m.canWrapX()&&jt){const Xt=m.getExtent(),Jt=(0,P.dz)(Xt);Q.push([-Jt,0],[Jt,0])}const V=Mt.layerStatesArray,lt=V.length,_t=[],St=[];for(let Xt=0;Xt=0;--Jt){const Ee=V[Jt],se=Ee.layer;if(se.hasRenderer()&&(0,d.j)(Ee,It)&&_e.call(Le,se)){const Qt=se.getRenderer(),Fe=se.getSource();if(Qt&&Fe){const Ye=Fe.getWrapX()?F:gt,We=ct.bind(null,Ee.managed);St[0]=Ye[0]+Q[Xt][0],St[1]=Ye[1]+Q[Xt][1],Ze=Qt.forEachFeatureAtCoordinate(St,Mt,Zt,We,_t)}if(Ze)return Ze}}if(0===_t.length)return;const Nt=1/_t.length;return _t.forEach((Xt,Jt)=>Xt.distanceSq+=Jt*Nt),_t.sort((Xt,Jt)=>Xt.distanceSq-Jt.distanceSq),_t.some(Xt=>Ze=Xt.callback(Xt.feature,Xt.layer,Xt.geometry)),Ze}hasFeatureAtCoordinate(gt,Mt,Zt,jt,Wt,he){return void 0!==this.forEachFeatureAtCoordinate(gt,Mt,Zt,jt,U.uX,this,Wt,he)}getMap(){return this.map_}renderFrame(gt){(0,I.O3)()}scheduleExpireIconCache(gt){p.c.canExpireCache()&>.postRenderFunctions.push(s)}};var n=a(8296),h=a(9683),g=a(8779),e=a(1119),E=a(2768),v=a(2716),x=a(3842);const O=class w extends f{constructor(gt){super(gt),this.fontChangeListenerKey_=(0,v.oL)(E.sG,n.Z.PROPERTYCHANGE,gt.redrawText.bind(gt)),this.element_=document.createElement("div");const Mt=this.element_.style;Mt.position="absolute",Mt.width="100%",Mt.height="100%",Mt.zIndex="0",this.element_.className=e.XV+" ol-layers";const Zt=gt.getViewport();Zt.insertBefore(this.element_,Zt.firstChild||null),this.children_=[],this.renderedVisible_=!0}dispatchRenderEvent(gt,Mt){const Zt=this.getMap();if(Zt.hasListener(gt)){const jt=new h.Z(gt,void 0,Mt);Zt.dispatchEvent(jt)}}disposeInternal(){(0,v.bN)(this.fontChangeListenerKey_),this.element_.parentNode.removeChild(this.element_),super.disposeInternal()}renderFrame(gt){if(!gt)return void(this.renderedVisible_&&(this.element_.style.display="none",this.renderedVisible_=!1));this.calculateMatrices2D(gt),this.dispatchRenderEvent(g.Z.PRECOMPOSE,gt);const Mt=gt.layerStatesArray.sort(function(he,_e){return he.zIndex-_e.zIndex}),Zt=gt.viewState;this.children_.length=0;const jt=[];let Wt=null;for(let he=0,_e=Mt.length;he<_e;++he){const Le=Mt[he];gt.layerIndex=he;const Ze=Le.layer,It=Ze.getSourceState();if(!(0,d.j)(Le,Zt)||"ready"!=It&&"undefined"!=It){Ze.unrender();continue}const ct=Ze.render(gt,Wt);!ct||(ct!==Wt&&(this.children_.push(ct),Wt=ct),"getDeclutter"in Ze&&jt.push(Ze))}for(let he=jt.length-1;he>=0;--he)jt[he].renderDeclutter(gt);(0,x.hF)(this.element_,this.children_),this.dispatchRenderEvent(g.Z.POSTCOMPOSE,gt),this.renderedVisible_||(this.element_.style.display="",this.renderedVisible_=!0),this.scheduleExpireIconCache(gt)}};var y=a(3044),R=a(1591),W=a(3615);const nt=class K extends W.ZP{constructor(gt,Mt,Zt){super(gt),this.map=Mt,this.frameState=void 0!==Zt?Zt:null}},L=class A extends nt{constructor(gt,Mt,Zt,jt,Wt,he){super(gt,Mt,Wt),this.originalEvent=Zt,this.pixel_=null,this.coordinate_=null,this.dragging=void 0!==jt&&jt,this.activePointers=he}get pixel(){return this.pixel_||(this.pixel_=this.map.getEventPixel(this.originalEvent)),this.pixel_}set pixel(gt){this.pixel_=gt}get coordinate(){return this.coordinate_||(this.coordinate_=this.map.getCoordinateFromPixel(this.pixel)),this.coordinate_}set coordinate(gt){this.coordinate_=gt}preventDefault(){super.preventDefault(),"preventDefault"in this.originalEvent&&this.originalEvent.preventDefault()}stopPropagation(){super.stopPropagation(),"stopPropagation"in this.originalEvent&&this.originalEvent.stopPropagation()}};var b=a(1590),M=a(5622),C=a(1398),N=a(5063);const it=class H extends C.Z{constructor(gt,Mt){super(gt),this.map_=gt,this.emulateClicks_=!1,this.dragging_=!1,this.dragListenerKeys_=[],this.moveTolerance_=void 0===Mt?1:Mt,this.down_=null;const Zt=this.map_.getViewport();this.activePointers_=[],this.trackedTouches_={},this.element_=Zt,this.pointerdownListenerKey_=(0,v.oL)(Zt,M.Z.POINTERDOWN,this.handlePointerDown_,this),this.relayedListenerKey_=(0,v.oL)(Zt,M.Z.POINTERMOVE,this.relayMoveEvent_,this),this.boundHandleTouchMove_=this.handleTouchMove_.bind(this),this.element_.addEventListener(y.Z.TOUCHMOVE,this.boundHandleTouchMove_,!!N.bM&&{passive:!1})}emulateClick_(gt){let Mt=new L(b.Z.CLICK,this.map_,gt);this.dispatchEvent(Mt),void 0!==this.clickTimeoutId_?(clearTimeout(this.clickTimeoutId_),this.clickTimeoutId_=void 0,Mt=new L(b.Z.DBLCLICK,this.map_,gt),this.dispatchEvent(Mt)):this.clickTimeoutId_=setTimeout(()=>{this.clickTimeoutId_=void 0;const Zt=new L(b.Z.SINGLECLICK,this.map_,gt);this.dispatchEvent(Zt)},250)}updateActivePointers_(gt){const Mt=gt,Zt=Mt.pointerId;if(Mt.type==b.Z.POINTERUP||Mt.type==b.Z.POINTERCANCEL){delete this.trackedTouches_[Zt];for(const jt in this.trackedTouches_)if(this.trackedTouches_[jt].target!==Mt.target){delete this.trackedTouches_[jt];break}}else(Mt.type==b.Z.POINTERDOWN||Mt.type==b.Z.POINTERMOVE)&&(this.trackedTouches_[Zt]=Mt);this.activePointers_=Object.values(this.trackedTouches_)}handlePointerUp_(gt){this.updateActivePointers_(gt);const Mt=new L(b.Z.POINTERUP,this.map_,gt,void 0,void 0,this.activePointers_);this.dispatchEvent(Mt),this.emulateClicks_&&!Mt.defaultPrevented&&!this.dragging_&&this.isMouseActionButton_(gt)&&this.emulateClick_(this.down_),0===this.activePointers_.length&&(this.dragListenerKeys_.forEach(v.bN),this.dragListenerKeys_.length=0,this.dragging_=!1,this.down_=null)}isMouseActionButton_(gt){return 0===gt.button}handlePointerDown_(gt){this.emulateClicks_=0===this.activePointers_.length,this.updateActivePointers_(gt);const Mt=new L(b.Z.POINTERDOWN,this.map_,gt,void 0,void 0,this.activePointers_);if(this.dispatchEvent(Mt),this.down_=new PointerEvent(gt.type,gt),Object.defineProperty(this.down_,"target",{writable:!1,value:gt.target}),0===this.dragListenerKeys_.length){const Zt=this.map_.getOwnerDocument();this.dragListenerKeys_.push((0,v.oL)(Zt,b.Z.POINTERMOVE,this.handlePointerMove_,this),(0,v.oL)(Zt,b.Z.POINTERUP,this.handlePointerUp_,this),(0,v.oL)(this.element_,b.Z.POINTERCANCEL,this.handlePointerUp_,this)),this.element_.getRootNode&&this.element_.getRootNode()!==Zt&&this.dragListenerKeys_.push((0,v.oL)(this.element_.getRootNode(),b.Z.POINTERUP,this.handlePointerUp_,this))}}handlePointerMove_(gt){if(this.isMoving_(gt)){this.updateActivePointers_(gt),this.dragging_=!0;const Mt=new L(b.Z.POINTERDRAG,this.map_,gt,this.dragging_,void 0,this.activePointers_);this.dispatchEvent(Mt)}}relayMoveEvent_(gt){this.originalPointerMoveEvent_=gt;const Mt=!(!this.down_||!this.isMoving_(gt));this.dispatchEvent(new L(b.Z.POINTERMOVE,this.map_,gt,Mt))}handleTouchMove_(gt){const Mt=this.originalPointerMoveEvent_;(!Mt||Mt.defaultPrevented)&&("boolean"!=typeof gt.cancelable||!0===gt.cancelable)&>.preventDefault()}isMoving_(gt){return this.dragging_||Math.abs(gt.clientX-this.down_.clientX)>this.moveTolerance_||Math.abs(gt.clientY-this.down_.clientY)>this.moveTolerance_}disposeInternal(){this.relayedListenerKey_&&((0,v.bN)(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(y.Z.TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&((0,v.bN)(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(v.bN),this.dragListenerKeys_.length=0,this.element_=null,super.disposeInternal()}};var Y=a(9806),st=a(3161),ht=a(2988),Tt=a(5109),vt=a(9500),Ct=a(992),bt=a(9633),Gt=a(5267),kt=a(1014),zt=a(1179),ue=a(142),de=a(9015),ce=a(931),Se=a(246);function dt(qt){qt instanceof d.Z?qt.setMapInternal(null):qt instanceof R.Z&&qt.getLayers().forEach(dt)}function Ot(qt,gt){if(qt instanceof d.Z)qt.setMapInternal(gt);else if(qt instanceof R.Z){const Mt=qt.getLayers().getArray();for(let Zt=0,jt=Mt.length;Ztthis.updateSize()),this.controls=Mt.controls||function ie(qt){qt=qt||{};const gt=new D.Z;return(void 0===qt.zoom||qt.zoom)&>.push(new kt.Z(qt.zoomOptions)),(void 0===qt.rotate||qt.rotate)&>.push(new Gt.Z(qt.rotateOptions)),(void 0===qt.attribution||qt.attribution)&>.push(new bt.Z(qt.attributionOptions)),gt}(),this.interactions=Mt.interactions||(0,zt.c)({onFocusOnly:!0}),this.overlays_=Mt.overlays,this.overlayIdIndex_={},this.renderer_=null,this.postRenderFunctions_=[],this.tileQueue_=new ht.Z(this.getTilePriority.bind(this),this.handleTileChange_.bind(this)),this.addChangeListener(st.Z.LAYERGROUP,this.handleLayerGroupChanged_),this.addChangeListener(st.Z.VIEW,this.handleViewChanged_),this.addChangeListener(st.Z.SIZE,this.handleSizeChanged_),this.addChangeListener(st.Z.TARGET,this.handleTargetChanged_),this.setProperties(Mt.values);const Zt=this;gt.view&&!(gt.view instanceof Tt.ZP)&>.view.then(function(jt){Zt.setView(new Tt.ZP(jt))}),this.controls.addEventListener(k.Z.ADD,jt=>{jt.element.setMap(this)}),this.controls.addEventListener(k.Z.REMOVE,jt=>{jt.element.setMap(null)}),this.interactions.addEventListener(k.Z.ADD,jt=>{jt.element.setMap(this)}),this.interactions.addEventListener(k.Z.REMOVE,jt=>{jt.element.setMap(null)}),this.overlays_.addEventListener(k.Z.ADD,jt=>{this.addOverlayInternal_(jt.element)}),this.overlays_.addEventListener(k.Z.REMOVE,jt=>{const Wt=jt.element.getId();void 0!==Wt&&delete this.overlayIdIndex_[Wt.toString()],jt.element.setMap(null)}),this.controls.forEach(jt=>{jt.setMap(this)}),this.interactions.forEach(jt=>{jt.setMap(this)}),this.overlays_.forEach(this.addOverlayInternal_.bind(this))}addControl(gt){this.getControls().push(gt)}addInteraction(gt){this.getInteractions().push(gt)}addLayer(gt){this.getLayerGroup().getLayers().push(gt)}handleLayerAdd_(gt){Ot(gt.layer,this)}addOverlay(gt){this.getOverlays().push(gt)}addOverlayInternal_(gt){const Mt=gt.getId();void 0!==Mt&&(this.overlayIdIndex_[Mt.toString()]=gt),gt.setMap(this)}disposeInternal(){this.controls.clear(),this.interactions.clear(),this.overlays_.clear(),this.resizeObserver_.disconnect(),this.setTarget(null),super.disposeInternal()}forEachFeatureAtPixel(gt,Mt,Zt){if(!this.frameState_||!this.renderer_)return;const jt=this.getCoordinateFromPixelInternal(gt);return this.renderer_.forEachFeatureAtCoordinate(jt,this.frameState_,void 0!==(Zt=void 0!==Zt?Zt:{}).hitTolerance?Zt.hitTolerance:0,!1!==Zt.checkWrapped,Mt,null,void 0!==Zt.layerFilter?Zt.layerFilter:U.uX,null)}getFeaturesAtPixel(gt,Mt){const Zt=[];return this.forEachFeatureAtPixel(gt,function(jt){Zt.push(jt)},Mt),Zt}getAllLayers(){const gt=[];return function Mt(Zt){Zt.forEach(function(jt){jt instanceof R.Z?Mt(jt.getLayers()):gt.push(jt)})}(this.getLayers()),gt}hasFeatureAtPixel(gt,Mt){if(!this.frameState_||!this.renderer_)return!1;const Zt=this.getCoordinateFromPixelInternal(gt);return this.renderer_.hasFeatureAtCoordinate(Zt,this.frameState_,void 0!==(Mt=void 0!==Mt?Mt:{}).hitTolerance?Mt.hitTolerance:0,!1!==Mt.checkWrapped,void 0!==Mt.layerFilter?Mt.layerFilter:U.uX,null)}getEventCoordinate(gt){return this.getCoordinateFromPixel(this.getEventPixel(gt))}getEventCoordinateInternal(gt){return this.getCoordinateFromPixelInternal(this.getEventPixel(gt))}getEventPixel(gt){const Zt=this.viewport_.getBoundingClientRect(),jt=this.getSize(),_e="changedTouches"in gt?gt.changedTouches[0]:gt;return[(_e.clientX-Zt.left)/(Zt.width/jt[0]),(_e.clientY-Zt.top)/(Zt.height/jt[1])]}getTarget(){return this.get(st.Z.TARGET)}getTargetElement(){return this.targetElement_}getCoordinateFromPixel(gt){return(0,de.lO)(this.getCoordinateFromPixelInternal(gt),this.getView().getProjection())}getCoordinateFromPixelInternal(gt){const Mt=this.frameState_;return Mt?(0,S.nn)(Mt.pixelToCoordinateTransform,gt.slice()):null}getControls(){return this.controls}getOverlays(){return this.overlays_}getOverlayById(gt){const Mt=this.overlayIdIndex_[gt.toString()];return void 0!==Mt?Mt:null}getInteractions(){return this.interactions}getLayerGroup(){return this.get(st.Z.LAYERGROUP)}setLayers(gt){const Mt=this.getLayerGroup();if(gt instanceof D.Z)return void Mt.setLayers(gt);const Zt=Mt.getLayers();Zt.clear(),Zt.extend(gt)}getLayers(){return this.getLayerGroup().getLayers()}getLoadingOrNotReady(){const gt=this.getLayerGroup().getLayerStatesArray();for(let Mt=0,Zt=gt.length;Mt=0;Wt--){const he=jt[Wt];if(he.getMap()===this&&he.getActive()&&this.getTargetElement()&&(!he.handleEvent(gt)||gt.propagationStopped))break}}}handlePostRender(){const gt=this.frameState_,Mt=this.tileQueue_;if(!Mt.isEmpty()){let jt=this.maxTilesLoading_,Wt=jt;if(gt){const he=gt.viewHints;if(he[vt.Z.ANIMATING]||he[vt.Z.INTERACTING]){const _e=Date.now()-gt.time>8;jt=_e?0:8,Wt=_e?0:2}}Mt.getTilesLoading(){this.postRenderTimeoutHandle_=void 0,this.handlePostRender()},0))}setLayerGroup(gt){const Mt=this.getLayerGroup();Mt&&this.handleLayerRemove_(new R.V("removelayer",Mt)),this.set(st.Z.LAYERGROUP,gt)}setSize(gt){this.set(st.Z.SIZE,gt)}setTarget(gt){this.set(st.Z.TARGET,gt)}setView(gt){if(!gt||gt instanceof Tt.ZP)return void this.set(st.Z.VIEW,gt);this.set(st.Z.VIEW,new Tt.ZP);const Mt=this;gt.then(function(Zt){Mt.setView(new Tt.ZP(Zt))})}updateSize(){const gt=this.getTargetElement();let Mt;if(gt){const jt=getComputedStyle(gt),Wt=gt.offsetWidth-parseFloat(jt.borderLeftWidth)-parseFloat(jt.paddingLeft)-parseFloat(jt.paddingRight)-parseFloat(jt.borderRightWidth),he=gt.offsetHeight-parseFloat(jt.borderTopWidth)-parseFloat(jt.paddingTop)-parseFloat(jt.paddingBottom)-parseFloat(jt.borderBottomWidth);!isNaN(Wt)&&!isNaN(he)&&(Mt=[Wt,he],!(0,ce.py)(Mt)&&(gt.offsetWidth||gt.offsetHeight||gt.getClientRects().length)&&(0,Se.ZK)("No map visible because the map container's width or height are 0."))}const Zt=this.getSize();Mt&&(!Zt||!(0,ue.fS)(Mt,Zt))&&(this.setSize(Mt),this.updateViewportSize_())}updateViewportSize_(){const gt=this.getView();if(gt){let Mt;const Zt=getComputedStyle(this.viewport_);Zt.width&&Zt.height&&(Mt=[parseInt(Zt.width,10),parseInt(Zt.height,10)]),gt.setViewportSize(Mt)}}}},1590:(Bt,ot,a)=>{"use strict";a.d(ot,{Z:()=>D});var G=a(3044);const D={SINGLECLICK:"singleclick",CLICK:G.Z.CLICK,DBLCLICK:G.Z.DBLCLICK,POINTERDRAG:"pointerdrag",POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"}},9806:(Bt,ot,a)=>{"use strict";a.d(ot,{Z:()=>G});const G={POSTRENDER:"postrender",MOVESTART:"movestart",MOVEEND:"moveend",LOADSTART:"loadstart",LOADEND:"loadend"}},3161:(Bt,ot,a)=>{"use strict";a.d(ot,{Z:()=>G});const G={LAYERGROUP:"layergroup",SIZE:"size",TARGET:"target",VIEW:"view"}},4115:(Bt,ot,a)=>{"use strict";a.d(ot,{Z:()=>P});var G=a(3615),D=a(8296),k=a(8975),z=a(513),U=a(9306);class I extends G.ZP{constructor(d,u,c){super(d),this.key=u,this.oldValue=c}}const P=class S extends k.Z{constructor(d){super(),(0,z.sq)(this),this.values_=null,void 0!==d&&this.setProperties(d)}get(d){let u;return this.values_&&this.values_.hasOwnProperty(d)&&(u=this.values_[d]),u}getKeys(){return this.values_&&Object.keys(this.values_)||[]}getProperties(){return this.values_&&Object.assign({},this.values_)||{}}hasProperties(){return!!this.values_}notify(d,u){let c;c=`change:${d}`,this.hasListener(c)&&this.dispatchEvent(new I(c,d,u)),c=D.Z.PROPERTYCHANGE,this.hasListener(c)&&this.dispatchEvent(new I(c,d,u))}addChangeListener(d,u){this.addEventListener(`change:${d}`,u)}removeChangeListener(d,u){this.removeEventListener(`change:${d}`,u)}set(d,u,c){const s=this.values_||(this.values_={});if(c)s[d]=u;else{const f=s[d];s[d]=u,f!==u&&this.notify(d,f)}}setProperties(d,u){for(const c in d)this.set(c,d[c],u)}applyProperties(d){!d.values_||Object.assign(this.values_||(this.values_={}),d.values_)}unset(d,u){if(this.values_&&d in this.values_){const c=this.values_[d];delete this.values_[d],(0,U.x)(this.values_)&&(this.values_=null),u||this.notify(d,c)}}}},8296:(Bt,ot,a)=>{"use strict";a.d(ot,{Z:()=>G});const G={PROPERTYCHANGE:"propertychange"}},8975:(Bt,ot,a)=>{"use strict";a.d(ot,{B:()=>U,Z:()=>I});var G=a(1398),D=a(3044),k=a(2716);function U(S){if(Array.isArray(S))for(let P=0,p=S.length;P{"use strict";a.d(ot,{Z:()=>p});var G=a(4115),D=a(9806),k=a(1119),z=a(9543),U=a(2716),I=a(3842);const p=class P extends G.Z{constructor(u){super(),this.options=u,this.id=u.id,this.insertFirst=void 0===u.insertFirst||u.insertFirst,this.stopEvent=void 0===u.stopEvent||u.stopEvent,this.element=document.createElement("div"),this.element.className=void 0!==u.className?u.className:"ol-overlay-container "+k.$A,this.element.style.position="absolute",this.element.style.pointerEvents="auto",this.autoPan=!0===u.autoPan?{}:u.autoPan||void 0,this.rendered={transform_:"",visible:!0},this.mapPostrenderListenerKey=null,this.addChangeListener("element",this.handleElementChanged),this.addChangeListener("map",this.handleMapChanged),this.addChangeListener("offset",this.handleOffsetChanged),this.addChangeListener("position",this.handlePositionChanged),this.addChangeListener("positioning",this.handlePositioningChanged),void 0!==u.element&&this.setElement(u.element),this.setOffset(void 0!==u.offset?u.offset:[0,0]),this.setPositioning(u.positioning||"top-left"),void 0!==u.position&&this.setPosition(u.position)}getElement(){return this.get("element")}getId(){return this.id}getMap(){return this.get("map")||null}getOffset(){return this.get("offset")}getPosition(){return this.get("position")}getPositioning(){return this.get("positioning")}handleElementChanged(){(0,I.ep)(this.element);const u=this.getElement();u&&this.element.appendChild(u)}handleMapChanged(){this.mapPostrenderListenerKey&&((0,I.ZF)(this.element),(0,U.bN)(this.mapPostrenderListenerKey),this.mapPostrenderListenerKey=null);const u=this.getMap();if(u){this.mapPostrenderListenerKey=(0,U.oL)(u,D.Z.POSTRENDER,this.render,this),this.updatePixelPosition();const c=this.stopEvent?u.getOverlayContainerStopEvent():u.getOverlayContainer();this.insertFirst?c.insertBefore(this.element,c.childNodes[0]||null):c.appendChild(this.element),this.performAutoPan()}}render(){this.updatePixelPosition()}handleOffsetChanged(){this.updatePixelPosition()}handlePositionChanged(){this.updatePixelPosition(),this.performAutoPan()}handlePositioningChanged(){this.updatePixelPosition()}setElement(u){this.set("element",u)}setMap(u){this.set("map",u)}setOffset(u){this.set("offset",u)}setPosition(u){this.set("position",u)}performAutoPan(){this.autoPan&&this.panIntoView(this.autoPan)}panIntoView(u){const c=this.getMap();if(!c||!c.getTargetElement()||!this.get("position"))return;const s=this.getRect(c.getTargetElement(),c.getSize()),f=this.getElement(),n=this.getRect(f,[(0,I.iO)(f),(0,I.Pb)(f)]),h=void 0===(u=u||{}).margin?20:u.margin;if(!(0,z.r4)(s,n)){const g=n[0]-s[0],e=s[2]-n[2],E=n[1]-s[1],v=s[3]-n[3],x=[0,0];if(g<0?x[0]=g-h:e<0&&(x[0]=Math.abs(e)+h),E<0?x[1]=E-h:v<0&&(x[1]=Math.abs(v)+h),0!==x[0]||0!==x[1]){const w=c.getView().getCenterInternal(),O=c.getPixelFromCoordinateInternal(w);if(!O)return;const y=[O[0]+x[0],O[1]+x[1]],R=u.animation||{};c.getView().animateInternal({center:c.getCoordinateFromPixelInternal(y),duration:R.duration,easing:R.easing})}}}getRect(u,c){const s=u.getBoundingClientRect(),f=s.left+window.pageXOffset,n=s.top+window.pageYOffset;return[f,n,f+c[0],n+c[1]]}setPositioning(u){this.set("positioning",u)}setVisible(u){this.rendered.visible!==u&&(this.element.style.display=u?"":"none",this.rendered.visible=u)}updatePixelPosition(){const u=this.getMap(),c=this.getPosition();if(!u||!u.isRendered()||!c)return void this.setVisible(!1);const s=u.getPixelFromCoordinate(c),f=u.getSize();this.updateRenderedPosition(s,f)}updateRenderedPosition(u,c){const s=this.element.style,f=this.getOffset(),n=this.getPositioning();this.setVisible(!0);let e="0%",E="0%";"bottom-right"==n||"center-right"==n||"top-right"==n?e="-100%":("bottom-center"==n||"center-center"==n||"top-center"==n)&&(e="-50%"),"bottom-left"==n||"bottom-center"==n||"bottom-right"==n?E="-100%":("center-left"==n||"center-center"==n||"center-right"==n)&&(E="-50%");const v=`translate(${e}, ${E}) translate(${Math.round(u[0]+f[0])+"px"}, ${Math.round(u[1]+f[1])+"px"})`;this.rendered.transform_!=v&&(this.rendered.transform_=v,s.transform=v)}getOptions(){return this.options}}},8786:(Bt,ot,a)=>{"use strict";a.d(ot,{Z:()=>S});var G=a(1398),D=a(3044),k=a(4700),z=a(513),U=a(4720);const S=class I extends G.Z{constructor(p,d,u){super(),u=u||{},this.tileCoord=p,this.state=d,this.interimTile=null,this.key="",this.transition_=void 0===u.transition?250:u.transition,this.transitionStarts_={},this.interpolate=!!u.interpolate}changed(){this.dispatchEvent(D.Z.CHANGE)}release(){this.state===k.Z.ERROR&&this.setState(k.Z.EMPTY)}getKey(){return this.key+"/"+this.tileCoord}getInterimTile(){if(!this.interimTile)return this;let p=this.interimTile;do{if(p.getState()==k.Z.LOADED)return this.transition_=0,p;p=p.interimTile}while(p);return this}refreshInterimChain(){if(!this.interimTile)return;let p=this.interimTile,d=this;do{if(p.getState()==k.Z.LOADED){p.interimTile=null;break}p.getState()==k.Z.LOADING?d=p:p.getState()==k.Z.IDLE?d.interimTile=p.interimTile:d=p,p=d.interimTile}while(p)}getTileCoord(){return this.tileCoord}getState(){return this.state}setState(p){if(this.state!==k.Z.ERROR&&this.state>p)throw new Error("Tile load sequence violation");this.state=p,this.changed()}load(){(0,z.O3)()}getAlpha(p,d){if(!this.transition_)return 1;let u=this.transitionStarts_[p];if(u){if(-1===u)return 1}else u=d,this.transitionStarts_[p]=u;const c=d-u+1e3/60;return c>=this.transition_?1:(0,U.YQ)(c/this.transition_)}inTransition(p){return!!this.transition_&&-1!==this.transitionStarts_[p]}endTransition(p){this.transition_&&(this.transitionStarts_[p]=-1)}}},7450:(Bt,ot,a)=>{"use strict";a.d(ot,{Z:()=>I});var G=a(992);var z=a(5474);const I=class U extends class D{constructor(P){this.highWaterMark=void 0!==P?P:2048,this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}canExpireCache(){return this.highWaterMark>0&&this.getCount()>this.highWaterMark}expireCache(P){for(;this.canExpireCache();)this.pop()}clear(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}containsKey(P){return this.entries_.hasOwnProperty(P)}forEach(P){let p=this.oldest_;for(;p;)P(p.value_,p.key_,this),p=p.newer}get(P,p){const d=this.entries_[P];return(0,G.h)(void 0!==d,15),d===this.newest_||(d===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(d.newer.older=d.older,d.older.newer=d.newer),d.newer=null,d.older=this.newest_,this.newest_.newer=d,this.newest_=d),d.value_}remove(P){const p=this.entries_[P];return(0,G.h)(void 0!==p,15),p===this.newest_?(this.newest_=p.older,this.newest_&&(this.newest_.newer=null)):p===this.oldest_?(this.oldest_=p.newer,this.oldest_&&(this.oldest_.older=null)):(p.newer.older=p.older,p.older.newer=p.newer),delete this.entries_[P],--this.count_,p.value_}getCount(){return this.count_}getKeys(){const P=new Array(this.count_);let d,p=0;for(d=this.newest_;d;d=d.older)P[p++]=d.key_;return P}getValues(){const P=new Array(this.count_);let d,p=0;for(d=this.newest_;d;d=d.older)P[p++]=d.value_;return P}peekLast(){return this.oldest_.value_}peekLastKey(){return this.oldest_.key_}peekFirstKey(){return this.newest_.key_}peek(P){if(this.containsKey(P))return this.entries_[P].value_}pop(){const P=this.oldest_;return delete this.entries_[P.key_],P.newer&&(P.newer.older=null),this.oldest_=P.newer,this.oldest_||(this.newest_=null),--this.count_,P.value_}replace(P,p){this.get(P),this.entries_[P].value_=p}set(P,p){(0,G.h)(!(P in this.entries_),16);const d={key_:P,newer:null,older:this.newest_,value_:p};this.newest_?this.newest_.newer=d:this.oldest_=d,this.newest_=d,this.entries_[P]=d,++this.count_}setSize(P){this.highWaterMark=P}}{clear(){for(;this.getCount()>0;)this.pop().release();super.clear()}expireCache(P){for(;this.canExpireCache()&&!(this.peekLast().getKey()in P);)this.pop().release()}pruneExceptNewestZ(){if(0===this.getCount())return;const P=this.peekFirstKey(),d=(0,z.Ul)(P)[0];this.forEach(u=>{u.tileCoord[0]!==d&&(this.remove((0,z.km)(u.tileCoord)),u.release())})}}},2988:(Bt,ot,a)=>{"use strict";a.d(ot,{Z:()=>p,R:()=>d});var G=a(3044),D=a(992),k=a(9306);const z=1/0;var S=a(4700);const p=class P extends class U{constructor(c,s){this.priorityFunction_=c,this.keyFunction_=s,this.elements_=[],this.priorities_=[],this.queuedElements_={}}clear(){this.elements_.length=0,this.priorities_.length=0,(0,k.Z)(this.queuedElements_)}dequeue(){const c=this.elements_,s=this.priorities_,f=c[0];1==c.length?(c.length=0,s.length=0):(c[0]=c.pop(),s[0]=s.pop(),this.siftUp_(0));const n=this.keyFunction_(f);return delete this.queuedElements_[n],f}enqueue(c){(0,D.h)(!(this.keyFunction_(c)in this.queuedElements_),31);const s=this.priorityFunction_(c);return s!=z&&(this.elements_.push(c),this.priorities_.push(s),this.queuedElements_[this.keyFunction_(c)]=!0,this.siftDown_(0,this.elements_.length-1),!0)}getCount(){return this.elements_.length}getLeftChildIndex_(c){return 2*c+1}getRightChildIndex_(c){return 2*c+2}getParentIndex_(c){return c-1>>1}heapify_(){let c;for(c=(this.elements_.length>>1)-1;c>=0;c--)this.siftUp_(c)}isEmpty(){return 0===this.elements_.length}isKeyQueued(c){return c in this.queuedElements_}isQueued(c){return this.isKeyQueued(this.keyFunction_(c))}siftUp_(c){const s=this.elements_,f=this.priorities_,n=s.length,h=s[c],g=f[c],e=c;for(;c>1;){const E=this.getLeftChildIndex_(c),v=this.getRightChildIndex_(c),x=vc;){const e=this.getParentIndex_(s);if(!(n[e]>g))break;f[s]=f[e],n[s]=n[e],s=e}f[s]=h,n[s]=g}reprioritize(){const c=this.priorityFunction_,s=this.elements_,f=this.priorities_;let n=0;const h=s.length;let g,e,E;for(e=0;e0;)h=this.dequeue()[0],g=h.getKey(),n=h.getState(),n===S.Z.IDLE&&!(g in this.tilesLoadingKeys_)&&(this.tilesLoadingKeys_[g]=!0,++this.tilesLoading_,++f,h.load())}};function d(u,c,s,f,n){if(!u||!(s in u.wantedTiles)||!u.wantedTiles[s][c.getKey()])return z;const h=u.viewState.center,g=f[0]-h[0],e=f[1]-h[1];return 65536*Math.log(n)+Math.sqrt(g*g+e*e)/n}},828:(Bt,ot,a)=>{"use strict";a.d(ot,{T:()=>D,Z:()=>k});class G{constructor(U,I,S,P){this.minX=U,this.maxX=I,this.minY=S,this.maxY=P}contains(U){return this.containsXY(U[1],U[2])}containsTileRange(U){return this.minX<=U.minX&&U.maxX<=this.maxX&&this.minY<=U.minY&&U.maxY<=this.maxY}containsXY(U,I){return this.minX<=U&&U<=this.maxX&&this.minY<=I&&I<=this.maxY}equals(U){return this.minX==U.minX&&this.minY==U.minY&&this.maxX==U.maxX&&this.maxY==U.maxY}extend(U){U.minXthis.maxX&&(this.maxX=U.maxX),U.minYthis.maxY&&(this.maxY=U.maxY)}getHeight(){return this.maxY-this.minY+1}getSize(){return[this.getWidth(),this.getHeight()]}getWidth(){return this.maxX-this.minX+1}intersects(U){return this.minX<=U.maxX&&this.maxX>=U.minX&&this.minY<=U.maxY&&this.maxY>=U.minY}}function D(z,U,I,S,P){return void 0!==P?(P.minX=z,P.maxX=U,P.minY=I,P.maxY=S,P):new G(z,U,I,S)}const k=G},4700:(Bt,ot,a)=>{"use strict";a.d(ot,{Z:()=>G});const G={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},5109:(Bt,ot,a)=>{"use strict";a.d(ot,{ZP:()=>L});var G=a(4115),D=a(9500),k=a(1266),z=a(2258),U=a(9015),I=a(1334),S=a(5415),P=a(992),p=a(4331);function d(b,M,C){return function(N,H,it,Y,st){if(!N)return;if(!H&&!M)return N;const ht=M?0:it[0]*H,Tt=M?0:it[1]*H,vt=st?st[0]:0,Ct=st?st[1]:0;let bt=b[0]+ht/2+vt,Gt=b[2]-ht/2+vt,kt=b[1]+Tt/2+Ct,ie=b[3]-Tt/2+Ct;bt>Gt&&(bt=(Gt+bt)/2,Gt=bt),kt>ie&&(kt=(ie+kt)/2,ie=kt);let zt=(0,p.uZ)(N[0],bt,Gt),ue=(0,p.uZ)(N[1],kt,ie);if(Y&&C&&H){const de=30*H;zt+=-de*Math.log(1+Math.max(0,bt-N[0])/de)+de*Math.log(1+Math.max(0,N[0]-Gt)/de),ue+=-de*Math.log(1+Math.max(0,kt-N[1])/de)+de*Math.log(1+Math.max(0,N[1]-ie)/de)}return[zt,ue]}}function u(b){return b}var c=a(9543),s=a(142);function f(b,M,C,N){const H=(0,c.dz)(M)/C[0],it=(0,c.Cr)(M)/C[1];return N?Math.min(b,Math.max(H,it)):Math.min(b,Math.min(H,it))}function n(b,M,C){let N=Math.min(b,M);return N*=Math.log(1+50*Math.max(0,b/M-1))/50+1,C&&(N=Math.max(N,C),N/=Math.log(1+50*Math.max(0,C/b-1))/50+1),(0,p.uZ)(N,C/2,2*M)}function e(b,M,C,N,H){return C=void 0===C||C,function(it,Y,st,ht){if(void 0!==it){const Tt=N?f(b,N,st,H):b;return C&&ht?n(it,Tt,M):(0,p.uZ)(it,M,Tt)}}}var E=a(7011),v=a(4720),x=a(7464);function y(b,M){setTimeout(function(){b(M)},0)}function A(b,M,C,N,H){const it=Math.cos(-H);let Y=Math.sin(-H),st=b[0]*it-b[1]*Y,ht=b[1]*it+b[0]*Y;return st+=(M[0]/2-C[0])*N,ht+=(C[1]-M[1]/2)*N,Y=-Y,[st*it-ht*Y,ht*it+st*Y]}const L=class O extends G.Z{constructor(M){super(),M=Object.assign({},M),this.hints_=[0,0],this.animations_=[],this.projection_=(0,U.UQ)(M.projection,"EPSG:3857"),this.viewportSize_=[100,100],this.targetCenter_=null,this.nextCenter_=null,this.cancelAnchor_=void 0,M.projection&&(0,U.h_)(),M.center&&(M.center=(0,U.Vs)(M.center,this.projection_)),M.extent&&(M.extent=(0,U.dY)(M.extent,this.projection_)),this.applyOptions_(M)}applyOptions_(M){const C=Object.assign({},M);for(const st in k.Z)delete C[st];this.setProperties(C,!0);const N=function W(b){let M,C,N,Y=void 0!==b.minZoom?b.minZoom:0,st=void 0!==b.maxZoom?b.maxZoom:28;const ht=void 0!==b.zoomFactor?b.zoomFactor:2,Tt=void 0!==b.multiWorld&&b.multiWorld,vt=void 0===b.smoothResolutionConstraint||b.smoothResolutionConstraint,Ct=void 0!==b.showFullExtent&&b.showFullExtent,bt=(0,U.UQ)(b.projection,"EPSG:3857"),Gt=bt.getExtent();let kt=b.constrainOnlyCenter,ie=b.extent;if(!Tt&&!ie&&bt.isGlobal()&&(kt=!1,ie=Gt),void 0!==b.resolutions){const zt=b.resolutions;C=zt[Y],N=void 0!==zt[st]?zt[st]:zt[zt.length-1],M=b.constrainResolution?function h(b,M,C,N){return M=void 0===M||M,function(H,it,Y,st){if(void 0!==H){const ht=b[0],Tt=b[b.length-1],vt=C?f(ht,C,Y,N):ht;if(st)return M?n(H,vt,Tt):(0,p.uZ)(H,Tt,vt);const Ct=Math.min(vt,H),bt=Math.floor((0,s.h7)(b,Ct,it));return b[bt]>vt&&bt1&&"function"==typeof arguments[C-1]&&(N=arguments[C-1],--C);let H=0;for(;H0}getInteracting(){return this.hints_[D.Z.INTERACTING]>0}cancelAnimations(){let M;this.setHint(D.Z.ANIMATING,-this.hints_[D.Z.ANIMATING]);for(let C=0,N=this.animations_.length;C=0;--N){const H=this.animations_[N];let it=!0;for(let Y=0,st=H.length;Y0?Tt/ht.duration:1;vt>=1?(ht.complete=!0,vt=1):it=!1;const Ct=ht.easing(vt);if(ht.sourceCenter){const bt=ht.sourceCenter[0],Gt=ht.sourceCenter[1],kt=ht.targetCenter[0],ie=ht.targetCenter[1];this.nextCenter_=ht.targetCenter,this.targetCenter_=[bt+Ct*(kt-bt),Gt+Ct*(ie-Gt)]}if(ht.sourceResolution&&ht.targetResolution){const bt=1===Ct?ht.targetResolution:ht.sourceResolution+Ct*(ht.targetResolution-ht.sourceResolution);if(ht.anchor){const Gt=this.getViewportSize_(this.getRotation()),kt=this.constraints_.resolution(bt,0,Gt,!0);this.targetCenter_=this.calculateCenterZoom(kt,ht.anchor)}this.nextResolution_=ht.targetResolution,this.targetResolution_=bt,this.applyTargetState_(!0)}if(void 0!==ht.sourceRotation&&void 0!==ht.targetRotation){const bt=1===Ct?(0,p.$W)(ht.targetRotation+Math.PI,2*Math.PI)-Math.PI:ht.sourceRotation+Ct*(ht.targetRotation-ht.sourceRotation);if(ht.anchor){const Gt=this.constraints_.rotation(bt,!0);this.targetCenter_=this.calculateCenterRotate(Gt,ht.anchor)}this.nextRotation_=ht.targetRotation,this.targetRotation_=bt}if(this.applyTargetState_(!0),C=!0,!ht.complete)break}if(it){this.animations_[N]=null,this.setHint(D.Z.ANIMATING,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;const Y=H[0].callback;Y&&y(Y,!0)}}this.animations_=this.animations_.filter(Boolean),C&&void 0===this.updateAnimationKey_&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}calculateCenterRotate(M,C){let N;const H=this.getCenterInternal();return void 0!==H&&(N=[H[0]-C[0],H[1]-C[1]],(0,S.U1)(N,M-this.getRotation()),(0,S.IH)(N,C)),N}calculateCenterZoom(M,C){let N;const H=this.getCenterInternal(),it=this.getResolution();return void 0!==H&&void 0!==it&&(N=[C[0]-M*(C[0]-H[0])/it,C[1]-M*(C[1]-H[1])/it]),N}getViewportSize_(M){const C=this.viewportSize_;if(M){const N=C[0],H=C[1];return[Math.abs(N*Math.cos(M))+Math.abs(H*Math.sin(M)),Math.abs(N*Math.sin(M))+Math.abs(H*Math.cos(M))]}return C}setViewportSize(M){this.viewportSize_=Array.isArray(M)?M.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)}getCenter(){const M=this.getCenterInternal();return M&&(0,U.lO)(M,this.getProjection())}getCenterInternal(){return this.get(k.Z.CENTER)}getConstraints(){return this.constraints_}getConstrainResolution(){return this.get("constrainResolution")}getHints(M){return void 0!==M?(M[0]=this.hints_[0],M[1]=this.hints_[1],M):this.hints_.slice()}calculateExtent(M){const C=this.calculateExtentInternal(M);return(0,U.Fj)(C,this.getProjection())}calculateExtentInternal(M){M=M||this.getViewportSizeMinusPadding_();const C=this.getCenterInternal();(0,P.h)(C,1);const N=this.getResolution();(0,P.h)(void 0!==N,2);const H=this.getRotation();return(0,P.h)(void 0!==H,3),(0,c.p8)(C,N,H,M)}getMaxResolution(){return this.maxResolution_}getMinResolution(){return this.minResolution_}getMaxZoom(){return this.getZoomForResolution(this.minResolution_)}setMaxZoom(M){this.applyOptions_(this.getUpdatedOptions_({maxZoom:M}))}getMinZoom(){return this.getZoomForResolution(this.maxResolution_)}setMinZoom(M){this.applyOptions_(this.getUpdatedOptions_({minZoom:M}))}setConstrainResolution(M){this.applyOptions_(this.getUpdatedOptions_({constrainResolution:M}))}getProjection(){return this.projection_}getResolution(){return this.get(k.Z.RESOLUTION)}getResolutions(){return this.resolutions_}getResolutionForExtent(M,C){return this.getResolutionForExtentInternal((0,U.dY)(M,this.getProjection()),C)}getResolutionForExtentInternal(M,C){C=C||this.getViewportSizeMinusPadding_();const N=(0,c.dz)(M)/C[0],H=(0,c.Cr)(M)/C[1];return Math.max(N,H)}getResolutionForValueFunction(M){M=M||2;const C=this.getConstrainedResolution(this.maxResolution_),H=Math.log(C/this.minResolution_)/Math.log(M);return function(it){return C/Math.pow(M,it*H)}}getRotation(){return this.get(k.Z.ROTATION)}getValueForResolutionFunction(M){const C=Math.log(M||2),N=this.getConstrainedResolution(this.maxResolution_),it=Math.log(N/this.minResolution_)/C;return function(Y){return Math.log(N/Y)/C/it}}getViewportSizeMinusPadding_(M){let C=this.getViewportSize_(M);const N=this.padding_;return N&&(C=[C[0]-N[1]-N[3],C[1]-N[0]-N[2]]),C}getState(){const M=this.getProjection(),C=this.getResolution(),N=this.getRotation();let H=this.getCenterInternal();const it=this.padding_;if(it){const Y=this.getViewportSizeMinusPadding_();H=A(H,this.getViewportSize_(),[Y[0]/2+it[3],Y[1]/2+it[0]],C,N)}return{center:H.slice(0),projection:void 0!==M?M:null,resolution:C,nextCenter:this.nextCenter_,nextResolution:this.nextResolution_,nextRotation:this.nextRotation_,rotation:N,zoom:this.getZoom()}}getViewStateAndExtent(){return{viewState:this.getState(),extent:this.calculateExtent()}}getZoom(){let M;const C=this.getResolution();return void 0!==C&&(M=this.getZoomForResolution(C)),M}getZoomForResolution(M){let N,H,C=this.minZoom_||0;if(this.resolutions_){const it=(0,s.h7)(this.resolutions_,M,1);C=it,N=this.resolutions_[it],H=it==this.resolutions_.length-1?2:N/this.resolutions_[it+1]}else N=this.maxResolution_,H=this.zoomFactor_;return C+Math.log(N/M)/Math.log(H)}getResolutionForZoom(M){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;const C=(0,p.uZ)(Math.floor(M),0,this.resolutions_.length-2);return this.resolutions_[C]/Math.pow(this.resolutions_[C]/this.resolutions_[C+1],(0,p.uZ)(M-C,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,M-this.minZoom_)}fit(M,C){let N;if((0,P.h)(Array.isArray(M)||"function"==typeof M.getSimplifiedGeometry,24),Array.isArray(M)){(0,P.h)(!(0,c.xb)(M),25);const H=(0,U.dY)(M,this.getProjection());N=(0,x.oJ)(H)}else if("Circle"===M.getType()){const H=(0,U.dY)(M.getExtent(),this.getProjection());N=(0,x.oJ)(H),N.rotate(this.getRotation(),(0,c.qg)(H))}else{const H=(0,U.Cs)();N=H?M.clone().transform(H,this.getProjection()):M}this.fitInternal(N,C)}rotatedExtentForGeometry(M){const C=this.getRotation(),N=Math.cos(C),H=Math.sin(-C),it=M.getFlatCoordinates(),Y=M.getStride();let st=1/0,ht=1/0,Tt=-1/0,vt=-1/0;for(let Ct=0,bt=it.length;Ct{"use strict";a.d(ot,{Z:()=>G});const G={ANIMATING:0,INTERACTING:1}},1266:(Bt,ot,a)=>{"use strict";a.d(ot,{Z:()=>G});const G={CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"}},142:(Bt,ot,a)=>{"use strict";function G(d,u,c){let s,f;c=c||D;let n=0,h=d.length,g=!1;for(;n>1),f=+c(d[s],u),f<0?n=s+1:(h=s,g=!f);return g?n:~n}function D(d,u){return d>u?1:d0){for(f=1;f0?f-1:f:d[f-1]-u0||c&&0===h)})}a.d(ot,{FZ:()=>z,fS:()=>S,h7:()=>k,j2:()=>D,l7:()=>U,pT:()=>p,ry:()=>G})},992:(Bt,ot,a)=>{"use strict";a.d(ot,{h:()=>D});var G=a(1955);function D(k,z){if(!k)throw new G.Z(z)}},866:(Bt,ot,a)=>{"use strict";a.d(ot,{BB:()=>u,XC:()=>U,_2:()=>P});var G=a(992),D=a(4331);const k=/^#([a-f0-9]{3}|[a-f0-9]{4}(?:[a-f0-9]{2}){0,2})$/i,z=/^([a-z]*)$|^hsla?\(.*\)$/i;function U(s){return"string"==typeof s?s:u(s)}const S=function(){const f={};let n=0;return function(h){let g;if(f.hasOwnProperty(h))g=f[h];else{if(n>=1024){let e=0;for(const E in f)0==(3&e++)&&(delete f[E],--n)}g=function p(s){let f,n,h,g,e;if(z.exec(s)&&(s=function I(s){const f=document.createElement("div");if(f.style.color=s,""!==f.style.color){document.body.appendChild(f);const n=getComputedStyle(f).color;return document.body.removeChild(f),n}return""}(s)),k.exec(s)){const E=s.length-1;let v;v=E<=4?1:2;const x=4===E||8===E;f=parseInt(s.substr(1+0*v,v),16),n=parseInt(s.substr(1+1*v,v),16),h=parseInt(s.substr(1+2*v,v),16),g=x?parseInt(s.substr(1+3*v,v),16):255,1==v&&(f=(f<<4)+f,n=(n<<4)+n,h=(h<<4)+h,x&&(g=(g<<4)+g)),e=[f,n,h,g/255]}else s.startsWith("rgba(")?(e=s.slice(5,-1).split(",").map(Number),d(e)):s.startsWith("rgb(")?(e=s.slice(4,-1).split(",").map(Number),e.push(1),d(e)):(0,G.h)(!1,14);return e}(h),f[h]=g,++n}return g}}();function P(s){return Array.isArray(s)?s:S(s)}function d(s){return s[0]=(0,D.uZ)(s[0]+.5|0,0,255),s[1]=(0,D.uZ)(s[1]+.5|0,0,255),s[2]=(0,D.uZ)(s[2]+.5|0,0,255),s[3]=(0,D.uZ)(s[3],0,1),s}function u(s){let f=s[0];f!=(0|f)&&(f=f+.5|0);let n=s[1];n!=(0|n)&&(n=n+.5|0);let h=s[2];return h!=(0|h)&&(h=h+.5|0),"rgba("+f+","+n+","+h+","+(void 0===s[3]?1:Math.round(100*s[3])/100)+")"}},4890:(Bt,ot,a)=>{"use strict";a.d(ot,{y:()=>D});var G=a(866);function D(k){return Array.isArray(k)?(0,G.BB)(k):k}},246:(Bt,ot,a)=>{"use strict";a.d(ot,{ZK:()=>U});const G_warn=2;let D=1;function U(...S){D>G_warn||console.warn(...S)}},9633:(Bt,ot,a)=>{"use strict";a.d(ot,{Z:()=>S});var G=a(6581),D=a(3044),k=a(1119),z=a(142),U=a(3842);const S=class I extends G.Z{constructor(p){p=p||{},super({element:document.createElement("div"),render:p.render,target:p.target}),this.ulElement_=document.createElement("ul"),this.collapsed_=void 0===p.collapsed||p.collapsed,this.userCollapsed_=this.collapsed_,this.overrideCollapsible_=void 0!==p.collapsible,this.collapsible_=void 0===p.collapsible||p.collapsible,this.collapsible_||(this.collapsed_=!1);const d=void 0!==p.className?p.className:"ol-attribution",u=void 0!==p.tipLabel?p.tipLabel:"Attributions",c=void 0!==p.expandClassName?p.expandClassName:d+"-expand",s=void 0!==p.collapseLabel?p.collapseLabel:"\u203a",f=void 0!==p.collapseClassName?p.collapseClassName:d+"-collapse";"string"==typeof s?(this.collapseLabel_=document.createElement("span"),this.collapseLabel_.textContent=s,this.collapseLabel_.className=f):this.collapseLabel_=s;const n=void 0!==p.label?p.label:"i";"string"==typeof n?(this.label_=document.createElement("span"),this.label_.textContent=n,this.label_.className=c):this.label_=n;const h=this.collapsible_&&!this.collapsed_?this.collapseLabel_:this.label_;this.toggleButton_=document.createElement("button"),this.toggleButton_.setAttribute("type","button"),this.toggleButton_.setAttribute("aria-expanded",String(!this.collapsed_)),this.toggleButton_.title=u,this.toggleButton_.appendChild(h),this.toggleButton_.addEventListener(D.Z.CLICK,this.handleClick_.bind(this),!1);const e=this.element;e.className=d+" "+k.XV+" "+k.hg+(this.collapsed_&&this.collapsible_?" "+k.hN:"")+(this.collapsible_?"":" ol-uncollapsible"),e.appendChild(this.toggleButton_),e.appendChild(this.ulElement_),this.renderedAttributions_=[],this.renderedVisible_=!0}collectSourceAttributions_(p){const d=Array.from(new Set(this.getMap().getAllLayers().flatMap(c=>c.getAttributions(p)))),u=!this.getMap().getAllLayers().some(c=>c.getSource()&&!1===c.getSource().getAttributionsCollapsible());return this.overrideCollapsible_||this.setCollapsible(u),d}updateElement_(p){if(!p)return void(this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1));const d=this.collectSourceAttributions_(p),u=d.length>0;if(this.renderedVisible_!=u&&(this.element.style.display=u?"":"none",this.renderedVisible_=u),!(0,z.fS)(d,this.renderedAttributions_)){(0,U.ep)(this.ulElement_);for(let c=0,s=d.length;c{"use strict";a.d(ot,{Z:()=>S});var G=a(4115),D=a(9806),k=a(1334),z=a(2716),U=a(3842);const S=class I extends G.Z{constructor(p){super();const d=p.element;d&&!p.target&&!d.style.pointerEvents&&(d.style.pointerEvents="auto"),this.element=d||null,this.target_=null,this.map_=null,this.listenerKeys=[],p.render&&(this.render=p.render),p.target&&this.setTarget(p.target)}disposeInternal(){(0,U.ZF)(this.element),super.disposeInternal()}getMap(){return this.map_}setMap(p){this.map_&&(0,U.ZF)(this.element);for(let d=0,u=this.listenerKeys.length;d{"use strict";a.d(ot,{Z:()=>I});var G=a(6581),D=a(3044),k=a(1119),z=a(4720);const I=class U extends G.Z{constructor(P){P=P||{},super({element:document.createElement("div"),render:P.render,target:P.target});const p=void 0!==P.className?P.className:"ol-rotate",d=void 0!==P.label?P.label:"\u21e7",u=void 0!==P.compassClassName?P.compassClassName:"ol-compass";this.label_=null,"string"==typeof d?(this.label_=document.createElement("span"),this.label_.className=u,this.label_.textContent=d):(this.label_=d,this.label_.classList.add(u));const c=P.tipLabel?P.tipLabel:"Reset rotation",s=document.createElement("button");s.className=p+"-reset",s.setAttribute("type","button"),s.title=c,s.appendChild(this.label_),s.addEventListener(D.Z.CLICK,this.handleClick_.bind(this),!1);const n=this.element;n.className=p+" "+k.XV+" "+k.hg,n.appendChild(s),this.callResetNorth_=P.resetNorth?P.resetNorth:void 0,this.duration_=void 0!==P.duration?P.duration:250,this.autoHide_=void 0===P.autoHide||P.autoHide,this.rotation_=void 0,this.autoHide_&&this.element.classList.add(k.oj)}handleClick_(P){P.preventDefault(),void 0!==this.callResetNorth_?this.callResetNorth_():this.resetNorth_()}resetNorth_(){const p=this.getMap().getView();if(!p)return;const d=p.getRotation();void 0!==d&&(this.duration_>0&&d%(2*Math.PI)!=0?p.animate({rotation:0,duration:this.duration_,easing:z.Vv}):p.setRotation(0))}render(P){const p=P.frameState;if(!p)return;const d=p.viewState.rotation;if(d!=this.rotation_){const u="rotate("+d+"rad)";if(this.autoHide_){const c=this.element.classList.contains(k.oj);c||0!==d?c&&0!==d&&this.element.classList.remove(k.oj):this.element.classList.add(k.oj)}this.label_.style.transform=u}this.rotation_=d}}},1014:(Bt,ot,a)=>{"use strict";a.d(ot,{Z:()=>I});var G=a(6581),D=a(3044),k=a(1119),z=a(4720);const I=class U extends G.Z{constructor(P){P=P||{},super({element:document.createElement("div"),target:P.target});const p=void 0!==P.className?P.className:"ol-zoom",d=void 0!==P.delta?P.delta:1,u=void 0!==P.zoomInClassName?P.zoomInClassName:p+"-in",c=void 0!==P.zoomOutClassName?P.zoomOutClassName:p+"-out",s=void 0!==P.zoomInLabel?P.zoomInLabel:"+",f=void 0!==P.zoomOutLabel?P.zoomOutLabel:"\u2013",n=void 0!==P.zoomInTipLabel?P.zoomInTipLabel:"Zoom in",h=void 0!==P.zoomOutTipLabel?P.zoomOutTipLabel:"Zoom out",g=document.createElement("button");g.className=u,g.setAttribute("type","button"),g.title=n,g.appendChild("string"==typeof s?document.createTextNode(s):s),g.addEventListener(D.Z.CLICK,this.handleClick_.bind(this,d),!1);const e=document.createElement("button");e.className=c,e.setAttribute("type","button"),e.title=h,e.appendChild("string"==typeof f?document.createTextNode(f):f),e.addEventListener(D.Z.CLICK,this.handleClick_.bind(this,-d),!1);const v=this.element;v.className=p+" "+k.XV+" "+k.hg,v.appendChild(g),v.appendChild(e),this.duration_=void 0!==P.duration?P.duration:250}handleClick_(P,p){p.preventDefault(),this.zoomByDelta_(P)}zoomByDelta_(P){const d=this.getMap().getView();if(!d)return;const u=d.getZoom();if(void 0!==u){const c=d.getConstrainedZoom(u+P);this.duration_>0?(d.getAnimating()&&d.cancelAnimations(),d.animate({zoom:c,duration:this.duration_,easing:z.Vv})):d.setZoom(c)}}}},5415:(Bt,ot,a)=>{"use strict";a.d(ot,{Cf:()=>e,I8:()=>P,IH:()=>z,U1:()=>u,bA:()=>c,fS:()=>d,jk:()=>E,yZ:()=>g});var G=a(9543),D=a(4331),k=a(7531);function z(v,x){return v[0]+=+x[0],v[1]+=+x[1],v}function P(v,x,w){const O=(0,D.$W)(x+180,360)-180,y=Math.abs(3600*O),R=w||0;let W=Math.floor(y/3600),K=Math.floor((y-3600*W)/60),nt=(0,D.FH)(y-3600*W-60*K,R);nt>=60&&(nt=0,K+=1),K>=60&&(K=0,W+=1);let A=W+"\xb0";return(0!==K||0!==nt)&&(A+=" "+(0,k.v)(K,2)+"\u2032"),0!==nt&&(A+=" "+(0,k.v)(nt,2,R)+"\u2033"),0!==O&&(A+=" "+v.charAt(O<0?1:0)),A}function d(v,x){let w=!0;for(let O=v.length-1;O>=0;--O)if(v[O]!=x[O]){w=!1;break}return w}function u(v,x){const w=Math.cos(x),O=Math.sin(x),R=v[1]*w+v[0]*O;return v[0]=v[0]*w-v[1]*O,v[1]=R,v}function c(v,x){return v[0]*=x,v[1]*=x,v}function g(v,x){return function p(v,x,w){return v?x.replace("{x}",v[0].toFixed(w)).replace("{y}",v[1].toFixed(w)):""}(v,"{x}, {y}",x)}function e(v,x){if(x.canWrapX()){const w=(0,G.dz)(x.getExtent()),O=E(v,x,w);O&&(v[0]-=O*w)}return v}function E(v,x,w){const O=x.getExtent();let y=0;return x.canWrapX()&&(v[0]O[2])&&(w=w||(0,G.dz)(O),y=Math.floor((v[0]-O[0])/w)),y}},1119:(Bt,ot,a)=>{"use strict";a.d(ot,{$A:()=>D,Qi:()=>z,XV:()=>k,hN:()=>I,hg:()=>U,oj:()=>G,p:()=>p});const G="ol-hidden",D="ol-selectable",k="ol-unselectable",z="ol-unsupported",U="ol-control",I="ol-collapsed",S=new RegExp(["^\\s*(?=(?:(?:[-a-z]+\\s*){0,2}(italic|oblique))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(small-caps))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(bold(?:er)?|lighter|[1-9]00 ))?)","(?:(?:normal|\\1|\\2|\\3)\\s*){0,3}((?:xx?-)?","(?:small|large)|medium|smaller|larger|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx]))","(?:\\s*\\/\\s*(normal|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx])?))","?\\s*([-,\\\"\\'\\sa-z]+?)\\s*$"].join(""),"i"),P=["style","variant","weight","size","lineHeight","family"],p=function(d){const u=d.match(S);if(!u)return null;const c={lineHeight:"normal",size:"1.2em",style:"normal",weight:"normal",variant:"normal"};for(let s=0,f=P.length;s{"use strict";a.d(ot,{$H:()=>I,E4:()=>D,Pb:()=>U,ZF:()=>S,ep:()=>P,hF:()=>p,iO:()=>z,jy:()=>k});var G=a(5063);function D(d,u,c,s){let f;return f=c&&c.length?c.shift():G.Id?new OffscreenCanvas(d||300,u||300):document.createElement("canvas"),d&&(f.width=d),u&&(f.height=u),f.getContext("2d",s)}function k(d){const u=d.canvas;u.width=1,u.height=1,d.clearRect(0,0,1,1)}function z(d){let u=d.offsetWidth;const c=getComputedStyle(d);return u+=parseInt(c.marginLeft,10)+parseInt(c.marginRight,10),u}function U(d){let u=d.offsetHeight;const c=getComputedStyle(d);return u+=parseInt(c.marginTop,10)+parseInt(c.marginBottom,10),u}function I(d,u){const c=u.parentNode;c&&c.replaceChild(d,u)}function S(d){return d&&d.parentNode?d.parentNode.removeChild(d):null}function P(d){for(;d.lastChild;)d.removeChild(d.lastChild)}function p(d,u){const c=d.childNodes;for(let s=0;;++s){const f=c[s],n=u[s];if(!f&&!n)break;if(f!==n){if(!f){d.appendChild(n);continue}if(!n){d.removeChild(f),--s;continue}d.insertBefore(n,f)}}}},4720:(Bt,ot,a)=>{"use strict";function G(I){return Math.pow(I,3)}function D(I){return 1-G(1-I)}function k(I){return 3*I*I-2*I*I*I}function z(I){return I}a.d(ot,{GE:()=>z,Vv:()=>D,YQ:()=>G,rd:()=>k})},2716:(Bt,ot,a)=>{"use strict";a.d(ot,{Vx:()=>k,bN:()=>z,oL:()=>D});var G=a(9306);function D(U,I,S,P,p){if(P&&P!==U&&(S=S.bind(P)),p){const u=S;S=function(){U.removeEventListener(I,S),u.apply(this,arguments)}}const d={target:U,type:I,listener:S};return U.addEventListener(I,S),d}function k(U,I,S,P){return D(U,I,S,P,!0)}function z(U){U&&U.target&&(U.target.removeEventListener(U.type,U.listener),(0,G.Z)(U))}},3615:(Bt,ot,a)=>{"use strict";a.d(ot,{ZP:()=>z});const z=class G{constructor(I){this.type=I,this.target=null}preventDefault(){this.defaultPrevented=!0}stopPropagation(){this.propagationStopped=!0}}},3044:(Bt,ot,a)=>{"use strict";a.d(ot,{Z:()=>G});const G={CHANGE:"change",ERROR:"error",BLUR:"blur",CLEAR:"clear",CONTEXTMENU:"contextmenu",CLICK:"click",DBLCLICK:"dblclick",DRAGENTER:"dragenter",DRAGOVER:"dragover",DROP:"drop",FOCUS:"focus",KEYDOWN:"keydown",KEYPRESS:"keypress",LOAD:"load",RESIZE:"resize",TOUCHMOVE:"touchmove",WHEEL:"wheel"}},1398:(Bt,ot,a)=>{"use strict";a.d(ot,{Z:()=>I});var G=a(6450),D=a(3615),k=a(1334),z=a(9306);const I=class U extends G.Z{constructor(P){super(),this.eventTarget_=P,this.pendingRemovals_=null,this.dispatching_=null,this.listeners_=null}addEventListener(P,p){if(!P||!p)return;const d=this.listeners_||(this.listeners_={}),u=d[P]||(d[P]=[]);u.includes(p)||u.push(p)}dispatchEvent(P){const p="string"==typeof P,d=p?P:P.type,u=this.listeners_&&this.listeners_[d];if(!u)return;const c=p?new D.ZP(P):P;c.target||(c.target=this.eventTarget_||this);const s=this.dispatching_||(this.dispatching_={}),f=this.pendingRemovals_||(this.pendingRemovals_={});let n;d in s||(s[d]=0,f[d]=0),++s[d];for(let h=0,g=u.length;h0)}removeEventListener(P,p){const d=this.listeners_&&this.listeners_[P];if(d){const u=d.indexOf(p);-1!==u&&(this.pendingRemovals_&&P in this.pendingRemovals_?(d[u]=k.Zn,++this.pendingRemovals_[P]):(d.splice(u,1),0===d.length&&delete this.listeners_[P]))}}}},7963:(Bt,ot,a)=>{"use strict";a.d(ot,{$6:()=>z,Bx:()=>p,QL:()=>v,TN:()=>E,Xp:()=>O,aj:()=>I,rM:()=>h,v8:()=>u,vY:()=>e,yZ:()=>P});var G=a(1334),D=a(5063),k=a(992);function z(y){const R=arguments;return function(W){let K=!0;for(let nt=0,A=R.length;nt{"use strict";a.d(ot,{Cf:()=>ce,Cr:()=>it,EO:()=>ie,Ed:()=>st,GN:()=>g,H6:()=>K,H9:()=>zt,HK:()=>n,I7:()=>ue,MV:()=>Se,Ne:()=>de,T9:()=>s,Wj:()=>w,Xv:()=>Ct,YN:()=>f,b8:()=>P,bg:()=>nt,d9:()=>I,dY:()=>H,dz:()=>bt,f3:()=>U,fS:()=>E,g0:()=>M,hC:()=>A,hI:()=>k,iW:()=>v,jE:()=>d,kK:()=>Gt,l7:()=>x,lJ:()=>c,p8:()=>N,pX:()=>u,qP:()=>y,qf:()=>S,qg:()=>b,r4:()=>p,rL:()=>vt,w$:()=>L,xb:()=>kt});var G=a(8326),D=a(992);function k(dt){const Ot=[1/0,1/0,-1/0,-1/0];for(let At=0,Yt=dt.length;Atdt[2]&&(Zt|=G.Z.RIGHT),Mtdt[3]&&(Zt|=G.Z.ABOVE),Zt===G.Z.UNKNOWN&&(Zt=G.Z.INTERSECTING),Zt}function c(){return[1/0,1/0,-1/0,-1/0]}function s(dt,Ot,At,Yt,ge){return ge?(ge[0]=dt,ge[1]=Ot,ge[2]=At,ge[3]=Yt,ge):[dt,Ot,At,Yt]}function f(dt){return s(1/0,1/0,-1/0,-1/0,dt)}function n(dt,Ot){const At=dt[0],Yt=dt[1];return s(At,Yt,At,Yt,Ot)}function g(dt,Ot,At,Yt,ge){return y(f(ge),dt,Ot,At,Yt)}function E(dt,Ot){return dt[0]==Ot[0]&&dt[2]==Ot[2]&&dt[1]==Ot[1]&&dt[3]==Ot[3]}function v(dt,Ot,At){return Math.abs(dt[0]-Ot[0])dt[2]&&(dt[2]=Ot[2]),Ot[1]dt[3]&&(dt[3]=Ot[3]),dt}function w(dt,Ot){Ot[0]dt[2]&&(dt[2]=Ot[0]),Ot[1]dt[3]&&(dt[3]=Ot[1])}function y(dt,Ot,At,Yt,ge){for(;AtOt[0]?dt[0]:Ot[0],Yt[1]=dt[1]>Ot[1]?dt[1]:Ot[1],Yt[2]=dt[2]=Ot[0]&&dt[1]<=Ot[3]&&dt[3]>=Ot[1]}function kt(dt){return dt[2]=gt&&It<=Zt),!Yt&&!!(qt&G.Z.RIGHT)&&!(ge&G.Z.RIGHT)&&(ct=Le-(_e-Zt)*Ze,Yt=ct>=Mt&&ct<=jt),!Yt&&!!(qt&G.Z.BELOW)&&!(ge&G.Z.BELOW)&&(It=_e-(Le-Mt)/Ze,Yt=It>=gt&&It<=Zt),!Yt&&qt&G.Z.LEFT&&!(ge&G.Z.LEFT)&&(ct=Le-(_e-gt)*Ze,Yt=ct>=Mt&&ct<=jt)}return Yt}function de(dt,Ot,At,Yt){let ge=[];if(Yt>1){const Mt=dt[2]-dt[0],Zt=dt[3]-dt[1];for(let jt=0;jt=At[2])){const ge=bt(At),gt=Math.floor((Yt[0]-At[0])/ge)*ge;dt[0]-=gt,dt[2]-=gt}return dt}function Se(dt,Ot){if(Ot.canWrapX()){const At=Ot.getExtent();if(!isFinite(dt[0])||!isFinite(dt[2]))return[[At[0],dt[1],At[2],dt[3]]];ce(dt,Ot);const Yt=bt(At);if(bt(dt)>Yt)return[[At[0],dt[1],At[2],dt[3]]];if(dt[0]At[2])return[[dt[0],dt[1],At[2],dt[3]],[At[0],dt[1],dt[2]-Yt,dt[3]]]}return[dt]}},8326:(Bt,ot,a)=>{"use strict";a.d(ot,{Z:()=>G});const G={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16}},75:(Bt,ot,a)=>{"use strict";a.d(ot,{Be:()=>z,ov:()=>k});var G=a(1334);function k(I,S,P,p,d,u,c){const s=new XMLHttpRequest;s.open("GET","function"==typeof I?I(P,p,d):I,!0),"arraybuffer"==S.getType()&&(s.responseType="arraybuffer"),s.withCredentials=false,s.onload=function(f){if(!s.status||s.status>=200&&s.status<300){const n=S.getType();let h;"json"==n||"text"==n?h=s.responseText:"xml"==n?(h=s.responseXML,h||(h=(new DOMParser).parseFromString(s.responseText,"application/xml"))):"arraybuffer"==n&&(h=s.response),h?u(S.readFeatures(h,{extent:P,featureProjection:d}),S.readProjection(h)):c()}else c()},s.onerror=c,s.send()}function z(I,S){return function(P,p,d,u,c){const s=this;k(I,S,P,p,d,function(f,n){s.addFeatures(f),void 0!==u&&u(f)},c||G.Zn)}}},1122:(Bt,ot,a)=>{"use strict";a.d(ot,{ZP:()=>z,fI:()=>U});var G=a(513),D=a(9015);const z=class k{constructor(){this.dataProjection=void 0,this.defaultFeatureProjection=void 0,this.supportedMediaTypes=null}getReadOptions(P,p){if(p){let d=p.dataProjection?(0,D.U2)(p.dataProjection):this.readProjection(P);p.extent&&d&&"tile-pixels"===d.getUnits()&&(d=(0,D.U2)(d),d.setWorldExtent(p.extent)),p={dataProjection:d,featureProjection:p.featureProjection}}return this.adaptOptions(p)}adaptOptions(P){return Object.assign({dataProjection:this.dataProjection,featureProjection:this.defaultFeatureProjection},P)}getType(){return(0,G.O3)()}readFeature(P,p){return(0,G.O3)()}readFeatures(P,p){return(0,G.O3)()}readGeometry(P,p){return(0,G.O3)()}readProjection(P){return(0,G.O3)()}writeFeature(P,p){return(0,G.O3)()}writeFeatures(P,p){return(0,G.O3)()}writeGeometry(P,p){return(0,G.O3)()}};function U(S,P,p){const d=p?(0,D.U2)(p.featureProjection):null,u=p?(0,D.U2)(p.dataProjection):null;let c;if(c=d&&u&&!(0,D.OP)(d,u)?(P?S.clone():S).transform(P?d:u,P?u:d):S,P&&p&&void 0!==p.decimals){const s=Math.pow(10,p.decimals),f=function(n){for(let h=0,g=n.length;h{"use strict";a.d(ot,{Z:()=>b});var G=a(3413),D=a(4505),k=a(7680),z=a(23),U=a(7090),I=a(1537),S=a(4034),P=a(7026),p=a(7464),d=a(992),u=a(9015),c=a(9306),s=a(1122);function n(M,C){if(!M)return null;let N;switch(M.type){case"Point":N=function g(M){return new P.Z(M.coordinates)}(M);break;case"LineString":N=function e(M){return new z.Z(M.coordinates)}(M);break;case"Polygon":N=function w(M){return new p.ZP(M.coordinates)}(M);break;case"MultiPoint":N=function v(M){return new I.Z(M.coordinates)}(M);break;case"MultiLineString":N=function E(M){return new U.Z(M.coordinates)}(M);break;case"MultiPolygon":N=function x(M){return new S.Z(M.coordinates)}(M);break;case"GeometryCollection":N=function h(M,C){const N=M.geometries.map(function(H){return n(H,C)});return new D.Z(N)}(M);break;default:throw new Error("Unsupported GeoJSON type: "+M.type)}return(0,s.fI)(N,!1,C)}function O(M,C){const N=(M=(0,s.fI)(M,!0,C)).getType();let H;switch(N){case"Point":H=function A(M,C){return{type:"Point",coordinates:M.getCoordinates()}}(M);break;case"LineString":H=function R(M,C){return{type:"LineString",coordinates:M.getCoordinates()}}(M);break;case"Polygon":H=function L(M,C){let N;return C&&(N=C.rightHanded),{type:"Polygon",coordinates:M.getCoordinates(N)}}(M,C);break;case"MultiPoint":H=function K(M,C){return{type:"MultiPoint",coordinates:M.getCoordinates()}}(M);break;case"MultiLineString":H=function W(M,C){return{type:"MultiLineString",coordinates:M.getCoordinates()}}(M);break;case"MultiPolygon":H=function nt(M,C){let N;return C&&(N=C.rightHanded),{type:"MultiPolygon",coordinates:M.getCoordinates(N)}}(M,C);break;case"GeometryCollection":H=function y(M,C){delete(C=Object.assign({},C)).featureProjection;const N=M.getGeometriesArray().map(function(H){return O(H,C)});return{type:"GeometryCollection",geometries:N}}(M,C);break;case"Circle":H={type:"GeometryCollection",geometries:[]};break;default:throw new Error("Unsupported geometry type: "+N)}return H}const b=class f extends k.Z{constructor(C){C=C||{},super(),this.dataProjection=(0,u.U2)(C.dataProjection?C.dataProjection:"EPSG:4326"),C.featureProjection&&(this.defaultFeatureProjection=(0,u.U2)(C.featureProjection)),this.geometryName_=C.geometryName,this.extractGeometryName_=C.extractGeometryName,this.supportedMediaTypes=["application/geo+json","application/vnd.geo+json"]}readFeatureFromObject(C,N){let H=null;H="Feature"===C.type?C:{type:"Feature",geometry:C,properties:null};const it=n(H.geometry,N),Y=new G.Z;return this.geometryName_?Y.setGeometryName(this.geometryName_):this.extractGeometryName_&&"geometry_name"in H!==void 0&&Y.setGeometryName(H.geometry_name),Y.setGeometry(it),"id"in H&&Y.setId(H.id),H.properties&&Y.setProperties(H.properties,!0),Y}readFeaturesFromObject(C,N){let it=null;if("FeatureCollection"===C.type){it=[];const st=C.features;for(let ht=0,Tt=st.length;ht{"use strict";a.d(ot,{Z:()=>U});var G=a(1122),D=a(513);function z(I){return"string"==typeof I?JSON.parse(I)||null:null!==I?I:null}const U=class k extends G.ZP{constructor(){super()}getType(){return"json"}readFeature(S,P){return this.readFeatureFromObject(z(S),this.getReadOptions(S,P))}readFeatures(S,P){return this.readFeaturesFromObject(z(S),this.getReadOptions(S,P))}readFeatureFromObject(S,P){return(0,D.O3)()}readFeaturesFromObject(S,P){return(0,D.O3)()}readGeometry(S,P){return this.readGeometryFromObject(z(S),this.getReadOptions(S,P))}readGeometryFromObject(S,P){return(0,D.O3)()}readProjection(S){return this.readProjectionFromObject(z(S))}readProjectionFromObject(S){return(0,D.O3)()}writeFeature(S,P){return JSON.stringify(this.writeFeatureObject(S,P))}writeFeatureObject(S,P){return(0,D.O3)()}writeFeatures(S,P){return JSON.stringify(this.writeFeaturesObject(S,P))}writeFeaturesObject(S,P){return(0,D.O3)()}writeGeometry(S,P){return JSON.stringify(this.writeGeometryObject(S,P))}writeGeometryObject(S,P){return(0,D.O3)()}}},4007:(Bt,ot,a)=>{"use strict";a.d(ot,{ZP:()=>Ys});var G=a(3413),D=a(694),k=a(4505),z=a(5999),U=a(1501),I=a(23),S=a(7090),P=a(1537),p=a(4034),d=a(7026),u=a(7464),c=a(5253),s=a(1786),f=a(8185),n=a(1122),h=a(513),g=a(142),e=a(8809);const v=class E extends n.ZP{constructor(){super(),this.xmlSerializer_=(0,e.xc)()}getType(){return"xml"}readFeature(at,ft){if(!at)return null;if("string"==typeof at){const yt=(0,e.Qc)(at);return this.readFeatureFromDocument(yt,ft)}return(0,e.qk)(at)?this.readFeatureFromDocument(at,ft):this.readFeatureFromNode(at,ft)}readFeatureFromDocument(at,ft){const yt=this.readFeaturesFromDocument(at,ft);return yt.length>0?yt[0]:null}readFeatureFromNode(at,ft){return null}readFeatures(at,ft){if(!at)return[];if("string"==typeof at){const yt=(0,e.Qc)(at);return this.readFeaturesFromDocument(yt,ft)}return(0,e.qk)(at)?this.readFeaturesFromDocument(at,ft):this.readFeaturesFromNode(at,ft)}readFeaturesFromDocument(at,ft){const yt=[];for(let wt=at.firstChild;wt;wt=wt.nextSibling)wt.nodeType==Node.ELEMENT_NODE&&(0,g.l7)(yt,this.readFeaturesFromNode(wt,ft));return yt}readFeaturesFromNode(at,ft){return(0,h.O3)()}readGeometry(at,ft){if(!at)return null;if("string"==typeof at){const yt=(0,e.Qc)(at);return this.readGeometryFromDocument(yt,ft)}return(0,e.qk)(at)?this.readGeometryFromDocument(at,ft):this.readGeometryFromNode(at,ft)}readGeometryFromDocument(at,ft){return null}readGeometryFromNode(at,ft){return null}readProjection(at){if(!at)return null;if("string"==typeof at){const ft=(0,e.Qc)(at);return this.readProjectionFromDocument(ft)}return(0,e.qk)(at)?this.readProjectionFromDocument(at):this.readProjectionFromNode(at)}readProjectionFromDocument(at){return this.dataProjection}readProjectionFromNode(at){return this.dataProjection}writeFeature(at,ft){const yt=this.writeFeatureNode(at,ft);return this.xmlSerializer_.serializeToString(yt)}writeFeatureNode(at,ft){return null}writeFeatures(at,ft){const yt=this.writeFeaturesNode(at,ft);return this.xmlSerializer_.serializeToString(yt)}writeFeaturesNode(at,ft){return null}writeGeometry(at,ft){const yt=this.writeGeometryNode(at,ft);return this.xmlSerializer_.serializeToString(yt)}writeGeometryNode(at,ft){return null}};var x=a(866),w=a(992),O=a(9015),y=a(52),R=a(4331);const W=["http://www.google.com/kml/ext/2.2"],K=[null,"http://earth.google.com/kml/2.0","http://earth.google.com/kml/2.1","http://earth.google.com/kml/2.2","http://www.opengis.net/kml/2.2"],A={fraction:"fraction",pixels:"pixels",insetPixels:"pixels"},L=(0,e.C5)(K,{ExtendedData:vi,Region:gi,MultiGeometry:(0,e.Pr)(Rt,"geometry"),LineString:(0,e.Pr)($,"geometry"),LinearRing:(0,e.Pr)(mt,"geometry"),Point:(0,e.Pr)(Ht,"geometry"),Polygon:(0,e.Pr)(me,"geometry"),Style:(0,e.Pr)(Re),StyleMap:function bi(Kt,at){const ft=Q.call(this,Kt,at);if(!ft)return;const yt=at[at.length-1];Array.isArray(ft)?yt.Style=ft:"string"==typeof ft?yt.styleUrl=ft:(0,w.h)(!1,38)},address:(0,e.Pr)(y.s2),description:(0,e.Pr)(y.s2),name:(0,e.Pr)(y.s2),open:(0,e.Pr)(y.ud),phoneNumber:(0,e.Pr)(y.s2),styleUrl:(0,e.Pr)(It),visibility:(0,e.Pr)(y.ud)},(0,e.C5)(W,{MultiTrack:(0,e.Pr)(function We(Kt,at){const ft=(0,e.O)([],Ye,Kt,at);if(ft)return new S.Z(ft)},"geometry"),Track:(0,e.Pr)(Ue,"geometry")})),b=(0,e.C5)(K,{ExtendedData:vi,Region:gi,Link:function Ws(Kt,at){(0,e.T3)(M,Kt,at)},address:(0,e.Pr)(y.s2),description:(0,e.Pr)(y.s2),name:(0,e.Pr)(y.s2),open:(0,e.Pr)(y.ud),phoneNumber:(0,e.Pr)(y.s2),visibility:(0,e.Pr)(y.ud)}),M=(0,e.C5)(K,{href:(0,e.Pr)(Ze)}),C=(0,e.C5)(K,{LatLonAltBox:function si(Kt,at){const ft=(0,e.O)({},_i,Kt,at);if(!ft)return;const yt=at[at.length-1],wt=[parseFloat(ft.west),parseFloat(ft.south),parseFloat(ft.east),parseFloat(ft.north)];yt.extent=wt,yt.altitudeMode=ft.altitudeMode,yt.minAltitude=parseFloat(ft.minAltitude),yt.maxAltitude=parseFloat(ft.maxAltitude)},Lod:function Ci(Kt,at){const ft=(0,e.O)({},Gi,Kt,at);if(!ft)return;const yt=at[at.length-1];yt.minLodPixels=parseFloat(ft.minLodPixels),yt.maxLodPixels=parseFloat(ft.maxLodPixels),yt.minFadeExtent=parseFloat(ft.minFadeExtent),yt.maxFadeExtent=parseFloat(ft.maxFadeExtent)}}),N=(0,e.C5)(K,["Document","Placemark"]),H=(0,e.C5)(K,{Document:(0,e.A4)(function Gs(Kt,at,ft){(0,e.ZL)({node:Kt},un,tn,at,ft,void 0,this)}),Placemark:(0,e.A4)(Hn)});let it,ht,Tt,vt,Ct,bt,ie,de,gt,Y=null,Gt=null,zt=null,ce=null,dt=null,At=null;function ge(Kt){return 32/Math.min(Kt[0],Kt[1])}function Mt(Kt){return Kt}function he(Kt,at,ft){return Array.isArray(Kt)?Kt:"string"==typeof Kt?he(ft[Kt],at,ft):at}function _e(Kt){const at=(0,e.Ve)(Kt,!1),ft=/^\s*#?\s*([0-9A-Fa-f]{8})\s*$/.exec(at);if(ft){const yt=ft[1];return[parseInt(yt.substr(6,2),16),parseInt(yt.substr(4,2),16),parseInt(yt.substr(2,2),16),parseInt(yt.substr(0,2),16)/255]}}function Le(Kt){let at=(0,e.Ve)(Kt,!1);const ft=[];at=at.replace(/\s*,\s*/g,",");const yt=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?),([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)(?:\s+|,|$)(?:([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)(?:\s+|$))?\s*/i;let wt;for(;wt=yt.exec(at);){const te=parseFloat(wt[1]),ee=parseFloat(wt[2]),ve=wt[3]?parseFloat(wt[3]):0;ft.push(te,ee,ve),at=at.substr(wt[0].length)}if(""===at)return ft}function Ze(Kt){const at=(0,e.Ve)(Kt,!1).trim();let ft=Kt.baseURI;return(!ft||"about:blank"==ft)&&(ft=window.location.href),ft?new URL(at,ft).href:at}function It(Kt){const at=(0,e.Ve)(Kt,!1).trim().replace(/^(?!.*#)/,"#");let ft=Kt.baseURI;return(!ft||"about:blank"==ft)&&(ft=window.location.href),ft?new URL(at,ft).href:at}function m(Kt){return(0,y.fy)(Kt)}const F=(0,e.C5)(K,{Pair:function Mn(Kt,at){const ft=(0,e.O)({},yi,Kt,at,this);if(!ft)return;const yt=ft.key;if(yt&&"normal"==yt){const wt=ft.styleUrl;wt&&(at[at.length-1]=wt);const te=ft.Style;te&&(at[at.length-1]=te)}}});function Q(Kt,at){return(0,e.O)(void 0,F,Kt,at,this)}const V=(0,e.C5)(K,{Icon:(0,e.Pr)(function ii(Kt,at){return(0,e.O)({},Ve,Kt,at)||null}),color:(0,e.Pr)(_e),heading:(0,e.Pr)(y.fy),hotSpot:(0,e.Pr)(function ct(Kt){const at=Kt.getAttribute("xunits"),ft=Kt.getAttribute("yunits");let yt;return yt="insetPixels"!==at?"insetPixels"!==ft?"bottom-left":"top-left":"insetPixels"!==ft?"bottom-right":"top-right",{x:parseFloat(Kt.getAttribute("x")),xunits:A[at],y:parseFloat(Kt.getAttribute("y")),yunits:A[ft],origin:yt}}),scale:(0,e.Pr)(m)}),_t=(0,e.C5)(K,{color:(0,e.Pr)(_e),scale:(0,e.Pr)(m)}),Nt=(0,e.C5)(K,{color:(0,e.Pr)(_e),width:(0,e.Pr)(y.fy)}),Jt=(0,e.C5)(K,{color:(0,e.Pr)(_e),fill:(0,e.Pr)(y.ud),outline:(0,e.Pr)(y.ud)}),se=(0,e.C5)(K,{coordinates:(0,e.z)(Le)});function Qt(Kt,at){return(0,e.O)(null,se,Kt,at)}const Ye=(0,e.C5)(W,{Track:(0,e.Ei)(Ue)}),Ge=(0,e.C5)(K,{when:function Oi(Kt,at){const yt=at[at.length-1].whens,wt=(0,e.Ve)(Kt,!1),te=Date.parse(wt);yt.push(isNaN(te)?0:te)}},(0,e.C5)(W,{coord:function Fe(Kt,at){const yt=at[at.length-1].coordinates,wt=(0,e.Ve)(Kt,!1),ee=/^\s*([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s+([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s+([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s*$/i.exec(wt);if(ee){const ve=parseFloat(ee[1]),xe=parseFloat(ee[2]),Oe=parseFloat(ee[3]);yt.push([ve,xe,Oe])}else yt.push([])}}));function Ue(Kt,at){const ft=(0,e.O)({coordinates:[],whens:[]},Ge,Kt,at);if(!ft)return;const yt=[],wt=ft.coordinates,te=ft.whens;for(let ee=0,ve=Math.min(wt.length,te.length);ee0&&at[at.length-1].push(...ft)},outerBoundaryIs:function Vi(Kt,at){const ft=(0,e.O)(void 0,Ri,Kt,at);ft&&(at[at.length-1][0]=ft)}});function me(Kt,at){const ft=(0,e.O)({},q,Kt,at),yt=(0,e.O)([null],ne,Kt,at);if(yt&&yt[0]){const wt=yt[0],te=[wt.length];for(let ve=1,xe=yt.length;ve0;let ee;const ve=wt.href;ve?ee=ve:te&&(ee=bt);let xe,Oe,ze,He="bottom-left";const ti=ft.hotSpot;let ei;ti?(xe=[ti.x,ti.y],Oe=ti.xunits,ze=ti.yunits,He=ti.origin):/^https?:\/\/maps\.(?:google|gstatic)\.com\//.test(ee)&&(ee.includes("pushpin")?(xe=ht,Oe=Tt,ze=vt):ee.includes("arrow-reverse")?(xe=[54,42],Oe=Tt,ze=vt):ee.includes("paddle")&&(xe=[32,1],Oe=Tt,ze=vt));const li=wt.x,pi=wt.y;let ci;void 0!==li&&void 0!==pi&&(ei=[li,pi]);const ai=wt.w,Pi=wt.h;let fi;void 0!==ai&&void 0!==Pi&&(ci=[ai,Pi]);const Ii=ft.heading;void 0!==Ii&&(fi=(0,R.Yr)(Ii));const Qi=ft.color;if(te){ee==bt&&(ci=Ct);const Fi=new z.Z({anchor:xe,anchorOrigin:He,anchorXUnits:Oe,anchorYUnits:ze,crossOrigin:this.crossOrigin_,offset:ei,offsetOrigin:"bottom-left",rotation:fi,scale:ft.scale,size:ci,src:this.iconUrlFunction_(ee),color:Qi}),xs=Fi.getScaleArray()[0],ts=Fi.getSize();if(null===ts){const fn=Fi.getImageState();if(fn===U.Z.IDLE||fn===U.Z.LOADING){const Ms=function(){const Ts=Fi.getImageState();if(Ts!==U.Z.IDLE&&Ts!==U.Z.LOADING){const es=Fi.getSize();if(es&&2==es.length){const Ps=ge(es);Fi.setScale(xs*Ps)}Fi.unlistenImageChange(Ms)}};Fi.listenImageChange(Ms),fn===U.Z.IDLE&&Fi.load()}}else if(2==ts.length){const fn=ge(ts);Fi.setScale(xs*fn)}yt.imageStyle=Fi}else yt.imageStyle=ie},LabelStyle:function St(Kt,at){const ft=(0,e.O)({},_t,Kt,at);if(!ft)return;const yt=at[at.length-1],wt=new f.Z({fill:new D.Z({color:"color"in ft?ft.color:it}),scale:ft.scale});yt.textStyle=wt},LineStyle:function Xt(Kt,at){const ft=(0,e.O)({},Nt,Kt,at);if(!ft)return;const yt=at[at.length-1],wt=new c.Z({color:"color"in ft?ft.color:it,width:"width"in ft?ft.width:1});yt.strokeStyle=wt},PolyStyle:function Ee(Kt,at){const ft=(0,e.O)({},Jt,Kt,at);if(!ft)return;const yt=at[at.length-1],wt=new D.Z({color:"color"in ft?ft.color:it});yt.fillStyle=wt;const te=ft.fill;void 0!==te&&(yt.fill=te);const ee=ft.outline;void 0!==ee&&(yt.outline=ee)}});function Re(Kt,at){const ft=(0,e.O)({},Me,Kt,at,this);if(!ft)return null;let yt="fillStyle"in ft?ft.fillStyle:Y;const wt=ft.fill;let te;void 0!==wt&&!wt&&(yt=null),"imageStyle"in ft?ft.imageStyle!=ie&&(te=ft.imageStyle):te=Gt;const ee="textStyle"in ft?ft.textStyle:ce,ve="strokeStyle"in ft?ft.strokeStyle:zt,xe=ft.outline;return void 0===xe||xe?[new s.ZP({fill:yt,image:te,stroke:ve,text:ee,zIndex:void 0})]:[new s.ZP({geometry:function(Oe){const ze=Oe.getGeometry(),He=ze.getType();return"GeometryCollection"===He?new k.Z(ze.getGeometriesArrayRecursive().filter(function(ei){const li=ei.getType();return"Polygon"!==li&&"MultiPolygon"!==li})):"Polygon"!==He&&"MultiPolygon"!==He?ze:void 0},fill:yt,image:te,stroke:ve,text:ee,zIndex:void 0}),new s.ZP({geometry:function(Oe){const ze=Oe.getGeometry(),He=ze.getType();return"GeometryCollection"===He?new k.Z(ze.getGeometriesArrayRecursive().filter(function(ei){const li=ei.getType();return"Polygon"===li||"MultiPolygon"===li})):"Polygon"===He||"MultiPolygon"===He?ze:void 0},fill:yt,stroke:null,zIndex:void 0})]}function De(Kt,at){const ft=at.length,yt=new Array(at.length),wt=new Array(at.length),te=new Array(at.length);let ee,ve,xe;ee=!1,ve=!1,xe=!1;for(let Oe=0;Oe0){const ei=(0,e.RA)(wt,ee);(0,e.ZL)(yt,Yn,ps,[{names:ee,values:ei}],ft)}const He=ft[0];let ti=at.getGeometry();ti&&(ti=(0,n.fI)(ti,!0,He)),(0,e.ZL)(yt,Yn,zi,[ti],ft)}const vs=(0,e.C5)(K,["extrude","tessellate","altitudeMode","coordinates"]),Jn=(0,e.C5)(K,{extrude:(0,e.A4)(y.Vi),tessellate:(0,e.A4)(y.Vi),altitudeMode:(0,e.A4)(y.bZ),coordinates:(0,e.A4)(function Tn(Kt,at,ft){const yt=ft[ft.length-1],wt=yt.layout,te=yt.stride;let ee;"XY"==wt||"XYM"==wt?ee=2:"XYZ"==wt||"XYZM"==wt?ee=3:(0,w.h)(!1,34);const ve=at.length;let xe="";if(ve>0){xe+=at[0];for(let Oe=1;Oe0;else{const ti=He.getType();ve="Point"===ti||"MultiPoint"===ti}}ve&&(xe=te.get("name"),ve=ve&&!!xe,ve&&/&[^&]+;/.test(xe)&&(gt||(gt=document.createElement("textarea")),gt.innerHTML=xe,xe=gt.value));let ze=ft;if(Kt?ze=Kt:at&&(ze=he(at,ft,yt)),ve){const He=function jt(Kt,at){const ft=[0,0];let yt="start";const wt=Kt.getImage();if(wt){const ve=wt.getSize();if(ve&&2==ve.length){const xe=wt.getScaleArray(),Oe=wt.getAnchor();ft[0]=xe[0]*(ve[0]-Oe[0]),ft[1]=xe[1]*(ve[1]/2-Oe[1]),yt="left"}}let te=Kt.getText();return te?(te=te.clone(),te.setFont(te.getFont()||ce.getFont()),te.setScale(te.getScale()||ce.getScale()),te.setFill(te.getFill()||ce.getFill()),te.setStroke(te.getStroke()||de)):te=ce.clone(),te.setText(at),te.setOffsetX(ft[0]),te.setOffsetY(ft[1]),te.setTextAlign(yt),new s.ZP({image:wt,text:te})}(ze[0],xe);return Oe.length>0?(He.setGeometry(new k.Z(Oe)),[He,new s.ZP({geometry:ze[0].getGeometry(),image:null,fill:ze[0].getFill(),stroke:ze[0].getStroke(),text:null})].concat(ze.slice(1))):He}return ze}}(yt.Style,yt.styleUrl,this.defaultStyle_,this.sharedStyles_,this.showPointNames_);wt.setStyle(ze)}return delete yt.Style,wt.setProperties(yt,!0),wt}readSharedStyle_(at,ft){const yt=at.getAttribute("id");if(null!==yt){const wt=Re.call(this,at,ft);if(wt){let te,ee=at.baseURI;(!ee||"about:blank"==ee)&&(ee=window.location.href),te=ee?new URL("#"+yt,ee).href:"#"+yt,this.sharedStyles_[te]=wt}}}readSharedStyleMap_(at,ft){const yt=at.getAttribute("id");if(null===yt)return;const wt=Q.call(this,at,ft);if(!wt)return;let te,ee=at.baseURI;(!ee||"about:blank"==ee)&&(ee=window.location.href),te=ee?new URL("#"+yt,ee).href:"#"+yt,this.sharedStyles_[te]=wt}readFeatureFromNode(at,ft){return K.includes(at.namespaceURI)&&this.readPlacemark_(at,[this.getReadOptions(at,ft)])||null}readFeaturesFromNode(at,ft){if(!K.includes(at.namespaceURI))return[];let yt;const wt=at.localName;if("Document"==wt||"Folder"==wt)return yt=this.readDocumentOrFolder_(at,[this.getReadOptions(at,ft)]),yt||[];if("Placemark"==wt){const te=this.readPlacemark_(at,[this.getReadOptions(at,ft)]);return te?[te]:[]}if("kml"==wt){yt=[];for(let te=at.firstElementChild;te;te=te.nextElementSibling){const ee=this.readFeaturesFromNode(te,ft);ee&&(0,g.l7)(yt,ee)}return yt}return[]}readName(at){if(at){if("string"==typeof at){const ft=(0,e.Qc)(at);return this.readNameFromDocument(ft)}return(0,e.qk)(at)?this.readNameFromDocument(at):this.readNameFromNode(at)}}readNameFromDocument(at){for(let ft=at.firstChild;ft;ft=ft.nextSibling)if(ft.nodeType==Node.ELEMENT_NODE){const yt=this.readNameFromNode(ft);if(yt)return yt}}readNameFromNode(at){for(let ft=at.firstElementChild;ft;ft=ft.nextElementSibling)if(K.includes(ft.namespaceURI)&&"name"==ft.localName)return(0,y.s2)(ft);for(let ft=at.firstElementChild;ft;ft=ft.nextElementSibling){const yt=ft.localName;if(K.includes(ft.namespaceURI)&&("Document"==yt||"Folder"==yt||"Placemark"==yt||"kml"==yt)){const wt=this.readNameFromNode(ft);if(wt)return wt}}}readNetworkLinks(at){const ft=[];if("string"==typeof at){const yt=(0,e.Qc)(at);(0,g.l7)(ft,this.readNetworkLinksFromDocument(yt))}else(0,e.qk)(at)?(0,g.l7)(ft,this.readNetworkLinksFromDocument(at)):(0,g.l7)(ft,this.readNetworkLinksFromNode(at));return ft}readNetworkLinksFromDocument(at){const ft=[];for(let yt=at.firstChild;yt;yt=yt.nextSibling)yt.nodeType==Node.ELEMENT_NODE&&(0,g.l7)(ft,this.readNetworkLinksFromNode(yt));return ft}readNetworkLinksFromNode(at){const ft=[];for(let yt=at.firstElementChild;yt;yt=yt.nextElementSibling)if(K.includes(yt.namespaceURI)&&"NetworkLink"==yt.localName){const wt=(0,e.O)({},b,yt,[]);ft.push(wt)}for(let yt=at.firstElementChild;yt;yt=yt.nextElementSibling){const wt=yt.localName;K.includes(yt.namespaceURI)&&("Document"==wt||"Folder"==wt||"kml"==wt)&&(0,g.l7)(ft,this.readNetworkLinksFromNode(yt))}return ft}readRegion(at){const ft=[];if("string"==typeof at){const yt=(0,e.Qc)(at);(0,g.l7)(ft,this.readRegionFromDocument(yt))}else(0,e.qk)(at)?(0,g.l7)(ft,this.readRegionFromDocument(at)):(0,g.l7)(ft,this.readRegionFromNode(at));return ft}readRegionFromDocument(at){const ft=[];for(let yt=at.firstChild;yt;yt=yt.nextSibling)yt.nodeType==Node.ELEMENT_NODE&&(0,g.l7)(ft,this.readRegionFromNode(yt));return ft}readRegionFromNode(at){const ft=[];for(let yt=at.firstElementChild;yt;yt=yt.nextElementSibling)if(K.includes(yt.namespaceURI)&&"Region"==yt.localName){const wt=(0,e.O)({},C,yt,[]);ft.push(wt)}for(let yt=at.firstElementChild;yt;yt=yt.nextElementSibling){const wt=yt.localName;K.includes(yt.namespaceURI)&&("Document"==wt||"Folder"==wt||"kml"==wt)&&(0,g.l7)(ft,this.readRegionFromNode(yt))}return ft}writeFeaturesNode(at,ft){ft=this.adaptOptions(ft);const yt=(0,e.c)(K[4],"kml"),wt="http://www.w3.org/2000/xmlns/";yt.setAttributeNS(wt,"xmlns:gx",W[0]),yt.setAttributeNS(wt,"xmlns:xsi",e.fJ),yt.setAttributeNS(e.fJ,"xsi:schemaLocation","http://www.opengis.net/kml/2.2 https://developers.google.com/kml/schema/kml22gx.xsd");const te={node:yt},ee={};at.length>1?ee.Document=at:1==at.length&&(ee.Placemark=at[0]);const ve=N[yt.namespaceURI],xe=(0,e.RA)(ee,ve);return(0,e.ZL)(te,H,e.hg,xe,[ft],ve,this),yt}}},6114:(Bt,ot,a)=>{"use strict";a.d(ot,{Z:()=>v});var G=a(1122),D=a(23),k=a(7090),z=a(1537),U=a(4034),I=a(6697),S=a(7026),P=a(7464),p=a(2632),d=a(2929),u=a(992),c=a(9015),s=a(5784);function n(x,w,O){if(3===x){const y={keys:[],values:[],features:[]},R=O.readVarint()+O.pos;O.readFields(h,y,R),y.length=y.features.length,y.length&&(w[y.name]=y)}}function h(x,w,O){if(15===x)w.version=O.readVarint();else if(1===x)w.name=O.readString();else if(5===x)w.extent=O.readVarint();else if(2===x)w.features.push(O.pos);else if(3===x)w.keys.push(O.readString());else if(4===x){let y=null;const R=O.readVarint()+O.pos;for(;O.pos>3)?O.readString():2===x?O.readFloat():3===x?O.readDouble():4===x?O.readVarint64():5===x?O.readVarint():6===x?O.readSVarint():7===x?O.readBoolean():null;w.values.push(y)}}function g(x,w,O){if(1==x)w.id=O.readVarint();else if(2==x){const y=O.readVarint()+O.pos;for(;O.pos>3}nt--,1===K||2===K?(A+=w.readSVarint(),L+=w.readSVarint(),1===K&&b>M&&(R.push(b),M=b),y.push(A,L),b+=2):7===K?b>M&&(y.push(y[M],y[M+1]),b+=2):(0,u.h)(!1,59)}b>M&&(R.push(b),M=b)}createFeature_(w,O,y){const R=O.type;if(0===R)return null;let W;const K=O.properties;let nt;this.idProperty_?(nt=K[this.idProperty_],delete K[this.idProperty_]):nt=O.id,K[this.layerName_]=O.layer.name;const A=[],L=[];this.readRawGeometry_(w,O,A,L);const b=function E(x,w){let O;return 1===x?O=1===w?"Point":"MultiPoint":2===x?O=1===w?"LineString":"MultiLineString":3===x&&(O="Polygon"),O}(R,L.length);if(this.featureClass_===d.ZP)W=new this.featureClass_(b,A,L,K,nt),W.transform(y.dataProjection);else{let M;if("Polygon"==b){const H=(0,s.Q3)(A,L);M=H.length>1?new U.Z(A,"XY",H):new P.ZP(A,"XY",L)}else M="Point"===b?new S.Z(A,"XY"):"LineString"===b?new D.Z(A,"XY"):"MultiPoint"===b?new z.Z(A,"XY"):"MultiLineString"===b?new k.Z(A,"XY",L):null;W=new(0,this.featureClass_),this.geometryName_&&W.setGeometryName(this.geometryName_);const N=(0,G.fI)(M,!1,y);W.setGeometry(N),void 0!==nt&&W.setId(nt),W.setProperties(K,!0)}return W}getType(){return"arraybuffer"}readFeatures(w,O){const y=this.layers_;O=this.adaptOptions(O);const R=(0,c.U2)(O.dataProjection);R.setWorldExtent(O.extent),O.dataProjection=R;const W=new I(w),K=W.readFields(n,{}),nt=[];for(const A in K){if(y&&!y.includes(A))continue;const L=K[A];R.setExtent(L?[0,0,L.extent,L.extent]:null);for(let M=0,C=L.length;M{"use strict";a.d(ot,{$L:()=>S,Vi:()=>d,_E:()=>P,bZ:()=>n,ej:()=>I,f3:()=>s,fy:()=>U,s2:()=>p,ud:()=>D,v$:()=>k,xO:()=>u});var G=a(8809);function D(h){return k((0,G.Ve)(h,!1))}function k(h){const g=/^\s*(true|1)|(false|0)\s*$/.exec(h);if(g)return void 0!==g[1]||!1}function U(h){return I((0,G.Ve)(h,!1))}function I(h){const g=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*$/i.exec(h);if(g)return parseFloat(g[1])}function S(h){return P((0,G.Ve)(h,!1))}function P(h){const g=/^\s*(\d+)\s*$/.exec(h);if(g)return parseInt(g[1],10)}function p(h){return(0,G.Ve)(h,!1).trim()}function d(h,g){n(h,g?"1":"0")}function u(h,g){h.appendChild((0,G.Me)().createCDATASection(g))}function s(h,g){const e=g.toPrecision();h.appendChild((0,G.Me)().createTextNode(e))}function n(h,g){h.appendChild((0,G.Me)().createTextNode(g))}},1334:(Bt,ot,a)=>{"use strict";a.d(ot,{Dv:()=>k,Zn:()=>z,qe:()=>U,uX:()=>D});var G=a(142);function D(){return!0}function k(){return!1}function z(){}function U(S){let p,d,u,P=!1;return function(){const c=Array.prototype.slice.call(arguments);return(!P||this!==u||!(0,G.fS)(c,d))&&(P=!0,u=this,d=c,p=S.apply(this,arguments)),p}}},4023:(Bt,ot,a)=>{"use strict";a.d(ot,{Z:()=>d});var G=a(4115),D=a(513),k=a(7139),z=a(9543),U=a(9015),I=a(1334),S=a(3904);const P=(0,k.Ue)(),d=class p extends G.Z{constructor(){super(),this.extent_=(0,z.lJ)(),this.extentRevision_=-1,this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=0,this.simplifyTransformedInternal=(0,I.qe)(function(c,s,f){if(!f)return this.getSimplifiedGeometry(s);const n=this.clone();return n.applyTransform(f),n.getSimplifiedGeometry(s)})}simplifyTransformed(c,s){return this.simplifyTransformedInternal(this.getRevision(),c,s)}clone(){return(0,D.O3)()}closestPointXY(c,s,f,n){return(0,D.O3)()}containsXY(c,s){const f=this.getClosestPoint([c,s]);return f[0]===c&&f[1]===s}getClosestPoint(c,s){return this.closestPointXY(c[0],c[1],s=s||[NaN,NaN],1/0),s}intersectsCoordinate(c){return this.containsXY(c[0],c[1])}computeExtent(c){return(0,D.O3)()}getExtent(c){if(this.extentRevision_!=this.getRevision()){const s=this.computeExtent(this.extent_);(isNaN(s[0])||isNaN(s[1]))&&(0,z.YN)(s),this.extentRevision_=this.getRevision()}return(0,z.EO)(this.extent_,c)}rotate(c,s){(0,D.O3)()}scale(c,s,f){(0,D.O3)()}simplify(c){return this.getSimplifiedGeometry(c*c)}getSimplifiedGeometry(c){return(0,D.O3)()}getType(){return(0,D.O3)()}applyTransform(c){(0,D.O3)()}intersectsExtent(c){return(0,D.O3)()}translate(c,s){(0,D.O3)()}transform(c,s){const f=(0,U.U2)(c),n="tile-pixels"==f.getUnits()?function(h,g,e){const E=f.getExtent(),v=f.getWorldExtent(),x=(0,z.Cr)(v)/(0,z.Cr)(E);return(0,k.qC)(P,v[0],v[3],x,-x,0,0,0),(0,S.vT)(h,0,h.length,e,P,g),(0,U.Ck)(f,s)(h,g,e)}:(0,U.Ck)(f,s);return this.applyTransform(n),this}}},4505:(Bt,ot,a)=>{"use strict";a.d(ot,{Z:()=>S});var G=a(3044),D=a(4023),k=a(9543),z=a(2716);class U extends D.Z{constructor(p){super(),this.geometries_=p||null,this.changeEventsKeys_=[],this.listenGeometriesChange_()}unlistenGeometriesChange_(){this.changeEventsKeys_.forEach(z.bN),this.changeEventsKeys_.length=0}listenGeometriesChange_(){if(this.geometries_)for(let p=0,d=this.geometries_.length;p{"use strict";a.d(ot,{Z:()=>s});var G=a(1790),D=a(4558),k=a(9543),z=a(9216),U=a(1757),I=a(142),S=a(8665),P=a(4850),p=a(7170),d=a(4429),u=a(8575);class c extends G.ZP{constructor(n,h){super(),this.flatMidpoint_=null,this.flatMidpointRevision_=-1,this.maxDelta_=-1,this.maxDeltaRevision_=-1,void 0===h||Array.isArray(n[0])?this.setCoordinates(n,h):this.setFlatCoordinates(h,n)}appendCoordinate(n){this.flatCoordinates?(0,I.l7)(this.flatCoordinates,n):this.flatCoordinates=n.slice(),this.changed()}clone(){const n=new c(this.flatCoordinates.slice(),this.layout);return n.applyProperties(this),n}closestPointXY(n,h,g,e){return e<(0,k.qf)(this.getExtent(),n,h)?e:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,D.Bv)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,D.H$)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!1,n,h,g,e))}forEachSegment(n){return(0,S.E)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,n)}getCoordinateAtM(n,h){return"XYM"!=this.layout&&"XYZM"!=this.layout?null:(0,p.iJ)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,n,h=void 0!==h&&h)}getCoordinates(){return(0,P.Ml)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getCoordinateAt(n,h){return(0,p.WW)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,n,h,this.stride)}getLength(){return(0,u.W)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getFlatMidpoint(){return this.flatMidpointRevision_!=this.getRevision()&&(this.flatMidpoint_=this.getCoordinateAt(.5,this.flatMidpoint_),this.flatMidpointRevision_=this.getRevision()),this.flatMidpoint_}getSimplifiedGeometryInternal(n){const h=[];return h.length=(0,U.dt)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,n,h,0),new c(h,"XY")}getType(){return"LineString"}intersectsExtent(n){return(0,d.Kz)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,n)}setCoordinates(n,h){this.setLayout(h,n,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,z.Sg)(this.flatCoordinates,0,n,this.stride),this.changed()}}const s=c},7090:(Bt,ot,a)=>{"use strict";a.d(ot,{Z:()=>c});var G=a(23),D=a(1790),k=a(4558),z=a(9543),U=a(9216),I=a(1757),S=a(142),P=a(4850),p=a(7170),d=a(4429);class u extends D.ZP{constructor(f,n,h){if(super(),this.ends_=[],this.maxDelta_=-1,this.maxDeltaRevision_=-1,Array.isArray(f[0]))this.setCoordinates(f,n);else if(void 0!==n&&h)this.setFlatCoordinates(n,f),this.ends_=h;else{let g=this.getLayout();const e=f,E=[],v=[];for(let x=0,w=e.length;x{"use strict";a.d(ot,{Z:()=>p});var G=a(7026),D=a(1790),k=a(9543),z=a(9216),U=a(142),I=a(4850),S=a(4331);class P extends D.ZP{constructor(u,c){super(),c&&!Array.isArray(u[0])?this.setFlatCoordinates(c,u):this.setCoordinates(u,c)}appendPoint(u){this.flatCoordinates?(0,U.l7)(this.flatCoordinates,u.getFlatCoordinates()):this.flatCoordinates=u.getFlatCoordinates().slice(),this.changed()}clone(){const u=new P(this.flatCoordinates.slice(),this.layout);return u.applyProperties(this),u}closestPointXY(u,c,s,f){if(f<(0,k.qf)(this.getExtent(),u,c))return f;const n=this.flatCoordinates,h=this.stride;for(let g=0,e=n.length;g{"use strict";a.d(ot,{Z:()=>g});var G=a(1537),D=a(7464),k=a(1790),z=a(4558),U=a(9543),I=a(9216),S=a(142),P=a(5577),p=a(4850),d=a(4429),u=a(5784),c=a(4793),s=a(2783),f=a(5101),n=a(1757);class h extends k.ZP{constructor(E,v,x){if(super(),this.endss_=[],this.flatInteriorPointsRevision_=-1,this.flatInteriorPoints_=null,this.maxDelta_=-1,this.maxDeltaRevision_=-1,this.orientedRevision_=-1,this.orientedFlatCoordinates_=null,!x&&!Array.isArray(E[0])){let w=this.getLayout();const O=E,y=[],R=[];for(let W=0,K=O.length;W{"use strict";a.d(ot,{Z:()=>I});var G=a(1790),D=a(9543),k=a(9216),z=a(4331);class U extends G.ZP{constructor(P,p){super(),this.setCoordinates(P,p)}clone(){const P=new U(this.flatCoordinates.slice(),this.layout);return P.applyProperties(this),P}closestPointXY(P,p,d,u){const c=this.flatCoordinates,s=(0,z.bI)(P,p,c[0],c[1]);if(s{"use strict";a.d(ot,{ZP:()=>g,oJ:()=>E});var G=a(1790),D=a(4558),k=a(9543),z=a(9216),U=a(1757),I=a(4850),S=a(4793);class P extends G.ZP{constructor(O,y){super(),this.maxDelta_=-1,this.maxDeltaRevision_=-1,void 0===y||Array.isArray(O[0])?this.setCoordinates(O,y):this.setFlatCoordinates(y,O)}clone(){return new P(this.flatCoordinates.slice(),this.layout)}closestPointXY(O,y,R,W){return W<(0,k.qf)(this.getExtent(),O,y)?W:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,D.Bv)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,D.H$)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!0,O,y,R,W))}getArea(){return(0,S.QQ)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getCoordinates(){return(0,I.Ml)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getSimplifiedGeometryInternal(O){const y=[];return y.length=(0,U.dt)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,O,y,0),new P(y,"XY")}getType(){return"LinearRing"}intersectsExtent(O){return!1}setCoordinates(O,y){this.setLayout(y,O,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,z.Sg)(this.flatCoordinates,0,O,this.stride),this.changed()}}const p=P;var d=a(7026),u=a(142),c=a(5577),s=a(4429),f=a(5784),n=a(5101);class h extends G.ZP{constructor(O,y,R){super(),this.ends_=[],this.flatInteriorPointRevision_=-1,this.flatInteriorPoint_=null,this.maxDelta_=-1,this.maxDeltaRevision_=-1,this.orientedRevision_=-1,this.orientedFlatCoordinates_=null,void 0!==y&&R?(this.setFlatCoordinates(y,O),this.ends_=R):this.setCoordinates(O,y)}appendLinearRing(O){this.flatCoordinates?(0,u.l7)(this.flatCoordinates,O.getFlatCoordinates()):this.flatCoordinates=O.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()}clone(){const O=new h(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return O.applyProperties(this),O}closestPointXY(O,y,R,W){return W<(0,k.qf)(this.getExtent(),O,y)?W:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,D.Af)(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,D.Xl)(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!0,O,y,R,W))}containsXY(O,y){return(0,n.wY)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,O,y)}getArea(){return(0,S.KP)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride)}getCoordinates(O){let y;return void 0!==O?(y=this.getOrientedFlatCoordinates().slice(),(0,f.zX)(y,0,this.ends_,this.stride,O)):y=this.flatCoordinates,(0,I.o1)(y,0,this.ends_,this.stride)}getEnds(){return this.ends_}getFlatInteriorPoint(){if(this.flatInteriorPointRevision_!=this.getRevision()){const O=(0,k.qg)(this.getExtent());this.flatInteriorPoint_=(0,c.X)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,O,0),this.flatInteriorPointRevision_=this.getRevision()}return this.flatInteriorPoint_}getInteriorPoint(){return new d.Z(this.getFlatInteriorPoint(),"XYM")}getLinearRingCount(){return this.ends_.length}getLinearRing(O){return O<0||this.ends_.length<=O?null:new p(this.flatCoordinates.slice(0===O?0:this.ends_[O-1],this.ends_[O]),this.layout)}getLinearRings(){const O=this.layout,y=this.flatCoordinates,R=this.ends_,W=[];let K=0;for(let nt=0,A=R.length;nt{"use strict";a.d(ot,{Kr:()=>P,ZP:()=>p});var G=a(4023),D=a(513),k=a(9543),z=a(3904);function S(d){let u;return"XY"==d?u=2:"XYZ"==d||"XYM"==d?u=3:"XYZM"==d&&(u=4),u}function P(d,u,c){const s=d.getFlatCoordinates();if(!s)return null;const f=d.getStride();return(0,z.vT)(s,0,s.length,f,u,c)}const p=class U extends G.Z{constructor(){super(),this.layout="XY",this.stride=2,this.flatCoordinates=null}computeExtent(u){return(0,k.GN)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,u)}getCoordinates(){return(0,D.O3)()}getFirstCoordinate(){return this.flatCoordinates.slice(0,this.stride)}getFlatCoordinates(){return this.flatCoordinates}getLastCoordinate(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)}getLayout(){return this.layout}getSimplifiedGeometry(u){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),u<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&u<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;const c=this.getSimplifiedGeometryInternal(u);return c.getFlatCoordinates().length{"use strict";function G(z,U,I,S){let P=0,p=z[I-S],d=z[I-S+1];for(;Uk,KP:()=>D,QQ:()=>G})},2783:(Bt,ot,a)=>{"use strict";a.d(ot,{E:()=>D});var G=a(9543);function D(k,z,U,I){const S=[];let P=(0,G.lJ)();for(let p=0,d=U.length;p{"use strict";a.d(ot,{Af:()=>z,Bv:()=>k,H$:()=>I,Xl:()=>S,gI:()=>P,sD:()=>U});var G=a(4331);function D(p,d,u,c,s,f,n){const h=p[d],g=p[d+1],e=p[u]-h,E=p[u+1]-g;let v;if(0===e&&0===E)v=d;else{const x=((s-h)*e+(f-g)*E)/(e*e+E*E);if(x>1)v=u;else{if(x>0){for(let w=0;ws&&(s=e),f=h,n=g}return s}function z(p,d,u,c,s){for(let f=0,n=u.length;f{"use strict";a.d(ot,{TG:()=>k,Zl:()=>U,uG:()=>D,wY:()=>z});var G=a(9543);function D(I,S,P,p,d){return!(0,G.H6)(d,function(c){return!k(I,S,P,p,c[0],c[1])})}function k(I,S,P,p,d,u){let c=0,s=I[P-p],f=I[P-p+1];for(;Su&&(n-s)*(u-f)-(d-s)*(h-f)>0&&c++:h<=u&&(n-s)*(u-f)-(d-s)*(h-f)<0&&c--,s=n,f=h}return 0!==c}function z(I,S,P,p,d,u){if(0===P.length||!k(I,S,P[0],p,d,u))return!1;for(let c=1,s=P.length;c{"use strict";function G(U,I,S,P){for(let p=0,d=S.length;pG,QT:()=>z,Sg:()=>D,_5:()=>k})},4850:(Bt,ot,a)=>{"use strict";function G(z,U,I,S,P){P=void 0!==P?P:[];let p=0;for(let d=U;dG,o1:()=>D,ug:()=>k})},5577:(Bt,ot,a)=>{"use strict";a.d(ot,{U:()=>z,X:()=>k});var G=a(142),D=a(5101);function k(U,I,S,P,p,d,u){let c,s,f,n,h,g,e;const E=p[d+1],v=[];for(let O=0,y=S.length;Ow&&(f=(n+h)/2,(0,D.wY)(U,I,S,P,f,E)&&(x=f,w=O)),n=h}return isNaN(x)&&(x=p[d]),u?(u.push(x,E,w),u):[x,E,w]}function z(U,I,S,P,p){let d=[];for(let u=0,c=S.length;u{"use strict";a.d(ot,{WW:()=>k,dG:()=>U,iJ:()=>z});var G=a(142),D=a(4331);function k(I,S,P,p,d,u,c){let s,f;const n=(P-S)/p;if(1===n)s=S;else if(2===n)s=S,f=d;else if(0!==n){let h=I[S],g=I[S+1],e=0;const E=[0];for(let w=S+p;w1?c:2,u=u||new Array(c);for(let h=0;h>1;d{"use strict";a.d(ot,{AW:()=>U,Kz:()=>z,ac:()=>S,mV:()=>I,oW:()=>P});var G=a(9543),D=a(8665),k=a(5101);function z(p,d,u,c,s){const f=(0,G.qP)((0,G.lJ)(),p,d,u,c);return!!(0,G.kK)(s,f)&&(!!((0,G.r4)(s,f)||f[0]>=s[0]&&f[2]<=s[2]||f[1]>=s[1]&&f[3]<=s[3])||(0,D.E)(p,d,u,c,function(n,h){return(0,G.I7)(s,n,h)}))}function U(p,d,u,c,s){for(let f=0,n=u.length;f{"use strict";function G(k,z,U,I){let S=k[z],P=k[z+1],p=0;for(let d=z+I;dG})},5784:(Bt,ot,a)=>{"use strict";function G(P,p,d,u){for(;p0}function k(P,p,d,u,c){c=void 0!==c&&c;for(let s=0,f=d.length;sS,$v:()=>k,Oj:()=>z,zX:()=>U,dL:()=>I})},8665:(Bt,ot,a)=>{"use strict";function G(D,k,z,U,I){let S;for(k+=U;kG})},1757:(Bt,ot,a)=>{"use strict";a.d(ot,{Pp:()=>d,UJ:()=>z,Zh:()=>p,dt:()=>k,uZ:()=>S});var G=a(4331);function k(u,c,s,f,n,h,g){const e=(s-c)/f;if(e<3){for(;c0;){const w=v.pop(),O=v.pop();let y=0;const R=u[O],W=u[O+1],K=u[w],nt=u[w+1];for(let A=O+f;Ay&&(x=A,y=M)}y>n&&(E[(x-c)/f]=1,O+f0&&W>y)&&(R<0&&K0&&K>R)?(v=w,x=O):(h[g++]=v,h[g++]=x,e=v,E=x,v=w,x=O)}return h[g++]=v,h[g++]=x,g}function p(u,c,s,f,n,h,g,e){for(let E=0,v=s.length;E{"use strict";function G(U,I,S,P,p,d){d=d||[];let u=0;for(let c=I;cz,U1:()=>D,bA:()=>k,vT:()=>G})},5063:(Bt,ot,a)=>{"use strict";a.d(ot,{G$:()=>U,Id:()=>P,ME:()=>z,MP:()=>S,Tp:()=>p,V:()=>D,bM:()=>d,tK:()=>I});const G=typeof navigator<"u"&&typeof navigator.userAgent<"u"?navigator.userAgent.toLowerCase():"",D=G.includes("firefox"),z=G.includes("safari")&&!G.includes("chrom")&&(G.includes("version/15.4")||/cpu (os|iphone os) 15_4 like mac os x/.test(G)),U=G.includes("webkit")&&!G.includes("edge"),I=G.includes("macintosh"),S=typeof devicePixelRatio<"u"?devicePixelRatio:1,P=typeof WorkerGlobalScope<"u"&&typeof OffscreenCanvas<"u"&&self instanceof WorkerGlobalScope,p=typeof Image<"u"&&Image.prototype.decode,d=function(){let u=!1;try{const c=Object.defineProperty({},"passive",{get:function(){u=!0}});window.addEventListener("_",null,c),window.removeEventListener("_",null,c)}catch{}return u}()},2659:(Bt,ot,a)=>{"use strict";a.d(ot,{Z:()=>u});var G=a(3615),D=a(8437),k=a(6450),z=a(7464);const I=class U extends k.Z{constructor(s){super(),this.geometry_=null,this.element_=document.createElement("div"),this.element_.style.position="absolute",this.element_.style.pointerEvents="auto",this.element_.className="ol-box "+s,this.map_=null,this.startPixel_=null,this.endPixel_=null}disposeInternal(){this.setMap(null)}render_(){const s=this.startPixel_,f=this.endPixel_,n="px",h=this.element_.style;h.left=Math.min(s[0],f[0])+n,h.top=Math.min(s[1],f[1])+n,h.width=Math.abs(f[0]-s[0])+n,h.height=Math.abs(f[1]-s[1])+n}setMap(s){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);const f=this.element_.style;f.left="inherit",f.top="inherit",f.width="inherit",f.height="inherit"}this.map_=s,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)}setPixels(s,f){this.startPixel_=s,this.endPixel_=f,this.createOrUpdateGeometry(),this.render_()}createOrUpdateGeometry(){const s=this.startPixel_,f=this.endPixel_,h=[s,[s[0],f[1]],f,[f[0],s[1]]].map(this.map_.getCoordinateFromPixelInternal,this.map_);h[4]=h[0].slice(),this.geometry_?this.geometry_.setCoordinates([h]):this.geometry_=new z.ZP([h])}getGeometry(){return this.geometry_}};var S=a(7963);class p extends G.ZP{constructor(s,f,n){super(s),this.coordinate=f,this.mapBrowserEvent=n}}const u=class d extends D.Z{constructor(s){super(),this.box_=new I((s=s||{}).className||"ol-dragbox"),this.minArea_=void 0!==s.minArea?s.minArea:64,s.onBoxEnd&&(this.onBoxEnd=s.onBoxEnd),this.startPixel_=null,this.condition_=s.condition?s.condition:S.v8,this.boxEndCondition_=s.boxEndCondition?s.boxEndCondition:this.defaultBoxEndCondition}defaultBoxEndCondition(s,f,n){const h=n[0]-f[0],g=n[1]-f[1];return h*h+g*g>=this.minArea_}getGeometry(){return this.box_.getGeometry()}handleDragEvent(s){this.box_.setPixels(this.startPixel_,s.pixel),this.dispatchEvent(new p("boxdrag",s.coordinate,s))}handleUpEvent(s){this.box_.setMap(null);const f=this.boxEndCondition_(s,this.startPixel_,s.pixel);return f&&this.onBoxEnd(s),this.dispatchEvent(new p(f?"boxend":"boxcancel",s.coordinate,s)),!1}handleDownEvent(s){return!!this.condition_(s)&&(this.startPixel_=s.pixel,this.box_.setMap(s.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new p("boxstart",s.coordinate,s)),!0)}onBoxEnd(s){}}},3181:(Bt,ot,a)=>{"use strict";a.d(ot,{ZP:()=>S,Cv:()=>U,FW:()=>I});var G=a(4115);var k=a(4720);function U(P,p,d){const u=P.getCenterInternal();u&&P.animateInternal({duration:void 0!==d?d:250,easing:k.GE,center:P.getConstrainedCenter([u[0]+p[0],u[1]+p[1]])})}function I(P,p,d,u){const c=P.getZoom();if(void 0===c)return;const s=P.getConstrainedZoom(c+p),f=P.getResolutionForZoom(s);P.getAnimating()&&P.cancelAnimations(),P.animate({resolution:f,anchor:d,duration:void 0!==u?u:250,easing:k.Vv})}const S=class z extends G.Z{constructor(p){super(),p&&p.handleEvent&&(this.handleEvent=p.handleEvent),this.map_=null,this.setActive(!0)}getActive(){return this.get("active")}getMap(){return this.map_}handleEvent(p){return!0}setActive(p){this.set("active",p)}setMap(p){this.map_=p}}},8437:(Bt,ot,a)=>{"use strict";a.d(ot,{S:()=>z,Z:()=>U});var G=a(3181),D=a(1590);function z(I){const S=I.length;let P=0,p=0;for(let d=0;d0}}else if(S.type==D.Z.POINTERDOWN){const p=this.handleDownEvent(S);this.handlingDownUpSequence=p,P=this.stopDown(p)}else S.type==D.Z.POINTERMOVE&&this.handleMoveEvent(S);return!P}handleMoveEvent(S){}handleUpEvent(S){return!1}stopDown(S){return S}updateTrackedPointers_(S){S.activePointers&&(this.targetPointers=S.activePointers)}}},1179:(Bt,ot,a)=>{"use strict";a.d(ot,{c:()=>H});var G=a(9573),D=a(3181),k=a(1590);const U=class z extends D.ZP{constructor(Y){super(),this.delta_=(Y=Y||{}).delta?Y.delta:1,this.duration_=void 0!==Y.duration?Y.duration:250}handleEvent(Y){let st=!1;if(Y.type==k.Z.DBLCLICK){const ht=Y.originalEvent,vt=Y.coordinate,Ct=ht.shiftKey?-this.delta_:this.delta_,bt=Y.map.getView();(0,D.FW)(bt,Ct,vt,this.duration_),ht.preventDefault(),st=!0}return!st}};var I=a(8437),S=a(1334),P=a(7963),p=a(4720),d=a(5415);const c=class u extends I.Z{constructor(Y){super({stopDown:S.Dv}),this.kinetic_=(Y=Y||{}).kinetic,this.lastCentroid=null,this.panning_=!1;const st=Y.condition?Y.condition:(0,P.$6)(P.rM,P.Xp);this.condition_=Y.onFocusOnly?(0,P.$6)(P.yZ,st):st,this.noKinetic_=!1}handleDragEvent(Y){const st=Y.map;this.panning_||(this.panning_=!0,st.getView().beginInteraction());const ht=this.targetPointers,Tt=st.getEventPixel((0,I.S)(ht));if(ht.length==this.lastPointersCount_){if(this.kinetic_&&this.kinetic_.update(Tt[0],Tt[1]),this.lastCentroid){const vt=[this.lastCentroid[0]-Tt[0],Tt[1]-this.lastCentroid[1]],bt=Y.map.getView();(0,d.bA)(vt,bt.getResolution()),(0,d.U1)(vt,bt.getRotation()),bt.adjustCenterInternal(vt)}}else this.kinetic_&&this.kinetic_.begin();this.lastCentroid=Tt,this.lastPointersCount_=ht.length,Y.originalEvent.preventDefault()}handleUpEvent(Y){const st=Y.map,ht=st.getView();if(0===this.targetPointers.length){if(!this.noKinetic_&&this.kinetic_&&this.kinetic_.end()){const Tt=this.kinetic_.getDistance(),vt=this.kinetic_.getAngle(),Ct=ht.getCenterInternal(),bt=st.getPixelFromCoordinateInternal(Ct),Gt=st.getCoordinateFromPixelInternal([bt[0]-Tt*Math.cos(vt),bt[1]-Tt*Math.sin(vt)]);ht.animateInternal({center:ht.getConstrainedCenter(Gt),duration:500,easing:p.Vv})}return this.panning_&&(this.panning_=!1,ht.endInteraction()),!1}return this.kinetic_&&this.kinetic_.begin(),this.lastCentroid=null,!0}handleDownEvent(Y){if(this.targetPointers.length>0&&this.condition_(Y)){const ht=Y.map.getView();return this.lastCentroid=null,ht.getAnimating()&&ht.cancelAnimations(),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}return!1}};var s=a(7011);const n=class f extends I.Z{constructor(Y){Y=Y||{},super({stopDown:S.Dv}),this.condition_=Y.condition?Y.condition:P.aj,this.lastAngle_=void 0,this.duration_=void 0!==Y.duration?Y.duration:250}handleDragEvent(Y){if(!(0,P.QL)(Y))return;const st=Y.map,ht=st.getView();if(ht.getConstraints().rotation===s.h$)return;const Tt=st.getSize(),vt=Y.pixel,Ct=Math.atan2(Tt[1]/2-vt[1],vt[0]-Tt[0]/2);void 0!==this.lastAngle_&&ht.adjustRotationInternal(-(Ct-this.lastAngle_)),this.lastAngle_=Ct}handleUpEvent(Y){return!(0,P.QL)(Y)||(Y.map.getView().endInteraction(this.duration_),!1)}handleDownEvent(Y){return!!((0,P.QL)(Y)&&(0,P.v8)(Y)&&this.condition_(Y))&&(Y.map.getView().beginInteraction(),this.lastAngle_=void 0,!0)}};var h=a(2659);const e=class g extends h.Z{constructor(Y){super({condition:(Y=Y||{}).condition?Y.condition:P.vY,className:Y.className||"ol-dragzoom",minArea:Y.minArea}),this.duration_=void 0!==Y.duration?Y.duration:200,this.out_=void 0!==Y.out&&Y.out}onBoxEnd(Y){const ht=this.getMap().getView();let Tt=this.getGeometry();if(this.out_){const vt=ht.rotatedExtentForGeometry(Tt),Ct=ht.getResolutionForExtentInternal(vt),bt=ht.getResolution()/Ct;Tt=Tt.clone(),Tt.scale(bt*bt)}ht.fitInternal(Tt,{duration:this.duration_,easing:p.Vv})}};var E=a(3044);const w=class x extends D.ZP{constructor(Y){super(),Y=Y||{},this.defaultCondition_=function(st){return(0,P.rM)(st)&&(0,P.TN)(st)},this.condition_=void 0!==Y.condition?Y.condition:this.defaultCondition_,this.duration_=void 0!==Y.duration?Y.duration:100,this.pixelDelta_=void 0!==Y.pixelDelta?Y.pixelDelta:128}handleEvent(Y){let st=!1;if(Y.type==E.Z.KEYDOWN){const ht=Y.originalEvent,Tt=ht.keyCode;if(this.condition_(Y)&&(40==Tt||37==Tt||39==Tt||38==Tt)){const Ct=Y.map.getView(),bt=Ct.getResolution()*this.pixelDelta_;let Gt=0,kt=0;40==Tt?kt=-bt:37==Tt?Gt=-bt:39==Tt?Gt=bt:kt=bt;const ie=[Gt,kt];(0,d.U1)(ie,Ct.getRotation()),(0,D.Cv)(Ct,ie,this.duration_),ht.preventDefault(),st=!0}}return!st}},y=class O extends D.ZP{constructor(Y){super(),this.condition_=(Y=Y||{}).condition?Y.condition:P.TN,this.delta_=Y.delta?Y.delta:1,this.duration_=void 0!==Y.duration?Y.duration:100}handleEvent(Y){let st=!1;if(Y.type==E.Z.KEYDOWN||Y.type==E.Z.KEYPRESS){const ht=Y.originalEvent,Tt=ht.key;if(this.condition_(Y)&&("+"===Tt||"-"===Tt)){const Ct="+"===Tt?this.delta_:-this.delta_,bt=Y.map.getView();(0,D.FW)(bt,Ct,void 0,this.duration_),ht.preventDefault(),st=!0}}return!st}};var K=a(5063),nt=a(4331);const L=class A extends D.ZP{constructor(Y){super(Y=Y||{}),this.totalDelta_=0,this.lastDelta_=0,this.maxDelta_=void 0!==Y.maxDelta?Y.maxDelta:1,this.duration_=void 0!==Y.duration?Y.duration:250,this.timeout_=void 0!==Y.timeout?Y.timeout:80,this.useAnchor_=void 0===Y.useAnchor||Y.useAnchor,this.constrainResolution_=void 0!==Y.constrainResolution&&Y.constrainResolution;const st=Y.condition?Y.condition:P.Bx;this.condition_=Y.onFocusOnly?(0,P.$6)(P.yZ,st):st,this.lastAnchor_=null,this.startTime_=void 0,this.mode_=void 0,this.trackpadEventGap_=400,this.deltaPerZoom_=300}endInteraction_(){this.trackpadTimeoutId_=void 0;const Y=this.getMap();Y&&Y.getView().endInteraction(void 0,this.lastDelta_?this.lastDelta_>0?1:-1:0,this.lastAnchor_)}handleEvent(Y){if(!this.condition_(Y)||Y.type!==E.Z.WHEEL)return!0;const ht=Y.map,Tt=Y.originalEvent;let vt;if(Tt.preventDefault(),this.useAnchor_&&(this.lastAnchor_=Y.coordinate),Y.type==E.Z.WHEEL&&(vt=Tt.deltaY,K.V&&Tt.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(vt/=K.MP),Tt.deltaMode===WheelEvent.DOM_DELTA_LINE&&(vt*=40)),0===vt)return!1;this.lastDelta_=vt;const Ct=Date.now();void 0===this.startTime_&&(this.startTime_=Ct),(!this.mode_||Ct-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(vt)<4?"trackpad":"wheel");const bt=ht.getView();if("trackpad"===this.mode_&&!bt.getConstrainResolution()&&!this.constrainResolution_)return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):(bt.getAnimating()&&bt.cancelAnimations(),bt.beginInteraction()),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.timeout_),bt.adjustZoom(-vt/this.deltaPerZoom_,this.lastAnchor_),this.startTime_=Ct,!1;this.totalDelta_+=vt;const Gt=Math.max(this.timeout_-(Ct-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,ht),Gt),!1}handleWheelZoom_(Y){const st=Y.getView();st.getAnimating()&&st.cancelAnimations();let ht=-(0,nt.uZ)(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(st.getConstrainResolution()||this.constrainResolution_)&&(ht=ht?ht>0?1:-1:0),(0,D.FW)(st,ht,this.lastAnchor_,this.duration_),this.mode_=void 0,this.totalDelta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0}setMouseAnchor(Y){this.useAnchor_=Y,Y||(this.lastAnchor_=null)}},M=class b extends I.Z{constructor(Y){const st=Y=Y||{};st.stopDown||(st.stopDown=S.Dv),super(st),this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.threshold_=void 0!==Y.threshold?Y.threshold:.3,this.duration_=void 0!==Y.duration?Y.duration:250}handleDragEvent(Y){let st=0;const ht=this.targetPointers[0],Tt=this.targetPointers[1],vt=Math.atan2(Tt.clientY-ht.clientY,Tt.clientX-ht.clientX);if(void 0!==this.lastAngle_){const Gt=vt-this.lastAngle_;this.rotationDelta_+=Gt,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),st=Gt}this.lastAngle_=vt;const Ct=Y.map,bt=Ct.getView();bt.getConstraints().rotation!==s.h$&&(this.anchor_=Ct.getCoordinateFromPixelInternal(Ct.getEventPixel((0,I.S)(this.targetPointers))),this.rotating_&&(Ct.render(),bt.adjustRotationInternal(st,this.anchor_)))}handleUpEvent(Y){return!(this.targetPointers.length<2&&(Y.map.getView().endInteraction(this.duration_),1))}handleDownEvent(Y){if(this.targetPointers.length>=2){const st=Y.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||st.getView().beginInteraction(),!0}return!1}},N=class C extends I.Z{constructor(Y){const st=Y=Y||{};st.stopDown||(st.stopDown=S.Dv),super(st),this.anchor_=null,this.duration_=void 0!==Y.duration?Y.duration:400,this.lastDistance_=void 0,this.lastScaleDelta_=1}handleDragEvent(Y){let st=1;const ht=this.targetPointers[0],Tt=this.targetPointers[1],vt=ht.clientX-Tt.clientX,Ct=ht.clientY-Tt.clientY,bt=Math.sqrt(vt*vt+Ct*Ct);void 0!==this.lastDistance_&&(st=this.lastDistance_/bt),this.lastDistance_=bt;const Gt=Y.map,kt=Gt.getView();1!=st&&(this.lastScaleDelta_=st),this.anchor_=Gt.getCoordinateFromPixelInternal(Gt.getEventPixel((0,I.S)(this.targetPointers))),Gt.render(),kt.adjustResolutionInternal(st,this.anchor_)}handleUpEvent(Y){return!(this.targetPointers.length<2)||(Y.map.getView().endInteraction(this.duration_,this.lastScaleDelta_>1?1:-1),!1)}handleDownEvent(Y){if(this.targetPointers.length>=2){const st=Y.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||st.getView().beginInteraction(),!0}return!1}};function H(it){it=it||{};const Y=new G.Z,st=new class R{constructor(Y,st,ht){this.decay_=Y,this.minVelocity_=st,this.delay_=ht,this.points_=[],this.angle_=0,this.initialVelocity_=0}begin(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0}update(Y,st){this.points_.push(Y,st,Date.now())}end(){if(this.points_.length<6)return!1;const Y=Date.now()-this.delay_,st=this.points_.length-3;if(this.points_[st+2]0&&this.points_[ht+2]>Y;)ht-=3;const Tt=this.points_[st+2]-this.points_[ht+2];if(Tt<1e3/60)return!1;const vt=this.points_[st]-this.points_[ht],Ct=this.points_[st+1]-this.points_[ht+1];return this.angle_=Math.atan2(Ct,vt),this.initialVelocity_=Math.sqrt(vt*vt+Ct*Ct)/Tt,this.initialVelocity_>this.minVelocity_}getDistance(){return(this.minVelocity_-this.initialVelocity_)/this.decay_}getAngle(){return this.angle_}}(-.005,.05,100);return(void 0===it.altShiftDragRotate||it.altShiftDragRotate)&&Y.push(new n),(void 0===it.doubleClickZoom||it.doubleClickZoom)&&Y.push(new U({delta:it.zoomDelta,duration:it.zoomDuration})),(void 0===it.dragPan||it.dragPan)&&Y.push(new c({onFocusOnly:it.onFocusOnly,kinetic:st})),(void 0===it.pinchRotate||it.pinchRotate)&&Y.push(new M),(void 0===it.pinchZoom||it.pinchZoom)&&Y.push(new N({duration:it.zoomDuration})),(void 0===it.keyboard||it.keyboard)&&(Y.push(new w),Y.push(new y({delta:it.zoomDelta,duration:it.zoomDuration}))),(void 0===it.mouseWheelZoom||it.mouseWheelZoom)&&Y.push(new L({onFocusOnly:it.onFocusOnly,duration:it.zoomDuration})),(void 0===it.shiftDragZoom||it.shiftDragZoom)&&Y.push(new e({duration:it.zoomDuration})),Y}},2462:(Bt,ot,a)=>{"use strict";a.d(ot,{Z:()=>S});var G=a(4115),D=a(3570),k=a(513),z=a(992),U=a(4331);const S=class I extends G.Z{constructor(p){super(),this.background_=p.background;const d=Object.assign({},p);"object"==typeof p.properties&&(delete d.properties,Object.assign(d,p.properties)),d[D.Z.OPACITY]=void 0!==p.opacity?p.opacity:1,(0,z.h)("number"==typeof d[D.Z.OPACITY],64),d[D.Z.VISIBLE]=void 0===p.visible||p.visible,d[D.Z.Z_INDEX]=p.zIndex,d[D.Z.MAX_RESOLUTION]=void 0!==p.maxResolution?p.maxResolution:1/0,d[D.Z.MIN_RESOLUTION]=void 0!==p.minResolution?p.minResolution:0,d[D.Z.MIN_ZOOM]=void 0!==p.minZoom?p.minZoom:-1/0,d[D.Z.MAX_ZOOM]=void 0!==p.maxZoom?p.maxZoom:1/0,this.className_=void 0!==d.className?d.className:"ol-layer",delete d.className,this.setProperties(d),this.state_=null}getBackground(){return this.background_}getClassName(){return this.className_}getLayerState(p){const d=this.state_||{layer:this,managed:void 0===p||p},u=this.getZIndex();return d.opacity=(0,U.uZ)(Math.round(100*this.getOpacity())/100,0,1),d.visible=this.getVisible(),d.extent=this.getExtent(),d.zIndex=void 0!==u||d.managed?u:1/0,d.maxResolution=this.getMaxResolution(),d.minResolution=Math.max(this.getMinResolution(),0),d.minZoom=this.getMinZoom(),d.maxZoom=this.getMaxZoom(),this.state_=d,d}getLayersArray(p){return(0,k.O3)()}getLayerStatesArray(p){return(0,k.O3)()}getExtent(){return this.get(D.Z.EXTENT)}getMaxResolution(){return this.get(D.Z.MAX_RESOLUTION)}getMinResolution(){return this.get(D.Z.MIN_RESOLUTION)}getMinZoom(){return this.get(D.Z.MIN_ZOOM)}getMaxZoom(){return this.get(D.Z.MAX_ZOOM)}getOpacity(){return this.get(D.Z.OPACITY)}getSourceState(){return(0,k.O3)()}getVisible(){return this.get(D.Z.VISIBLE)}getZIndex(){return this.get(D.Z.Z_INDEX)}setBackground(p){this.background_=p,this.changed()}setExtent(p){this.set(D.Z.EXTENT,p)}setMaxResolution(p){this.set(D.Z.MAX_RESOLUTION,p)}setMinResolution(p){this.set(D.Z.MIN_RESOLUTION,p)}setMaxZoom(p){this.set(D.Z.MAX_ZOOM,p)}setMinZoom(p){this.set(D.Z.MIN_ZOOM,p)}setOpacity(p){(0,z.h)("number"==typeof p,64),this.set(D.Z.OPACITY,p)}setVisible(p){this.set(D.Z.VISIBLE,p)}setZIndex(p){this.set(D.Z.Z_INDEX,p)}disposeInternal(){this.state_&&(this.state_.layer=null,this.state_=null),super.disposeInternal()}}},3998:(Bt,ot,a)=>{"use strict";a.d(ot,{Z:()=>k});var G=a(7521);const k=class D extends G.Z{constructor(U){super(U=U||{})}}},7319:(Bt,ot,a)=>{"use strict";a.d(ot,{Z:()=>z});var G=a(7521),D=a(3332);const z=class k extends G.Z{constructor(I){I=I||{};const S=Object.assign({},I);delete S.preload,delete S.useInterimTilesOnError,super(S),this.setPreload(void 0!==I.preload?I.preload:0),this.setUseInterimTilesOnError(void 0===I.useInterimTilesOnError||I.useInterimTilesOnError)}getPreload(){return this.get(D.Z.PRELOAD)}setPreload(I){this.set(D.Z.PRELOAD,I)}getUseInterimTilesOnError(){return this.get(D.Z.USE_INTERIM_TILES_ON_ERROR)}setUseInterimTilesOnError(I){this.set(D.Z.USE_INTERIM_TILES_ON_ERROR,I)}getData(I){return super.getData(I)}}},4420:(Bt,ot,a)=>{"use strict";a.d(ot,{Z:()=>g});var G=a(7521),D=a(3036),k=a(1786),z=a(795),U=a(694),I=a(5999),S=a(2682),P=a(5253),p=a(8185);function d(e){return new k.ZP({fill:u(e,""),stroke:c(e,""),text:s(e),image:f(e)})}function u(e,E){const v=e[E+"fill-color"];if(v)return new U.Z({color:v})}function c(e,E){const v=e[E+"stroke-width"],x=e[E+"stroke-color"];if(v||x)return new P.Z({width:v,color:x,lineCap:e[E+"stroke-line-cap"],lineJoin:e[E+"stroke-line-join"],lineDash:e[E+"stroke-line-dash"],lineDashOffset:e[E+"stroke-line-dash-offset"],miterLimit:e[E+"stroke-miter-limit"]})}function s(e){const E=e["text-value"];return E?new p.Z({text:E,font:e["text-font"],maxAngle:e["text-max-angle"],offsetX:e["text-offset-x"],offsetY:e["text-offset-y"],overflow:e["text-overflow"],placement:e["text-placement"],repeat:e["text-repeat"],scale:e["text-scale"],rotateWithView:e["text-rotate-with-view"],rotation:e["text-rotation"],textAlign:e["text-align"],justify:e["text-justify"],textBaseline:e["text-baseline"],padding:e["text-padding"],fill:u(e,"text-"),backgroundFill:u(e,"text-background-"),stroke:c(e,"text-"),backgroundStroke:c(e,"text-background-")}):void 0}function f(e){const E=e["icon-src"],v=e["icon-img"];if(E||v)return new I.Z({src:E,img:v,imgSize:e["icon-img-size"],anchor:e["icon-anchor"],anchorOrigin:e["icon-anchor-origin"],anchorXUnits:e["icon-anchor-x-units"],anchorYUnits:e["icon-anchor-y-units"],color:e["icon-color"],crossOrigin:e["icon-cross-origin"],offset:e["icon-offset"],displacement:e["icon-displacement"],opacity:e["icon-opacity"],scale:e["icon-scale"],rotation:e["icon-rotation"],rotateWithView:e["icon-rotate-with-view"],size:e["icon-size"],declutterMode:e["icon-declutter-mode"]});const x=e["shape-points"];if(x){const O="shape-";return new S.Z({points:x,fill:u(e,O),stroke:c(e,O),radius:e["shape-radius"],radius1:e["shape-radius1"],radius2:e["shape-radius2"],angle:e["shape-angle"],displacement:e["shape-displacement"],rotation:e["shape-rotation"],rotateWithView:e["shape-rotate-with-view"],scale:e["shape-scale"],declutterMode:e["shape-declutter-mode"]})}const w=e["circle-radius"];if(w){const O="circle-";return new z.Z({radius:w,fill:u(e,O),stroke:c(e,O),displacement:e["circle-displacement"],scale:e["circle-scale"],rotation:e["circle-rotation"],rotateWithView:e["circle-rotate-with-view"],declutterMode:e["circle-declutter-mode"]})}}const g=class h extends G.Z{constructor(E){E=E||{};const v=Object.assign({},E);delete v.style,delete v.renderBuffer,delete v.updateWhileAnimating,delete v.updateWhileInteracting,super(v),this.declutter_=void 0!==E.declutter&&E.declutter,this.renderBuffer_=void 0!==E.renderBuffer?E.renderBuffer:100,this.style_=null,this.styleFunction_=void 0,this.setStyle(E.style),this.updateWhileAnimating_=void 0!==E.updateWhileAnimating&&E.updateWhileAnimating,this.updateWhileInteracting_=void 0!==E.updateWhileInteracting&&E.updateWhileInteracting}getDeclutter(){return this.declutter_}getFeatures(E){return super.getFeatures(E)}getRenderBuffer(){return this.renderBuffer_}getRenderOrder(){return this.get("renderOrder")}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}getUpdateWhileAnimating(){return this.updateWhileAnimating_}getUpdateWhileInteracting(){return this.updateWhileInteracting_}renderDeclutter(E){E.declutterTree||(E.declutterTree=new D(9)),this.getRenderer().renderDeclutter(E)}setRenderOrder(E){this.set("renderOrder",E)}setStyle(E){let v;if(void 0===E)v=k.yF;else if(null===E)v=null;else if("function"==typeof E)v=E;else if(E instanceof k.ZP)v=E;else if(Array.isArray(E)){const x=E.length,w=new Array(x);for(let O=0;O{"use strict";a.d(ot,{V:()=>c,Z:()=>n});var G=a(2462),D=a(9573),k=a(448),z=a(3615),U=a(3044),I=a(8296),S=a(992),P=a(9306),p=a(9543),d=a(513),u=a(2716);class c extends z.ZP{constructor(g,e){super(g),this.layer=e}}class f extends G.Z{constructor(g){g=g||{};const e=Object.assign({},g);delete e.layers;let E=g.layers;super(e),this.layersListenerKeys_=[],this.listenerKeys_={},this.addChangeListener("layers",this.handleLayersChanged_),E?Array.isArray(E)?E=new D.Z(E.slice(),{unique:!0}):(0,S.h)("function"==typeof E.getArray,43):E=new D.Z(void 0,{unique:!0}),this.setLayers(E)}handleLayerChange_(){this.changed()}handleLayersChanged_(){this.layersListenerKeys_.forEach(u.bN),this.layersListenerKeys_.length=0;const g=this.getLayers();this.layersListenerKeys_.push((0,u.oL)(g,k.Z.ADD,this.handleLayersAdd_,this),(0,u.oL)(g,k.Z.REMOVE,this.handleLayersRemove_,this));for(const E in this.listenerKeys_)this.listenerKeys_[E].forEach(u.bN);(0,P.Z)(this.listenerKeys_);const e=g.getArray();for(let E=0,v=e.length;E{"use strict";a.d(ot,{Z:()=>z});var G=a(3998),D=a(8915);const z=class k extends G.Z{constructor(I){super(I)}createRenderer(){return new D.Z(this)}getData(I){return super.getData(I)}}},7521:(Bt,ot,a)=>{"use strict";a.d(ot,{Z:()=>u,j:()=>d});var G=a(2462),D=a(3044),k=a(3570),z=a(8779),U=a(5109),I=a(992),S=a(9543),P=a(2716);function d(c,s){if(!c.visible)return!1;const f=s.resolution;if(f=c.maxResolution)return!1;const n=s.zoom;return n>c.minZoom&&n<=c.maxZoom}const u=class p extends G.Z{constructor(s){const f=Object.assign({},s);delete f.source,super(f),this.mapPrecomposeKey_=null,this.mapRenderKey_=null,this.sourceChangeKey_=null,this.renderer_=null,this.sourceReady_=!1,this.rendered=!1,s.render&&(this.render=s.render),s.map&&this.setMap(s.map),this.addChangeListener(k.Z.SOURCE,this.handleSourcePropertyChange_),this.setSource(s.source?s.source:null)}getLayersArray(s){return(s=s||[]).push(this),s}getLayerStatesArray(s){return(s=s||[]).push(this.getLayerState()),s}getSource(){return this.get(k.Z.SOURCE)||null}getRenderSource(){return this.getSource()}getSourceState(){const s=this.getSource();return s?s.getState():"undefined"}handleSourceChange_(){this.changed(),!this.sourceReady_&&"ready"===this.getSource().getState()&&(this.sourceReady_=!0,this.dispatchEvent("sourceready"))}handleSourcePropertyChange_(){this.sourceChangeKey_&&((0,P.bN)(this.sourceChangeKey_),this.sourceChangeKey_=null),this.sourceReady_=!1;const s=this.getSource();s&&(this.sourceChangeKey_=(0,P.oL)(s,D.Z.CHANGE,this.handleSourceChange_,this),"ready"===s.getState()&&(this.sourceReady_=!0,setTimeout(()=>{this.dispatchEvent("sourceready")},0))),this.changed()}getFeatures(s){return this.renderer_?this.renderer_.getFeatures(s):Promise.resolve([])}getData(s){return this.renderer_&&this.rendered?this.renderer_.getData(s):null}isVisible(s){let f;f=s instanceof U.ZP?{viewState:s.getState(),extent:s.calculateExtent()}:s;const n=this.getExtent();return this.getVisible()&&d(this.getLayerState(),f.viewState)&&(!n||(0,S.kK)(n,f.extent))}getAttributions(s){if(!this.isVisible(s))return[];let f;const n=this.getSource();if(n&&(f=n.getAttributions()),!f)return[];let g=f(s instanceof U.ZP?s.getViewStateAndExtent():s);return Array.isArray(g)||(g=[g]),g}render(s,f){const n=this.getRenderer();if(n.prepareFrame(s))return this.rendered=!0,n.renderFrame(s,f)}unrender(){this.rendered=!1}setMapInternal(s){s||this.unrender(),this.set(k.Z.MAP,s)}getMapInternal(){return this.get(k.Z.MAP)}setMap(s){this.mapPrecomposeKey_&&((0,P.bN)(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),s||this.changed(),this.mapRenderKey_&&((0,P.bN)(this.mapRenderKey_),this.mapRenderKey_=null),s&&(this.mapPrecomposeKey_=(0,P.oL)(s,z.Z.PRECOMPOSE,function(f){const h=f.frameState.layerStatesArray,g=this.getLayerState(!1);(0,I.h)(!h.some(function(e){return e.layer===g.layer}),67),h.push(g)},this),this.mapRenderKey_=(0,P.oL)(this,D.Z.CHANGE,s.render,s),this.changed())}setSource(s){this.set(k.Z.SOURCE,s)}getRenderer(){return this.renderer_||(this.renderer_=this.createRenderer()),this.renderer_}hasRenderer(){return!!this.renderer_}createRenderer(){return null}disposeInternal(){this.renderer_&&(this.renderer_.dispose(),delete this.renderer_),this.setSource(null),super.disposeInternal()}}},3570:(Bt,ot,a)=>{"use strict";a.d(ot,{Z:()=>G});const G={OPACITY:"opacity",VISIBLE:"visible",EXTENT:"extent",Z_INDEX:"zIndex",MAX_RESOLUTION:"maxResolution",MIN_RESOLUTION:"minResolution",MAX_ZOOM:"maxZoom",MIN_ZOOM:"minZoom",SOURCE:"source",MAP:"map"}},993:(Bt,ot,a)=>{"use strict";a.d(ot,{Z:()=>z});var G=a(7319),D=a(6257);const z=class k extends G.Z{constructor(I){super(I)}createRenderer(){return new D.Z(this)}}},3332:(Bt,ot,a)=>{"use strict";a.d(ot,{Z:()=>G});const G={PRELOAD:"preload",USE_INTERIM_TILES_ON_ERROR:"useInterimTilesOnError"}},7356:(Bt,ot,a)=>{"use strict";a.d(ot,{Z:()=>z});var G=a(4420),D=a(2308);const z=class k extends G.Z{constructor(I){super(I)}createRenderer(){return new D.Z(this)}}},585:(Bt,ot,a)=>{"use strict";a.d(ot,{Z:()=>x});var G=a(4420),D=a(7599),k=a(1015),z=a(6257),U=a(4700),I=a(9500),S=a(7713),P=a(7139),p=a(9543),d=a(7707),u=a(513),c=a(931),s=a(5415);const f={image:["Polygon","Circle","LineString","Image","Text"],hybrid:["Polygon","LineString"],vector:[]},n={hybrid:["Image","Text","Default"],vector:["Polygon","Circle","LineString","Image","Text","Default"]},g=class h extends z.Z{constructor(O){super(O),this.boundHandleStyleImageChange_=this.handleStyleImageChange_.bind(this),this.renderedPixelToCoordinateTransform_=null,this.tmpTransform_=(0,P.Ue)()}prepareTile(O,y,R){let W;const K=O.getState();return(K===U.Z.LOADED||K===U.Z.ERROR)&&(this.updateExecutorGroup_(O,y,R),this.tileImageNeedsRender_(O)&&(W=!0)),W}getTile(O,y,R,W){const K=W.pixelRatio,nt=W.viewState,A=nt.resolution,L=nt.projection,b=this.getLayer(),M=b.getSource().getTile(O,y,R,K,L),C=W.viewHints,N=!(C[I.Z.ANIMATING]||C[I.Z.INTERACTING]);return(N||!M.wantedResolution)&&(M.wantedResolution=A),this.prepareTile(M,K,L)&&(N||Date.now()-W.time<8)&&"vector"!==b.getRenderMode()&&this.renderTileImage_(M,W),super.getTile(O,y,R,W)}isDrawableTile(O){const y=this.getLayer();return super.isDrawableTile(O)&&("vector"===y.getRenderMode()?(0,u.sq)(y)in O.executorGroups:O.hasContext(y))}getTileImage(O){return O.getImage(this.getLayer())}prepareFrame(O){const y=this.getLayer().getRevision();return this.renderedLayerRevision_!==y&&(this.renderedLayerRevision_=y,this.renderedTiles.length=0),super.prepareFrame(O)}updateExecutorGroup_(O,y,R){const W=this.getLayer(),K=W.getRevision(),nt=W.getRenderOrder()||null,A=O.wantedResolution,L=O.getReplayState(W);if(!L.dirty&&L.renderedResolution===A&&L.renderedRevision==K&&L.renderedRenderOrder==nt)return;const b=W.getSource(),M=W.getDeclutter(),C=b.getTileGrid(),H=b.getTileGridForProjection(R).getTileCoordExtent(O.wrappedTileCoord),it=b.getSourceTiles(y,R,O),Y=(0,u.sq)(W);delete O.hitDetectionImageData[Y],O.executorGroups[Y]=[],M&&(O.declutterExecutorGroups[Y]=[]),L.dirty=!1;for(let st=0,ht=it.length;st{const ie=kt===Gt?y.declutterTree.all().map(zt=>zt.value):null;for(let zt=0,ue=kt.length;zt{const W=this.getLayer(),K=(0,u.sq)(W),nt=W.getSource(),A=this.renderedProjection,L=A.getExtent(),b=this.renderedResolution,M=nt.getTileGridForProjection(A),C=(0,P.nn)(this.renderedPixelToCoordinateTransform_,O.slice()),N=M.getTileCoordForCoordAndResolution(C,b);let H;for(let vt=0,Ct=this.renderedTiles.length;vt0)return void y([]);const it=M.getTileCoordExtent(H.wrappedTileCoord),Y=(0,p.rL)(it),st=[(C[0]-Y[0])/b,(Y[1]-C[1])/b],ht=H.getSourceTiles().reduce(function(vt,Ct){return vt.concat(Ct.getFeatures())},[]);let Tt=H.hitDetectionImageData[K];if(!Tt){const vt=(0,c.Pq)(M.getTileSize(M.getZForResolution(b,nt.zDirection))),Ct=this.renderedRotation_,bt=[this.getRenderTransform(M.getTileCoordCenter(H.wrappedTileCoord),b,0,S.UN,vt[0]*S.UN,vt[1]*S.UN,0)];Tt=(0,S.TU)(vt,bt,ht,W.getStyleFunction(),M.getTileCoordExtent(H.wrappedTileCoord),H.getReplayState(W).renderedResolution,Ct),H.hitDetectionImageData[K]=Tt}y((0,S.ix)(st,ht,Tt))})}handleFontsChanged(){const O=this.getLayer();O.getVisible()&&void 0!==this.renderedLayerRevision_&&O.changed()}handleStyleImageChange_(O){this.renderIfReadyAndVisible()}renderDeclutter(O){const y=this.context,R=y.globalAlpha;y.globalAlpha=this.getLayer().getOpacity();const W=O.viewHints,K=!(W[I.Z.ANIMATING]||W[I.Z.INTERACTING]),nt=this.renderedTiles;for(let A=0,L=nt.length;A=0;--C)M[C].execute(this.context,1,this.getTileRenderTransform(b,O),O.viewState.rotation,K,void 0,O.declutterTree)}y.globalAlpha=R}getTileRenderTransform(O,y){const R=y.pixelRatio,W=y.viewState,K=W.center,nt=W.resolution,A=W.rotation,L=y.size,b=Math.round(L[0]*R),M=Math.round(L[1]*R),N=this.getLayer().getSource().getTileGridForProjection(y.viewState.projection),H=O.tileCoord,it=N.getTileCoordExtent(O.wrappedTileCoord),Y=N.getTileCoordExtent(H,this.tmpExtent)[0]-it[0];return(0,P.Jp)((0,P.bA)(this.inversePixelTransform.slice(),1/R,1/R),this.getRenderTransform(K,nt,A,R,b,M,Y))}postRender(O,y){const R=y.viewHints,W=!(R[I.Z.ANIMATING]||R[I.Z.INTERACTING]);this.renderedPixelToCoordinateTransform_=y.pixelToCoordinateTransform.slice(),this.renderedRotation_=y.viewState.rotation;const K=this.getLayer(),nt=K.getRenderMode(),A=O.globalAlpha;O.globalAlpha=K.getOpacity();const L=n[nt],b=y.viewState,M=b.rotation,C=K.getSource(),H=C.getTileGridForProjection(b.projection).getZForResolution(b.resolution,C.zDirection),it=this.renderedTiles,Y=[],st=[];let ht=!0;for(let Tt=it.length-1;Tt>=0;--Tt){const vt=it[Tt];ht=ht&&!vt.getReplayState(K).dirty;const Ct=vt.executorGroups[(0,u.sq)(K)].filter(zt=>zt.hasExecutors(L));if(0===Ct.length)continue;const bt=this.getTileRenderTransform(vt,y),Gt=vt.tileCoord[0];let kt=!1;const ie=Ct[0].getClipCoords(bt);if(ie){for(let zt=0,ue=Y.length;zt{"use strict";function D(U,I){return[[-1/0,-1/0,1/0,1/0]]}function k(U,I){return[U]}a.d(ot,{$6:()=>D,VW:()=>k}),a(9015)},4331:(Bt,ot,a)=>{"use strict";function G(s,f,n){return Math.min(Math.max(s,f),n)}function D(s,f,n,h,g,e){const E=g-n,v=e-h;if(0!==E||0!==v){const x=((s-n)*E+(f-h)*v)/(E*E+v*v);x>1?(n=g,h=e):x>0&&(n+=E*x,h+=v*x)}return k(s,f,n,h)}function k(s,f,n,h){const g=n-s,e=h-f;return g*g+e*e}function z(s){const f=s.length;for(let h=0;he&&(e=x,g=v)}if(0===e)return null;const E=s[g];s[g]=s[h],s[h]=E;for(let v=h+1;v=0;h--){n[h]=s[h][f]/s[h][h];for(let g=h-1;g>=0;g--)s[g][f]-=s[g][h]*n[h]}return n}function I(s){return s*Math.PI/180}function S(s,f){const n=s%f;return n*f<0?n+f:n}function P(s,f,n){return s+n*(f-s)}function p(s,f){const n=Math.pow(10,f);return Math.round(s*n)/n}function d(s,f){return Math.round(p(s,f))}function u(s,f){return Math.floor(p(s,f))}function c(s,f){return Math.ceil(p(s,f))}a.d(ot,{$W:()=>S,FH:()=>p,GW:()=>u,NM:()=>d,SV:()=>z,Yr:()=>I,bI:()=>k,mD:()=>c,rU:()=>D,t7:()=>P,uZ:()=>G})},9306:(Bt,ot,a)=>{"use strict";function G(k){for(const z in k)delete k[z]}function D(k){let z;for(z in k)return!1;return!z}a.d(ot,{Z:()=>G,x:()=>D})},5622:(Bt,ot,a)=>{"use strict";a.d(ot,{Z:()=>G});const G={POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"}},9015:(Bt,ot,a)=>{"use strict";a.d(ot,{Wm:()=>h.W,kv:()=>G.Z,zY:()=>ie,rM:()=>vt,Sx:()=>Y,UQ:()=>Gt,uA:()=>Ze,h_:()=>N,OP:()=>de,mi:()=>zt,Vs:()=>jt,dY:()=>he,U2:()=>ht,_Q:()=>Tt,Ck:()=>Se,WO:()=>ce,Cs:()=>gt,gD:()=>it,lO:()=>Zt,Fj:()=>Wt,on:()=>_e,vs:()=>dt,$A:()=>Ot});var G=a(2632);const D=6378137,k=Math.PI*D,z=[-k,-k,k,k],U=[-180,-85,180,85],I=D*Math.log(Math.tan(Math.PI/2));class S extends G.Z{constructor(m){super({code:m,units:"m",extent:z,global:!0,worldExtent:U,getPointResolution:function(F,Q){return F/Math.cosh(Q[1]/D)}})}}const P=[new S("EPSG:3857"),new S("EPSG:102100"),new S("EPSG:102113"),new S("EPSG:900913"),new S("http://www.opengis.net/def/crs/EPSG/0/3857"),new S("http://www.opengis.net/gml/srs/epsg.xml#3857")];function p(ct,m,F){const Q=ct.length;F=F>1?F:2,void 0===m&&(m=F>2?ct.slice():new Array(Q));for(let V=0;VI?lt=I:lt<-I&&(lt=-I),m[V+1]=lt}return m}function d(ct,m,F){const Q=ct.length;F=F>1?F:2,void 0===m&&(m=F>2?ct.slice():new Array(Q));for(let V=0;V=St?m[lt+Nt]:_t[Nt]}return F}}function ie(ct,m,F,Q){const V=ht(ct),lt=ht(m);(0,x.IH)(V,lt,kt(F)),(0,x.IH)(lt,V,kt(Q))}function zt(ct,m){return N(),dt(ct,"EPSG:4326",void 0!==m?m:"EPSG:3857")}function de(ct,m){if(ct===m)return!0;const F=ct.getUnits()===m.getUnits();return(ct.getCode()===m.getCode()||ce(ct,m)===H)&&F}function ce(ct,m){const F=ct.getCode(),Q=m.getCode();let V=(0,x.U2)(F,Q);return V||(V=it),V}function Se(ct,m){return ce(ht(ct),ht(m))}function dt(ct,m,F){return Se(m,F)(ct,void 0,ct.length)}function Ot(ct,m,F,Q){const V=Se(m,F);return(0,w.Ne)(ct,V,void 0,Q)}let Yt=null;function gt(){return Yt}function Zt(ct,m){return ct}function jt(ct,m){return C&&!(0,y.fS)(ct,[0,0])&&ct[0]>=-180&&ct[0]<=180&&ct[1]>=-90&&ct[1]<=90&&(C=!1,(0,M.ZK)("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),ct}function Wt(ct,m){return ct}function he(ct,m){return ct}function _e(ct,m){return ct}function Ze(ct,m,F){return function(Q){let V,lt;if(ct.canWrapX()){const _t=ct.getExtent(),St=(0,w.dz)(_t);Q=Q.slice(0),lt=(0,y.jk)(Q,ct,St),lt&&(Q[0]=Q[0]-lt*St),Q[0]=(0,O.uZ)(Q[0],_t[0],_t[2]),Q[1]=(0,O.uZ)(Q[1],_t[1],_t[3]),V=F(Q)}else V=F(Q);return lt&&m.canWrapX()&&(V[0]+=lt*(0,w.dz)(m.getExtent())),V}}!function It(){vt(P),vt(n),function Ct(ct,m,F,Q){ct.forEach(function(V){m.forEach(function(lt){(0,x.IH)(V,lt,F),(0,x.IH)(lt,V,Q)})})}(n,P,p,d)}()},2632:(Bt,ot,a)=>{"use strict";a.d(ot,{Z:()=>k});var G=a(1285);const k=class D{constructor(U){this.code_=U.code,this.units_=U.units,this.extent_=void 0!==U.extent?U.extent:null,this.worldExtent_=void 0!==U.worldExtent?U.worldExtent:null,this.axisOrientation_=void 0!==U.axisOrientation?U.axisOrientation:"enu",this.global_=void 0!==U.global&&U.global,this.canWrapX_=!(!this.global_||!this.extent_),this.getPointResolutionFunc_=U.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=U.metersPerUnit}canWrapX(){return this.canWrapX_}getCode(){return this.code_}getExtent(){return this.extent_}getUnits(){return this.units_}getMetersPerUnit(){return this.metersPerUnit_||G.W[this.units_]}getWorldExtent(){return this.worldExtent_}getAxisOrientation(){return this.axisOrientation_}isGlobal(){return this.global_}setGlobal(U){this.global_=U,this.canWrapX_=!(!U||!this.extent_)}getDefaultTileGrid(){return this.defaultTileGrid_}setDefaultTileGrid(U){this.defaultTileGrid_=U}setExtent(U){this.extent_=U,this.canWrapX_=!(!this.global_||!U)}setWorldExtent(U){this.worldExtent_=U}setGetPointResolution(U){this.getPointResolutionFunc_=U}getPointResolutionFunc(){return this.getPointResolutionFunc_}}},1285:(Bt,ot,a)=>{"use strict";a.d(ot,{W:()=>k});const k={radians:6370997/(2*Math.PI),degrees:2*Math.PI*6370997/360,ft:.3048,m:1,"us-ft":1200/3937}},3669:(Bt,ot,a)=>{"use strict";a.d(ot,{z2:()=>S});var G=a(2632),D=a(9015),k=a(6794);let z=null;function S(s){z=s;const f=Object.keys(s.defs),n=f.length;let h,g;for(h=0;h{"use strict";a.d(ot,{IH:()=>k,U2:()=>U});let G={};function k(I,S,P){const p=I.getCode(),d=S.getCode();p in G||(G[p]={}),G[p][d]=P}function U(I,S){let P;return I in G&&S in G[I]&&(P=G[I][S]),P}},9683:(Bt,ot,a)=>{"use strict";a.d(ot,{Z:()=>k});var G=a(3615);const k=class D extends G.ZP{constructor(U,I,S,P){super(U),this.inversePixelTransform=I,this.frameState=S,this.context=P}}},8779:(Bt,ot,a)=>{"use strict";a.d(ot,{Z:()=>G});const G={PRERENDER:"prerender",POSTRENDER:"postrender",PRECOMPOSE:"precompose",POSTCOMPOSE:"postcompose",RENDERCOMPLETE:"rendercomplete"}},2929:(Bt,ot,a)=>{"use strict";a.d(ot,{ZP:()=>s});var G=a(7139),D=a(9543),k=a(142),z=a(5577),U=a(9015),I=a(7170),S=a(2783),P=a(3904);const p=(0,G.Ue)();class d{constructor(n,h,g,e,E){this.id_=E,this.type_=n,this.flatCoordinates_=h,this.flatInteriorPoints_=null,this.flatMidpoints_=null,this.ends_=g,this.properties_=e}get(n){return this.properties_[n]}getExtent(){return this.extent_||(this.extent_="Point"===this.type_?(0,D.HK)(this.flatCoordinates_):(0,D.GN)(this.flatCoordinates_,0,this.flatCoordinates_.length,2)),this.extent_}getFlatInteriorPoint(){if(!this.flatInteriorPoints_){const n=(0,D.qg)(this.getExtent());this.flatInteriorPoints_=(0,z.X)(this.flatCoordinates_,0,this.ends_,2,n,0)}return this.flatInteriorPoints_}getFlatInteriorPoints(){if(!this.flatInteriorPoints_){const n=(0,S.E)(this.flatCoordinates_,0,this.ends_,2);this.flatInteriorPoints_=(0,z.U)(this.flatCoordinates_,0,this.ends_,2,n)}return this.flatInteriorPoints_}getFlatMidpoint(){return this.flatMidpoints_||(this.flatMidpoints_=(0,I.WW)(this.flatCoordinates_,0,this.flatCoordinates_.length,2,.5)),this.flatMidpoints_}getFlatMidpoints(){if(!this.flatMidpoints_){this.flatMidpoints_=[];const n=this.flatCoordinates_;let h=0;const g=this.ends_;for(let e=0,E=g.length;e{"use strict";a.d(ot,{Z:()=>D});const D=class G{drawCustom(z,U,I,S){}drawGeometry(z){}setStyle(z){}drawCircle(z,U){}drawFeature(z,U){}drawGeometryCollection(z,U){}drawLineString(z,U){}drawMultiLineString(z,U){}drawMultiPoint(z,U){}drawMultiPolygon(z,U){}drawPoint(z,U){}drawPolygon(z,U){}drawText(z,U){}setFillStrokeStyle(z,U){}setImageStyle(z,U){}setTextStyle(z,U){}}},2768:(Bt,ot,a)=>{"use strict";a.d(ot,{Df:()=>I,He:()=>d,Kd:()=>W,PH:()=>f,Qx:()=>w,Tx:()=>s,V4:()=>c,X9:()=>p,Zw:()=>K,_f:()=>A,bL:()=>S,mb:()=>P,oB:()=>h,rc:()=>u,ru:()=>n,sG:()=>e,yC:()=>g});var G=a(4115),D=a(5063),k=a(9306),z=a(3842),U=a(1119);const I="10px sans-serif",S="#000",P="round",p=[],d=0,u="round",c=10,s="#000",f="center",n="middle",h=[0,0,0,0],g=1,e=new G.Z;let v,E=null;const x={},w=function(){const M="32px ",C=["monospace","serif"],N=C.length,H="wmytzilWMYTZIL@#/&?$%10\uf013";let it,Y;function st(Tt,vt,Ct){let bt=!0;for(let Gt=0;GtMath.max(H,R(b,it)),0);return C[M]=N,N}function K(b,M){const C=[],N=[],H=[];let it=0,Y=0,st=0,ht=0;for(let Tt=0,vt=M.length;Tt<=vt;Tt+=2){const Ct=M[Tt];if("\n"===Ct||Tt===vt){it=Math.max(it,Y),H.push(Y),Y=0,st+=ht;continue}const bt=M[Tt+1]||b.font,Gt=R(bt,Ct);C.push(Gt),Y+=Gt;const kt=O(bt);N.push(kt),ht=Math.max(ht,kt)}return{width:it,height:st,widths:C,heights:N,lineWidths:H}}function A(b,M,C,N,H,it,Y,st,ht,Tt,vt){b.save(),1!==C&&(b.globalAlpha*=C),M&&b.setTransform.apply(b,M),N.contextInstructions?(b.translate(ht,Tt),b.scale(vt[0],vt[1]),function L(b,M){const C=b.contextInstructions;for(let N=0,H=C.length;N{"use strict";a.d(ot,{Z:()=>d});var G=a(3430),D=a(8326),k=a(8110),z=a(4890),U=a(9543),I=a(2768),S=a(142),P=a(4850);const d=class p extends k.Z{constructor(c,s,f,n){super(),this.tolerance=c,this.maxExtent=s,this.pixelRatio=n,this.maxLineWidth=0,this.resolution=f,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_=null,this.bufferedMaxExtent_=null,this.instructions=[],this.coordinates=[],this.tmpCoordinate_=[],this.hitDetectionInstructions=[],this.state={}}applyPixelRatio(c){const s=this.pixelRatio;return 1==s?c:c.map(function(f){return f*s})}appendFlatPointCoordinates(c,s){const f=this.getBufferedMaxExtent(),n=this.tmpCoordinate_,h=this.coordinates;let g=h.length;for(let e=0,E=c.length;ee&&(this.instructions.push([G.ZP.CUSTOM,e,v,c,f,P.Ml]),this.hitDetectionInstructions.push([G.ZP.CUSTOM,e,v,c,n||f,P.Ml]));break;case"Point":E=c.getFlatCoordinates(),this.coordinates.push(E[0],E[1]),v=this.coordinates.length,this.instructions.push([G.ZP.CUSTOM,e,v,c,f]),this.hitDetectionInstructions.push([G.ZP.CUSTOM,e,v,c,n||f])}this.endGeometry(s)}beginGeometry(c,s){this.beginGeometryInstruction1_=[G.ZP.BEGIN_GEOMETRY,s,0,c],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[G.ZP.BEGIN_GEOMETRY,s,0,c],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)}finish(){return{instructions:this.instructions,hitDetectionInstructions:this.hitDetectionInstructions,coordinates:this.coordinates}}reverseHitDetectionInstructions(){const c=this.hitDetectionInstructions;let s;c.reverse();const f=c.length;let n,h,g=-1;for(s=0;sthis.maxLineWidth&&(this.maxLineWidth=f.lineWidth,this.bufferedMaxExtent_=null)}else f.strokeStyle=void 0,f.lineCap=void 0,f.lineDash=null,f.lineDashOffset=void 0,f.lineJoin=void 0,f.lineWidth=void 0,f.miterLimit=void 0}createFill(c){const s=c.fillStyle,f=[G.ZP.SET_FILL_STYLE,s];return"string"!=typeof s&&f.push(!0),f}applyStroke(c){this.instructions.push(this.createStroke(c))}createStroke(c){return[G.ZP.SET_STROKE_STYLE,c.strokeStyle,c.lineWidth*this.pixelRatio,c.lineCap,c.lineJoin,c.miterLimit,this.applyPixelRatio(c.lineDash),c.lineDashOffset*this.pixelRatio]}updateFillStyle(c,s){const f=c.fillStyle;("string"!=typeof f||c.currentFillStyle!=f)&&(void 0!==f&&this.instructions.push(s.call(this,c)),c.currentFillStyle=f)}updateStrokeStyle(c,s){const f=c.strokeStyle,n=c.lineCap,h=c.lineDash,g=c.lineDashOffset,e=c.lineJoin,E=c.lineWidth,v=c.miterLimit;(c.currentStrokeStyle!=f||c.currentLineCap!=n||h!=c.currentLineDash&&!(0,S.fS)(c.currentLineDash,h)||c.currentLineDashOffset!=g||c.currentLineJoin!=e||c.currentLineWidth!=E||c.currentMiterLimit!=v)&&(void 0!==f&&s.call(this,c),c.currentStrokeStyle=f,c.currentLineCap=n,c.currentLineDash=h,c.currentLineDashOffset=g,c.currentLineJoin=e,c.currentLineWidth=E,c.currentMiterLimit=v)}endGeometry(c){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;const s=[G.ZP.END_GEOMETRY,c];this.instructions.push(s),this.hitDetectionInstructions.push(s)}getBufferedMaxExtent(){return!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=(0,U.d9)(this.maxExtent),this.maxLineWidth>0)&&(0,U.f3)(this.bufferedMaxExtent_,this.resolution*(this.maxLineWidth+1)/2,this.bufferedMaxExtent_),this.bufferedMaxExtent_}}},7599:(Bt,ot,a)=>{"use strict";a.d(ot,{Z:()=>f});var G=a(1211),D=a(3430);var U=a(2768);var P=a(1757);const d=class p extends G.Z{constructor(h,g,e,E){super(h,g,e,E)}drawFlatCoordinatess_(h,g,e,E){const v=this.state,x=void 0!==v.fillStyle,w=void 0!==v.strokeStyle,O=e.length;this.instructions.push(D.$O),this.hitDetectionInstructions.push(D.$O);for(let y=0;y{"use strict";a.d(ot,{Z:()=>nt});var G=a(3430),D=a(8840),k=a(7139),z=a(9543),U=a(2768),I=a(4331),S=a(3904);function P(A,L,b,M,C,N,H,it,Y,st,ht,Tt){let vt=A[L],Ct=A[L+1],bt=0,Gt=0,kt=0,ie=0;function zt(){bt=vt,Gt=Ct,vt=A[L+=M],Ct=A[L+1],ie+=kt,kt=Math.sqrt((vt-bt)*(vt-bt)+(Ct-Gt)*(Ct-Gt))}do{zt()}while(Ljt[2]}else ge=de>At;const qt=Math.PI,gt=[],Mt=Se+M===L;let Zt;if(kt=0,ie=dt,vt=A[L=Se],Ct=A[L+1],Mt)return zt(),Zt=Math.atan2(Ct-Gt,vt-bt),ge&&(Zt+=Zt>0?-qt:qt),gt[0]=[(At+de)/2,(Yt+ce)/2,(Ot-N)/2,Zt,C],gt;for(let jt=0,Wt=(C=C.replace(/\n/g," ")).length;jt0?-qt:qt),void 0!==Zt){let m=he-Zt;if(m+=m>qt?-2*qt:m<-qt?2*qt:0,Math.abs(m)>H)return null}Zt=he;const _e=jt;let Le=0;for(;jt0&&A.push("\n",""),A.push(L,""),A}const x=class v{constructor(L,b,M,C){this.overlaps=M,this.pixelRatio=b,this.resolution=L,this.instructions=C.instructions,this.coordinates=C.coordinates,this.coordinateCache_={},this.renderedTransform_=(0,k.Ue)(),this.hitDetectionInstructions=C.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=C.fillStates||{},this.strokeStates=C.strokeStates||{},this.textStates=C.textStates||{},this.widths_={},this.labels_={}}createLabel(L,b,M,C){const N=L+b+M+C;if(this.labels_[N])return this.labels_[N];const H=C?this.strokeStates[C]:null,it=M?this.fillStates[M]:null,Y=this.textStates[b],st=this.pixelRatio,ht=[Y.scale[0]*st,Y.scale[1]*st],Tt=Array.isArray(L),vt=Y.justify?D.I[Y.justify]:e(Array.isArray(L)?L[0]:L,Y.textAlign||U.PH),Ct=C&&H.lineWidth?H.lineWidth:0,bt=Tt?L:L.split("\n").reduce(E,[]),{width:Gt,height:kt,widths:ie,heights:zt,lineWidths:ue}=(0,U.Zw)(Y,bt),de=Gt+Ct,ce=[],Se=(de+2)*ht[0],dt=(kt+Ct)*ht[1],Ot={width:Se<0?Math.floor(Se):Math.ceil(Se),height:dt<0?Math.floor(dt):Math.ceil(dt),contextInstructions:ce};(1!=ht[0]||1!=ht[1])&&ce.push("scale",ht),C&&(ce.push("strokeStyle",H.strokeStyle),ce.push("lineWidth",Ct),ce.push("lineCap",H.lineCap),ce.push("lineJoin",H.lineJoin),ce.push("miterLimit",H.miterLimit),ce.push("setLineDash",[H.lineDash]),ce.push("lineDashOffset",H.lineDashOffset)),M&&ce.push("fillStyle",it.fillStyle),ce.push("textBaseline","middle"),ce.push("textAlign","center");const At=.5-vt;let Yt=vt*de+At*Ct;const ge=[],qt=[];let Wt,gt=0,Mt=0,Zt=0,jt=0;for(let he=0,_e=bt.length;he<_e;he+=2){const Le=bt[he];if("\n"===Le){Mt+=gt,gt=0,Yt=vt*de+At*Ct,++jt;continue}const Ze=bt[he+1]||Y.font;Ze!==Wt&&(C&&ge.push("font",Ze),M&&qt.push("font",Ze),Wt=Ze),gt=Math.max(gt,zt[Zt]);const It=[Le,Yt+At*ie[Zt]+vt*(ie[Zt]-ue[jt]),.5*(Ct+gt)+Mt];Yt+=ie[Zt],C&&ge.push("strokeText",It),M&&qt.push("fillText",It),++Zt}return Array.prototype.push.apply(ce,ge),Array.prototype.push.apply(ce,qt),this.labels_[N]=Ot,Ot}replayTextBackground_(L,b,M,C,N,H,it){L.beginPath(),L.moveTo.apply(L,b),L.lineTo.apply(L,M),L.lineTo.apply(L,C),L.lineTo.apply(L,N),L.lineTo.apply(L,b),H&&(this.alignFill_=H[2],this.fill_(L)),it&&(this.setStrokeStyle_(L,it),L.stroke())}calculateImageOrLabelDimensions_(L,b,M,C,N,H,it,Y,st,ht,Tt,vt,Ct,bt,Gt,kt){let ie=M-(it*=vt[0]),zt=C-(Y*=vt[1]);const ue=N+st>L?L-st:N,de=H+ht>b?b-ht:H,ce=bt[3]+ue*vt[0]+bt[1],Se=bt[0]+de*vt[1]+bt[2],dt=ie-bt[3],Ot=zt-bt[0];let At;return(Gt||0!==Tt)&&(c[0]=dt,n[0]=dt,c[1]=Ot,s[1]=Ot,s[0]=dt+ce,f[0]=s[0],f[1]=Ot+Se,n[1]=f[1]),0!==Tt?(At=(0,k.qC)((0,k.Ue)(),M,C,1,1,Tt,-M,-C),(0,k.nn)(At,c),(0,k.nn)(At,s),(0,k.nn)(At,f),(0,k.nn)(At,n),(0,z.T9)(Math.min(c[0],s[0],f[0],n[0]),Math.min(c[1],s[1],f[1],n[1]),Math.max(c[0],s[0],f[0],n[0]),Math.max(c[1],s[1],f[1],n[1]),u)):(0,z.T9)(Math.min(dt,dt+ce),Math.min(Ot,Ot+Se),Math.max(dt,dt+ce),Math.max(Ot,Ot+Se),u),Ct&&(ie=Math.round(ie),zt=Math.round(zt)),{drawImageX:ie,drawImageY:zt,drawImageW:ue,drawImageH:de,originX:st,originY:ht,declutterBox:{minX:u[0],minY:u[1],maxX:u[2],maxY:u[3],value:kt},canvasTransform:At,scale:vt}}replayImageOrLabel_(L,b,M,C,N,H,it){const st=C.declutterBox,ht=L.canvas,Tt=it?it[2]*C.scale[0]/2:0;return st.minX-Tt<=ht.width/b&&st.maxX+Tt>=0&&st.minY-Tt<=ht.height/b&&st.maxY+Tt>=0&&(!(!H&&!it)&&this.replayTextBackground_(L,c,s,f,n,H,it),(0,U._f)(L,C.canvasTransform,N,M,C.originX,C.originY,C.drawImageW,C.drawImageH,C.drawImageX,C.drawImageY,C.scale)),!0}fill_(L){if(this.alignFill_){const b=(0,k.nn)(this.renderedTransform_,[0,0]),M=512*this.pixelRatio;L.save(),L.translate(b[0]%M,b[1]%M),L.rotate(this.viewRotation_)}L.fill(),this.alignFill_&&L.restore()}setStrokeStyle_(L,b){L.strokeStyle=b[1],L.lineWidth=b[2],L.lineCap=b[3],L.lineJoin=b[4],L.miterLimit=b[5],L.lineDashOffset=b[7],L.setLineDash(b[6])}drawLabelWithPointPlacement_(L,b,M,C){const N=this.textStates[b],H=this.createLabel(L,b,C,M),it=this.strokeStates[M],Y=this.pixelRatio,st=e(Array.isArray(L)?L[0]:L,N.textAlign||U.PH),ht=D.I[N.textBaseline||U.ru],Tt=it&&it.lineWidth?it.lineWidth:0;return{label:H,anchorX:st*(H.width/Y-2*N.scale[0])+2*(.5-st)*Tt,anchorY:ht*H.height/Y+2*(.5-ht)*Tt}}execute_(L,b,M,C,N,H,it,Y){let st;this.pixelCoordinates_&&(0,p.fS)(M,this.renderedTransform_)?st=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),st=(0,S.vT)(this.coordinates,0,this.coordinates.length,2,M,this.pixelCoordinates_),(0,k.lk)(this.renderedTransform_,M));let ht=0;const Tt=C.length;let Ct,bt,Gt,kt,ie,zt,ue,de,ce,Se,dt,Ot,vt=0,At=0,Yt=0,ge=null,qt=null;const gt=this.coordinateCache_,Mt=this.viewRotation_,Zt=Math.round(1e12*Math.atan2(-M[1],M[0]))/1e12,jt={context:L,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:Mt},Wt=this.instructions!=C||this.overlaps?0:200;let he,_e,Le,Ze;for(;htWt&&(this.fill_(L),At=0),Yt>Wt&&(L.stroke(),Yt=0),!At&&!Yt&&(L.beginPath(),kt=NaN,ie=NaN),++ht;break;case G.ZP.CIRCLE:vt=It[1];const m=st[vt],F=st[vt+1],lt=st[vt+2]-m,_t=st[vt+3]-F,St=Math.sqrt(lt*lt+_t*_t);L.moveTo(m+St,F),L.arc(m,F,St,0,2*Math.PI,!0),++ht;break;case G.ZP.CLOSE_PATH:L.closePath(),++ht;break;case G.ZP.CUSTOM:vt=It[1],Ct=It[2];const Xt=It[4],Jt=6==It.length?It[5]:void 0;jt.geometry=It[3],jt.feature=he,ht in gt||(gt[ht]=[]);const Ee=gt[ht];Jt?Jt(st,vt,Ct,2,Ee):(Ee[0]=st[vt],Ee[1]=st[vt+1],Ee.length=2),Xt(Ee,jt),++ht;break;case G.ZP.DRAW_IMAGE:vt=It[1],Ct=It[2],de=It[3],bt=It[4],Gt=It[5];let se=It[6];const Qt=It[7],Fe=It[8],Ye=It[9],We=It[10];let Ge=It[11];const Ue=It[12];let Ve=It[13];const ii=It[14],Qe=It[15];if(!de&&It.length>=20){ce=It[19],Se=It[20],dt=It[21],Ot=It[22];const mi=this.drawLabelWithPointPlacement_(ce,Se,dt,Ot);de=mi.label,It[3]=de,bt=(mi.anchorX-It[23])*this.pixelRatio,It[4]=bt,Gt=(mi.anchorY-It[24])*this.pixelRatio,It[5]=Gt,se=de.height,It[6]=se,Ve=de.width,It[13]=Ve}let qe,q,$,mt;It.length>25&&(qe=It[25]),It.length>17?(q=It[16],$=It[17],mt=It[18]):(q=U.oB,$=!1,mt=!1),We&&Zt?Ge+=Mt:!We&&!Zt&&(Ge-=Mt);let pt=0;for(;vtb)break;let Y=M[it];Y||(Y=[],M[it]=Y),Y.push(4*((A+N)*L+(A+H))+3),N>0&&Y.push(4*((A-N)*L+(A+H))+3),H>0&&(Y.push(4*((A+N)*L+(A-H))+3),N>0&&Y.push(4*((A-N)*L+(A-H))+3))}const C=[];for(let N=0,H=M.length;N0){if(!H||"Image"!==Ct&&"Text"!==Ct||H.includes(ce)){const Yt=(vt[Ot]-3)/4,ge=C-Yt%it,qt=C-(Yt/it|0),gt=N(ce,Se,ge*ge+qt*qt);if(gt)return gt}ht.clearRect(0,0,it,it);break}}const Gt=Object.keys(this.executorsByZIndex_).map(Number);let kt,ie,zt,ue,de;for(Gt.sort(p.j2),kt=Gt.length-1;kt>=0;--kt){const ce=Gt[kt].toString();for(zt=this.executorsByZIndex_[ce],ie=y.length-1;ie>=0;--ie)if(Ct=y[ie],ue=zt[Ct],void 0!==ue&&(de=ue.executeHitDetection(ht,Y,M,bt,Tt),de))return de}}getClipCoords(L){const b=this.maxExtent_;if(!b)return null;const M=b[0],C=b[1],N=b[2],H=b[3],it=[M,C,M,H,N,H,N,C];return(0,S.vT)(it,0,8,2,L,it),it}isEmpty(){return(0,O.x)(this.executorsByZIndex_)}execute(L,b,M,C,N,H,it){const Y=Object.keys(this.executorsByZIndex_).map(Number);let st,ht,Tt,vt,Ct,bt;for(Y.sort(p.j2),this.maxExtent_&&(L.save(),this.clip(L,M)),H=H||y,it&&Y.reverse(),st=0,ht=Y.length;st{"use strict";a.d(ot,{Z:()=>u});var G=a(8110),D=a(4890),k=a(7139),z=a(2768),U=a(142),I=a(9543),S=a(4331),P=a(3904),p=a(1790);const u=class d extends G.Z{constructor(s,f,n,h,g,e,E){super(),this.context_=s,this.pixelRatio_=f,this.extent_=n,this.transform_=h,this.transformRotation_=h?(0,S.FH)(Math.atan2(h[1],h[0]),10):0,this.viewRotation_=g,this.squaredTolerance_=e,this.userTransform_=E,this.contextFillState_=null,this.contextStrokeState_=null,this.contextTextState_=null,this.fillState_=null,this.strokeState_=null,this.image_=null,this.imageAnchorX_=0,this.imageAnchorY_=0,this.imageHeight_=0,this.imageOpacity_=0,this.imageOriginX_=0,this.imageOriginY_=0,this.imageRotateWithView_=!1,this.imageRotation_=0,this.imageScale_=[0,0],this.imageWidth_=0,this.text_="",this.textOffsetX_=0,this.textOffsetY_=0,this.textRotateWithView_=!1,this.textRotation_=0,this.textScale_=[0,0],this.textFillState_=null,this.textStrokeState_=null,this.textState_=null,this.pixelCoordinates_=[],this.tmpLocalTransform_=(0,k.Ue)()}drawImages_(s,f,n,h){if(!this.image_)return;const g=(0,P.vT)(s,f,n,h,this.transform_,this.pixelCoordinates_),e=this.context_,E=this.tmpLocalTransform_,v=e.globalAlpha;1!=this.imageOpacity_&&(e.globalAlpha=v*this.imageOpacity_);let x=this.imageRotation_;0===this.transformRotation_&&(x-=this.viewRotation_),this.imageRotateWithView_&&(x+=this.viewRotation_);for(let w=0,O=g.length;wO*this.pixelRatio_),lineDashOffset:(e||z.He)*this.pixelRatio_,lineJoin:void 0!==E?E:z.rc,lineWidth:(void 0!==v?v:z.yC)*this.pixelRatio_,miterLimit:void 0!==x?x:z.V4,strokeStyle:(0,D.y)(n||z.Tx)}}else this.strokeState_=null}setImageStyle(s){let f;if(!s||!(f=s.getSize()))return void(this.image_=null);const n=s.getPixelRatio(this.pixelRatio_),h=s.getAnchor(),g=s.getOrigin();this.image_=s.getImage(this.pixelRatio_),this.imageAnchorX_=h[0]*n,this.imageAnchorY_=h[1]*n,this.imageHeight_=f[1]*n,this.imageOpacity_=s.getOpacity(),this.imageOriginX_=g[0],this.imageOriginY_=g[1],this.imageRotateWithView_=s.getRotateWithView(),this.imageRotation_=s.getRotation();const e=s.getScaleArray();this.imageScale_=[e[0]*this.pixelRatio_/n,e[1]*this.pixelRatio_/n],this.imageWidth_=f[0]*n}setTextStyle(s){if(s){const f=s.getFill();if(f){const R=f.getColor();this.textFillState_={fillStyle:(0,D.y)(R||z.bL)}}else this.textFillState_=null;const n=s.getStroke();if(n){const R=n.getColor(),W=n.getLineCap(),K=n.getLineDash(),nt=n.getLineDashOffset(),A=n.getLineJoin(),L=n.getWidth(),b=n.getMiterLimit();this.textStrokeState_={lineCap:void 0!==W?W:z.mb,lineDash:K||z.X9,lineDashOffset:nt||z.He,lineJoin:void 0!==A?A:z.rc,lineWidth:void 0!==L?L:z.yC,miterLimit:void 0!==b?b:z.V4,strokeStyle:(0,D.y)(R||z.Tx)}}else this.textStrokeState_=null;const h=s.getFont(),g=s.getOffsetX(),e=s.getOffsetY(),E=s.getRotateWithView(),v=s.getRotation(),x=s.getScaleArray(),w=s.getText(),O=s.getTextAlign(),y=s.getTextBaseline();this.textState_={font:void 0!==h?h:z.Df,textAlign:void 0!==O?O:z.PH,textBaseline:void 0!==y?y:z.ru},this.text_=void 0!==w?Array.isArray(w)?w.reduce((R,W,K)=>R+(K%2?" ":W),""):w:"",this.textOffsetX_=void 0!==g?this.pixelRatio_*g:0,this.textOffsetY_=void 0!==e?this.pixelRatio_*e:0,this.textRotateWithView_=void 0!==E&&E,this.textRotation_=void 0!==v?v:0,this.textScale_=[this.pixelRatio_*x[0],this.pixelRatio_*x[1]]}else this.text_=""}}},3430:(Bt,ot,a)=>{"use strict";a.d(ot,{$O:()=>z,Yc:()=>k,ZP:()=>I,gO:()=>D,s3:()=>U});const G={BEGIN_GEOMETRY:0,BEGIN_PATH:1,CIRCLE:2,CLOSE_PATH:3,CUSTOM:4,DRAW_CHARS:5,DRAW_IMAGE:6,END_GEOMETRY:7,FILL:8,MOVE_TO_LINE_TO:9,SET_FILL_STYLE:10,SET_STROKE_STYLE:11,STROKE:12},D=[G.FILL],k=[G.STROKE],z=[G.BEGIN_PATH],U=[G.CLOSE_PATH],I=G},8840:(Bt,ot,a)=>{"use strict";a.d(ot,{I:()=>d,Z:()=>c});var G=a(1211),D=a(3430),k=a(4890),z=a(2768),U=a(513),I=a(9543),S=a(4331);function P(s,f,n,h,g){const e=[];let E=n,v=0,x=f.slice(n,2);for(;v=s){const K=(s-v+W)/W,nt=(0,S.t7)(w,y,K),A=(0,S.t7)(O,R,K);x.push(nt,A),e.push(x),x=[nt,A],v==s&&(E+=g),v=0}else if(v0&&e.push(x),e}function p(s,f,n,h,g){let O,y,R,W,K,nt,A,L,b,M,e=n,E=n,v=0,x=0,w=n;for(y=n;ys&&(x>v&&(v=x,e=w,E=y),x=0,w=y-g)),R=W,A=b,L=M),K=C,nt=N}return x+=W,x>v?[w,y]:[e,E]}const d={left:0,end:0,center:.5,right:1,start:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1},c=class u extends G.Z{constructor(f,n,h,g){super(f,n,h,g),this.labels_=null,this.text_="",this.textOffsetX_=0,this.textOffsetY_=0,this.textRotateWithView_=void 0,this.textRotation_=0,this.textFillState_=null,this.fillStates={},this.textStrokeState_=null,this.strokeStates={},this.textState_={},this.textStates={},this.textKey_="",this.fillKey_="",this.strokeKey_="",this.declutterImageWithText_=void 0}finish(){const f=super.finish();return f.textStates=this.textStates,f.fillStates=this.fillStates,f.strokeStates=this.strokeStates,f}drawText(f,n){const e=this.textState_;if(""===this.text_||!e||!this.textFillState_&&!this.textStrokeState_)return;const E=this.coordinates;let v=E.length;const x=f.getType();let w=null,O=f.getStride();if("line"!==e.placement||"LineString"!=x&&"MultiLineString"!=x&&"Polygon"!=x&&"MultiPolygon"!=x){let y=e.overflow?null:[];switch(x){case"Point":case"MultiPoint":w=f.getFlatCoordinates();break;case"LineString":w=f.getFlatMidpoint();break;case"Circle":w=f.getCenter();break;case"MultiLineString":w=f.getFlatMidpoints(),O=2;break;case"Polygon":w=f.getFlatInteriorPoint(),e.overflow||y.push(w[2]/this.resolution),O=3;break;case"MultiPolygon":const A=f.getFlatInteriorPoints();w=[];for(let L=0,b=A.length;L{const M=E[2*(A+b)]===w[b*O]&&E[2*(A+b)+1]===w[b*O+1];return M||--A,M})}this.saveTextStates_(),(e.backgroundFill||e.backgroundStroke)&&(this.setFillStrokeStyle(e.backgroundFill,e.backgroundStroke),e.backgroundFill&&(this.updateFillStyle(this.state,this.createFill),this.hitDetectionInstructions.push(this.createFill(this.state))),e.backgroundStroke&&(this.updateStrokeStyle(this.state,this.applyStroke),this.hitDetectionInstructions.push(this.createStroke(this.state)))),this.beginGeometry(f,n);let W=e.padding;if(W!=z.oB&&(e.scale[0]<0||e.scale[1]<0)){let A=e.padding[0],L=e.padding[1],b=e.padding[2],M=e.padding[3];e.scale[0]<0&&(L=-L,M=-M),e.scale[1]<0&&(A=-A,b=-b),W=[A,L,b,M]}const K=this.pixelRatio;this.instructions.push([D.ZP.DRAW_IMAGE,v,R,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[1,1],NaN,void 0,this.declutterImageWithText_,W==z.oB?z.oB:W.map(function(A){return A*K}),!!e.backgroundFill,!!e.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,y]);const nt=1/K;this.hitDetectionInstructions.push([D.ZP.DRAW_IMAGE,v,R,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[nt,nt],NaN,void 0,this.declutterImageWithText_,W,!!e.backgroundFill,!!e.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,y]),this.endGeometry(n)}else{if(!(0,I.kK)(this.getBufferedMaxExtent(),f.getExtent()))return;let y;if(w=f.getFlatCoordinates(),"LineString"==x)y=[w.length];else if("MultiLineString"==x)y=f.getEnds();else if("Polygon"==x)y=f.getEnds().slice(0,1);else if("MultiPolygon"==x){const nt=f.getEndss();y=[];for(let A=0,L=nt.length;A{"use strict";a.d(ot,{TU:()=>P,UN:()=>S,ix:()=>p});var G=a(3455),D=a(5999),k=a(142),z=a(4331),U=a(3842),I=a(9543);const S=.5;function P(d,u,c,s,f,n,h){const E=(0,U.E4)(d[0]*S,d[1]*S);E.imageSmoothingEnabled=!1;const v=E.canvas,x=new G.Z(E,S,f,null,h),w=c.length,O=Math.floor(16777215/w),y={};for(let W=1;W<=w;++W){const K=c[W-1],nt=K.getStyleFunction()||s;if(!s)continue;let A=nt(K,n);if(!A)continue;Array.isArray(A)||(A=[A]);const b=(W*O).toString(16).padStart(7,"#00000");for(let M=0,C=A.length;M{"use strict";a.d(ot,{Z:()=>I});var G=a(3044),D=a(1501),k=a(8975),z=a(513);const I=class U extends k.Z{constructor(P){super(),this.ready=!0,this.boundHandleImageChange_=this.handleImageChange_.bind(this),this.layer_=P,this.declutterExecutorGroup=null}getFeatures(P){return(0,z.O3)()}getData(P){return null}prepareFrame(P){return(0,z.O3)()}renderFrame(P,p){return(0,z.O3)()}loadedTileCallback(P,p,d){P[p]||(P[p]={}),P[p][d.tileCoord.toString()]=d}createLoadedTileFinder(P,p,d){return(u,c)=>{const s=this.loadedTileCallback.bind(this,d,u);return P.forEachLoadedTile(p,u,c,s)}}forEachFeatureAtCoordinate(P,p,d,u,c){}getLayer(){return this.layer_}handleFontsChanged(){}handleImageChange_(P){P.target.getState()===D.Z.LOADED&&this.renderIfReadyAndVisible()}loadImage(P){let p=P.getState();return p!=D.Z.LOADED&&p!=D.Z.ERROR&&P.addEventListener(G.Z.CHANGE,this.boundHandleImageChange_),p==D.Z.IDLE&&(P.load(),p=P.getState()),p==D.Z.LOADED}renderIfReadyAndVisible(){const P=this.getLayer();P&&P.getVisible()&&"ready"===P.getSourceState()&&P.changed()}disposeInternal(){delete this.layer_,super.disposeInternal()}}},8915:(Bt,ot,a)=>{"use strict";a.d(ot,{Z:()=>P});var G=a(6691),D=a(1501),k=a(9500),z=a(7139),U=a(9543),I=a(9015);const P=class S extends G.Z{constructor(d){super(d),this.image_=null}getImage(){return this.image_?this.image_.getImage():null}prepareFrame(d){const u=d.layerStatesArray[d.layerIndex],c=d.pixelRatio,s=d.viewState,f=s.resolution,n=this.getLayer().getSource(),h=d.viewHints;let g=d.extent;if(void 0!==u.extent&&(g=(0,U.Ed)(g,(0,I.dY)(u.extent,s.projection))),!h[k.Z.ANIMATING]&&!h[k.Z.INTERACTING]&&!(0,U.xb)(g))if(n){const E=n.getImage(g,f,c,s.projection);E&&(this.loadImage(E)?this.image_=E:E.getState()===D.Z.EMPTY&&(this.image_=null))}else this.image_=null;return!!this.image_}getData(d){const u=this.frameState;if(!u)return null;const c=this.getLayer(),s=(0,z.nn)(u.pixelToCoordinateTransform,d.slice()),f=c.getExtent();if(f&&!(0,U.b8)(f,s))return null;const n=this.image_.getExtent(),h=this.getImage(),g=(0,U.dz)(n),e=Math.floor(h.width*((s[0]-n[0])/g));if(e<0||e>=h.width)return null;const E=(0,U.Cr)(n),v=Math.floor(h.height*((n[3]-s[1])/E));return v<0||v>=h.height?null:this.getImageData(h,e,v)}renderFrame(d,u){const c=this.image_,s=c.getExtent(),f=c.getResolution(),n=c.getPixelRatio(),h=d.layerStatesArray[d.layerIndex],g=d.pixelRatio,e=d.viewState,E=e.center,x=g*f/(e.resolution*n),w=d.extent,O=e.resolution,y=e.rotation,R=Math.round((0,U.dz)(w)/O*g),W=Math.round((0,U.Cr)(w)/O*g);(0,z.qC)(this.pixelTransform,d.size[0]/2,d.size[1]/2,1/g,1/g,y,-R/2,-W/2),(0,z.nb)(this.inversePixelTransform,this.pixelTransform);const K=(0,z.BB)(this.pixelTransform);this.useContainer(u,K,this.getBackground(d));const nt=this.context,A=nt.canvas;A.width!=R||A.height!=W?(A.width=R,A.height=W):this.containerReused||nt.clearRect(0,0,R,W);let L=!1,b=!0;if(h.extent){const it=(0,I.dY)(h.extent,e.projection);b=(0,U.kK)(it,d.extent),L=b&&!(0,U.r4)(it,d.extent),L&&this.clipUnrotated(nt,d,it)}const M=this.getImage(),C=(0,z.qC)(this.tempTransform,R/2,W/2,x,x,0,n*(s[0]-E[0])/f,n*(E[1]-s[3])/f);this.renderedResolution=f*g/n;const N=M.width*C[0],H=M.height*C[3];if(this.getLayer().getSource().getInterpolate()||(nt.imageSmoothingEnabled=!1),this.preRender(nt,d),b&&N>=.5&&H>=.5){const it=C[4],Y=C[5],st=h.opacity;let ht;1!==st&&(ht=nt.globalAlpha,nt.globalAlpha=st),nt.drawImage(M,0,0,+M.width,+M.height,it,Y,N,H),1!==st&&(nt.globalAlpha=ht)}return this.postRender(nt,d),L&&nt.restore(),nt.imageSmoothingEnabled=!0,K!==A.style.transform&&(A.style.transform=K),this.container}}},6691:(Bt,ot,a)=>{"use strict";a.d(ot,{Z:()=>s,r:()=>p});var G=a(6555),D=a(9683),k=a(8779),z=a(7139),U=a(866),I=a(3842),S=a(142),P=a(9543);const p=[];let d=null;const s=class c extends G.Z{constructor(n){super(n),this.container=null,this.tempTransform=(0,z.Ue)(),this.pixelTransform=(0,z.Ue)(),this.inversePixelTransform=(0,z.Ue)(),this.context=null,this.containerReused=!1,this.pixelContext_=null,this.frameState=null}getImageData(n,h,g){let e;d||function u(){d=(0,I.E4)(1,1,void 0,{willReadFrequently:!0})}(),d.clearRect(0,0,1,1);try{d.drawImage(n,h,g,1,1,0,0,1,1),e=d.getImageData(0,0,1,1).data}catch{return d=null,null}return e}getBackground(n){let g=this.getLayer().getBackground();return"function"==typeof g&&(g=g(n.viewState.resolution)),g||void 0}useContainer(n,h,g){const e=this.getLayer().getClassName();let E,v;if(n&&n.className===e&&(!g||n&&n.style.backgroundColor&&(0,S.fS)((0,U._2)(n.style.backgroundColor),(0,U._2)(g)))){const x=n.firstElementChild;x instanceof HTMLCanvasElement&&(v=x.getContext("2d"))}if(v&&v.canvas.style.transform===h?(this.container=n,this.context=v,this.containerReused=!0):this.containerReused&&(this.container=null,this.context=null,this.containerReused=!1),!this.container){E=document.createElement("div"),E.className=e;let x=E.style;x.position="absolute",x.width="100%",x.height="100%",v=(0,I.E4)();const w=v.canvas;E.appendChild(w),x=w.style,x.position="absolute",x.left="0",x.transformOrigin="top left",this.container=E,this.context=v}!this.containerReused&&g&&!this.container.style.backgroundColor&&(this.container.style.backgroundColor=g)}clipUnrotated(n,h,g){const e=(0,P.rL)(g),E=(0,P.Xv)(g),v=(0,P.w$)(g),x=(0,P.hC)(g);(0,z.nn)(h.coordinateToPixelTransform,e),(0,z.nn)(h.coordinateToPixelTransform,E),(0,z.nn)(h.coordinateToPixelTransform,v),(0,z.nn)(h.coordinateToPixelTransform,x);const w=this.inversePixelTransform;(0,z.nn)(w,e),(0,z.nn)(w,E),(0,z.nn)(w,v),(0,z.nn)(w,x),n.save(),n.beginPath(),n.moveTo(Math.round(e[0]),Math.round(e[1])),n.lineTo(Math.round(E[0]),Math.round(E[1])),n.lineTo(Math.round(v[0]),Math.round(v[1])),n.lineTo(Math.round(x[0]),Math.round(x[1])),n.clip()}dispatchRenderEvent_(n,h,g){const e=this.getLayer();if(e.hasListener(n)){const E=new D.Z(n,this.inversePixelTransform,g,h);e.dispatchEvent(E)}}preRender(n,h){this.frameState=h,this.dispatchRenderEvent_(k.Z.PRERENDER,n,h)}postRender(n,h){this.dispatchRenderEvent_(k.Z.POSTRENDER,n,h)}getRenderTransform(n,h,g,e,E,v,x){const y=e/h;return(0,z.qC)(this.tempTransform,E/2,v/2,y,-y,-g,-n[0]+x,-n[1])}disposeInternal(){delete this.frameState,super.disposeInternal()}}},6257:(Bt,ot,a)=>{"use strict";a.d(ot,{Z:()=>s});var G=a(6691),D=a(8879),k=a(4353),z=a(828),U=a(4700),I=a(7139),S=a(142),P=a(9543),p=a(9015),d=a(513),u=a(931);const s=class c extends G.Z{constructor(n){super(n),this.extentChanged=!0,this.renderedExtent_=null,this.renderedProjection=null,this.renderedTiles=[],this.newTiles_=!1,this.tmpExtent=(0,P.lJ)(),this.tmpTileRange_=new z.Z(0,0,0,0)}isDrawableTile(n){const h=this.getLayer(),g=n.getState(),e=h.getUseInterimTilesOnError();return g==U.Z.LOADED||g==U.Z.EMPTY||g==U.Z.ERROR&&!e}getTile(n,h,g,e){const E=e.pixelRatio,v=e.viewState.projection,x=this.getLayer();let O=x.getSource().getTile(n,h,g,E,v);return O.getState()==U.Z.ERROR&&x.getUseInterimTilesOnError()&&x.getPreload()>0&&(this.newTiles_=!0),this.isDrawableTile(O)||(O=O.getInterimTile()),O}getData(n){const h=this.frameState;if(!h)return null;const g=this.getLayer(),e=(0,I.nn)(h.pixelToCoordinateTransform,n.slice()),E=g.getExtent();if(E&&!(0,P.b8)(E,e))return null;const v=h.pixelRatio,x=h.viewState.projection,w=h.viewState,O=g.getRenderSource(),y=O.getTileGridForProjection(w.projection),R=O.getTilePixelRatio(h.pixelRatio);for(let W=y.getZForResolution(w.resolution);W>=y.getMinZoom();--W){const K=y.getTileCoordForCoordAndZ(e,W),nt=O.getTile(W,K[1],K[2],v,x);if(!(nt instanceof D.Z||nt instanceof k.Z)||nt instanceof k.Z&&nt.getState()===U.Z.EMPTY)return null;if(nt.getState()!==U.Z.LOADED)continue;const A=y.getOrigin(W),L=(0,u.Pq)(y.getTileSize(W)),b=y.getResolution(W),M=Math.floor(R*((e[0]-A[0])/b-K[1]*L[0])),C=Math.floor(R*((A[1]-e[1])/b-K[2]*L[1])),N=Math.round(R*O.getGutterForProjection(w.projection));return this.getImageData(nt.getImage(),M+N,C+N)}return null}loadedTileCallback(n,h,g){return!!this.isDrawableTile(g)&&super.loadedTileCallback(n,h,g)}prepareFrame(n){return!!this.getLayer().getSource()}renderFrame(n,h){const g=n.layerStatesArray[n.layerIndex],e=n.viewState,E=e.projection,v=e.resolution,x=e.center,w=e.rotation,O=n.pixelRatio,y=this.getLayer(),R=y.getSource(),W=R.getRevision(),K=R.getTileGridForProjection(E),nt=K.getZForResolution(v,R.zDirection),A=K.getResolution(nt);let L=n.extent;const b=n.viewState.resolution,M=R.getTilePixelRatio(O),C=Math.round((0,P.dz)(L)/b*O),N=Math.round((0,P.Cr)(L)/b*O),H=g.extent&&(0,p.dY)(g.extent,E);H&&(L=(0,P.Ed)(L,(0,p.dY)(g.extent,E)));const it=A*C/2/M,Y=A*N/2/M,st=[x[0]-it,x[1]-Y,x[0]+it,x[1]+Y],ht=K.getTileRangeForExtentAndZ(L,nt),Tt={};Tt[nt]={};const vt=this.createLoadedTileFinder(R,E,Tt),Ct=this.tmpExtent,bt=this.tmpTileRange_;this.newTiles_=!1;const Gt=w?(0,P.dY)(e.center,b,w,n.size):void 0;for(let Ot=ht.minX;Ot<=ht.maxX;++Ot)for(let At=ht.minY;At<=ht.maxY;++At){if(w&&!K.tileCoordIntersectsViewport([nt,Ot,At],Gt))continue;const Yt=this.getTile(nt,Ot,At,n);if(this.isDrawableTile(Yt)){const gt=(0,d.sq)(this);if(Yt.getState()==U.Z.LOADED){Tt[nt][Yt.tileCoord.toString()]=Yt;let Mt=Yt.inTransition(gt);Mt&&1!==g.opacity&&(Yt.endTransition(gt),Mt=!1),!this.newTiles_&&(Mt||!this.renderedTiles.includes(Yt))&&(this.newTiles_=!0)}if(1===Yt.getAlpha(gt,n.time))continue}const ge=K.getTileCoordChildTileRange(Yt.tileCoord,bt,Ct);let qt=!1;ge&&(qt=vt(nt+1,ge)),qt||K.forEachTileCoordParentTileRange(Yt.tileCoord,vt,bt,Ct)}const kt=A/v*O/M;(0,I.qC)(this.pixelTransform,n.size[0]/2,n.size[1]/2,1/O,1/O,w,-C/2,-N/2);const ie=(0,I.BB)(this.pixelTransform);this.useContainer(h,ie,this.getBackground(n));const zt=this.context,ue=zt.canvas;(0,I.nb)(this.inversePixelTransform,this.pixelTransform),(0,I.qC)(this.tempTransform,C/2,N/2,kt,kt,0,-C/2,-N/2),ue.width!=C||ue.height!=N?(ue.width=C,ue.height=N):this.containerReused||zt.clearRect(0,0,C,N),H&&this.clipUnrotated(zt,n,H),R.getInterpolate()||(zt.imageSmoothingEnabled=!1),this.preRender(zt,n),this.renderedTiles.length=0;let ce,Se,dt,de=Object.keys(Tt).map(Number);de.sort(S.j2),1!==g.opacity||this.containerReused&&!R.getOpaque(n.viewState.projection)?(ce=[],Se=[]):de=de.reverse();for(let Ot=de.length-1;Ot>=0;--Ot){const At=de[Ot],Yt=R.getTilePixelSize(At,O,E),qt=K.getResolution(At)/A,gt=Yt[0]*qt*kt,Mt=Yt[1]*qt*kt,Zt=K.getTileCoordForCoordAndZ((0,P.rL)(st),At),jt=K.getTileCoordExtent(Zt),Wt=(0,I.nn)(this.tempTransform,[M*(jt[0]-st[0])/A,M*(st[3]-jt[3])/A]),he=M*R.getGutterForProjection(E),_e=Tt[At];for(const Le in _e){const Ze=_e[Le],It=Ze.tileCoord,ct=Zt[1]-It[1],m=Math.round(Wt[0]-(ct-1)*gt),F=Zt[2]-It[2],Q=Math.round(Wt[1]-(F-1)*Mt),V=Math.round(Wt[0]-ct*gt),lt=Math.round(Wt[1]-F*Mt),_t=m-V,St=Q-lt,Nt=nt===At,Xt=Nt&&1!==Ze.getAlpha((0,d.sq)(this),n.time);let Jt=!1;if(!Xt)if(ce){dt=[V,lt,V+_t,lt,V+_t,lt+St,V,lt+St];for(let Ee=0,se=ce.length;Ee{"use strict";a.d(ot,{Z:()=>n});var G=a(7599),D=a(6691),k=a(1015),z=a(9500),U=a(7713),I=a(7139),S=a(9543),P=a(3842),p=a(7707),d=a(142),u=a(9015),c=a(513),s=a(5415);const n=class f extends D.Z{constructor(g){super(g),this.boundHandleStyleImageChange_=this.handleStyleImageChange_.bind(this),this.hitDetectionImageData_=null,this.renderedFeatures_=null,this.renderedRevision_=-1,this.renderedResolution_=NaN,this.renderedExtent_=(0,S.lJ)(),this.wrappedRenderedExtent_=(0,S.lJ)(),this.renderedCenter_=null,this.renderedProjection_=null,this.renderedRenderOrder_=null,this.replayGroup_=null,this.replayGroupChanged=!0,this.declutterExecutorGroup=null,this.clipping=!0,this.compositionContext_=null,this.opacity_=1}renderWorlds(g,e,E){const v=e.extent,x=e.viewState,w=x.center,O=x.resolution,y=x.projection,R=x.rotation,W=y.getExtent(),K=this.getLayer().getSource(),nt=e.pixelRatio,A=e.viewHints,L=!(A[z.Z.ANIMATING]||A[z.Z.INTERACTING]),b=this.compositionContext_,M=Math.round(e.size[0]*nt),C=Math.round(e.size[1]*nt),N=K.getWrapX()&&y.canWrapX(),H=N?(0,S.dz)(W):null,it=N?Math.ceil((v[2]-W[2])/H)+1:1;let Y=N?Math.floor((v[0]-W[0])/H):0;do{const st=this.getRenderTransform(w,O,R,nt,M,C,Y*H);g.execute(b,1,st,R,L,void 0,E)}while(++Y{if(!this.hitDetectionImageData_&&!this.animatingOrInteracting_){const E=[this.context.canvas.width,this.context.canvas.height];(0,I.nn)(this.pixelTransform,E);const v=this.renderedCenter_,x=this.renderedResolution_,w=this.renderedRotation_,O=this.renderedProjection_,y=this.wrappedRenderedExtent_,R=this.getLayer(),W=[],K=E[0]*U.UN,nt=E[1]*U.UN;W.push(this.getRenderTransform(v,x,w,U.UN,K,nt,0).slice());const A=R.getSource(),L=O.getExtent();if(A.getWrapX()&&O.canWrapX()&&!(0,S.r4)(L,y)){let b=y[0];const M=(0,S.dz)(L);let N,C=0;for(;bL[2];)++C,N=M*C,W.push(this.getRenderTransform(v,x,w,U.UN,K,nt,N).slice()),b-=M}this.hitDetectionImageData_=(0,U.TU)(E,W,this.renderedFeatures_,R.getStyleFunction(),y,x,w)}e((0,U.ix)(g,this.renderedFeatures_,this.hitDetectionImageData_))})}forEachFeatureAtCoordinate(g,e,E,v,x){if(!this.replayGroup_)return;const w=e.viewState.resolution,O=e.viewState.rotation,y=this.getLayer(),R={},W=function(A,L,b){const M=(0,c.sq)(A),C=R[M];if(C){if(!0!==C&&bK=A.forEachFeatureAtCoordinate(g,w,O,E,W,A===this.declutterExecutorGroup&&e.declutterTree?e.declutterTree.all().map(L=>L.value):null)),K}handleFontsChanged(){const g=this.getLayer();g.getVisible()&&this.replayGroup_&&g.changed()}handleStyleImageChange_(g){this.renderIfReadyAndVisible()}prepareFrame(g){const e=this.getLayer(),E=e.getSource();if(!E)return!1;const v=g.viewHints[z.Z.ANIMATING],x=g.viewHints[z.Z.INTERACTING],w=e.getUpdateWhileAnimating(),O=e.getUpdateWhileInteracting();if(this.ready&&!w&&v||!O&&x)return this.animatingOrInteracting_=!0,!0;this.animatingOrInteracting_=!1;const y=g.extent,R=g.viewState,W=R.projection,K=R.resolution,nt=g.pixelRatio,A=e.getRevision(),L=e.getRenderBuffer();let b=e.getRenderOrder();void 0===b&&(b=p.eR);const M=R.center.slice(),C=(0,S.f3)(y,L*K),N=C.slice(),H=[C.slice()],it=W.getExtent();if(E.getWrapX()&&W.canWrapX()&&!(0,S.r4)(it,g.extent)){const ue=(0,S.dz)(it),de=Math.max((0,S.dz)(C)/2,ue);C[0]=it[0]-de,C[2]=it[2]+de,(0,s.Cf)(M,W);const ce=(0,S.Cf)(H[0],W);ce[0]it[0]&&ce[2]>it[2]&&H.push([ce[0]-ue,ce[1],ce[2]-ue,ce[3]])}if(this.ready&&this.renderedResolution_==K&&this.renderedRevision_==A&&this.renderedRenderOrder_==b&&(0,S.r4)(this.wrappedRenderedExtent_,C))return(0,d.fS)(this.renderedExtent_,N)||(this.hitDetectionImageData_=null,this.renderedExtent_=N),this.renderedCenter_=M,this.replayGroupChanged=!1,!0;this.replayGroup_=null;const Y=new G.Z((0,p.Qz)(K,nt),C,K,nt);let st;this.getLayer().getDeclutter()&&(st=new G.Z((0,p.Qz)(K,nt),C,K,nt));const ht=(0,u.Cs)();let Tt;if(ht){for(let ue=0,de=H.length;ue{let de;const ce=ue.getStyleFunction()||e.getStyleFunction();if(ce&&(de=ce(ue,K)),de){const Se=this.renderFeature(ue,vt,de,Y,Tt,st);Ct=Ct&&!Se}},Gt=(0,u.Fj)(C,W),kt=E.getFeaturesInExtent(Gt);b&&kt.sort(b);for(let ue=0,de=kt.length;ue{"use strict";a.d(ot,{Pn:()=>p,Qz:()=>S,eR:()=>U,se:()=>I});var G=a(1501),D=a(513);const z={Point:function h(E,v,x,w,O){const y=x.getImage(),R=x.getText();let W;if(y){if(y.getImageState()!=G.Z.LOADED)return;let K=E;if(O){const A=y.getDeclutterMode();if("none"!==A)if(K=O,"obstacle"===A){const L=E.getBuilder(x.getZIndex(),"Image");L.setImageStyle(y,W),L.drawPoint(v,w)}else R&&R.getText()&&(W={})}const nt=K.getBuilder(x.getZIndex(),"Image");nt.setImageStyle(y,W),nt.drawPoint(v,w)}if(R&&R.getText()){let K=E;O&&(K=O);const nt=K.getBuilder(x.getZIndex(),"Text");nt.setTextStyle(R,W),nt.drawText(v,w)}},LineString:function s(E,v,x,w,O){const y=x.getStroke();if(y){const W=E.getBuilder(x.getZIndex(),"LineString");W.setFillStrokeStyle(null,y),W.drawLineString(v,w)}const R=x.getText();if(R&&R.getText()){const W=(O||E).getBuilder(x.getZIndex(),"Text");W.setTextStyle(R),W.drawText(v,w)}},Polygon:function e(E,v,x,w,O){const y=x.getFill(),R=x.getStroke();if(y||R){const K=E.getBuilder(x.getZIndex(),"Polygon");K.setFillStrokeStyle(y,R),K.drawPolygon(v,w)}const W=x.getText();if(W&&W.getText()){const K=(O||E).getBuilder(x.getZIndex(),"Text");K.setTextStyle(W),K.drawText(v,w)}},MultiPoint:function g(E,v,x,w,O){const y=x.getImage(),R=x.getText();let W;if(y){if(y.getImageState()!=G.Z.LOADED)return;let K=E;if(O){const A=y.getDeclutterMode();if("none"!==A)if(K=O,"obstacle"===A){const L=E.getBuilder(x.getZIndex(),"Image");L.setImageStyle(y,W),L.drawMultiPoint(v,w)}else R&&R.getText()&&(W={})}const nt=K.getBuilder(x.getZIndex(),"Image");nt.setImageStyle(y,W),nt.drawMultiPoint(v,w)}if(R&&R.getText()){let K=E;O&&(K=O);const nt=K.getBuilder(x.getZIndex(),"Text");nt.setTextStyle(R,W),nt.drawText(v,w)}},MultiLineString:function f(E,v,x,w,O){const y=x.getStroke();if(y){const W=E.getBuilder(x.getZIndex(),"LineString");W.setFillStrokeStyle(null,y),W.drawMultiLineString(v,w)}const R=x.getText();if(R&&R.getText()){const W=(O||E).getBuilder(x.getZIndex(),"Text");W.setTextStyle(R),W.drawText(v,w)}},MultiPolygon:function n(E,v,x,w,O){const y=x.getFill(),R=x.getStroke();if(R||y){const K=E.getBuilder(x.getZIndex(),"Polygon");K.setFillStrokeStyle(y,R),K.drawMultiPolygon(v,w)}const W=x.getText();if(W&&W.getText()){const K=(O||E).getBuilder(x.getZIndex(),"Text");K.setTextStyle(W),K.drawText(v,w)}},GeometryCollection:function c(E,v,x,w,O){const y=v.getGeometriesArray();let R,W;for(R=0,W=y.length;R{"use strict";a.d(ot,{Co:()=>u,aA:()=>d,rX:()=>I,sY:()=>c});var G=a(9543),D=a(3842),k=a(9015),z=a(4331);let U;const I=[];function S(s,f,n,h,g){s.beginPath(),s.moveTo(0,0),s.lineTo(f,n),s.lineTo(h,g),s.closePath(),s.save(),s.clip(),s.fillRect(0,0,Math.max(f,h)+1,Math.max(n,g)),s.restore()}function P(s,f){return Math.abs(s[4*f]-210)>2||Math.abs(s[4*f+3]-191.25)>2}function d(s,f,n,h){const g=(0,k.vs)(n,f,s);let e=(0,k._Q)(f,h,n);const E=f.getMetersPerUnit();void 0!==E&&(e*=E);const v=s.getMetersPerUnit();void 0!==v&&(e/=v);const x=s.getExtent();if(!x||(0,G.b8)(x,g)){const w=(0,k._Q)(s,e,g)/e;isFinite(w)&&w>0&&(e/=w)}return e}function u(s,f,n,h){const g=(0,G.qg)(n);let e=d(s,f,g,h);return(!isFinite(e)||e<=0)&&(0,G.H6)(n,function(E){return e=d(s,f,E,h),isFinite(e)&&e>0}),e}function c(s,f,n,h,g,e,E,v,x,w,O,y){const R=(0,D.E4)(Math.round(n*s),Math.round(n*f),I);if(y||(R.imageSmoothingEnabled=!1),0===x.length)return R.canvas;function W(C){return Math.round(C*n)/n}R.scale(n,n),R.globalCompositeOperation="lighter";const K=(0,G.lJ)();x.forEach(function(C,N,H){(0,G.l7)(K,C.extent)});const nt=(0,G.dz)(K),A=(0,G.Cr)(K),L=(0,D.E4)(Math.round(n*nt/h),Math.round(n*A/h),I);y||(L.imageSmoothingEnabled=!1);const b=n/h;x.forEach(function(C,N,H){const it=C.extent[0]-K[0],Y=-(C.extent[3]-K[3]),st=(0,G.dz)(C.extent),ht=(0,G.Cr)(C.extent);C.image.width>0&&C.image.height>0&&L.drawImage(C.image,w,w,C.image.width-2*w,C.image.height-2*w,it*b,Y*b,st*b,ht*b)});const M=(0,G.rL)(E);return v.getTriangles().forEach(function(C,N,H){const it=C.source,Y=C.target;let st=it[0][0],ht=it[0][1],Tt=it[1][0],vt=it[1][1],Ct=it[2][0],bt=it[2][1];const Gt=W((Y[0][0]-M[0])/e),kt=W(-(Y[0][1]-M[1])/e),ie=W((Y[1][0]-M[0])/e),zt=W(-(Y[1][1]-M[1])/e),ue=W((Y[2][0]-M[0])/e),de=W(-(Y[2][1]-M[1])/e),ce=st,Se=ht;st=0,ht=0,Tt-=ce,vt-=Se,Ct-=ce,bt-=Se;const Ot=(0,z.SV)([[Tt,vt,0,0,ie-Gt],[Ct,bt,0,0,ue-Gt],[0,0,Tt,vt,zt-kt],[0,0,Ct,bt,de-kt]]);if(Ot){if(R.save(),R.beginPath(),function p(){if(void 0===U){const s=(0,D.E4)(6,6,I);s.globalCompositeOperation="lighter",s.fillStyle="rgba(210, 0, 0, 0.75)",S(s,4,5,4,0),S(s,4,5,0,5);const f=s.getImageData(0,0,3,3).data;U=P(f,0)||P(f,4)||P(f,8),(0,D.jy)(s),I.push(s.canvas)}return U}()||!y){R.moveTo(ie,zt);const At=4,Yt=Gt-ie,ge=kt-zt;for(let qt=0;qt{"use strict";a.d(ot,{Z:()=>c});var G=a(3094),D=a(3044),k=a(8786),z=a(4700),U=a(6887),I=a(5114),S=a(4331),P=a(9543),p=a(2716),d=a(3842);const c=class u extends k.Z{constructor(f,n,h,g,e,E,v,x,w,O,y,R){super(e,z.Z.IDLE,{interpolate:!!R}),this.renderEdges_=void 0!==y&&y,this.pixelRatio_=v,this.gutter_=x,this.canvas_=null,this.sourceTileGrid_=n,this.targetTileGrid_=g,this.wrappedTileCoord_=E||e,this.sourceTiles_=[],this.sourcesListenerKeys_=null,this.sourceZ_=0;const W=g.getTileCoordExtent(this.wrappedTileCoord_),K=this.targetTileGrid_.getExtent();let nt=this.sourceTileGrid_.getExtent();const A=K?(0,P.Ed)(W,K):W;if(0===(0,P.bg)(A))return void(this.state=z.Z.EMPTY);const L=f.getExtent();L&&(nt=nt?(0,P.Ed)(nt,L):L);const b=g.getResolution(this.wrappedTileCoord_[0]),M=(0,I.Co)(f,h,A,b);if(!isFinite(M)||M<=0)return void(this.state=z.Z.EMPTY);if(this.triangulation_=new U.Z(f,h,A,nt,M*(void 0!==O?O:G.m),b),0===this.triangulation_.getTriangles().length)return void(this.state=z.Z.EMPTY);this.sourceZ_=n.getZForResolution(M);let N=this.triangulation_.calculateSourceExtent();if(nt&&(f.canWrapX()?(N[1]=(0,S.uZ)(N[1],nt[1],nt[3]),N[3]=(0,S.uZ)(N[3],nt[1],nt[3])):N=(0,P.Ed)(N,nt)),(0,P.bg)(N)){const H=n.getTileRangeForExtentAndZ(N,this.sourceZ_);for(let it=H.minX;it<=H.maxX;it++)for(let Y=H.minY;Y<=H.maxY;Y++){const st=w(this.sourceZ_,it,Y,v);st&&this.sourceTiles_.push(st)}0===this.sourceTiles_.length&&(this.state=z.Z.EMPTY)}else this.state=z.Z.EMPTY}getImage(){return this.canvas_}reproject_(){const f=[];if(this.sourceTiles_.forEach(n=>{n&&n.getState()==z.Z.LOADED&&f.push({extent:this.sourceTileGrid_.getTileCoordExtent(n.tileCoord),image:n.getImage()})}),this.sourceTiles_.length=0,0===f.length)this.state=z.Z.ERROR;else{const n=this.wrappedTileCoord_[0],h=this.targetTileGrid_.getTileSize(n),g="number"==typeof h?h:h[0],e="number"==typeof h?h:h[1],E=this.targetTileGrid_.getResolution(n),v=this.sourceTileGrid_.getResolution(this.sourceZ_),x=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=(0,I.sY)(g,e,this.pixelRatio_,v,this.sourceTileGrid_.getExtent(),E,x,this.triangulation_,f,this.gutter_,this.renderEdges_,this.interpolate),this.state=z.Z.LOADED}this.changed()}load(){if(this.state==z.Z.IDLE){this.state=z.Z.LOADING,this.changed();let f=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach(n=>{const h=n.getState();if(h==z.Z.IDLE||h==z.Z.LOADING){f++;const g=(0,p.oL)(n,D.Z.CHANGE,function(e){const E=n.getState();(E==z.Z.LOADED||E==z.Z.ERROR||E==z.Z.EMPTY)&&((0,p.bN)(g),f--,0===f&&(this.unlistenSources_(),this.reproject_()))},this);this.sourcesListenerKeys_.push(g)}}),0===f?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach(function(n,h,g){n.getState()==z.Z.IDLE&&n.load()})}}unlistenSources_(){this.sourcesListenerKeys_.forEach(p.bN),this.sourcesListenerKeys_=null}release(){this.canvas_&&((0,d.jy)(this.canvas_.getContext("2d")),I.rX.push(this.canvas_),this.canvas_=null),super.release()}}},6887:(Bt,ot,a)=>{"use strict";a.d(ot,{Z:()=>S});var G=a(9543),D=a(9015),k=a(4331);const S=class I{constructor(p,d,u,c,s,f){this.sourceProj_=p,this.targetProj_=d;let n={};const h=(0,D.Ck)(this.targetProj_,this.sourceProj_);this.transformInv_=function(W){const K=W[0]+"/"+W[1];return n[K]||(n[K]=h(W)),n[K]},this.maxSourceExtent_=c,this.errorThresholdSquared_=s*s,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!c&&!!this.sourceProj_.getExtent()&&(0,G.dz)(c)==(0,G.dz)(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?(0,G.dz)(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?(0,G.dz)(this.targetProj_.getExtent()):null;const g=(0,G.rL)(u),e=(0,G.Xv)(u),E=(0,G.w$)(u),v=(0,G.hC)(u),x=this.transformInv_(g),w=this.transformInv_(e),O=this.transformInv_(E),y=this.transformInv_(v),R=10+(f?Math.max(0,Math.ceil(Math.log2((0,G.bg)(u)/(f*f*256*256)))):0);if(this.addQuad_(g,e,E,v,x,w,O,y,R),this.wrapsXInSource_){let W=1/0;this.triangles_.forEach(function(K,nt,A){W=Math.min(W,K.source[0][0],K.source[1][0],K.source[2][0])}),this.triangles_.forEach(K=>{if(Math.max(K.source[0][0],K.source[1][0],K.source[2][0])-W>this.sourceWorldWidth_/2){const nt=[[K.source[0][0],K.source[0][1]],[K.source[1][0],K.source[1][1]],[K.source[2][0],K.source[2][1]]];nt[0][0]-W>this.sourceWorldWidth_/2&&(nt[0][0]-=this.sourceWorldWidth_),nt[1][0]-W>this.sourceWorldWidth_/2&&(nt[1][0]-=this.sourceWorldWidth_),nt[2][0]-W>this.sourceWorldWidth_/2&&(nt[2][0]-=this.sourceWorldWidth_);const A=Math.min(nt[0][0],nt[1][0],nt[2][0]);Math.max(nt[0][0],nt[1][0],nt[2][0])-A.5&&E<1;let w=!1;if(g>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){const y=(0,G.hI)([p,d,u,c]);w=(0,G.dz)(y)/this.targetWorldWidth_>.25||w}!x&&this.sourceProj_.isGlobal()&&E&&(w=E>.25||w)}if(!w&&this.maxSourceExtent_&&isFinite(e[0])&&isFinite(e[1])&&isFinite(e[2])&&isFinite(e[3])&&!(0,G.kK)(e,this.maxSourceExtent_))return;let O=0;if(!(w||isFinite(s[0])&&isFinite(s[1])&&isFinite(f[0])&&isFinite(f[1])&&isFinite(n[0])&&isFinite(n[1])&&isFinite(h[0])&&isFinite(h[1])))if(g>0)w=!0;else if(O=(isFinite(s[0])&&isFinite(s[1])?0:8)+(isFinite(f[0])&&isFinite(f[1])?0:4)+(isFinite(n[0])&&isFinite(n[1])?0:2)+(isFinite(h[0])&&isFinite(h[1])?0:1),1!=O&&2!=O&&4!=O&&8!=O)return;if(g>0){if(!w){const R=this.transformInv_([(p[0]+u[0])/2,(p[1]+u[1])/2]);let W;W=x?((0,k.$W)(s[0],v)+(0,k.$W)(n[0],v))/2-(0,k.$W)(R[0],v):(s[0]+n[0])/2-R[0];const K=(s[1]+n[1])/2-R[1];w=W*W+K*K>this.errorThresholdSquared_}if(w){if(Math.abs(p[0]-u[0])<=Math.abs(p[1]-u[1])){const y=[(d[0]+u[0])/2,(d[1]+u[1])/2],R=this.transformInv_(y),W=[(c[0]+p[0])/2,(c[1]+p[1])/2],K=this.transformInv_(W);this.addQuad_(p,d,y,W,s,f,R,K,g-1),this.addQuad_(W,y,u,c,K,R,n,h,g-1)}else{const y=[(p[0]+d[0])/2,(p[1]+d[1])/2],R=this.transformInv_(y),W=[(u[0]+c[0])/2,(u[1]+c[1])/2],K=this.transformInv_(W);this.addQuad_(p,y,W,c,s,R,K,h,g-1),this.addQuad_(y,d,u,W,R,f,n,K,g-1)}return}}if(x){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}0==(11&O)&&this.addTriangle_(p,u,c,s,n,h),0==(14&O)&&this.addTriangle_(p,u,d,s,n,f),O&&(0==(13&O)&&this.addTriangle_(d,c,p,f,h,s),0==(7&O)&&this.addTriangle_(d,c,u,f,h,n))}calculateSourceExtent(){const p=(0,G.lJ)();return this.triangles_.forEach(function(d,u,c){const s=d.source;(0,G.Wj)(p,s[0]),(0,G.Wj)(p,s[1]),(0,G.Wj)(p,s[2])}),p}getTriangles(){return this.triangles_}}},3094:(Bt,ot,a)=>{"use strict";a.d(ot,{m:()=>G});const G=.5},7011:(Bt,ot,a)=>{"use strict";a.d(ot,{Gw:()=>U,YP:()=>k,gE:()=>z,h$:()=>D});var G=a(4331);function D(I){if(void 0!==I)return 0}function k(I){if(void 0!==I)return I}function z(I){const S=2*Math.PI/I;return function(P,p){return p?P:void 0!==P?P=Math.floor(P/S+.5)*S:void 0}}function U(I){return I=I||(0,G.Yr)(5),function(S,P){return P?S:void 0!==S?Math.abs(S)<=I?0:S:void 0}}},931:(Bt,ot,a)=>{"use strict";function G(U,I,S){return void 0===S&&(S=[0,0]),S[0]=U[0]+2*I,S[1]=U[1]+2*I,S}function D(U){return U[0]>0&&U[1]>0}function k(U,I,S){return void 0===S&&(S=[0,0]),S[0]=U[0]*I+.5|0,S[1]=U[1]*I+.5|0,S}function z(U,I){return Array.isArray(U)?U:(void 0===I?I=[U,U]:(I[0]=U,I[1]=U),I)}a.d(ot,{Pq:()=>z,bA:()=>k,f3:()=>G,py:()=>D})},2663:(Bt,ot,a)=>{"use strict";a.d(ot,{Z:()=>d});var G=a(3044),D=a(3413),k=a(7026),z=a(3149),U=a(5415),I=a(992),S=a(9543),P=a(513);const d=class p extends z.Z{constructor(c){super({attributions:c.attributions,wrapX:c.wrapX}),this.resolution=void 0,this.distance=void 0!==c.distance?c.distance:20,this.minDistance=c.minDistance||0,this.interpolationRatio=0,this.features=[],this.geometryFunction=c.geometryFunction||function(s){const f=s.getGeometry();return(0,I.h)("Point"==f.getType(),10),f},this.createCustomCluster_=c.createCluster,this.source=null,this.boundRefresh_=this.refresh.bind(this),this.updateDistance(this.distance,this.minDistance),this.setSource(c.source||null)}clear(c){this.features.length=0,super.clear(c)}getDistance(){return this.distance}getSource(){return this.source}loadFeatures(c,s,f){this.source.loadFeatures(c,s,f),s!==this.resolution&&(this.resolution=s,this.refresh())}setDistance(c){this.updateDistance(c,this.minDistance)}setMinDistance(c){this.updateDistance(this.distance,c)}getMinDistance(){return this.minDistance}setSource(c){this.source&&this.source.removeEventListener(G.Z.CHANGE,this.boundRefresh_),this.source=c,c&&c.addEventListener(G.Z.CHANGE,this.boundRefresh_),this.refresh()}refresh(){this.clear(),this.cluster(),this.addFeatures(this.features)}updateDistance(c,s){const f=0===c?0:Math.min(s,c)/c,n=c!==this.distance||this.interpolationRatio!==f;this.distance=c,this.minDistance=s,this.interpolationRatio=f,n&&this.refresh()}cluster(){if(void 0===this.resolution||!this.source)return;const c=(0,S.lJ)(),s=this.distance*this.resolution,f=this.source.getFeatures(),n={};for(let h=0,g=f.length;h=0;--e){const E=this.geometryFunction(c[e]);E?(0,U.IH)(f,E.getCoordinates()):c.splice(e,1)}(0,U.bA)(f,1/c.length);const n=(0,S.qg)(s),h=this.interpolationRatio,g=new k.Z([f[0]*(1-h)+n[0]*h,f[1]*(1-h)+n[1]*h]);return this.createCustomCluster_?this.createCustomCluster_(g,c):new D.Z({geometry:g,features:c})}}},9375:(Bt,ot,a)=>{"use strict";a.d(ot,{ZP:()=>v,r6:()=>E});var G=a(3615),D=a(1501),k=a(3094),z=a(3044),U=a(1649),I=a(6887),S=a(5114),P=a(9543),p=a(2716);const u=class d extends U.Z{constructor(w,O,y,R,W,K,nt){const A=w.getExtent(),L=O.getExtent(),b=L?(0,P.Ed)(y,L):y,M=(0,P.qg)(b),C=(0,S.aA)(w,O,M,R),H=new I.Z(w,O,b,A,C*k.m,R),Y=K(H.calculateSourceExtent(),C,W),st=Y?D.Z.IDLE:D.Z.EMPTY,ht=Y?Y.getPixelRatio():1;super(y,R,ht,st),this.targetProj_=O,this.maxSourceExtent_=A,this.triangulation_=H,this.targetResolution_=R,this.targetExtent_=y,this.sourceImage_=Y,this.sourcePixelRatio_=ht,this.interpolate_=nt,this.canvas_=null,this.sourceListenerKey_=null}disposeInternal(){this.state==D.Z.LOADING&&this.unlistenSource_(),super.disposeInternal()}getImage(){return this.canvas_}getProjection(){return this.targetProj_}reproject_(){const w=this.sourceImage_.getState();if(w==D.Z.LOADED){const O=(0,P.dz)(this.targetExtent_)/this.targetResolution_,y=(0,P.Cr)(this.targetExtent_)/this.targetResolution_;this.canvas_=(0,S.sY)(O,y,this.sourcePixelRatio_,this.sourceImage_.getResolution(),this.maxSourceExtent_,this.targetResolution_,this.targetExtent_,this.triangulation_,[{extent:this.sourceImage_.getExtent(),image:this.sourceImage_.getImage()}],0,void 0,this.interpolate_)}this.state=w,this.changed()}load(){if(this.state==D.Z.IDLE){this.state=D.Z.LOADING,this.changed();const w=this.sourceImage_.getState();w==D.Z.LOADED||w==D.Z.ERROR?this.reproject_():(this.sourceListenerKey_=(0,p.oL)(this.sourceImage_,z.Z.CHANGE,function(O){const y=this.sourceImage_.getState();(y==D.Z.LOADED||y==D.Z.ERROR)&&(this.unlistenSource_(),this.reproject_())},this),this.sourceImage_.load())}}unlistenSource_(){(0,p.bN)(this.sourceListenerKey_),this.sourceListenerKey_=null}};var c=a(2673),s=a(513),f=a(9015),n=a(142);class g extends G.ZP{constructor(w,O){super(w),this.image=O}}function E(x,w){x.getImage().src=w}const v=class e extends c.Z{constructor(w){super({attributions:w.attributions,projection:w.projection,state:w.state,interpolate:void 0===w.interpolate||w.interpolate}),this.resolutions_=void 0!==w.resolutions?w.resolutions:null,this.reprojectedImage_=null,this.reprojectedRevision_=0}getResolutions(){return this.resolutions_}setResolutions(w){this.resolutions_=w}findNearestResolution(w){const O=this.getResolutions();return O&&(w=O[(0,n.h7)(O,w,0)]),w}getImage(w,O,y,R){const W=this.getProjection();if(!W||!R||(0,f.OP)(W,R))return W&&(R=W),this.getImageInternal(w,O,y,R);if(this.reprojectedImage_){if(this.reprojectedRevision_==this.getRevision()&&(0,f.OP)(this.reprojectedImage_.getProjection(),R)&&this.reprojectedImage_.getResolution()==O&&(0,P.fS)(this.reprojectedImage_.getExtent(),w))return this.reprojectedImage_;this.reprojectedImage_.dispose(),this.reprojectedImage_=null}return this.reprojectedImage_=new u(W,R,w,O,y,(K,nt,A)=>this.getImageInternal(K,nt,A,W),this.getInterpolate()),this.reprojectedRevision_=this.getRevision(),this.reprojectedImage_}getImageInternal(w,O,y,R){return(0,s.O3)()}handleImageChange(w){const O=w.target;let y;switch(O.getState()){case D.Z.LOADING:this.loading=!0,y="imageloadstart";break;case D.Z.LOADED:this.loading=!1,y="imageloadend";break;case D.Z.ERROR:this.loading=!1,y="imageloaderror";break;default:return}this.hasListener(y)&&this.dispatchEvent(new g(y,O))}}},6819:(Bt,ot,a)=>{"use strict";a.d(ot,{Z:()=>h});var G=a(3044),D=a(9375),k=a(1309),z=a(4910),U=a(6941),I=a(992),S=a(5114),P=a(4331),p=a(7531),d=a(9543),u=a(3842),c=a(9015);const f=[101,101],h=class n extends D.ZP{constructor(e){super({attributions:(e=e||{}).attributions,interpolate:e.interpolate,projection:e.projection,resolutions:e.resolutions}),this.context_=(0,u.E4)(1,1),this.crossOrigin_=void 0!==e.crossOrigin?e.crossOrigin:null,this.url_=e.url,this.imageLoadFunction_=void 0!==e.imageLoadFunction?e.imageLoadFunction:D.r6,this.params_=Object.assign({},e.params),this.v13_=!0,this.updateV13_(),this.serverType_=e.serverType,this.hidpi_=void 0===e.hidpi||e.hidpi,this.image_=null,this.imageSize_=[0,0],this.renderedRevision_=0,this.ratio_=void 0!==e.ratio?e.ratio:1.5}getFeatureInfoUrl(e,E,v,x){if(void 0===this.url_)return;const w=(0,c.U2)(v),O=this.getProjection();O&&O!==w&&(E=(0,S.aA)(O,w,e,E),e=(0,c.vs)(e,w,O));const y=(0,d.p8)(e,E,0,f),R={SERVICE:"WMS",VERSION:z.e,REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.params_.LAYERS};Object.assign(R,this.params_,x);const W=(0,P.GW)((e[0]-y[0])/E,4),K=(0,P.GW)((y[3]-e[1])/E,4);return R[this.v13_?"I":"X"]=W,R[this.v13_?"J":"Y"]=K,this.getRequestUrl_(y,f,1,O||w,R)}getLegendUrl(e,E){if(void 0===this.url_)return;const v={SERVICE:"WMS",VERSION:z.e,REQUEST:"GetLegendGraphic",FORMAT:"image/png"};if(void 0===E||void 0===E.LAYER){const x=this.params_.LAYERS;if(Array.isArray(x)&&1!==x.length)return;v.LAYER=x}if(void 0!==e){const x=this.getProjection()?this.getProjection().getMetersPerUnit():1;v.SCALE=e*x/28e-5}return Object.assign(v,E),(0,U.B)(this.url_,v)}getParams(){return this.params_}getImageInternal(e,E,v,x){if(void 0===this.url_)return null;E=this.findNearestResolution(E),1!=v&&(!this.hidpi_||void 0===this.serverType_)&&(v=1);const w=E/v,O=(0,d.qg)(e),y=(0,P.mD)((0,d.dz)(e)/w,4),R=(0,P.mD)((0,d.Cr)(e)/w,4),W=(0,d.p8)(O,w,0,[y,R]),K=(0,P.mD)(this.ratio_*(0,d.dz)(e)/w,4),nt=(0,P.mD)(this.ratio_*(0,d.Cr)(e)/w,4),A=(0,d.p8)(O,w,0,[K,nt]),L=this.image_;if(L&&this.renderedRevision_==this.getRevision()&&L.getResolution()==E&&L.getPixelRatio()==v&&(0,d.r4)(L.getExtent(),W))return L;const b={SERVICE:"WMS",VERSION:z.e,REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0};Object.assign(b,this.params_),this.imageSize_[0]=(0,P.NM)((0,d.dz)(A)/w,4),this.imageSize_[1]=(0,P.NM)((0,d.Cr)(A)/w,4);const M=this.getRequestUrl_(A,this.imageSize_,v,x,b);return this.image_=new k.Z(A,E,v,M,this.crossOrigin_,this.imageLoadFunction_,this.context_),this.renderedRevision_=this.getRevision(),this.image_.addEventListener(G.Z.CHANGE,this.handleImageChange.bind(this)),this.image_}getImageLoadFunction(){return this.imageLoadFunction_}getRequestUrl_(e,E,v,x,w){if((0,I.h)(void 0!==this.url_,9),w[this.v13_?"CRS":"SRS"]=x.getCode(),"STYLES"in this.params_||(w.STYLES=""),1!=v)switch(this.serverType_){case"geoserver":const R=90*v+.5|0;"FORMAT_OPTIONS"in w?w.FORMAT_OPTIONS+=";dpi:"+R:w.FORMAT_OPTIONS="dpi:"+R;break;case"mapserver":w.MAP_RESOLUTION=90*v;break;case"carmentaserver":case"qgis":w.DPI=90*v;break;default:(0,I.h)(!1,8)}w.WIDTH=E[0],w.HEIGHT=E[1];const O=x.getAxisOrientation();let y;return y=this.v13_&&"ne"==O.substr(0,2)?[e[1],e[0],e[3],e[2]]:e,w.BBOX=y.join(","),(0,U.B)(this.url_,w)}getUrl(){return this.url_}setImageLoadFunction(e){this.image_=null,this.imageLoadFunction_=e,this.changed()}setUrl(e){e!=this.url_&&(this.url_=e,this.image_=null,this.changed())}updateParams(e){Object.assign(this.params_,e),this.updateV13_(),this.image_=null,this.changed()}updateV13_(){this.v13_=(0,p.n)(this.params_.VERSION||z.e,"1.3")>=0}}},7274:(Bt,ot,a)=>{"use strict";a.d(ot,{Z:()=>z});var G=a(6290);const z=class k extends G.Z{constructor(I){let S;S=void 0!==(I=I||{}).attributions?I.attributions:['© OpenStreetMap contributors.'],super({attributions:S,attributionsCollapsible:!1,cacheSize:I.cacheSize,crossOrigin:void 0!==I.crossOrigin?I.crossOrigin:"anonymous",interpolate:I.interpolate,maxZoom:void 0!==I.maxZoom?I.maxZoom:19,opaque:void 0===I.opaque||I.opaque,reprojectionErrorThreshold:I.reprojectionErrorThreshold,tileLoadFunction:I.tileLoadFunction,transition:I.transition,url:void 0!==I.url?I.url:"https://tile.openstreetmap.org/{z}/{x}/{y}.png",wrapX:I.wrapX,zDirection:I.zDirection})}}},524:(Bt,ot,a)=>{"use strict";a.d(ot,{ZP:()=>L});var G=a(6450),D=a(3615),k=a(3044),z=a(443),U=a(6906),I=a(9375),S=a(2673),P=a(993),p=a(2988),d=a(6027),u=a(3842),c=a(7139),s=a(9543),f=a(513);let h,n=!0;try{new ImageData(10,10)}catch{n=!1}function e(b){let M=!0;try{new ImageData(10,10)}catch{M=!1}function C(N,H,it){return M?new ImageData(N,H,it):{data:N,width:H,height:it}}return function(N){const H=N.buffers,it=N.meta,st=N.width,ht=N.height,Tt=H.length,vt=H[0].byteLength;if(N.imageOps){const kt=new Array(Tt);for(let zt=0;zt"u"?"data:text/javascript;base64,"+Buffer.from(N.join("\n"),"binary").toString("base64"):URL.createObjectURL(new Blob(N,{type:"text/javascript"})));return H.addEventListener("message",M),H}class x extends G.Z{constructor(M){let C;super(),this._imageOps=!!M.imageOps,C=0===M.threads?0:this._imageOps?1:M.threads||1;const N=new Array(C);if(C)for(let H=0;Hthis._maxQueueLength;)this._queue.shift().callback(null,null)}_dispatch(){if(this._running||0===this._queue.length)return;const M=this._queue.shift();this._job=M;const C=M.inputs[0].width,N=M.inputs[0].height,H=M.inputs.map(function(ht){return ht.data.buffer}),it=this._workers.length;if(this._running=it,1===it)return void this._workers[0].postMessage({buffers:H,meta:M.meta,imageOps:this._imageOps,width:C,height:N},H);const st=4*Math.ceil(M.inputs[0].data.length/4/it);for(let ht=0;ht{"use strict";a.d(ot,{Z:()=>U});var G=a(4115),D=a(9015);function z(I){return I?Array.isArray(I)?function(S){return I}:"function"==typeof I?I:function(S){return[I]}:null}const U=class k extends G.Z{constructor(S){super(),this.projection=(0,D.U2)(S.projection),this.attributions_=z(S.attributions),this.attributionsCollapsible_=void 0===S.attributionsCollapsible||S.attributionsCollapsible,this.loading=!1,this.state_=void 0!==S.state?S.state:"ready",this.wrapX_=void 0!==S.wrapX&&S.wrapX,this.interpolate_=!!S.interpolate,this.viewResolver=null,this.viewRejector=null;const P=this;this.viewPromise_=new Promise(function(p,d){P.viewResolver=p,P.viewRejector=d})}getAttributions(){return this.attributions_}getAttributionsCollapsible(){return this.attributionsCollapsible_}getProjection(){return this.projection}getResolutions(S){return null}getView(){return this.viewPromise_}getState(){return this.state_}getWrapX(){return this.wrapX_}getInterpolate(){return this.interpolate_}refresh(){this.changed()}setAttributions(S){this.attributions_=z(S),this.changed()}setState(S){this.state_=S,this.changed()}}},6027:(Bt,ot,a)=>{"use strict";a.d(ot,{Z:()=>s,s:()=>c});var G=a(3615),D=a(2673),k=a(7450),z=a(4700),U=a(513),I=a(992),S=a(9015),P=a(5474),p=a(2705),d=a(931);class c extends G.ZP{constructor(n,h){super(n),this.tile=h}}const s=class u extends D.Z{constructor(n){super({attributions:n.attributions,attributionsCollapsible:n.attributionsCollapsible,projection:n.projection,state:n.state,wrapX:n.wrapX,interpolate:n.interpolate}),this.opaque_=void 0!==n.opaque&&n.opaque,this.tilePixelRatio_=void 0!==n.tilePixelRatio?n.tilePixelRatio:1,this.tileGrid=void 0!==n.tileGrid?n.tileGrid:null,this.tileGrid&&(0,d.Pq)(this.tileGrid.getTileSize(this.tileGrid.getMinZoom()),[256,256]),this.tileCache=new k.Z(n.cacheSize||0),this.tmpSize=[0,0],this.key_=n.key||"",this.tileOptions={transition:n.transition,interpolate:n.interpolate},this.zDirection=n.zDirection?n.zDirection:0}canExpireCache(){return this.tileCache.canExpireCache()}expireCache(n,h){const g=this.getTileCacheForProjection(n);g&&g.expireCache(h)}forEachLoadedTile(n,h,g,e){const E=this.getTileCacheForProjection(n);if(!E)return!1;let x,w,O,v=!0;for(let y=g.minX;y<=g.maxX;++y)for(let R=g.minY;R<=g.maxY;++R)w=(0,P.lg)(h,y,R),O=!1,E.containsKey(w)&&(x=E.get(w),O=x.getState()===z.Z.LOADED,O&&(O=!1!==e(x))),O||(v=!1);return v}getGutterForProjection(n){return 0}getKey(){return this.key_}setKey(n){this.key_!==n&&(this.key_=n,this.changed())}getOpaque(n){return this.opaque_}getResolutions(n){const h=n?this.getTileGridForProjection(n):this.tileGrid;return h?h.getResolutions():null}getTile(n,h,g,e,E){return(0,U.O3)()}getTileGrid(){return this.tileGrid}getTileGridForProjection(n){return this.tileGrid?this.tileGrid:(0,p.X$)(n)}getTileCacheForProjection(n){const h=this.getProjection();return(0,I.h)(null===h||(0,S.OP)(h,n),68),this.tileCache}getTilePixelRatio(n){return this.tilePixelRatio_}getTilePixelSize(n,h,g){const e=this.getTileGridForProjection(g),E=this.getTilePixelRatio(h),v=(0,d.Pq)(e.getTileSize(n),this.tmpSize);return 1==E?v:(0,d.bA)(v,E,this.tmpSize)}getTileCoordForTileUrlFunction(n,h){h=void 0!==h?h:this.getProjection();const g=this.getTileGridForProjection(h);return this.getWrapX()&&h.isGlobal()&&(n=(0,p.Cf)(g,n,h)),(0,P.tE)(n,g)?n:null}clear(){this.tileCache.clear()}refresh(){this.clear(),super.refresh()}updateCacheSize(n,h){const g=this.getTileCacheForProjection(h);n>g.highWaterMark&&(g.highWaterMark=n)}useTile(n,h,g,e){}}},3242:(Bt,ot,a)=>{"use strict";a.d(ot,{Z:()=>s});var G=a(3044),D=a(8879),k=a(4353),z=a(7450),U=a(4700),I=a(886),S=a(9015),P=a(5474),p=a(2705),d=a(513);function c(f,n){f.getImage().src=n}const s=class u extends I.Z{constructor(n){super({attributions:n.attributions,cacheSize:n.cacheSize,opaque:n.opaque,projection:n.projection,state:n.state,tileGrid:n.tileGrid,tileLoadFunction:n.tileLoadFunction?n.tileLoadFunction:c,tilePixelRatio:n.tilePixelRatio,tileUrlFunction:n.tileUrlFunction,url:n.url,urls:n.urls,wrapX:n.wrapX,transition:n.transition,interpolate:void 0===n.interpolate||n.interpolate,key:n.key,attributionsCollapsible:n.attributionsCollapsible,zDirection:n.zDirection}),this.crossOrigin=void 0!==n.crossOrigin?n.crossOrigin:null,this.tileClass=void 0!==n.tileClass?n.tileClass:D.Z,this.tileCacheForProjection={},this.tileGridForProjection={},this.reprojectionErrorThreshold_=n.reprojectionErrorThreshold,this.renderReprojectionEdges_=!1}canExpireCache(){if(this.tileCache.canExpireCache())return!0;for(const n in this.tileCacheForProjection)if(this.tileCacheForProjection[n].canExpireCache())return!0;return!1}expireCache(n,h){const g=this.getTileCacheForProjection(n);this.tileCache.expireCache(this.tileCache==g?h:{});for(const e in this.tileCacheForProjection){const E=this.tileCacheForProjection[e];E.expireCache(E==g?h:{})}}getGutterForProjection(n){return this.getProjection()&&n&&!(0,S.OP)(this.getProjection(),n)?0:this.getGutter()}getGutter(){return 0}getKey(){let n=super.getKey();return this.getInterpolate()||(n+=":disable-interpolation"),n}getOpaque(n){return!(this.getProjection()&&n&&!(0,S.OP)(this.getProjection(),n))&&super.getOpaque(n)}getTileGridForProjection(n){const h=this.getProjection();if(this.tileGrid&&(!h||(0,S.OP)(h,n)))return this.tileGrid;const g=(0,d.sq)(n);return g in this.tileGridForProjection||(this.tileGridForProjection[g]=(0,p.X$)(n)),this.tileGridForProjection[g]}getTileCacheForProjection(n){const h=this.getProjection();if(!h||(0,S.OP)(h,n))return this.tileCache;const g=(0,d.sq)(n);return g in this.tileCacheForProjection||(this.tileCacheForProjection[g]=new z.Z(this.tileCache.highWaterMark)),this.tileCacheForProjection[g]}createTile_(n,h,g,e,E,v){const x=[n,h,g],w=this.getTileCoordForTileUrlFunction(x,E),O=w?this.tileUrlFunction(w,e,E):void 0,y=new this.tileClass(x,void 0!==O?U.Z.IDLE:U.Z.EMPTY,void 0!==O?O:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return y.key=v,y.addEventListener(G.Z.CHANGE,this.handleTileChange.bind(this)),y}getTile(n,h,g,e,E){const v=this.getProjection();if(!v||!E||(0,S.OP)(v,E))return this.getTileInternal(n,h,g,e,v||E);const x=this.getTileCacheForProjection(E),w=[n,h,g];let O;const y=(0,P.km)(w);x.containsKey(y)&&(O=x.get(y));const R=this.getKey();if(O&&O.key==R)return O;const W=this.getTileGridForProjection(v),K=this.getTileGridForProjection(E),nt=this.getTileCoordForTileUrlFunction(w,E),A=new k.Z(v,W,E,K,w,nt,this.getTilePixelRatio(e),this.getGutter(),(L,b,M,C)=>this.getTileInternal(L,b,M,C,v),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.getInterpolate());return A.key=R,O?(A.interimTile=O,A.refreshInterimChain(),x.replace(y,A)):x.set(y,A),A}getTileInternal(n,h,g,e,E){let v=null;const x=(0,P.lg)(n,h,g),w=this.getKey();if(this.tileCache.containsKey(x)){if(v=this.tileCache.get(x),v.key!=w){const O=v;v=this.createTile_(n,h,g,e,E,w),v.interimTile=O.getState()==U.Z.IDLE?O.interimTile:O,v.refreshInterimChain(),this.tileCache.replace(x,v)}}else v=this.createTile_(n,h,g,e,E,w),this.tileCache.set(x,v);return v}setRenderReprojectionEdges(n){if(this.renderReprojectionEdges_!=n){this.renderReprojectionEdges_=n;for(const h in this.tileCacheForProjection)this.tileCacheForProjection[h].clear();this.changed()}}setTileGridForProjection(n,h){const g=(0,S.U2)(n);if(g){const e=(0,d.sq)(g);e in this.tileGridForProjection||(this.tileGridForProjection[e]=h)}}clear(){super.clear();for(const n in this.tileCacheForProjection)this.tileCacheForProjection[n].clear()}}},3298:(Bt,ot,a)=>{"use strict";a.d(ot,{Z:()=>s});var G=a(3242),D=a(4910),k=a(6941),z=a(992),U=a(9543),I=a(931),S=a(5114),P=a(7531),p=a(9015),d=a(4331),u=a(5474);const s=class c extends G.Z{constructor(n){n=n||{};const h=Object.assign({},n.params);super({attributions:n.attributions,attributionsCollapsible:n.attributionsCollapsible,cacheSize:n.cacheSize,crossOrigin:n.crossOrigin,interpolate:n.interpolate,opaque:!(!("TRANSPARENT"in h)||h.TRANSPARENT),projection:n.projection,reprojectionErrorThreshold:n.reprojectionErrorThreshold,tileClass:n.tileClass,tileGrid:n.tileGrid,tileLoadFunction:n.tileLoadFunction,url:n.url,urls:n.urls,wrapX:void 0===n.wrapX||n.wrapX,transition:n.transition,zDirection:n.zDirection}),this.gutter_=void 0!==n.gutter?n.gutter:0,this.params_=h,this.v13_=!0,this.serverType_=n.serverType,this.hidpi_=void 0===n.hidpi||n.hidpi,this.tmpExtent_=(0,U.lJ)(),this.updateV13_(),this.setKey(this.getKeyForParams_())}getFeatureInfoUrl(n,h,g,e){const E=(0,p.U2)(g),v=this.getProjection();let x=this.getTileGrid();x||(x=this.getTileGridForProjection(E));const w=x.getZForResolution(h,this.zDirection),O=x.getTileCoordForCoordAndZ(n,w);if(x.getResolutions().length<=O[0])return;let y=x.getResolution(O[0]),R=x.getTileCoordExtent(O,this.tmpExtent_),W=(0,I.Pq)(x.getTileSize(O[0]),this.tmpSize);const K=this.gutter_;0!==K&&(W=(0,I.f3)(W,K,this.tmpSize),R=(0,U.f3)(R,y*K,R)),v&&v!==E&&(y=(0,S.aA)(v,E,n,y),R=(0,p.$A)(R,E,v),n=(0,p.vs)(n,E,v));const nt={SERVICE:"WMS",VERSION:D.e,REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.params_.LAYERS};Object.assign(nt,this.params_,e);const A=Math.floor((n[0]-R[0])/y),L=Math.floor((R[3]-n[1])/y);return nt[this.v13_?"I":"X"]=A,nt[this.v13_?"J":"Y"]=L,this.getRequestUrl_(O,W,R,1,v||E,nt)}getLegendUrl(n,h){if(void 0===this.urls[0])return;const g={SERVICE:"WMS",VERSION:D.e,REQUEST:"GetLegendGraphic",FORMAT:"image/png"};if(void 0===h||void 0===h.LAYER){const e=this.params_.LAYERS;if(Array.isArray(e)&&1!==e.length)return;g.LAYER=e}if(void 0!==n){const e=this.getProjection()?this.getProjection().getMetersPerUnit():1;g.SCALE=n*e/28e-5}return Object.assign(g,h),(0,k.B)(this.urls[0],g)}getGutter(){return this.gutter_}getParams(){return this.params_}getRequestUrl_(n,h,g,e,E,v){const x=this.urls;if(!x)return;if(v.WIDTH=h[0],v.HEIGHT=h[1],v[this.v13_?"CRS":"SRS"]=E.getCode(),"STYLES"in this.params_||(v.STYLES=""),1!=e)switch(this.serverType_){case"geoserver":const R=90*e+.5|0;"FORMAT_OPTIONS"in v?v.FORMAT_OPTIONS+=";dpi:"+R:v.FORMAT_OPTIONS="dpi:"+R;break;case"mapserver":v.MAP_RESOLUTION=90*e;break;case"carmentaserver":case"qgis":v.DPI=90*e;break;default:(0,z.h)(!1,52)}const w=E.getAxisOrientation(),O=g;if(this.v13_&&"ne"==w.substr(0,2)){let R;R=g[0],O[0]=g[1],O[1]=R,R=g[2],O[2]=g[3],O[3]=R}let y;return v.BBOX=O.join(","),y=1==x.length?x[0]:x[(0,d.$W)((0,u.vp)(n),x.length)],(0,k.B)(y,v)}getTilePixelRatio(n){return this.hidpi_&&void 0!==this.serverType_?n:1}getKeyForParams_(){let n=0;const h=[];for(const g in this.params_)h[n++]=g+"-"+this.params_[g];return h.join("/")}updateParams(n){Object.assign(this.params_,n),this.updateV13_(),this.setKey(this.getKeyForParams_())}updateV13_(){this.v13_=(0,P.n)(this.params_.VERSION||D.e,"1.3")>=0}tileUrlFunction(n,h,g){let e=this.getTileGrid();if(e||(e=this.getTileGridForProjection(g)),e.getResolutions().length<=n[0])return;1!=h&&(!this.hidpi_||void 0===this.serverType_)&&(h=1);const E=e.getResolution(n[0]);let v=e.getTileCoordExtent(n,this.tmpExtent_),x=(0,I.Pq)(e.getTileSize(n[0]),this.tmpSize);const w=this.gutter_;0!==w&&(x=(0,I.f3)(x,w,this.tmpSize),v=(0,U.f3)(v,E*w,v)),1!=h&&(x=(0,I.bA)(x,h,this.tmpSize));const O={SERVICE:"WMS",VERSION:D.e,REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0};return Object.assign(O,this.params_),this.getRequestUrl_(n,x,v,h,g,O)}}},886:(Bt,ot,a)=>{"use strict";a.d(ot,{Z:()=>P});var D=a(6027),k=a(4700),z=a(5809),U=a(5474),I=a(513);class S extends D.Z{constructor(d){super({attributions:d.attributions,cacheSize:d.cacheSize,opaque:d.opaque,projection:d.projection,state:d.state,tileGrid:d.tileGrid,tilePixelRatio:d.tilePixelRatio,wrapX:d.wrapX,transition:d.transition,interpolate:d.interpolate,key:d.key,attributionsCollapsible:d.attributionsCollapsible,zDirection:d.zDirection}),this.generateTileUrlFunction_=this.tileUrlFunction===S.prototype.tileUrlFunction,this.tileLoadFunction=d.tileLoadFunction,d.tileUrlFunction&&(this.tileUrlFunction=d.tileUrlFunction),this.urls=null,d.urls?this.setUrls(d.urls):d.url&&this.setUrl(d.url),this.tileLoadingKeys_={}}getTileLoadFunction(){return this.tileLoadFunction}getTileUrlFunction(){return Object.getPrototypeOf(this).tileUrlFunction===this.tileUrlFunction?this.tileUrlFunction.bind(this):this.tileUrlFunction}getUrls(){return this.urls}handleTileChange(d){const u=d.target,c=(0,I.sq)(u),s=u.getState();let f;s==k.Z.LOADING?(this.tileLoadingKeys_[c]=!0,f="tileloadstart"):c in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[c],f=s==k.Z.ERROR?"tileloaderror":s==k.Z.LOADED?"tileloadend":void 0),null!=f&&this.dispatchEvent(new D.s(f,u))}setTileLoadFunction(d){this.tileCache.clear(),this.tileLoadFunction=d,this.changed()}setTileUrlFunction(d,u){this.tileUrlFunction=d,this.tileCache.pruneExceptNewestZ(),typeof u<"u"?this.setKey(u):this.changed()}setUrl(d){const u=(0,z.Gk)(d);this.urls=u,this.setUrls(u)}setUrls(d){this.urls=d;const u=d.join("\n");this.generateTileUrlFunction_?this.setTileUrlFunction((0,z.uR)(d,this.tileGrid),u):this.setKey(u)}tileUrlFunction(d,u,c){}useTile(d,u,c){const s=(0,U.lg)(d,u,c);this.tileCache.containsKey(s)&&this.tileCache.get(s)}}const P=S},3149:(Bt,ot,a)=>{"use strict";a.d(ot,{Z:()=>w});var G=a(9573),D=a(448),k=a(3615),z=a(3044),U=a(8296),I=a(3036),S=a(9543),P=a(513),p=a(9306);const u=class d{constructor(y){this.rbush_=new I(y),this.items_={}}insert(y,R){const W={minX:y[0],minY:y[1],maxX:y[2],maxY:y[3],value:R};this.rbush_.insert(W),this.items_[(0,P.sq)(R)]=W}load(y,R){const W=new Array(R.length);for(let K=0,nt=R.length;K{R||(R=!0,this.addFeature(W.element),R=!1)}),y.addEventListener(D.Z.REMOVE,W=>{R||(R=!0,this.removeFeature(W.element),R=!1)}),this.featuresCollection_=y}clear(y){if(y){for(const W in this.featureChangeKeys_)this.featureChangeKeys_[W].forEach(e.bN);this.featuresCollection_||(this.featureChangeKeys_={},this.idIndex_={},this.uidIndex_={})}else if(this.featuresRtree_){this.featuresRtree_.forEach(K=>{this.removeFeatureInternal(K)});for(const K in this.nullGeometryFeatures_)this.removeFeatureInternal(this.nullGeometryFeatures_[K])}this.featuresCollection_&&this.featuresCollection_.clear(),this.featuresRtree_&&this.featuresRtree_.clear(),this.nullGeometryFeatures_={};const R=new v(s.Z.CLEAR);this.dispatchEvent(R),this.changed()}forEachFeature(y){if(this.featuresRtree_)return this.featuresRtree_.forEach(y);this.featuresCollection_&&this.featuresCollection_.forEach(y)}forEachFeatureAtCoordinateDirect(y,R){return this.forEachFeatureInExtent([y[0],y[1],y[0],y[1]],function(K){if(K.getGeometry().intersectsCoordinate(y))return R(K)})}forEachFeatureInExtent(y,R){if(this.featuresRtree_)return this.featuresRtree_.forEachInExtent(y,R);this.featuresCollection_&&this.featuresCollection_.forEach(R)}forEachFeatureIntersectingExtent(y,R){return this.forEachFeatureInExtent(y,function(W){if(W.getGeometry().intersectsExtent(y)){const nt=R(W);if(nt)return nt}})}getFeaturesCollection(){return this.featuresCollection_}getFeatures(){let y;return this.featuresCollection_?y=this.featuresCollection_.getArray().slice(0):this.featuresRtree_&&(y=this.featuresRtree_.getAll(),(0,p.x)(this.nullGeometryFeatures_)||(0,g.l7)(y,Object.values(this.nullGeometryFeatures_))),y}getFeaturesAtCoordinate(y){const R=[];return this.forEachFeatureAtCoordinateDirect(y,function(W){R.push(W)}),R}getFeaturesInExtent(y,R){if(this.featuresRtree_){if(!(R&&R.canWrapX()&&this.getWrapX()))return this.featuresRtree_.getInExtent(y);const K=(0,S.MV)(y,R);return[].concat(...K.map(nt=>this.featuresRtree_.getInExtent(nt)))}return this.featuresCollection_?this.featuresCollection_.getArray().slice(0):[]}getClosestFeatureToCoordinate(y,R){const W=y[0],K=y[1];let nt=null;const A=[NaN,NaN];let L=1/0;const b=[-1/0,-1/0,1/0,1/0];return R=R||f.uX,this.featuresRtree_.forEachInExtent(b,function(M){if(R(M)){const C=M.getGeometry(),N=L;if(L=C.closestPointXY(W,K,A,L),L{--this.loadingExtentsCount_,this.dispatchEvent(new v(s.Z.FEATURESLOADEND,void 0,C))},()=>{--this.loadingExtentsCount_,this.dispatchEvent(new v(s.Z.FEATURESLOADERROR))}),K.insert(b,{extent:b.slice()}))}this.loading=!(this.loader_.length<4)&&this.loadingExtentsCount_>0}refresh(){this.clear(!0),this.loadedExtentsRtree_.clear(),super.refresh()}removeLoadedExtent(y){const R=this.loadedExtentsRtree_;let W;R.forEachInExtent(y,function(K){if((0,S.fS)(K.extent,y))return W=K,!0}),W&&R.remove(W)}removeFeature(y){if(!y)return;const R=(0,P.sq)(y);R in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[R]:this.featuresRtree_&&this.featuresRtree_.remove(y),this.removeFeatureInternal(y)&&this.changed()}removeFeatureInternal(y){const R=(0,P.sq)(y),W=this.featureChangeKeys_[R];if(!W)return;W.forEach(e.bN),delete this.featureChangeKeys_[R];const K=y.getId();return void 0!==K&&delete this.idIndex_[K.toString()],delete this.uidIndex_[R],this.dispatchEvent(new v(s.Z.REMOVEFEATURE,y)),y}removeFromIdIndex_(y){let R=!1;for(const W in this.idIndex_)if(this.idIndex_[W]===y){delete this.idIndex_[W],R=!0;break}return R}setLoader(y){this.loader_=y}setUrl(y){(0,h.h)(this.format_,7),this.url_=y,this.setLoader((0,E.Be)(y,this.format_))}}},8051:(Bt,ot,a)=>{"use strict";a.d(ot,{Z:()=>G});const G={ADDFEATURE:"addfeature",CHANGEFEATURE:"changefeature",CLEAR:"clear",REMOVEFEATURE:"removefeature",FEATURESLOADSTART:"featuresloadstart",FEATURESLOADEND:"featuresloadend",FEATURESLOADERROR:"featuresloaderror"}},978:(Bt,ot,a)=>{"use strict";a.d(ot,{Z:()=>w,I:()=>O});var G=a(3044),D=a(8786),k=a(4700);const U=class z extends D.Z{constructor(R,W,K,nt,A,L){super(R,W,L),this.extent=null,this.format_=nt,this.features_=null,this.projection=null,this.tileLoadFunction_=A,this.url_=K,this.key=K}getFormat(){return this.format_}getFeatures(){return this.features_}load(){this.state==k.Z.IDLE&&(this.setState(k.Z.LOADING),this.tileLoadFunction_(this,this.url_),this.loader_&&this.loader_(this.extent,this.resolution,this.projection))}onLoad(R,W){this.setFeatures(R)}onError(){this.setState(k.Z.ERROR)}setFeatures(R){this.features_=R,this.setState(k.Z.LOADED)}setLoader(R){this.loader_=R}};var I=a(7450),S=a(1053),P=a(886),p=a(3842),d=a(513);const u=[],s=class c extends D.Z{constructor(R,W,K,nt){super(R,W,{transition:0}),this.context_={},this.executorGroups={},this.declutterExecutorGroups={},this.loadingSourceTiles=0,this.hitDetectionImageData={},this.replayState_={},this.sourceTiles=[],this.errorTileKeys={},this.getSourceTiles=nt.bind(void 0,this),this.wrappedTileCoord=K}getContext(R){const W=(0,d.sq)(R);return W in this.context_||(this.context_[W]=(0,p.E4)(1,1,u)),this.context_[W]}hasContext(R){return(0,d.sq)(R)in this.context_}getImage(R){return this.hasContext(R)?this.getContext(R).canvas:null}getReplayState(R){const W=(0,d.sq)(R);return W in this.replayState_||(this.replayState_[W]={dirty:!1,renderedRenderOrder:null,renderedResolution:NaN,renderedRevision:-1,renderedTileResolution:NaN,renderedTileRevision:-1,renderedTileZ:-1}),this.replayState_[W]}load(){this.getSourceTiles()}release(){for(const R in this.context_){const W=this.context_[R];(0,p.jy)(W),u.push(W.canvas),delete this.context_[R]}super.release()}};var f=a(2258),n=a(9543),h=a(2705),g=a(5474),e=a(9306),E=a(75),v=a(931);const w=class x extends P.Z{constructor(R){const W=R.projection||"EPSG:3857",K=R.extent||(0,h.Tl)(W),nt=R.tileGrid||(0,h.dl)({extent:K,maxResolution:R.maxResolution,maxZoom:void 0!==R.maxZoom?R.maxZoom:22,minZoom:R.minZoom,tileSize:R.tileSize||512});super({attributions:R.attributions,attributionsCollapsible:R.attributionsCollapsible,cacheSize:R.cacheSize,interpolate:!0,opaque:!1,projection:W,state:R.state,tileGrid:nt,tileLoadFunction:R.tileLoadFunction?R.tileLoadFunction:O,tileUrlFunction:R.tileUrlFunction,url:R.url,urls:R.urls,wrapX:void 0===R.wrapX||R.wrapX,transition:R.transition,zDirection:void 0===R.zDirection?1:R.zDirection}),this.format_=R.format?R.format:null,this.sourceTileCache=new I.Z(this.tileCache.highWaterMark),this.overlaps_=R.overlaps??!0,this.tileClass=R.tileClass?R.tileClass:U,this.tileGrids_={}}getFeaturesInExtent(R){const W=[],K=this.tileCache;if(0===K.getCount())return W;const nt=(0,g.Ul)(K.peekFirstKey())[0],A=this.tileGrid;return K.forEach(function(L){if(L.tileCoord[0]!==nt||L.getState()!==k.Z.LOADED)return;const b=L.getSourceTiles();for(let M=0,C=b.length;M{const b=(0,g.MY)(L),M=K.peek(b);if(M){const C=M.sourceTiles;for(let N=0,H=C.length;N{const Y=this.tileUrlFunction(it,R,W),st=this.sourceTileCache.containsKey(Y)?this.sourceTileCache.get(Y):new this.tileClass(it,Y?k.Z.IDLE:k.Z.EMPTY,Y,this.format_,this.tileLoadFunction);K.sourceTiles.push(st);const ht=st.getState();if(ht{this.handleTileChange(vt);const Ct=st.getState();if(Ct===k.Z.LOADED||Ct===k.Z.ERROR){const bt=st.getKey();bt in K.errorTileKeys?st.getState()===k.Z.LOADED&&delete K.errorTileKeys[bt]:K.loadingSourceTiles--,Ct===k.Z.ERROR?K.errorTileKeys[bt]=!0:st.removeEventListener(G.Z.CHANGE,Tt),0===K.loadingSourceTiles&&K.setState((0,e.x)(K.errorTileKeys)?k.Z.LOADED:k.Z.ERROR)}};st.addEventListener(G.Z.CHANGE,Tt),K.loadingSourceTiles++}ht===k.Z.IDLE&&(st.extent=C.getTileCoordExtent(it),st.projection=W,st.resolution=C.getResolution(it[0]),this.sourceTileCache.set(Y,st),st.load())}),K.loadingSourceTiles||K.setState(K.sourceTiles.some(it=>it.getState()===k.Z.ERROR)?k.Z.ERROR:k.Z.LOADED)}return K.sourceTiles}getTile(R,W,K,nt,A){const L=(0,g.lg)(R,W,K),b=this.getKey();let M;if(this.tileCache.containsKey(L)&&(M=this.tileCache.get(L),M.key===b))return M;const C=[R,W,K];let N=this.getTileCoordForTileUrlFunction(C,A);const H=this.getTileGrid().getExtent(),it=this.getTileGridForProjection(A);if(N&&H){const ht=it.getTileCoordExtent(N);(0,n.f3)(ht,-it.getResolution(R),ht),(0,n.kK)(H,ht)||(N=null)}let Y=!0;if(null!==N){const ht=this.tileGrid,Tt=it.getResolution(R),vt=ht.getZForResolution(Tt,1),Ct=it.getTileCoordExtent(N);(0,n.f3)(Ct,-Tt,Ct),ht.forEachTileCoord(Ct,vt,bt=>{Y=Y&&!this.tileUrlFunction(bt,nt,A)})}const st=new s(C,Y?k.Z.EMPTY:k.Z.IDLE,N,this.getSourceTiles.bind(this,nt,A));return st.key=b,M?(st.interimTile=M,st.refreshInterimChain(),this.tileCache.replace(L,st)):this.tileCache.set(L,st),st}getTileGridForProjection(R){const W=R.getCode();let K=this.tileGrids_[W];if(!K){const nt=this.tileGrid,A=nt.getResolutions().slice(),L=A.map(function(C,N){return nt.getOrigin(N)}),b=A.map(function(C,N){return nt.getTileSize(N)}),M=f.e+1;for(let C=A.length;C{"use strict";a.d(ot,{Z:()=>z});var G=a(3242),D=a(2705);const z=class k extends G.Z{constructor(I){const S=void 0!==(I=I||{}).projection?I.projection:"EPSG:3857",P=void 0!==I.tileGrid?I.tileGrid:(0,D.dl)({extent:(0,D.Tl)(S),maxResolution:I.maxResolution,maxZoom:I.maxZoom,minZoom:I.minZoom,tileSize:I.tileSize});super({attributions:I.attributions,cacheSize:I.cacheSize,crossOrigin:I.crossOrigin,interpolate:I.interpolate,opaque:I.opaque,projection:S,reprojectionErrorThreshold:I.reprojectionErrorThreshold,tileGrid:P,tileLoadFunction:I.tileLoadFunction,tilePixelRatio:I.tilePixelRatio,tileUrlFunction:I.tileUrlFunction,url:I.url,urls:I.urls,wrapX:void 0===I.wrapX||I.wrapX,transition:I.transition,attributionsCollapsible:I.attributionsCollapsible,zDirection:I.zDirection}),this.gutter_=void 0!==I.gutter?I.gutter:0}getGutter(){return this.gutter_}}},4910:(Bt,ot,a)=>{"use strict";a.d(ot,{e:()=>G});const G="1.3.0"},7531:(Bt,ot,a)=>{"use strict";function G(k,z,U){const I=void 0!==U?k.toFixed(U):""+k;let S=I.indexOf(".");return S=-1===S?I.length:S,S>z?I:new Array(1+z-S).join("0")+I}function D(k,z){const U=(""+k).split("."),I=(""+z).split(".");for(let S=0;Sp)return 1;if(p>P)return-1}return 0}a.d(ot,{n:()=>D,v:()=>G})},795:(Bt,ot,a)=>{"use strict";a.d(ot,{Z:()=>k});var G=a(2682);class D extends G.Z{constructor(U){super({points:1/0,fill:(U=U||{radius:5}).fill,radius:U.radius,stroke:U.stroke,scale:void 0!==U.scale?U.scale:1,rotation:void 0!==U.rotation?U.rotation:0,rotateWithView:void 0!==U.rotateWithView&&U.rotateWithView,displacement:void 0!==U.displacement?U.displacement:[0,0],declutterMode:U.declutterMode})}clone(){const U=this.getScale(),I=new D({fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,radius:this.getRadius(),scale:Array.isArray(U)?U.slice():U,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return I.setOpacity(this.getOpacity()),I}setRadius(U){this.radius_=U,this.render()}}const k=D},694:(Bt,ot,a)=>{"use strict";a.d(ot,{Z:()=>D});class G{constructor(z){this.color_=void 0!==(z=z||{}).color?z.color:null}clone(){const z=this.getColor();return new G({color:Array.isArray(z)?z.slice():z||void 0})}getColor(){return this.color_}setColor(z){this.color_=z}}const D=G},5999:(Bt,ot,a)=>{"use strict";a.d(ot,{Z:()=>h});var G=a(3044),D=a(1501),k=a(7182),z=a(866),U=a(992),I=a(1398),S=a(3842),P=a(9118),p=a(1309);let d=null;class u extends I.Z{constructor(e,E,v,x,w,O){super(),this.hitDetectionImage_=null,this.image_=e,this.crossOrigin_=x,this.canvas_={},this.color_=O,this.unlisten_=null,this.imageState_=w,this.size_=v,this.src_=E}initializeImage_(){this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)}isTainted_(){if(void 0===this.tainted_&&this.imageState_===D.Z.LOADED){d||(d=(0,S.E4)(1,1,void 0,{willReadFrequently:!0})),d.drawImage(this.image_,0,0);try{d.getImageData(0,0,1,1),this.tainted_=!1}catch{d=null,this.tainted_=!0}}return!0===this.tainted_}dispatchChangeEvent_(){this.dispatchEvent(G.Z.CHANGE)}handleImageError_(){this.imageState_=D.Z.ERROR,this.unlistenImage_(),this.dispatchChangeEvent_()}handleImageLoad_(){this.imageState_=D.Z.LOADED,this.size_?(this.image_.width=this.size_[0],this.image_.height=this.size_[1]):this.size_=[this.image_.width,this.image_.height],this.unlistenImage_(),this.dispatchChangeEvent_()}getImage(e){return this.image_||this.initializeImage_(),this.replaceColor_(e),this.canvas_[e]?this.canvas_[e]:this.image_}getPixelRatio(e){return this.replaceColor_(e),this.canvas_[e]?e:1}getImageState(){return this.imageState_}getHitDetectionImage(){if(this.image_||this.initializeImage_(),!this.hitDetectionImage_)if(this.isTainted_()){const e=this.size_[0],E=this.size_[1],v=(0,S.E4)(e,E);v.fillRect(0,0,e,E),this.hitDetectionImage_=v.canvas}else this.hitDetectionImage_=this.image_;return this.hitDetectionImage_}getSize(){return this.size_}getSrc(){return this.src_}load(){if(this.imageState_===D.Z.IDLE){this.image_||this.initializeImage_(),this.imageState_=D.Z.LOADING;try{this.image_.src=this.src_}catch{this.handleImageError_()}this.unlisten_=(0,p.K)(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this))}}replaceColor_(e){if(!this.color_||this.canvas_[e]||this.imageState_!==D.Z.LOADED)return;const E=this.image_,v=document.createElement("canvas");v.width=Math.ceil(E.width*e),v.height=Math.ceil(E.height*e);const x=v.getContext("2d");x.scale(e,e),x.drawImage(E,0,0),x.globalCompositeOperation="multiply",x.fillStyle=(0,z.XC)(this.color_),x.fillRect(0,0,v.width/e,v.height/e),x.globalCompositeOperation="destination-in",x.drawImage(E,0,0),this.canvas_[e]=v}unlistenImage_(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)}}var f=a(513);class n extends k.Z{constructor(e){super({opacity:void 0!==(e=e||{}).opacity?e.opacity:1,rotation:void 0!==e.rotation?e.rotation:0,scale:void 0!==e.scale?e.scale:1,displacement:void 0!==e.displacement?e.displacement:[0,0],rotateWithView:void 0!==e.rotateWithView&&e.rotateWithView,declutterMode:e.declutterMode}),this.anchor_=void 0!==e.anchor?e.anchor:[.5,.5],this.normalizedAnchor_=null,this.anchorOrigin_=void 0!==e.anchorOrigin?e.anchorOrigin:"top-left",this.anchorXUnits_=void 0!==e.anchorXUnits?e.anchorXUnits:"fraction",this.anchorYUnits_=void 0!==e.anchorYUnits?e.anchorYUnits:"fraction",this.crossOrigin_=void 0!==e.crossOrigin?e.crossOrigin:null;const O=void 0!==e.img?e.img:null;this.imgSize_=e.imgSize;let y=e.src;(0,U.h)(!(void 0!==y&&O),4),(0,U.h)(!O||O&&this.imgSize_,5),(void 0===y||0===y.length)&&O&&(y=O.src||(0,f.sq)(O)),(0,U.h)(void 0!==y&&y.length>0,6),(0,U.h)(!((void 0!==e.width||void 0!==e.height)&&void 0!==e.scale),69);const R=void 0!==e.src?D.Z.IDLE:D.Z.LOADED;if(this.color_=void 0!==e.color?(0,z._2)(e.color):null,this.iconImage_=function c(g,e,E,v,x,w){let O=P.c.get(e,v,w);return O||(O=new u(g,e,E,v,x,w),P.c.set(e,v,w,O)),O}(O,y,void 0!==this.imgSize_?this.imgSize_:null,this.crossOrigin_,R,this.color_),this.offset_=void 0!==e.offset?e.offset:[0,0],this.offsetOrigin_=void 0!==e.offsetOrigin?e.offsetOrigin:"top-left",this.origin_=null,this.size_=void 0!==e.size?e.size:null,this.width_=e.width,this.height_=e.height,void 0!==this.width_||void 0!==this.height_){const W=this.getImage(1),K=()=>{this.updateScaleFromWidthAndHeight(this.width_,this.height_)};W.width>0?this.updateScaleFromWidthAndHeight(this.width_,this.height_):W.addEventListener("load",K)}}clone(){let e=this.getScale();return e=Array.isArray(e)?e.slice():e,(void 0!==this.width_||void 0!==this.height_)&&(e=void 0),new n({anchor:this.anchor_.slice(),anchorOrigin:this.anchorOrigin_,anchorXUnits:this.anchorXUnits_,anchorYUnits:this.anchorYUnits_,color:this.color_&&this.color_.slice?this.color_.slice():this.color_||void 0,crossOrigin:this.crossOrigin_,imgSize:this.imgSize_,offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,opacity:this.getOpacity(),rotateWithView:this.getRotateWithView(),rotation:this.getRotation(),scale:e,size:null!==this.size_?this.size_.slice():void 0,src:this.getSrc(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode(),width:this.width_,height:this.height_})}updateScaleFromWidthAndHeight(e,E){const v=this.getImage(1);super.setScale(void 0!==e&&void 0!==E?[e/v.width,E/v.height]:void 0!==e?[e/v.width,e/v.width]:void 0!==E?[E/v.height,E/v.height]:[1,1])}getAnchor(){let e=this.normalizedAnchor_;if(!e){e=this.anchor_;const x=this.getSize();if("fraction"==this.anchorXUnits_||"fraction"==this.anchorYUnits_){if(!x)return null;e=this.anchor_.slice(),"fraction"==this.anchorXUnits_&&(e[0]*=x[0]),"fraction"==this.anchorYUnits_&&(e[1]*=x[1])}if("top-left"!=this.anchorOrigin_){if(!x)return null;e===this.anchor_&&(e=this.anchor_.slice()),("top-right"==this.anchorOrigin_||"bottom-right"==this.anchorOrigin_)&&(e[0]=-e[0]+x[0]),("bottom-left"==this.anchorOrigin_||"bottom-right"==this.anchorOrigin_)&&(e[1]=-e[1]+x[1])}this.normalizedAnchor_=e}const E=this.getDisplacement(),v=this.getScaleArray();return[e[0]-E[0]/v[0],e[1]+E[1]/v[1]]}setAnchor(e){this.anchor_=e,this.normalizedAnchor_=null}getColor(){return this.color_}getImage(e){return this.iconImage_.getImage(e)}getPixelRatio(e){return this.iconImage_.getPixelRatio(e)}getImageSize(){return this.iconImage_.getSize()}getImageState(){return this.iconImage_.getImageState()}getHitDetectionImage(){return this.iconImage_.getHitDetectionImage()}getOrigin(){if(this.origin_)return this.origin_;let e=this.offset_;if("top-left"!=this.offsetOrigin_){const E=this.getSize(),v=this.iconImage_.getSize();if(!E||!v)return null;e=e.slice(),("top-right"==this.offsetOrigin_||"bottom-right"==this.offsetOrigin_)&&(e[0]=v[0]-E[0]-e[0]),("bottom-left"==this.offsetOrigin_||"bottom-right"==this.offsetOrigin_)&&(e[1]=v[1]-E[1]-e[1])}return this.origin_=e,this.origin_}getSrc(){return this.iconImage_.getSrc()}getSize(){return this.size_?this.size_:this.iconImage_.getSize()}getWidth(){return this.width_}getHeight(){return this.height_}setWidth(e){this.width_=e,this.updateScaleFromWidthAndHeight(e,this.height_)}setHeight(e){this.height_=e,this.updateScaleFromWidthAndHeight(this.width_,e)}setScale(e){super.setScale(e);const E=this.getImage(1);if(E){const v=Array.isArray(e)?e[0]:e;void 0!==v&&(this.width_=v*E.width);const x=Array.isArray(e)?e[1]:e;void 0!==x&&(this.height_=x*E.height)}}listenImageChange(e){this.iconImage_.addEventListener(G.Z.CHANGE,e)}load(){this.iconImage_.load()}unlistenImageChange(e){this.iconImage_.removeEventListener(G.Z.CHANGE,e)}}const h=n},9118:(Bt,ot,a)=>{"use strict";a.d(ot,{c:()=>U});var G=a(866);function k(I,S,P){return S+":"+I+":"+(P?(0,G.XC)(P):"null")}const U=new class D{constructor(){this.cache_={},this.cacheSize_=0,this.maxCacheSize_=32}clear(){this.cache_={},this.cacheSize_=0}canExpireCache(){return this.cacheSize_>this.maxCacheSize_}expire(){if(this.canExpireCache()){let S=0;for(const P in this.cache_){const p=this.cache_[P];0==(3&S++)&&!p.hasListener()&&(delete this.cache_[P],--this.cacheSize_)}}}get(S,P,p){const d=k(S,P,p);return d in this.cache_?this.cache_[d]:null}set(S,P,p,d){const u=k(S,P,p);this.cache_[u]=d,++this.cacheSize_}setSize(S){this.maxCacheSize_=S,this.expire()}}},7182:(Bt,ot,a)=>{"use strict";a.d(ot,{Z:()=>z});var G=a(513),D=a(931);class k{constructor(I){this.opacity_=I.opacity,this.rotateWithView_=I.rotateWithView,this.rotation_=I.rotation,this.scale_=I.scale,this.scaleArray_=(0,D.Pq)(I.scale),this.displacement_=I.displacement,this.declutterMode_=I.declutterMode}clone(){const I=this.getScale();return new k({opacity:this.getOpacity(),scale:Array.isArray(I)?I.slice():I,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getOpacity(){return this.opacity_}getRotateWithView(){return this.rotateWithView_}getRotation(){return this.rotation_}getScale(){return this.scale_}getScaleArray(){return this.scaleArray_}getDisplacement(){return this.displacement_}getDeclutterMode(){return this.declutterMode_}getAnchor(){return(0,G.O3)()}getImage(I){return(0,G.O3)()}getHitDetectionImage(){return(0,G.O3)()}getPixelRatio(I){return 1}getImageState(){return(0,G.O3)()}getImageSize(){return(0,G.O3)()}getOrigin(){return(0,G.O3)()}getSize(){return(0,G.O3)()}setDisplacement(I){this.displacement_=I}setOpacity(I){this.opacity_=I}setRotateWithView(I){this.rotateWithView_=I}setRotation(I){this.rotation_=I}setScale(I){this.scale_=I,this.scaleArray_=(0,D.Pq)(I)}listenImageChange(I){(0,G.O3)()}load(){(0,G.O3)()}unlistenImageChange(I){(0,G.O3)()}}const z=k},2682:(Bt,ot,a)=>{"use strict";a.d(ot,{Z:()=>P});var G=a(1501),D=a(7182),k=a(866),z=a(4890),U=a(3842),I=a(2768);class S extends D.Z{constructor(d){super({opacity:1,rotateWithView:void 0!==d.rotateWithView&&d.rotateWithView,rotation:void 0!==d.rotation?d.rotation:0,scale:void 0!==d.scale?d.scale:1,displacement:void 0!==d.displacement?d.displacement:[0,0],declutterMode:d.declutterMode}),this.canvas_=void 0,this.hitDetectionCanvas_=null,this.fill_=void 0!==d.fill?d.fill:null,this.origin_=[0,0],this.points_=d.points,this.radius_=void 0!==d.radius?d.radius:d.radius1,this.radius2_=d.radius2,this.angle_=void 0!==d.angle?d.angle:0,this.stroke_=void 0!==d.stroke?d.stroke:null,this.size_=null,this.renderOptions_=null,this.render()}clone(){const d=this.getScale(),u=new S({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(d)?d.slice():d,displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return u.setOpacity(this.getOpacity()),u}getAnchor(){const d=this.size_;if(!d)return null;const u=this.getDisplacement(),c=this.getScaleArray();return[d[0]/2-u[0]/c[0],d[1]/2+u[1]/c[1]]}getAngle(){return this.angle_}getFill(){return this.fill_}setFill(d){this.fill_=d,this.render()}getHitDetectionImage(){return this.hitDetectionCanvas_||this.createHitDetectionCanvas_(this.renderOptions_),this.hitDetectionCanvas_}getImage(d){let u=this.canvas_[d];if(!u){const c=this.renderOptions_,s=(0,U.E4)(c.size*d,c.size*d);this.draw_(c,s,d),u=s.canvas,this.canvas_[d]=u}return u}getPixelRatio(d){return d}getImageSize(){return this.size_}getImageState(){return G.Z.LOADED}getOrigin(){return this.origin_}getPoints(){return this.points_}getRadius(){return this.radius_}getRadius2(){return this.radius2_}getSize(){return this.size_}getStroke(){return this.stroke_}setStroke(d){this.stroke_=d,this.render()}listenImageChange(d){}load(){}unlistenImageChange(d){}calculateLineJoinSize_(d,u,c){if(0===u||this.points_===1/0||"bevel"!==d&&"miter"!==d)return u;let s=this.radius_,f=void 0===this.radius2_?s:this.radius2_;if(s{"use strict";a.d(ot,{Z:()=>D});class G{constructor(z){this.color_=void 0!==(z=z||{}).color?z.color:null,this.lineCap_=z.lineCap,this.lineDash_=void 0!==z.lineDash?z.lineDash:null,this.lineDashOffset_=z.lineDashOffset,this.lineJoin_=z.lineJoin,this.miterLimit_=z.miterLimit,this.width_=z.width}clone(){const z=this.getColor();return new G({color:Array.isArray(z)?z.slice():z||void 0,lineCap:this.getLineCap(),lineDash:this.getLineDash()?this.getLineDash().slice():void 0,lineDashOffset:this.getLineDashOffset(),lineJoin:this.getLineJoin(),miterLimit:this.getMiterLimit(),width:this.getWidth()})}getColor(){return this.color_}getLineCap(){return this.lineCap_}getLineDash(){return this.lineDash_}getLineDashOffset(){return this.lineDashOffset_}getLineJoin(){return this.lineJoin_}getMiterLimit(){return this.miterLimit_}getWidth(){return this.width_}setColor(z){this.color_=z}setLineCap(z){this.lineCap_=z}setLineDash(z){this.lineDash_=z}setLineDashOffset(z){this.lineDashOffset_=z}setLineJoin(z){this.lineJoin_=z}setMiterLimit(z){this.miterLimit_=z}setWidth(z){this.width_=z}}const D=G},1786:(Bt,ot,a)=>{"use strict";a.d(ot,{J$:()=>I,ZP:()=>u,yF:()=>P});var G=a(795),D=a(694),k=a(5253),z=a(992);class U{constructor(s){s=s||{},this.geometry_=null,this.geometryFunction_=d,void 0!==s.geometry&&this.setGeometry(s.geometry),this.fill_=void 0!==s.fill?s.fill:null,this.image_=void 0!==s.image?s.image:null,this.renderer_=void 0!==s.renderer?s.renderer:null,this.hitDetectionRenderer_=void 0!==s.hitDetectionRenderer?s.hitDetectionRenderer:null,this.stroke_=void 0!==s.stroke?s.stroke:null,this.text_=void 0!==s.text?s.text:null,this.zIndex_=s.zIndex}clone(){let s=this.getGeometry();return s&&"object"==typeof s&&(s=s.clone()),new U({geometry:s,fill:this.getFill()?this.getFill().clone():void 0,image:this.getImage()?this.getImage().clone():void 0,renderer:this.getRenderer(),stroke:this.getStroke()?this.getStroke().clone():void 0,text:this.getText()?this.getText().clone():void 0,zIndex:this.getZIndex()})}getRenderer(){return this.renderer_}setRenderer(s){this.renderer_=s}setHitDetectionRenderer(s){this.hitDetectionRenderer_=s}getHitDetectionRenderer(){return this.hitDetectionRenderer_}getGeometry(){return this.geometry_}getGeometryFunction(){return this.geometryFunction_}getFill(){return this.fill_}setFill(s){this.fill_=s}getImage(){return this.image_}setImage(s){this.image_=s}getStroke(){return this.stroke_}setStroke(s){this.stroke_=s}getText(){return this.text_}setText(s){this.text_=s}getZIndex(){return this.zIndex_}setGeometry(s){"function"==typeof s?this.geometryFunction_=s:"string"==typeof s?this.geometryFunction_=function(f){return f.get(s)}:s?void 0!==s&&(this.geometryFunction_=function(){return s}):this.geometryFunction_=d,this.geometry_=s}setZIndex(s){this.zIndex_=s}}function I(c){let s;if("function"==typeof c)s=c;else{let f;Array.isArray(c)?f=c:((0,z.h)("function"==typeof c.getZIndex,41),f=[c]),s=function(){return f}}return s}let S=null;function P(c,s){if(!S){const f=new D.Z({color:"rgba(255,255,255,0.4)"}),n=new k.Z({color:"#3399CC",width:1.25});S=[new U({image:new G.Z({fill:f,stroke:n,radius:5}),fill:f,stroke:n})]}return S}function d(c){return c.getGeometry()}const u=U},8185:(Bt,ot,a)=>{"use strict";a.d(ot,{Z:()=>U});var G=a(694),D=a(931);class z{constructor(S){this.font_=(S=S||{}).font,this.rotation_=S.rotation,this.rotateWithView_=S.rotateWithView,this.scale_=S.scale,this.scaleArray_=(0,D.Pq)(void 0!==S.scale?S.scale:1),this.text_=S.text,this.textAlign_=S.textAlign,this.justify_=S.justify,this.repeat_=S.repeat,this.textBaseline_=S.textBaseline,this.fill_=void 0!==S.fill?S.fill:new G.Z({color:"#333"}),this.maxAngle_=void 0!==S.maxAngle?S.maxAngle:Math.PI/4,this.placement_=void 0!==S.placement?S.placement:"point",this.overflow_=!!S.overflow,this.stroke_=void 0!==S.stroke?S.stroke:null,this.offsetX_=void 0!==S.offsetX?S.offsetX:0,this.offsetY_=void 0!==S.offsetY?S.offsetY:0,this.backgroundFill_=S.backgroundFill?S.backgroundFill:null,this.backgroundStroke_=S.backgroundStroke?S.backgroundStroke:null,this.padding_=void 0===S.padding?null:S.padding}clone(){const S=this.getScale();return new z({font:this.getFont(),placement:this.getPlacement(),repeat:this.getRepeat(),maxAngle:this.getMaxAngle(),overflow:this.getOverflow(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(S)?S.slice():S,text:this.getText(),textAlign:this.getTextAlign(),justify:this.getJustify(),textBaseline:this.getTextBaseline(),fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,offsetX:this.getOffsetX(),offsetY:this.getOffsetY(),backgroundFill:this.getBackgroundFill()?this.getBackgroundFill().clone():void 0,backgroundStroke:this.getBackgroundStroke()?this.getBackgroundStroke().clone():void 0,padding:this.getPadding()||void 0})}getOverflow(){return this.overflow_}getFont(){return this.font_}getMaxAngle(){return this.maxAngle_}getPlacement(){return this.placement_}getRepeat(){return this.repeat_}getOffsetX(){return this.offsetX_}getOffsetY(){return this.offsetY_}getFill(){return this.fill_}getRotateWithView(){return this.rotateWithView_}getRotation(){return this.rotation_}getScale(){return this.scale_}getScaleArray(){return this.scaleArray_}getStroke(){return this.stroke_}getText(){return this.text_}getTextAlign(){return this.textAlign_}getJustify(){return this.justify_}getTextBaseline(){return this.textBaseline_}getBackgroundFill(){return this.backgroundFill_}getBackgroundStroke(){return this.backgroundStroke_}getPadding(){return this.padding_}setOverflow(S){this.overflow_=S}setFont(S){this.font_=S}setMaxAngle(S){this.maxAngle_=S}setOffsetX(S){this.offsetX_=S}setOffsetY(S){this.offsetY_=S}setPlacement(S){this.placement_=S}setRepeat(S){this.repeat_=S}setRotateWithView(S){this.rotateWithView_=S}setFill(S){this.fill_=S}setRotation(S){this.rotation_=S}setScale(S){this.scale_=S,this.scaleArray_=(0,D.Pq)(void 0!==S?S:1)}setStroke(S){this.stroke_=S}setText(S){this.text_=S}setTextAlign(S){this.textAlign_=S}setJustify(S){this.justify_=S}setTextBaseline(S){this.textBaseline_=S}setBackgroundFill(S){this.backgroundFill_=S}setBackgroundStroke(S){this.backgroundStroke_=S}setPadding(S){this.padding_=S}}const U=z},5474:(Bt,ot,a)=>{"use strict";function G(P,p,d,u){return void 0!==u?(u[0]=P,u[1]=p,u[2]=d,u):[P,p,d]}function D(P,p,d){return P+"/"+p+"/"+d}function k(P){return D(P[0],P[1],P[2])}function z(P){const[p,d,u]=P.substring(P.lastIndexOf("/")+1,P.length).split(",").map(Number);return D(p,d,u)}function U(P){return P.split("/").map(Number)}function I(P){return(P[1]<d||d>p.getMaxZoom())return!1;const s=p.getFullTileRange(d);return!s||s.containsXY(u,c)}a.d(ot,{MY:()=>z,T9:()=>G,Ul:()=>U,km:()=>k,lg:()=>D,tE:()=>S,vp:()=>I})},2705:(Bt,ot,a)=>{"use strict";a.d(ot,{Cf:()=>S,Tl:()=>c,X$:()=>I,dl:()=>p});var G=a(1053),D=a(2258),k=a(9015),z=a(9543),U=a(931);function I(s){let f=s.getDefaultTileGrid();return f||(f=function u(s,f,n,h){return function P(s,f,n,h){h=void 0!==h?h:"top-left";const g=d(s,f,n);return new G.Z({extent:s,origin:(0,z.g0)(s,h),resolutions:g,tileSize:n})}(c(s),f,n,h)}(s),s.setDefaultTileGrid(f)),f}function S(s,f,n){const h=f[0],g=s.getTileCoordCenter(f),e=c(n);if(!(0,z.b8)(e,g)){const E=(0,z.dz)(e),v=Math.ceil((e[0]-g[0])/E);return g[0]+=E*v,s.getTileCoordForCoordAndZ(g,h)}return f}function p(s){const f=s||{},n=f.extent||(0,k.U2)("EPSG:3857").getExtent(),h={extent:n,minZoom:f.minZoom,tileSize:f.tileSize,resolutions:d(n,f.maxZoom,f.tileSize,f.maxResolution)};return new G.Z(h)}function d(s,f,n,h){f=void 0!==f?f:D.e,n=(0,U.Pq)(void 0!==n?n:D.S);const g=(0,z.Cr)(s),e=(0,z.dz)(s);h=h>0?h:Math.max(e/n[0],g/n[1]);const E=f+1,v=new Array(E);for(let x=0;x{"use strict";a.d(ot,{Z:()=>s});var G=a(828),D=a(2258),k=a(992),z=a(4331),U=a(9543),I=a(5474),S=a(4429),P=a(142),p=a(931);const d=[0,0,0],s=class c{constructor(n){let h;if(this.minZoom=void 0!==n.minZoom?n.minZoom:0,this.resolutions_=n.resolutions,(0,k.h)((0,P.pT)(this.resolutions_,function(e,E){return E-e},!0),17),!n.origins)for(let e=0,E=this.resolutions_.length-1;e=this.minZoom;){if(2===this.zoomFactor_?(v=Math.floor(v/2),x=Math.floor(x/2),E=(0,G.T)(v,v,x,x,g)):E=this.getTileRangeForExtentAndZ(w,O,g),h(O,E))return!0;--O}return!1}getExtent(){return this.extent_}getMaxZoom(){return this.maxZoom}getMinZoom(){return this.minZoom}getOrigin(n){return this.origin_?this.origin_:this.origins_[n]}getResolution(n){return this.resolutions_[n]}getResolutions(){return this.resolutions_}getTileCoordChildTileRange(n,h,g){if(n[0]this.maxZoom||h{"use strict";a.d(ot,{S:()=>D,e:()=>G});const G=42,D=256},5809:(Bt,ot,a)=>{"use strict";a.d(ot,{Gk:()=>P,Un:()=>I,uR:()=>U});var G=a(992),D=a(4331),k=a(5474);function z(p,d){const u=/\{z\}/g,c=/\{x\}/g,s=/\{y\}/g,f=/\{-y\}/g;return function(n,h,g){if(n)return p.replace(u,n[0].toString()).replace(c,n[1].toString()).replace(s,n[2].toString()).replace(f,function(){const E=d.getFullTileRange(n[0]);return(0,G.h)(E,55),(E.getHeight()-n[2]-1).toString()})}}function U(p,d){const u=p.length,c=new Array(u);for(let s=0;s{"use strict";a.d(ot,{BB:()=>v,Iu:()=>s,Jp:()=>I,U1:()=>d,Ue:()=>z,bA:()=>u,lk:()=>P,mc:()=>U,n3:()=>c,nb:()=>g,nn:()=>p,qC:()=>f});var G=a(5063),D=a(992);const k=new Array(6);function z(){return[1,0,0,1,0,0]}function U(x){return S(x,1,0,0,1,0,0)}function I(x,w){const O=x[0],y=x[1],R=x[2],W=x[3],K=x[4],nt=x[5],A=w[0],L=w[1],b=w[2],M=w[3],C=w[4],N=w[5];return x[0]=O*A+R*L,x[1]=y*A+W*L,x[2]=O*b+R*M,x[3]=y*b+W*M,x[4]=O*C+R*N+K,x[5]=y*C+W*N+nt,x}function S(x,w,O,y,R,W,K){return x[0]=w,x[1]=O,x[2]=y,x[3]=R,x[4]=W,x[5]=K,x}function P(x,w){return x[0]=w[0],x[1]=w[1],x[2]=w[2],x[3]=w[3],x[4]=w[4],x[5]=w[5],x}function p(x,w){const O=w[0],y=w[1];return w[0]=x[0]*O+x[2]*y+x[4],w[1]=x[1]*O+x[3]*y+x[5],w}function d(x,w){const O=Math.cos(w),y=Math.sin(w);return I(x,S(k,O,y,-y,O,0,0))}function u(x,w,O){return I(x,S(k,w,0,0,O,0,0))}function c(x,w,O){return S(x,w,0,0,O,0,0)}function s(x,w,O){return I(x,S(k,1,0,0,1,w,O))}function f(x,w,O,y,R,W,K,nt){const A=Math.sin(W),L=Math.cos(W);return x[0]=y*L,x[1]=R*A,x[2]=-y*A,x[3]=R*L,x[4]=K*y*L-nt*y*A+w,x[5]=K*R*A+nt*R*L+O,x}function g(x,w){const O=function e(x){return x[0]*x[3]-x[1]*x[2]}(w);(0,D.h)(0!==O,32);const y=w[0],R=w[1],W=w[2],K=w[3],nt=w[4],A=w[5];return x[0]=K/O,x[1]=-R/O,x[2]=-W/O,x[3]=y/O,x[4]=(W*A-K*nt)/O,x[5]=-(y*A-R*nt)/O,x}let E;function v(x){const w="matrix("+x.join(", ")+")";if(G.Id)return w;const O=E||(E=document.createElement("div"));return O.style.transform=w,O.style.transform}},6941:(Bt,ot,a)=>{"use strict";function G(D,k){const z=[];Object.keys(k).forEach(function(I){null!=k[I]&&z.push(I+"="+encodeURIComponent(k[I]))});const U=z.join("&");return D=D.replace(/[?&]$/,""),(D+=D.includes("?")?"&":"?")+U}a.d(ot,{B:()=>G})},513:(Bt,ot,a)=>{"use strict";function G(){throw new Error("Unimplemented abstract method.")}a.d(ot,{O3:()=>G,sq:()=>k});let D=0;function k(U){return U.ol_uid||(U.ol_uid=String(++D))}},8809:(Bt,ot,a)=>{"use strict";a.d(ot,{A4:()=>f,C5:()=>E,Ei:()=>d,G3:()=>h,Me:()=>A,O:()=>x,Pr:()=>s,Qc:()=>P,RA:()=>e,T3:()=>v,Ve:()=>z,ZL:()=>O,c:()=>k,fJ:()=>D,hg:()=>g,ke:()=>c,pc:()=>p,qk:()=>I,xc:()=>W,z:()=>u});var G=a(142);const D="http://www.w3.org/2001/XMLSchema-instance";function k(L,b){return A().createElementNS(L,b)}function z(L,b){return U(L,b,[]).join("")}function U(L,b,M){if(L.nodeType==Node.CDATA_SECTION_NODE||L.nodeType==Node.TEXT_NODE)M.push(b?String(L.nodeValue).replace(/(\r\n|\r|\n)/g,""):L.nodeValue);else{let C;for(C=L.firstChild;C;C=C.nextSibling)U(C,b,M)}return M}function I(L){return"documentElement"in L}function P(L){return(new DOMParser).parseFromString(L,"application/xml")}function p(L,b){return function(M,C){const N=L.call(void 0!==b?b:this,M,C);void 0!==N&&(0,G.l7)(C[C.length-1],N)}}function d(L,b){return function(M,C){const N=L.call(void 0!==b?b:this,M,C);void 0!==N&&C[C.length-1].push(N)}}function u(L,b){return function(M,C){const N=L.call(void 0!==b?b:this,M,C);void 0!==N&&(C[C.length-1]=N)}}function c(L,b,M){return function(C,N){const H=L.call(void 0!==M?M:this,C,N);if(void 0!==H){const it=N[N.length-1],Y=void 0!==b?b:C.localName;let st;Y in it?st=it[Y]:(st=[],it[Y]=st),st.push(H)}}}function s(L,b,M){return function(C,N){const H=L.call(void 0!==M?M:this,C,N);void 0!==H&&(N[N.length-1][void 0!==b?b:C.localName]=H)}}function f(L,b){return function(M,C,N){L.call(void 0!==b?b:this,M,C,N),N[N.length-1].node.appendChild(M)}}function h(L,b){return function(M,C,N){let Y=L;return void 0===Y&&(Y=N),k(void 0!==b?b:C[C.length-1].node.namespaceURI,Y)}}const g=h();function e(L,b){const M=b.length,C=new Array(M);for(let N=0;NH>3=Awh?B^E|4i**;5eWeS5di@S4e7rK4G9Gm z4HX3m6B7#y6O)LLkdTP(mANn5+pPE2IeX4*4fP{d8f`A4> z0pVexfY4B%)c|y8ats)DaTQEhBZmMA4lH0oE@f@c7gb|U>={S3IWEa$IK05bJP9hC z?d!U$UK6K3!MH*Bebh;&+~}VyAOTR&a4?@k{TDX~bVzb`C~*}G=+D6ta%U)Du4=bA zFh7UGx^|=tO#D~@AVGb0LWe>Jhyor5phQT=NK6h)BlxN~X*q|IdSYesT;u#KIdqIy z8xOz2lGxlRG47uQYestiQc4T8;)jT1a(_7>$oo?=qq7dZ@-~nCWH-EF`VR{qU&sa> zNk|pPd%QGnFqj_~jw&UYQ>R9mAuD>1d`ieW{en~C(T~--)@06-*lr$uURk!e>YL@P zY%R6>9!$Q=7mXBKt)MlYOnf(5#IeC?rgSyNebJEELO2fL^9C8K4j8rTr)kBli8zX{ zq7qiLD!ya)2q={OqY3!Cp)!&Zj5V5M(gl!vtJ^T4^+ffYEITvJ2x8WyIJAYgv$r@o zqI{-Ou?~Ar5rOr}=Yq=y+hi^aRX`vi6}uYd1#a_-Qm@TA&}bICou4Ak6rHPMjR6PI zrM}rTBfdDcrzaCcy(&dWs46v3zxWju8Z)~wV)EvTwpT&bL)J#En2xBXg56D$X7%$AOCQQQQ3XXJIa4 z#i2uq7!>uT8=05{KS*;`^z-MUz$hzEIP7pL$S)`T$iS+g?6D0xVFAE5|6AeE^?8!& zeqrMvC6F`0w1nAX{oS$nd_ueHHCoa6cY8)ZjU)c)X^TI84HK{b#HFCY$rypkU*W~+ zsQ=F|eK-ZJt&L)LS?OylTANcW`DJBIZIvC^Q;Y+Yn z8(;K?Zcwxlj}dnf~haZWYV_>I!2}B9uCw zl14zEMNJdl_9s>AP_>BN(Pv=YMgK(&S$>G>slA@_I(^L>&nf~7Wwwp7Ekmy!ndarB z{G!_aF0;honRbB=W!ED*8g4I^OGaCtA5VC)*1&Q)D$YwqtndALvW{+GP@O=a!eWE4 z3C&i?1AN?m{7Wx#XBT?2MI*iza_^i;aq0&&V7=$q$;-=o-f|KE`rbUW*p(nTk*!6F~;RAadTue_)K z3@tLc80p5oz1p?ah zUxSNeC><7_*pK}_0N?Toe(#qbUz=%B@5zaxTTS~5C(Pg!KN&y!ih3jrd!{a;Pyr(6805E?4Rim7`9lKr9zqt`Z+00NnDNWe=05EMT%67$!pn0Olf8IeC^ji1E zOR@dLe#Fln^Z}SH()iCkUEjRF6n*=)&@m|KdS}qr@s>O)_yJJ(t@r^b-0SKuzEdA< z@w=J0T~=?37$I~;3Vtukzud>XF8}=Wv0zZBmoyN?NABLEy#vJ$s=8zfWPYdjBxJ-7^PY zuy&yC(=1(z0l>k%(7eq%`o#~x_4l!~HNMX|og#}-$hiLi92Va>4{vt{_=xBU>Au|i z&C}jFL$Xd!Q3=HmIXJSYFD1mM;x3j(YbX@_789zV@Q~l@E-4JR@jn#zaUF!A!8k++ zd$M}=i;v(+x}oO^(3irb4iHGNL;b4i5F7Sn^6XeK{v?zjZ&~EtO|pql^c@xRwc(9D z;eJSzV&T*#nasXYfS-5V?QJGE$8kxbC*pEoY5>bT)l zVwv$FzxNdM#b=Xe(En)H5S^o)vpe=+y{3QD;Glgr{a;NA|657&(-wY;UH|bA+B@~( z-^X#sO}Fi7kIA3j!S=tEFyGkU{+F9l_!Ws3ZO+~p?5KSLMCo?ucJ=wcOB(T>{+{J0 zKjIhhANT!#2=afE@jtA8|2Nj3&N+Pb0Z3IUdP{Va`2aNkr>Ab$e*W>ikjePAeXw$|KPqfL9mn;|~C{fnvbl7B<0mbJ3F{VbcBI$F;cH{G4mP zM*lID-*M7$*Z0yhChMy``i5~FQwnRr{8ylJl0RE zd-!?!ip5EP`NY~>k&NQI*88v3^|VCbTzs(KZE1?V=qF%0Ru$Sq&V4w(-?*!fGA6y& z`-q4k$_-nuCl=ofsH>1ZxjtJ_*2yFca~Ah^vH8b%*g)5yL(fgNs(Wvv@Q=m3_DCUo?F@B6o&pTTj_;2?$qFn_ zmJ+&=$>EiLgFt0wEvVnVg`+N+1bU3+!|Yx?5y(O6HLv> z35Mi#6j`hN%&@oQQaPY5eS6>D6X~dozv%QY>@0TX^el@nDd%+q1VhCC0#gYd9;W4$ z-FaP4Ps)UliK1K#PnX1@b*+{qScR7Fz#j($R}ko=dKcM8=p=`Wj=e?A03`f-FoNP z*|EpH?!9;64z%P5p2ksP8r`J7PO4)z$;t5#EN?`*dS*}il6=cNGJ zshJzy-2XR06eK0e&)~oZa-!nJFw-K*0yZ~YGM`nrbnX_lbMN}1bQ+w!DK=l;PDNeh zXx#XvwO0q+c#F`5=x+#}UnhCo91tCm5OKSz1M(k$2J_bxv+Rm>k<%Zwa^#^o*|V3?cH zONqe$e10b@ANy(RfmR&_uwW5o@_%*p-$x5C`= z!hAGaa@iNRQ$uwtkcr}UW=;iyYBQ({Z}?gR?RtAwQVp4vbt1^s0PUvUFr^<<2?Vd{ z_j@u#?&folQmY-nGjP`b@ec*|J__`yzeDYf8|_&8=*>{m&$U+a z@XgAKd1$&(bQ7e-ScRIHT_J`Md=QI)MZ?5sRVV0IpJWiY-Bg zM8P|*#QDZ=wtb9hEx4 z%dq!gS#9T?f7>n`IZ-OO&-{^SNXk8AcIcqCZDig>EY$b&pdU)e_&EhAzxs7i$%@5h zj98ClWk=Uj{K-1(fN$8-rGOF@Y9^33Lj)nkvBTyxp#SO=o?jxGp~7qH!Hgk(6x zM&a4#&?BvOVP`bd;J`%G%oQ@ru{ET5#>?SOpYw=p{dS_H_>aB^WM<0yPGm8Y^O(cMAh&#J_!0$D7IEphlOm=k1cO zty!G4qVb@vb5e;IHZ&Ct!copqZ#Lwzj=}^txmW7hoLT7YZ_{<_#{GSnFl%CmhkR#* z^>I-aYq*_GJu8&0%j@{>xNs1|5x3%0#Wsdy`B&J(+t9jDOx1qXkt?^0m_SeiyG1gl zuFObdl#)9bUcvCK+8$UENj99Xsn#3{tZvuxxmAZ}5cDcjD?#9XIbz;`&F&cbimJ1r z3O5}^?1fquSggEpeh0NK;A>15C-JpVJ^rEL+)$<{aN_zQ_Jjc_zeFr^n48vl{%pOf zEdMa=epG4f85`_^#dZse)6!L32#nV6?PhOo?x;T(W{Bi?&{KSyJQtXyB!JXRCEQ+xi^KWZh3hNllwl7^xlF%CUOcdWcM+&j0v340u;WiQ-xfd0f5 zQPAMdcM8Vni-sO-?+vTs(#F@OW5CtbM(ZM8v?Y2mJU$ERp0l5@%8y%DajzI?`LVuX z?d+xSEAj0sO*jrT2|0aLAaDk%PMoaUj%l{$c;3vqyEq-a)maSuZ36vPQbYP#TQx5Q zp@P#5-~vF*b^^<35T4$Z(uR6|*{4H^CIaA8wQ=BBHVbCiaS>O_E1i!|E4wuM9ZxRX ze@jl#-z>2Hvgpoe|2sy-U&p_UN-$kvg@0_pj*I+0QiC8kRydSjtU2|@N-8a) zDCTVsxQ3`X`EjTO^1iH8<6?IF191);6u=OpLx#E5(d7X?u$6{Z<*o6Za)>(s6MJCN zU1b}nGO0;Zwy)g6$i%)xMifGLt_1?^c^3=Oq$ci}%Jdg&YkBTe^dC!@TjrC%O+M#O zQfwK{_~9M(r>lN-dF|TJS%HZNM~dOK_W|GG(_qzz=fe_)6am1$KMfo9pd+YZA6Ol7 zn|eiMKUei7)q)>d5KiE8ZUTpYY$+_2&cs^I;7Wd^@6;MqVjX2$D6jMKticWkyn>Pe z;&F@ia!?BlkJ{G`gSbVWoPd%E-!_*9>0n5~aN3$_*0IS6qErzitt!I|z5R(rQ!nNQ z;dOb@KT35C-04j$ULbE(xpNmB5uP6zJ81)<;umZ!wZIapd!2fhQg{2G4!cV{e51?} zOkRrqUCS!PE}y|Fv_#KLc=7!ZVEv~zyW1^`O9qjV+9SGRDBWlfJ$hsppdX2j(ve5e zMG@OAZk)Z)G4QFawPf|#_6n9J_YL0^bE5r`zAjzaiqg6}_3>iZ=IsC3x!+uSM;IAH z=e}Rd7s$63bX|_kTv&yj_Vv%~L|RRKSEgFLl#P&;{p#*;s4IrF7ks2vw^8ZQL*=f5 zQ;XA-noyCjElp1vEmxbxR3xRTroX!{RscLN+{w@;0R~*bDrTyDmFu<*8(s!GhJzz) z-z@Ju)al~QcV2x8Wd*Pu!uiT~r7Z)Qh0bZrh}lC{a*t{ zeqK^?$U|n<+SMSZRZtsM=geK0Oo;j^$Wn+w5S}FewVnvqp~+$g@!Y6z$cUG~YE=Vg zULBmzx@BN+P>!H~8PAa?DK^bfn=+Xt+qmks*}9Qgf}pQM^;J~}Uzag?%@ztELj9m* z=L2-O;aA#$3Zbx3m73CoyeF`ps{~dKPlgBYv~e;|PA@!$&#iy{sq0@K*Eo9UCS4hh z7>ZF>A-{+bDt$`>pP&Q#orz&K0D7+#|n8n{(u2Oea8Pjq3yCPc9T{>tDR%DFV3C5_TH=2r~W(Ho(4lig_t;9MZw8;)YtnrVv*E?MgE2Z z2*qp|bTV7V6@)de(XcbZMGG3=zcRFNXksrqG+A+B<@}(ATIUrGO(*#P;Djy$lGYUv zx5ut+zbwnBc_JbmHBv1R1B-%cx})aN*o5hX!B>G^Ao0FE3F4+^T%I{S8U3{K;6@>Q zg#Hkug|4H7xy7G`W0mLgxlqfm_1~e#$7Q-xXIC1I;xIALU|&YNH=T2?7c$t66EJAt z8`)Uwj10Zb#Sa8nx(8%!2W^YzzRH-T)hs>Jm6;}f`Rd=hyKZF6dQ5By=`+F*vBob@ zq6iOV5W3J+Rbl?Dumj(C()M{CVxm%9AucH4wY~@@ksgg+M;kdO%?$db8&Q-H+-|O< zwD*OgnHiq6WXm5&bpWgF+u~_)c_lDr*b&U!d?U{t)&VAnYRq(d?%*Pp$sWPiFo4d( z$o<9rPFV`MnSTsE(0$j?O73OJdp{rM?Py(D=YCCw*-;cKIj~eDK9JSU6{iYZ(4<0Xy@d_rn&iM>MUHGuwF36SH3m;34p~^3%5!OJ6_fUg?4FvF zM8%DWA+nO92v9xE$hR(v?FEVvK+C@!L|XKlU#))GE$T&XLU-`fE@ChzU{U2rU0J|A zYdBx`Qtyesal)(Jb5|fD{{Z~1PwsLVV5|C_+=tlwEgE=|@HD}On`4z}sIE(lGjZ`Y z5B)287m>@s-wUp>9#AYCpLV^=1G`Ak{}(xLTuvFULOY~)&1VN(7{C#QQ6%bo5&xnWRxy8~ z`jzF?yt>*gdh0Hyv6AAlA{Y2U5|x@nG~%wb8IW27unbgYJCF}k>r6P>bAG=#uI)@I z9l4&~1s^cYhyn+V^xV27pQtNr&aRWf4^ub$qW3_7ZKY$jyF+>3KsCoWur+>5Iot!p>4`O$qQfI!E(__0zN-GXf3d{fy;jTm5|HhcjEEo1*7)jg>&0ukP)#?!`*Zn#o#nhR4Ai>1s!}tN77|||7zjLS_#1Wz z&eOG&R8UzLUl=_@ty%;FO#h6gpRyc)m=<}V?iwgB%7jvx3e!w?MnwRX_Q2)Vpfy7b zXIC;Zf%C?uyJ?~fX(bF!iZXz6;!2!;3c&q|5#MrWJ%Q;rq`$0z;z{JeWQ<@*H0o;f*u-wVY`E6fZYQ-;Xm>z4lA1@NzM#s?WB-+#T=#zM_707%ygRDzkJqYH)(5~ujL1E`1b@q3 z>RC1`eBsTR+cBMxXqLlZjfYq|^SPlxN|pn9vF?>-AfUO+t|*nNDm?Qo_15o*gfQ+D0tME|-7?qmw5ZVIEQ74|>9SI1HQ z0)@!dd?65t@UD+$i);0kCT$aikM4?3!IO?3;cn7ZHmR zmz_7?iw*C+exJ_!Pn2&;!VNn6ChIf#$j1b0IVVuHrkPq8awb>nRbSl@j~4=0K95=% zM))Cd__h^VLC9V%i-jdj4^0ptK}CR&s|-EWpCVhn2<3OIsF|>p&CI|vsX#vT>zaJA z6L4M0*|7vF2S5E~qq9b7jJmC`N(WxA4gkuVmxKP<1=lhhr z));#OqKVzMVJ{P214|lzh0;IQTbR3zs*>kT&dOY8a&IaGf?l2)i@LR)|FpB7Oq;R~ zsCU_Pl7Ev5xNqa8xpD;+TXDjr_CFAu&K>DhaSC4$8*pzE?0x92;VNf zUR;uPBt+-qg!UCXo~-hvja-7mv7nv>^AXg&tdDb)3I$1tU*Zg`U%K)yHooi&Eshzw zXI$;LL;E6?CQ@TS6z#ikV9u3RV~#uDEnIa0kA0y0S@zHX!S_TIzqz%OpYN@JRqlly5)RIdbvGjHA3k>#vu$c}ZFR{r zQwqr`8%w|pA88?MDiNK4J{9|6BzaUfz!}!GBfYWRwuUI4fg^@#v}wrd&%@hP8`9t<*#5u=US`)^$99K-_2G zhuG~DDva^_7#CW%8x;aP4mRV+Q?e!xUT(G)uh2?-_Zg*8G^&8CFT5|~sUi<*exPz4 zZ>`0!()n^iNjKS<)6%Z}bn3H5-u?$XY}8+PB+DUQR}Sg)Q;e_N{;ND{-rJbM{?_q!so&%u108TPm_2@mgx&KN^>9c6ac#Y#lj z>6TwOSYK5|C*Dn=#-U~aPYqU_vkVX>8fc% z5e2&Unc1WuA;)s$(ZV14)!drusLHu3JC_Sj5rfLtOvT#hD34+}E=_4+ zsV3MDfa~4F8gE=0A%_^kP9+DO4^6?#_4?yzOMb&yq#ia*5-`5cGkFqyAs8|XsF3m zl|a%iyT%H5?WFZsjQ^h~Oh>%z*>K?!ldaD*UeeqjBd`^EsMf4{tsE8y$yM)8P-Vor zI1jB0^iuXbrm>r{;{PgQ4JE|UNT#0<4n%1~Xab<-HUzAf#X?yO@bU)OQx!{Ct6K|V zGp)quJ^1SS)i9I@q)uaFn(P`tKM^3!yj811n$*lOnpU{MB0_0#2#SlI1%>*-ngdyz4VfFp)N5lbTlZ!7(aizvv+rMF6+Z@Zq|WEsBJrwIUY1Ut|6 z@3GAemKU_p)Gm+sur%Fk>WIo8lgSM#T8&JE<5@##JS%6=)|X0(K??XA8E{QktLmeG z_jZT%^-zL2U>Nk!{2+5PEiG#XJ2}4Ck$nD|TjJorq-)NPp%AV6drr`wB%WDJ{*0Vv za7ZR1?5GU3%dedQfoeQOYETf{c-9I``L@9ZpWa$@!KB!J_q-6A)Jfts%+r+$A|_|5Sh( z8U8-#hY$12Wl^v4RmH$w!9qJep~@U8@QY=RY1n#_!;t=(e!*@npyean!jMPD~M2!{#eheYZt@8<7}t^CZQiI@HG zl`2i?$u4=#zf!?$FRXH0GY5B|IpjW$@|#`o_+IPZi@L4S9bT zrK}bam&i`MW$J;csML4XpmG5#qW<+}udaZ(G?{zy;w2J+AIYN*$&b}TyGmcmP;>pg z6@bKdCHnS5MudZS5MD)3-ZLHDvu=4LyCE$kgL7b?FR&II_UJ(%NdbWc^#XvfGm{5t zQ>6zMY+IOL8;+>8>97fcPH;;~69V8K_7=pL`uR^!85AKa!u4e7DfFMc7DTNe%SgAl zYIjRVvJq=q$;sY=?@G$Q)6ijW7;0pXA+soU&na@I~LJHd3UVpb4?#buDF-EXk%}Mt(^mV2GKX^Uhd8?_T@b(NS^oTvYYA`8=x- zSgeMJ<9Cv@RbL`R{<~U=K!=0Y;z^}=+bN?n>s9Dq3vc0sz1p;`Y*K}CTm6CJYY~&M z9@RgEzI4{DCo9adk%>x~6)CGFJ^jd5vfkLwkSNwsoy!YuI=F_ixz2~SYH~cTTGd%B z1d56VwGaJ655t9#2Z(Djc)m|J0BMtUgFsK|m)1w!N1)fdz@f208A&TFuCyh=`z&Hl z7x2}=cI=;_;`3^swj-uktpe4V*49Av6tbw;{I4hx0NpGEc!y@@w_QhIdG$WH3aQ;D zrWZa@FLV+s$mAHThl?uEUDo^)tE3_JVoDAhd+17`?8PS*0vX6!Bf?3reteBbQi%?>W;|@=Zk5C z(U2s{j7TmLqHp6Y3!a}WNKu6})#`2VP{|ShIb*m?%TW`;JBK<{0WJ^!<|Xz<(QL5s*Jz7E~Um}0_CP;~F=TH*N-?Cl?T z770HDG?}J-+H?#i49S|Vyq(^tlwuUP#N*%t+Z$dw(M#)lb;O&4gZ<l84U1wvy@rRD!GC@!jz|t&>;Y82E0Xe$yx=s; zJ&BdBJNI&|3;o&*+;b!*MSk?fvaKx$aK4{YnMHtRw`y=}FSu!Cyhb%TEsFWi;hzl3 z-VH)93514Qh$0A0*^DWb*!>QqU0%wIa@4$*BaXNB=l`uUTOei~?U=lo!h$H4TAnGTijxzX1*2)e+j*S95&I|k)zzlSm%J*p<0WLWBG6ddJ@lA2 zDatW{R9EFHekC86_c2A(xlp|aUUXG0l+5_5|C1Bhb4|b%>({wiDPs<}k++F%yx5ZP zm5|b!R;0=`?Tgg;+08-!(g3a&kdYrCQl$#2kX8Zt@Nz-Ov3Q&FxEPn_uCyhSS`wB9 zk5&AtMsts)O8mkTj2_Q?)S*kGD};;zWdG%Lzua&?-@E@!blf!Jn=TDE)RpFza5ZQ} z4OX&ydI+VP0t1nFpQi=bd62Hq&F>+t?P9cj`@n?zt-g0}3`hyTvru(D)Y)ySf(IJLvi(pygvyKu5 zqAJ#rXy^6#^*}-HjwZ0gh2j3^H3CyF<;m*;h{IW?^KkR;}8)KMNjJ z4%Z9UWr4ObI>!s);$4)K$ytK&5hh~jwbQzP6F1O#R^+lq+LAaRA|s+W zYF7|a$U<>W;7UVAzG*6?*Y3&lF=MWpxTX>(BR=kDrHsew?y+}gRv;Fhuk5*i?GDfg zF*v{!rFA)}*jQnYMUvJ{7@Ao%a2K188WOgGELPM~Q(B8|s#~}(pHB`wo!^KU;nB&> zKwrzzP*SlI*l<@V5pK1ablA##Oy8JY;Fc~LUHihVYwpYyY?)3s^E;U2<-R9cEwRNN1XfM45Yqg z-$K-E;W%pNW7;u^o3|L+I(N3d-I6^1LYc#Pj2y8Za+I*)A-QO303zk+TdY1h$~Hov z{b46tmrAQD3My6ew@8$eG?wtg%PJ=x>}Mm$c5VPhze02#M%(hVVF+(|u@?V8-0s=k z8w{2fl2t+IU(MPUiI=ei-!|tDKGT$_7;am@_a3>S zlvLw5?AA%gJZIqjydj(LJ-bbY8b!s%EQ4>!kPcRTk8_<+P?Wxpkb@iGb>U=W;?2V(B<8TL;25PSnddDuX@J#htZ0Cv@`$kROiMnpJexHhj_hl5@P=r#r zi=!vqC6@{_9-{HarTjGg{*8ksx0bmY84n#CP2jI8B{Z@qS{iCHubiun?)e`jTK^d1 zFzAIOPuj3Y?35wHJIr$26I6Lvykr?fo*9h<9>91T? zsN2KXU7?xbr?BKTCOA$Bz9WP;>GPrCf=|NW=Y7 z!Fy!r%@1FT+aX9R{U#Kuh&Zu(HYo>ob+y7{&Q~3O{6b;K-7{1y7o-wfwJuxw33Bu~ z_+cWHG!SbJm9n$*C2`OXx8P(@%G&qu141e{Qyyg^ym^etm#q_1*oPks-LFoZE6hE} z+3A~S+`#r!b0n4EB-Okby5njWK+V=f0tF=$mZYt*bmJ|Q`j5%Faiicr(5Hl}@>cei z)pD3A~zJ zbD-lF#a|d1Gtmh=wNN-SQK`CYn!F~%il>kmbI3#Gp@xxBhrBg*V9TZtDyV@HfIYN! z?;E2KR2&(uL(UTA!(1vSmw9}tB8(iO3HuIdg6Ofequ`+9O6!h=16|H8CA|Zlj8GC@ z!h{xdxL7iDeL@)u0254Dt5`(?MJeA|Y42kOXOV#KrDr*+4rpC`9`7k#r9J(R3{y5Z z$XKwu154x^FZr;{&K_1G`%DA~{EP`I@z0@+l~TP|U+5OHOO%zq4|{kMBsLb)GtobmZkkM1-Bt@)-SnFfGnv9L8-O<$NHH++ zM-E(y_Y!;Qs0X;WBPf!&Kx*ShY``;D#;)p*IowaXI`UakNo)DLLZti^>2U%%Pb+(1 zy|P;w%YJG9=`DM&6%viSF8cjjG6_-+L=;C}TfaPU$++{Pea(L|sl{zTeWNxBZ^$2Cd+JpW)Kt5pdMw^lL+JmyM1q0MLEu+!U16eWb5AOWB z!x1UH%gEnJo2hrEl*?*#udcHEs~FFpQxS_Jp_vg&47d*_q#P%*6*4*)et_JxZ!u`} zXEG=uLYuq8s{BVrn<)sN;qX zt!S;)5+7Fs@i5Iati@)`Ds;{@X;W^Pci3z#K5HH>eF>i(GGBKGCI6CNlvinvwA*3_ z)07`!WEaVKjSy2YHh|wkAsHTGYSn-dW9O1Wtph;T?~W=e$p7cp{u)zG8ax>iYPrvS%q2p zQFvyOB$k7t$-q-|DMC`Qe_C_bDK`x2*k1VD8YmpHG)@J4QEtMqJ$>jJ}$#-Dnd7FW4M~yvr^-+;)nJvI7!e=5Jx&`Z@#r2wwB{7)q!%?Ju!V z{+W-m!TO=4%rC`uW+Bj9?U6TIVLgVG^BRmuqQ_(+(nEuIm-+)Mys9_F46ujy+-G0A znJFzl&wnpSG8x7v#W8qPp?VePoog>B{E=*;`8RDCZnWOXzXi=W6{0)zV*Uw*OSoHI z@%z+hZOsxLUsW&0%hp)20}JJGX=iXq!R)FNO~;_9d@yIq%r$>5ph&R=w{r>F*brVUMEAEcV8a}d(kU?54pHa-! zdWgA_Q}MAqn9)e&;0%q}>t{jGwHuUg$1PxD)PDE|R&16r#pP;XY$?im)0j@^owg^K z#RS3soXKeR;BELl5r7FE{kLQ(te7=**1Qh#B0r^}JcLH*xSOOO{ z2qRi9z}K6&2l=Q?2MD#%@w_l|E^U?&+fOXGyp(JXCpeZ=S2y8tW=qzKx2@9v4vHjV zlMzsF-)+TMu~7#kieLCY>4CI}RGT%GYX6F|#kV2=I~Ja=UBJKg+&V|vtVl`0b|fhV zt=L7cByoMxbfImo_^o0}GL32Xz=5grj#g#Rqdwy}GrWh9)j^V`k1MJ5N?`j`!L_6I zZsO=3VO)}Y1&(X;ix`+iso-7fxAp#^ndy1c_Z7K&4F%2Lu{R$8q{#Fd6QKl2*gAe| zhz;kGX1tqd4wG)PxDPY}GL3r4~S@Su4NSGx^f&FQ9-8Y8){ zU52{?T*O!ujZnaKp4gdB`A#3psezYHp+%On%J8%wDw)xUp5 zQ6kOGd8w<@CL?AyuA?Wd_soQKXWQ9QNRT3+>HHU?v??VysZ}@#Dj;4-DiqHd>yw9o zr}Kh2326~>wsD;dNWV*x-|Sla&a~CyUDv{&b!DbT*40LC4-buKxghLSVi6wksKkZ+ zWctfU*7-VtL|OPNTuB-D=29>+fd8AZ_nO&B95A?ZGyJWd0QMg$`p{0VcAf}Yy)RY% z&zv_H7!D^7qF_JvFf7&H-q~S@g%3cPB24-}qwVeAY5o!E>rwG#BI}mI1E2n+`07Cu zM?m4iUTR_|?jv#n`Om@risv=+bx=uy@txe@Gar5D9|y$<#}sk*iP8_U#})dbwEY5i z{1MkLywchYyu@kTP8;b%v|*@RF-sl*Ud@4IZPfA-;9u1WFfO4mr;xU>``3H@-6bik z;R6$#)mCRi5x)7lq?20kfx^?=yTla!oYUY;(_St3$Fi2qI0w6~!M)uFpkM~V)V|&H zyoGO>nl=}a;(Iz}Rs#n8>G?unyB(_| zGDYnk^{|*P#;ETBg6}hI;NeKmX+9|sZlk_k*+00GH&fH8XdOTo`q@K0K@Q= zj%q?(YExkdo7n{}P5Kp{8i5w*!vEB8BY*WfeERhhzL=(VWt&);loV7-s;?0`rKTIN zg>}pA5|k$OBp-J(-pszSFV<+X_EytKbtStx#pvZR^h zp-tRyFkoJaL&9!`gyhtxC~(>R3{Lqhoayv$yv=K}2KzbXHF0_pSkUePfwC|BKzY!( zbd6H&evJSnQAk1I56xh<>>t7<>mz_N+b#ro2B9->yE7Wq0Ze|7;FuRItxcuLOm>t7 zvc9+Wa_IoXjO_p!uH@_o#OWHTtQ@L~7sbbQH;@u57U^Lk|Sn^F2Q^q_$ z6}ybX$4BU8CsM8+V2Wv8{rdrkf$|n&Vlwn*F{NOsw2D4tgXqY3gFa^c{q9rt_&`@h}Xd^UzFuX(w3&$@P)b?dYYwKM`LpQW1}X+6EM=^;2&ia9!_Qhn@v7D zl>HKY{{XmLQ5nv2f#LaBOEkHttajTPLKE5=;($Ztnep)B#K7dTV|4%~@q7DMN(*>D zDtVqf;U;H0^AT9@g3Lf3l1->C&-#1A=5jlhS)VD5z=f1AuEaH{3ds6t209JAw<3&n zZx1Cv^;>634)Azb@rZ&9ys2b5U8V5}^yst)%Y(@6Xy1^V6tBXJsO7)mAC`c4qnRYz zEaGEvwcR#)^g~07yr>ip#gG*}V~CyPU#{l0wDeVxEq9FEQn1Hg`XL^wvJ+-Kr+L2P z?Wm{GBy!CR&^T)Wyr~3fQAOu+JZ>73mppOleXK>#vV$R)%Xu@DEYV^nOGMg{5N$`M zswx@LWU8bgAjVFRt<{aY=mtEp{OA(#Su&#h67KOM{{VG$pkX&PEXrbOhCC$OzzWg* zq>Ip5k2sJ8#&vzYKx?nEQ8gH0~aOy>f?ll!#v*JZ}ZQ_GFna_yjJDiIhHL8aEPbc${HIQ!G z?h-XM70g_aG8}o$u51bFDvmQEmJe|4mM82wgX}a4CBtG##g(y-Vx7i6viea1MK?Q$ z&ho;!V08Izw(qgE0TKC$@OrH4E769MvpaUZ^SYihIf$3v^ z$wUJVcg$oeO5PM8lPiD;+5slOf-hRtji+}8gCC9IWRXmG$00T-xn>7Ly5(1Bxjkv( zv3wGlj0|_3OfV!xI{04cw_nk*tmUa3ng)>VKHb1jJ;(DP zb@6c*=A%ClM^eMtdID3IifMtBS_K-5uUZayE^-N^O|marKJpOIPCq6g$cHW^3ND}! zN8LcdbJ0w)yKP&W-%1SMGtSAfNwHtTg+3{tO$T-8G+t2U7dwp%uF|c8c%*21I@1ZB z!-tY#l@x0p=v`RJCryM~Z?63jS zLiD}5c2F?J$XtjLbp=vEbq&_thJxA&K`1K8m7;~DSj?nb+yo2U+o_<9kc*KV1Rc^V zFg7*;ZQIkffL=S58IsQtf#G-$y}P0Ng$KbokMjQj=G>wuZeJF3U=7!BKEbU4o?hVc zzMk%$d_0V%VPh*s%@DV7wFNx4pZUIDFia$vK%cwg@l-0?_Lxv~{&n+aTg4HdRrcE=w6gieq_i#1Xpm99RzpR(WL_XUMG>sQqp6WM@^fgx{bY-zjZRr zfq7pl0cFVQdQvIbsxE{e&;>}`ta&9f%Ml_~bK|e4b#0_sr6vB9eWOANs za9mE+j~jNHmzX_8z(b_|fKmQzg=Tn4Nl=03lR*MFxwFmOe3>EkSOx zu=kk%04Jh~50UeS83spzk(Cq54TNUI>(Yon4<9=@R(XKIg!~H141{;=H@CKm=Q9I} zhGQ$t?Izm>1Skj40HR^ucNvE_9Fn|6WP5%nCwK#=qOMcI0vur_`UV(`3Mf6;-95`xYJf`B^S^Z{XJay*;MJ~@D5 zvsw$CY&%bF18DwN5lMWsmne&EQ=s)waf&h-i4s|QlRUEJKf!=bBkY zaW*#|@$Gol-L|^^LMQ`H1Bc}pVi4tTa*Eo0;LvG!&KnbpUk4v{(7SBJY4%VO?T|8} zR8U|l-ZLFGk!`luTlZVr-U1x{L>IO$;u(Ud4hsO*8uS`_*Xh|o+}YV_7%2&sMnKDD zkyM?;5N-)u4RxTba(U#Ec=-Yg{*}&#!%eguL&#?2K_f0JMIsadWZXfyvkr^!j_MBZ zGcx9PN%2|$g6ii$b+7<>s12Z$5`wImC5{$&qwySC$$MVszQ%$y6ADaS{{R%oLWAoTpcHuq)jivPxE@v5yJ65 zQu#7+dA#VjekdKnC}RU5$DkXO2lkJ$gH^`=013l=`0zB6uAebGZ;<+KdV44d;+=I8?HVS?b@f#a-txhan0e(c`%0~GlhqM(&Vd^X{D>!aks+Y?iT+H2)lH?4c zeeyMbwDk5+G>d}4Fh-Fu9vbSTmX!M_49CKF`1kNoz^c~=wE9g3OU&MQ80qpDnI0}^ zKK|9ve#kTi@EkmN(M8E}7^pdHk-aXu#HXdN`bWNlNsXH!SBwqCMfQ_ze=QWbVUhV2 z$>efUD5LkH$0w_Hbn8S}%Xz9vis9qq$tzp|u@C-MpgV|$OlaFHF;9#~yB)pIJ#+%* z$KyuXIO%=5ykn>x;Lv6K-xe|8);zatV>^IKYUEHG<*y^-&yN(cG|=NJ-Vwc(i0{zY zUV}>x4;_aehmDIIK!UWg~BjkQ( z`pf2CKO#;ygUOC4ifx`_7-?2kz4kL)4WiwhYt{0eOI@|`Zypz)`q+Cd<(IML?$@WUi}z!Qxv~+H zBjx$%xR}Ej6kkQKxhK~_nv2Zb&&`Q4Ssxlxp<$v9?PwZ*9YHcHLWHvmcw)fNX=0u% z#0BpfM{UuOtpFT>$Y}z{c7z{s7W&X=cxfIeN6at)i!vQW6i!zWjgcVmWN6*B4H*o+ z&}t0Nn0&R$!5g+dL`W~GSk~tLf<;tj`2PSddA~O>w0P_xi{Qzc@hLyE+Gv>-CmrX+ zki=X`2y*7Brh=fteIt%!q{l0K(M4mDw3tmMl28Z8rwiAV*7$*9MrU zia5v3k~I$aIV#W5KvuQ=Hx$J@P;N6y(T5Sp3t!x@CqaMFCY~C2py)D{<39Kg(4+f| zJ&kH$%n6=kjR7ZYU|pDzU_B%@Rrbb?p z6lmlg(e9eVs_eLyP@@P#eNyao9iEz>^~V8MPzOO%%m4QhbIXSsX9CtS#H$ zL`V6bnu}$=Uu$^R>wPxu?Z4e>0OZW&5?!l_;(}Xf_-$jL-Es}Zjr8uI@a6MG6#SyA zAJMsP&fkXG(0X$@jlc{gAno_Jk!#-iTe5<)oz9>v_$ulL=(UO0xRYxN1{ktUBntCK z;YioIdvxnTbp)W46=byQ3p5HIQEjT%w_SQrMwUU59AY*o%EhD~3Xy99eKZ2`*_@2h z%^qGafFnPK`q_t~^ch}XlHhnu5jJLdQ|_W;q=1`|+d-I{n9t-!{0?AocwekoJGcAS z6b!gH`KcsGQ#0n`KNRepeK)-V-#KzVVQGdh9Xzu_rpy$JU(sp{{G%s7is5Hx0ktZ| z^cx)9I5J_}P#LYR(W#)ra?)jS*;}!=Oq~3Xe-CVJw*Ivg47|DJpE~o|5>L+IN5)~w zEU6`$P(Nh_?f%iA-thiW;Jm$z-@>sXIhOabWZGt9{PWY)Em2Cdc`5ux@ezvysBV|` zUaBdQb%-p}PKH7*ur7jw73ROF{!+&ABIYogDrj_$DH)0zbh7T-_fP@A{a1cf8w<;x zS(<6}5sY}*ln%ni!B^U8gDqbLzVQA3$w@`0UILnp?#`*v=>=BU%GKQLxUsf!ay$VJj=h#SAzT>zkC4o?9NV#$$^ zk;;}VvML82g2IDKCoRMBp;9U0FafD2QT*FpipY7RA0$B}966dPZ*`m-Gx{yvL}vJo zC+ZIv;k+m^7EM@9J=l6R7NFSRd4ryag_D5F60NNG>a3*qh7D>4Ps#GRP&|_0-eL-oZ9&c0C5YC^4T? z`Cl@@nT?H>?F>^z;vh*Bsn=bBedX>uwLYr#zTeQ&&lTfd58b@iQ(NGlPQROF^bdkC zaoL&qP~yxv9j6GD4?2j;E8UO43G5ozKe+X?wAN>Xui8AlnqBTbu3hh^&47x;i5@5H z3^xLMuU>1~RW}`z;cv3epQjrOI{K|Z4tE>E$qLOpA(eC~EzOUjh>`HTQe!ED8y%xz za~TTXb6$hkG5F}%Bsh^H{)j{Zg6y6*36|ua8TECEh*9eUN-E5LEyg*JO2~`wiwD=! zK@2$=L_-tB(^lBZe&cE&d1RXfwx&&)djKGtbr(GcW$NoQQ)`HS1||&7xfU|IbS}lU z2H=o%xa_Hwz?tPSF5_}LO+{zsF$}dT`_-FUi&X{kSX)#}AGzoq^#Q8`Nye%%yn$~( zzmI|Df?#eKA9vS4BssB<7ZzY_biZ+`5b`ifjX7l^MJGUPe&c#2k1}z%%#3hz@gsW+ z4ZvIM>GxI2U{?WK*F4T&=r(m8o&9^tsucq`i#_%abaX zMA$kJ9f-fHLs)eKl=)GD+Jp8{LPyDR3P}aMbVn0%Go58n!1j^(=qVh87ur#j9=jNe z&~X+fB+Sv_N|=+q?CycCPox!~I|>d*5+fc@AaZ0~H<*=0yR1K!f{euZpb~7h>+Yt( zuziFY4zXiQHP`}5$DM;7q?2vCd#&GpWdMb_tG?AzcQ(L6?Y8fCalP%g+jeZDT6cMFcX^df>Y%rYZE9pWm*GR5Lf;ihkkxkq(Hd7YB+ zWABN8{i8wik28Hx;W!3p@)}IsvHjK&YZLm+YNHjA^@q)T=$jh@hcIvVaZ(^&LPzU& z&{4yEDEhPJHu>Inlus_;IlCj?Y_?nej7mZ+{{U&dlpCHa$o~LNys||3?fh3VJy$c8 zksPhRQZNE9*?J8wC!M^#EItkfPChaV-Za}7)75GZKkiODFC3AUjj)guLm? z$C}`RGPqfhK0*E4%GR;;s1~5F%9zcYm?4f|oysT1%AfQXalgEEx1dmN=0wI(?*?(A zk7@tW5B~*`SS|M*C^qb4PnwE<) zSO;m`8vc@4UVu&~$bMP!_F=apB(K>Wi(l;0fX0e!y!&G#M-V>|(!zs7jmBe$?zWa? z_>8T%>HOnGah1u18w|I9g=1ZRB?6cwo+(a7L+DSt74P=Z6O!V1u1W)w94X?j?=Kp< zk71zC&5xOlj8}z+5-D3okOLb1iU_?2xKK%li8Q>PUyYF<)oyKnK%mX8UmZSSj!aW2 zV`Pptv$^!K=sh$FeB5`l2mkl4F-6&Cf^r{%nbwr#&I=Zoil z>8`Tt)BWA-uams9m*$>+JToJ#KpAr~h%Qn!_4cv%MeEV?9cj|jKIf6;Jigt2rakrg zH;d!2Fg{)^NX8^lD2^qM-9SBGeSULouGcr4_4;Wwn4F_Y8#03otgend$pa6`S!^rj z;=(*Pn_ioPS-$$AM>n5^9w0!oWL(@5wjR#$N+C(6c(;ZJl`pb z!bwhwwhVowT7vP8+;XgWPGp*6a0RR{?4V$<=0O87keE-!9?%Z7PzNB!<)d>N9V`Id z_Uk~$9~%oF9OuXj%*$^P&f~9TLFdcNRdTW4!*&;C>?6L_M{?wHNeAM_lf>f0p|cNV zK&3F{`JpJg#=7VY$E;Njah@d&lPEt{>@teH!+ zi{it`04rlG5|9brRIs?Y&|gu~mJ*KR_$dIEX&kHkFfk;1qy}Sa4ZEAO(N^9VO=ldd zamZphEQNqK5}@2YpjKL5Jj;zDl*~ob^p{__&=HHta1R?iQ^9fANC(;~E0!3!s991b zwwsiczu8nQ$;5#bouYNw)Pfj&;)oLm8xu1mcxAV)pbJ}1RRe$wuFDz;kLg5Bm>)r+ zl+Ghbh?^fK1_w{W-oI*^BFspH(w*MyWN7XR+wGuJ$QdwXd6q>gE<-B=`6v(a*F7&K z6A2Kok6o?NfbR6rXfWr;dEH@eb8Yq=7;D-nFLapYMIybHNgfEi=w z#DK>vWfZZowaxFfPMw-ic*D#gcB?|yR=eD840>BjX+dxQ0NspViW8CxY5FIo&ZpNw z?l9(jQS%QMgfDv!c$*&YO}jc!Qj6v*ozg-Sn}R?jb<<5K8Ae~jUlQIWhWm8AwY3LV z6cXZsypcJDhC2n9O{_)7U34@Z-0mGM+I=(uamSYu&bj*xK>h=zu1B-;(0*s-{;hKy zmNMXR`0I}g0I3WD#>1e}gTF2L6V05l`L0GWiHLO)PwrpXXf{xBzEI#mi;(5h$32KQ zh4tEl+z+chUck-yJ~|wZR#JAWjj^S>`%MO?3nvpdZdWD7By*i&Xx`2*-$AA0IUHyg zWNL20-tvVb{jQW3o_s{CkpaARISjw=3I(&}`HPT$3@{P5!l__B(Lqr9VZ~+0GC6cX zZ+U>~Po&T`l5Z(_Y6XuI9T0)3jc!l-RTZ1&KBn+eH-r{LCqSEsL+c`{F`j(l=H;TURI5^LVhb76MHH=WQ_U%J? zAK0`@Uti!A8AW;eZsR`VDl}<09;V&P?;U*6ejF_0I(li#i?>(gY zO+{5dAh6@e%t2CY#M`&mMJbh|D$?QdXff1o$V6b)++|WAXVB+!M`Fu4EaqkAypIz!IjK3;y zQA1Ti=8|f520q2oPCeFsy=`9Pl)4uo5ID3jhJ7V z*$Hxg4{mL!wc zO8n1LtG4&*xqjEB(9@?riGi^5@fdtLAl&Qm7WY8**Edx%d5Q9wVZ~I~hu+z#`%MFp z9~YMhY^N}~k9pqL`>3VU&%qcZ#g2B&9ZIf*TekE<+)RO%CC0{+cug5e_lKj`K=Xyc zi;2K_AW$Z2mn7ao$G>*81@S*OJ@T^G#hFc^xdbTmQCC5goO2#Y(S|bU#E!no0r`AK zXA)z^-T|>=W83JU^FKZz#H21txFb%KL!K`tDKTOn3Wcy^`6?^SypfFyHiQ%I1E#(7 z8H~PDmX+Gmsz=xrbu~~cK6qah@)|zvmLGY&0*s$F4Wc;6B!4;9*7lkX za{RlG$pMv{2+5eTtXT3$<~_s{cD~>g07>_L`qr~7@3oVMHpk0+UNj;swlT9nfe~W` zA&h}yQ3*Pq);iMd**PY z{IyZc{A}I`pA#`W2I`FAv_78N1X3Un9=^hB1>fDK{v(#}s=P+hafs z8D46*6UT=vVA+ybcN6UdP#+#onZ$r&&yR~A>cxzt{jOW`P&@Lg^RjYTAH?#$W*-E2 zY2im04ZLgaD87^jr#CBd{{SdpK@W-H59u${cm5XXLEk6l3~oCxmez_RJq=IcRXd7B00NTbBac5*->AOK)gSdu^o-xLh+ za$(HGizYNGl8c3K0}C5!J(L&iU)3LF1lqr7xU6QI$^33CIlC^aF0XrbG=!QDk$Imp z>MVJUA2IVwIX?t}l>q&nHrv%fn#tq&x!6MtZe*1HET-qJ2D{4KJp4!l6Asg39u_f7r#f$qt_Rs_4J3TOn{#mC4UdtLHHV1Gq^N>he0Sp3^|GFQr_=u{n9z@Dg<^xBW`7_A*9%zJQa$H_m#$j}MZw~KDma(Av9})CF$ar#z^D$d4TY`|} zO!CAn`vib}qM+KOe10Z7$B7JZ2-eCYP@nU#O9yn_y%n0*o7>Lb|CF6-87*3 zFAIYFZUK`Z?wE_P>S`*n%gK@A#4HI0!?vi;O+G@;Z9%;dlg++KJyDmnX;O{EnS|d@pxR85EP31Z)Bj zei;Y7w@q)-y^k;FHR^gR^S*EG`}BDJ?R(k}AbI=BxI7Z@{QOhK@W}0tpB3a?u5Yz~ zA=7VW+lu+T=aSofyjs5BxBbUXo}LZ!>uz~}E@MxOr03! zENHjIwNUEdbw0WRgmN^1VM34t`hBO{KvdX_k#6KUB>{RUJH3ygvY+VR6 z1m~joB_of`H5jV8(GAXr41_%76tF4`uL7 zD2`j^L0Kb-2S7nj5<~hZE_-_S*0q-wv9+0#w00zUm`Xf37I>r|ik&{o)>{(Dvm*$l z1%SDU{nz^sUu6_LMdDJ@-B-NP7s<$Q35~xakctN#Rh@q!G*XGY;pMDy2+T7t{{Rj* zYx=f=D#?~@k!CNOVV}f!aA)wp<(bMwyVGLC{i33Y#`8BOP}&HfxaedudvsCxXe*bN z<)%`vn-ZgZN+LhYK(ix-$IMgWPjcTILW>zb-+0h@ACx?_A@GMEyq}6$9i6>m=7R~# zeJscv+*ugFwlIHqT=c!c_E3Fyg~yK<0Z>97U7%_&&`=$T^DIh*R0pDvHTF?gNr1EK zK031w)fP1ck?`Dg_jp!4+R#}hEHJ1spi*?W8rp~r+YvLO1~nNot8A1gxe056-FkZ} zj~kW3jF9s9cDV(C3P2@G1Jb~YUV;u^0LEn*0LGvIO%q*60PL3 z1OTbK>vAojJG*E+{xQdtX$*t~7dw=L+BCmzohUBH&BV#Sfhdx|6Sn;cAbv^<=p_W8 zloEodr%4TfWw_kCg|{zwp!qg8o$_ObIJ0<}r;$Jga&Fx^{*41z{-f|o7)-28g;CX9 z1_Ri4Pz;|@{DmZ}5)_U4GrTG^^{uEGVR^sE5}yqvfs1@z6_opLdJd1&52n~MGDc-G z3*W<4VfNfmVEotTPHWAx{{RT`-aF#rHj+qmV!yOUK|z0&{EHu#WEpRg$0dE~U#-t? zS`8fk08@OVuoTH}8zwf};Dz^^-J;Y7aK3lK&YS*`CXNHrHw{6c&zB(M31D_C-6PWD z*Fd8S_{6eq%pp)60n<-sS`BUs;UC_K4iXylI&HbWneX%!1cK z&J3^0=FX8g8Y|ooXpHZee9w!);!77FI!}`@J_?|?AGByP9$Lin&p*j{`57`vk9|?D z7t{xJ2hmgL-<5L6%H{CaHhW*ea(p0vnk|2AOsTdXmv}xF5grc{iGZkXJT#3D-K|ho z2bnP&A)zv>?b6Av)9k1!IVvby`Dx2*+D$6@5kCWM1ysOV@A z=f+^kk=z38ecKy=JB6yCX(edjF8VR(4wMwbks_&kk$%by-hY&Qm&x*9F`LIJ$d$KB zVtFFp=_-T@`gHT1O=cy0eP6fqce%RpeOryd<3EFAV!@8E;lUV=2uDOk764x6zHPR) z=JS1eX*H5gQI_YttAjH*NTWCXbOahH1|O86#=nJ!0H5?&F$?S#(u2?YTg?YLIZW&F zXm8-eNn(EL4DZx0IP;!ghve}fbech7ARCSS7QF|~F>*Zd%H=BMNs@|A>&O{EzizZ2 zMdG>6E6Nz3_2cHUoL!#(0G@yxkE(nxCF0=7A0HBZ7@@fypJfKigY!?8Vd0Yzc@>l> z+Ju`no%94j!14K$jF*vK`mLXGJaVy=Slby2}Wb?RRF;6LceEf(a zI;x|v6_&%lmN|!sT=H2U#0inwc`N`P_0H`rOeL%s;brG@@?qk+ES$A~pA@sm6o75H zS&pOEUHYC|eI&QF^K^XYPpP$<-c7%kew297#`4GGPL?d!3~YPOwZg~KEUl38er!=J zD~?rEd$t-;S3~7)O5*UaKXn5vZ!P73RHeOUisF6*$NSer?z;eJk0Qp$L$PI6Zrfgh z>9Hh^E!NS#79A)r;xMvW&ejQjt+|&mod${c>?!qtxO$}pp+7VPAn8DtnDU1W$wbh_CdnK1 zdj0etFY_uehs-o3wfr-!29uBDFek+m_?|1avNKzCkKaIX^6!>b4<31A zRT_XmzuQ2^1I^w`;-Glr$w=83aSLs2*e!i%G5p`x4i;G+92AgP?cDz9KC94O!10QYG? znEAR$a$ANFS@&&opzHR~afN~9t{amXS#qLe$k!XlxV;9#OxR~u$c)D~lg%{{WXG56gN2htR(z;Q-k3WDKsMns#rv-Dno_oKKnjwHwRDM;=P4 zy`)Aa-|RAq49_X`BhNW7tT5u^V;uuXsP1pywVK~;=n(GnzcTF(c5JMQY|+N65|DqG z1qajok>v#A@RsTCol9F<4PWs7-MuA^@jv#sC(* zkHzfPs&aCX@pug@;MY4H`vU&&uLn5#||co0~^D~l$J3I zvJl#xp^FO}^cqub?YvDodh0PcDW8uM8_RUDL~o%#ENaXx;WJ0?#Z%JIQT1+uW_G3onAB)7J@?d7cHb-t?Mr<|9byX))LiIdNq zEb@3~lu&w=WsxoIDh2%&pY`|dZ~e}f`2xuEPnYL!4lYGoR@-v4ht!o+9b1L#0Q{}EQju_cs2h3 zDe-i@O}jO}51ZKYeAgh`9}SO;qSiSX*FK#ghEK~^!>4`seyKO=U+t6Eeo;q z-CXh4ox0y;pVS^#6ZHl%d_E(O%G7OW^O-d5BuNOXHR)gOv)THk->*NnTmJyp=ws!` zdHC}u{w2h>9}kCQm9iq3JMJFph{-m#w>6FR)=n2b$6lWM+x2VV_R4nimCA|%8DT21 zE;=sTd|rcpwz;~2Zc7DAmd5y9w;Lg1RkrQ}s~i6SEd`TjV8sA3M5JvFu`h<#1&aH& zJ58-YSMh!%mi!jCMspAY-8L7$-9Szzb`E~y67LEDJJfVx?fd8p>7eOB?F68d5`)5Q zFWo@5iR8Ha$#PQ`GL4Sj9G46_SlM?0r@THLC_g_ZA)CU$iN=>{SOXq8W+T?Xc2H>i zz31H6rc7>j7=-QAuHshxG#w~5Se|0z^QIWs(Bw?#^oZRU_MVg#^Eue~tKenhM?6PD zrFu|i(~a^IWQ>!>FO7TH?lIrem$9JMz&M^m7-G+f1LE4oGZJmLb%>zMa=%OPqQ=Xg z%V~{*^ILp&KJ~j4kB8Yo^GxyQTr95zmn7zX?loP^tOkG!XlNK={XOI)$xc_z8Ih_W z4f5zs#+S2c*VRB?Pt*@Ba1x?oasL1?BO?Cxz(=mltp$AVow5AVVfl0NCd7bB58uf}AqT%+DH5>+mJcc5$K{{SQT);z=Wxcg)5ba24^hJ)zb8qMYCW;}%O zq%EYOoEa2%SX|I|kIeD8O79a#CL`!pU=FACXeh+;wkORtMk$I&<<+8a02l7;pu0Qi zj~U1=?+8TwyKQO)+$WK-c+7o*Qmgiw4DX%3oi{fVEPT^r57CUpxqY@_L6q|6)2}#r zPmqs2jCuTGpTv?7+ko#VN93T|WOBYkpCUFYl5$P(Y%H!E_uE_g=rKNO@^>i@GMQ_U z<3TYD6`U4Adn`#b8>~#6elv!SHjvFO%V=(IZpsX^ae7K*6%) z%x%$FMf&J>ee@lfwkS|KcJ|O!lg!DB9`o#=Hy=JM=vGJ7m!+r(cwn3ZI1I<5Us3I# z;w%hV$;X;PsB|02Z9TLZo@eQ&87#%|*`soLs8$y~h6aHQKTN(ylKHlYC&(WJlOZ-A zvY_qzs5f|Q`0%2z_r{$l7{`>%1;?&{xOX_|MO?UoMjM-HpuFN(ZMbyp2B2S+p^TDP2nP7%M%tIpaJ&YnGI8m##9Qigi+89O)>~fTy67G?`i(1!Bw&fV#sjj^1hVvXK${Q0lG<)ru zNEsv0U*0T3FSJth_;ZOmxwysm7DdTq$Oywm!@F+UyIM9qzUzE9?X@%B*M}U0yq;08fh`F>n}A~@{c2aOE4e1FP^_@s?gyPw-)cQ>?}&f9IbI^LZ%QQJja4m z6XGeot+)9NXAR|Jd4mi9ZzBSFf%ocaV9S;B4;l$w?1S}+kPq2c0GN3UImi)Cu1`P? zwJMG!K9#F|oa#F3@1%aSnpEE*?#(Cn9cAeHE z)-EU(Ve|Zy(<0+MlRlsSIXRNd-d^Nbd*NOc6wJJb6wF zw$iuo*qsgf_fUHCO1Uvav6hZSV)75rD{Eh~UY+y-$;?9(r5Xpl+S>qTx{?jXhj(p- z^q}DLQS4S+Ni1|w+ec;ew(1U#H4tFGD>d6~tgB7FiYXf8lQQYR1irv z(2lxlXc*$;E=&tDsa0#(8+IFZX+d=app+7W%h+GKfNV))X7^)6@eoJ~8~dd6Z3T|B zADZ~ia#zW0aJ8z?lxurPRW28|LBOlsk z7gZl^2Ct5TgTdqW@w-G9+|w}yy{3Z$=Z~tV0bdu4lFki`qf_jl`9^1&IXuUgB54_( zU*0h!-h#e6pXTFb@F#QcTt|D0(0wnB`isqQ++wy=SC&EUE%o)7Y@_d24|Y zG5L(eVb~pS{{W`c82S8-kC{0*`7?#T{J^Z%_F98m#rb=f;dt@#9E|%IU6IIZdVv%G z<$0&h+ZEfP7iK#b_YA&pz@3qbRQ;dyyNxtek$ z_qXqUzikK7_y{=|(kP~K`#W`@eVvCiaxATII`>d}iIX!weY#K*?Ud5(*ub8b8c{|? z!wiMpDA>cY)E!C22vlq#-p-;s1@5&P!s?a2cm!s{%->gRK{j$ z^P~jDg97-IupPSx!oRfSFQ&JzPToC^d-Z0#J9~q(`LbpW8en0>Y<5az$dnG<-WiE6 z>LhwiYv`Tzob@mG&x_oQKQLrM(7z^_yT;QtCOBCI{{U5{l4Vor+G#e{c6>{w_G875 zRQ~{%ye}QYU>Tz0;~z5_37I>SE=#uCj~Z9Jj7Zm0Zt9!uwdTDoG}rd??eBHT5|~o)nqP4^4%xXsadTc>r{kCtuZYN8TzAMmu<6 zB*sujXzljZ0m}|Fk_f^WU%9${v>nUFOo%K)dI8pe44igfb%l>{qATOtRL@0A*d0v< zk1vf`R64K?*KzAnLFLUXSmFs6-UqLusH+XyCl12udWs5p&vdaub~dy^UOPJ`DcK+k zzS=u$uU={gUz`HB3*xmbErArA+SzqRvnMe$}9;2^i72O2% z_KuVi=e~km&`;0Sf>25cK`12zpyg2(`&2IDcCZ5H(?R(!m(KGnAmZ^HWSo3XER!@$ zBqO{Q79PqB)9^f=3Q3bX$u?Yovk)2Bdi0>q%g1tgOm31~^czj+I)})-@-UWMNkDB@ z>Or@wtpjXNEAp|B+Z_+6gF&zI=l#QjG8r;iarXk~{{W?JZ9(=f7n_Tgj0quF*#HHT zsi1#}$4*;xM3tap^0_DjFd;{2pa&}{nYQ0SL1D^?@%$MPT?n&o7rp&-8E#kUcb9XP zNpW*BIQb>`)(0Xpe!k~Q41Q1fbi~PKZ{rTv_*sx?>#?Ac{{WWh(htGpA<6@&++jaq zR=o#UKSihG2a0jg=1+hbw}b2mC^G!llX>|0BK(vMu>1i=mh>CifNYqh#{wkAc%n~7 zU$TJCBhK8H2oHeD19es%C^Xn!dgXJ_NSP&N8jB4*R-o1K+|Qk|phDP~(<%6Gxf|CR9H@+BU-f7r`FkMyp$)qHC&)b8!^X)L zL&c7g%^%~$pcR-YD#LcVTe7~YGhHLlbE5Vm0e+70wS}u&tOCh#QQ5!Wu3N?aV*5k^EOk+%aI=ofVx7n zz;ZKXKd#Z1Sm9pacQ<{jt~A%5)qWqVhI*S`A5Ome`U@jHV!!d((DCc z*=yE(dj9~A#5G4oa`4}W z%;jb0RTY1Qz+|?hW&RlUn0NmG!&4gf{6AIkZ{0or0HdUr%;ks}STT>$zErGzwt!O_ zci(sFXQ|zsg#one~INK*TsEKx|#+U9Ii{7 zGm-~kG*QPtAfIu_wFg6!%L(rQ-jY9(p!W+dArrKkHSXS<`YNEa4h}+wDjNNxtwmcD z0S44!SFjU%eY6y0&nP7l%Hy#1k3|4XuQ4MaGJ(;+)Kv#zgpwl@x=a^9*0T}m6#%*L zW5IS2-J4BGHv4E7;Sm&uK)2Sa89|uE_P4-$DkwfnA}J@_PSqcps7cCmj|dUtkWXU` zXp3>Ue2n}*o6DA22tNQ~qwE%-af^qBym3h42b;mZ?fw^7DtiufZ6j?%17vg zi7)L5dJMlI^y`)JS&j(E2jSg2qYt{&7jaw{nK*P~kHkd8{(;FPpS4W`{yWY7XTk(z z`F>?R0fpj_AGE3as5zg{{$!Q*KLL`kp4U}B`bnUx_~a5eGvVb!eNNaUVfO<-SmgL; zA$)lg(9ldj_b59&uN}X`jLkKN{J15z+EfYxqswc44lY9z`r%N0?RoBrfP2^P1fu7&|W-^#pL7ehCqR}3%jSXflg19 zFrZ?OBFv+x2!~Hz+6(a)%UDVm<>Oagp6Dj@1g9YsM`SA z_^V$;@4pY5ANpSHem^C0@JX39^SK=CsE5S>pXK2`w8jvV>Lk^jTym4~>r2qjJGJ)X z@)wK6@wjmq_}pl*Ju$|r#P^oAqdO-lmB(d6J}X*PJvxF9P)BhT8{QM0#pR-Qgc#+EXqqOrg@x`d+19eAYt#<& zLG$eXJ)Z?K)RxD|mVAg)s8KA=;C=V5y-sdjAKRY%{%o#RHf&iwG)&7O>1_b@)*TM` z&To*9Y(TOl~3>@yzJrMqz!5dQnuzjL>c*T8Q>Jp5%>aFT|aebuwxJ zy{Mxmk_XLs6j?%OqqV3w}jMq>Jd zc}SLlxDdS49YEZZLcYE15J(sjO#OBOuBT!UM;F+qX)oK>oJj!VA(JTi1Vd!j%_{b1&EQx^g#c9r#tbsV>Oo>UsVY9Wo?xBHN$#O=C z%%r#-bW+TpFiZ^-civ&uE1PK+JSsLZyWXgBR^B*wtY%)S!&^SJ0o)b#%C9{>j`nT_ zS*axPrtfI_+Wd#ghd6z3>^5^dLAN5b%~hF<5q8tKe^`mI-KfQNQ;Sz$S|lL&_;ozi zn437%6bBoFrOe5dDNpsIT^qpE%(6-)uBd8-A;^*NbZuApYWS)l4`h0zr9XI~h<)!Z z*97$m4muloSeOem)?^Ziw3WjMmKJ zuB0CJs$Jx)ij$4XoY>a48wtfP?zx&_gjl zQKAp=_!)d8>HxbyYQ~Nig&$GOFvg!ci@Tm{6?dT=T_*AU;&HZsk7T1`wuJH#gu7E_N8!CZYmD5DCa9|Wny2i{~%5ii_Y&g zt9afRcD%NA!QfLsmvwDWFMuj%wXP>0!uhEh@<4b88Jx(M z&e|Uvtt-ujritT9D&4ig3P|cg=oK4`TIvS3@KH>@Ebjthk=&QJGCDLQtWTJivyi*A zYGiAPGIcvT!G;w7wU+*SSwSab2A}R@l(_*Osw9-$EEq8N`@Vy|gQPyFivDF>+mp7% z@^BeiGxCAD7b&{Ryjj^qsB3qqI`_tlWq72~7sw67R)b_3C@u{>Fl5Gqt7z7>B; z7IS9?t?FRAtOl?nl!)d+ZK-U(80)wv9Ll1iUh_OB&ShGA)8WciJP?XebP{C>A(W*+ zkVFg7HuZoiBhZz_J?6;sa9%kXYqt6~9e&=DqEW-1ti)@595=lZA#%Ce86xq=vM&_d zJYCML?GNvm1Ar$nq|5@_`y4Te2fVHZ{_OSgEq zkA(5S*U6T=D-(^$&8zhKe}8L$yfrks^0a0c&5!rh9Ev^?MeGBkJ` z)lP-Ud3+To6BJL4h(^1p5zl26Xego&R`BD z`+5`<^kv0rT{W<|DRSIM-2o6^?BZ?&Sg7hBTj`Nzo`&cMoOn9C5RxNn=b>=q{m8fF zZ1kuVxQf(^iy|~GKHs| zXW7tRy61K-snfa?Lnj~cdmhdPNEBiOVN$7%wzAQ$-2x369`)Fzwfi;U_S%2cC7-DR~PpJ#8V zRd7A1s`$L4bj_(aa>vj=+HpD6Bvf6!;zDw5xD5rfo^F2a2wH*2z5Jpx`FMn#rKDmR zR=Zkf+si_V{D)Cq*?k^rr2$WC?z7c#W@%s=OzWfTD%GWn9EP@M862=Q82QQh)twj& z;2jd@*K92iJox(G$IO2%jr^FL{w%Ke-__*@JRY5Erv<%PYw^wND&Hi zspdWU-uwH7m(4Z2a?Nc?SkFbB2mY)a#qTwx2vbve>$bI`Q)8K#F$5Mxy~_0>X$1?_ zYj&u3pIQ~iye2lnqFA>bJ>c}%ePMnd|Og#F{~+pfUXP^p9Yzkmr= za%)zOF!4XK<~J5#_GfwXOHk4MszuR~Wm+GHy{?_KjrBM?Eh`ZZh>M8IcB7H^7Ru`J z%-+25D+On(^0^hkhV?hJW(=Nb;taPi=@r3U$~~FW=_9M(n+8^Yv|M8)sHG%^#1t82 zOjwW7P3s2Br%t@G3x-xLexKM5Emp=c>!!%hQi>Y8xO2_>%Pk0lS@uf|+lxrShr8o7e($N={E63I?nbg=^1{k;2H_GIKiP65^~22DcbGe zVpLB0s?LG^bBo%cO=@5{vGnL@Rb+cLuIq)+4KU0{3jQ#)YK~Ze`V=`m5T7jZ&Y>YJ z2)e6h2**!(W+&@3|5((}go`9ftf18B@oNzuBq(R|p(%QlYmx0TisIeyACTavqu;}v zsWIX$2KY?mlL3E9Ei})!W#W6JEfI2ZfnZk0t=yaH1_8vM|}=<=`*LVMq~!PkM>ctxu(F1-fbBp}HqPD*WL2~m`X-0oW4k&J=C*qB#)6ZJleZO{3nKj`NpYC(?r0TAQoFcQ;D zr6XkZxFoxYbzoQQ8bp#42sO+~@L~2w9=cwk{q|z(4%{aD2L{nYuUd(Ho~!MB^q9@t zWU{)nen&eaO|4G?+b#}I9Zq4@rl{ZwbVICyPI>luj8!}UFd7Tr`>7zizpqN*#b>1iZaLB0orpP-ZKq<-7jfGAXqsPO*G=+72&GB&yt6G+xS3zA_JgEjSc<2P=HxF6-Q#=~?sg_`bDki4?dDHXh7!Py9dB6%X+*BibwX(h6x)3-w1O6tGdfy1fx}<4nio5|43uC( zQmw~k+qd(+mb};3R$fY7BHuD^KR;)^RHE?vLbxnU8;0%r-mf@0Tn^s7WmY~e+$!~# z935l#yWCpgTBsse(Y)A8OcmYxczbhEf8VUrVrfZ7Ms*n<2T^x%PdjNU%q7{~u39Sp z+1NTY;|pdKjz-AiOnu%ul1P66zd=2EMH7I2(@Hr0_|&TW69Jsk)7;0*jt-M1@R{Xf zr23mI&G9U3_ee0t@t!%6$&*CwA7Y*xmqRzawzg1_#j|ghQhxyq2haOgY@rUWu1+s} z(NZ485c5T7=S#Q!P4k~vh*lcOzFuT}wDc=cbk5AxrE{$<@aF+C)e3WlTw|Z}wrao) z;Sd*51BQt_A%;fVRI*GOau21JPM8k$f;&~5uF~uVlQ3_I5f`|Gbw^<-3uylJ7L$Qc z3UEtcW$_Dpbx3$H`8!>lQ4OvM@&2YWUAlgcld3N{uiy+H3Rsxt7k>!P1!HNE^{X-B zhnlMN{;t7Rqokj-7A|s59zA@^6)Z*jy(uddewg1)O5)M|#>~B1N%V4U9?(iLt1cct4<|W zQp>^GAJ6%1jMZ4*`txy=Wfopj-3~c7r@>U@%mCPvERjMtE@R)rV;Q#h#!ufp0dqGE zs)-aMo=F^Xnz?Tie2?Oe7R;yKvw;?DP>v(o77&~-hoZHlNad&Xll08EUawW_b|_^@ zLH+F`%RnttDbl;pO6ClNV7Sk3oHfiPM|8N^%IGJ4y2qH!N8LR&K?VF0i{{nB=Q&n() zO!OU1tP8G1y9WOrhl3^^ctH)tpZ6NB^q>^1>VSK7Wd$>zkJv@?-JbRwh*+?d6?_UD z2rnm~blkveb$p?!?HmVI%=yqU&v6Y;UNiu-_|JqQ#1xYrKiNGALEc$@1Y(NJ03X{OJMFazi#iOPU8Y@;l_TJJeAPF(~6N0_Su5s{)oB?9a7 zGBcb=YT`7ogVxZEQ>`{f$y2=UQ;|%bm^H2^G3+fZeA#RFMztw2`6ixbqFFe(993s! z0O6$XqXJAU!BKQJ$E{-DRtdn>2c@jTP7zn{;|gh(A;K{}G>3TaE6eDkx-~D*;_LJs zN++*L6=hlS4H>G&&DK1mgvJY+Xe;B5P4PLo)5hCaFvRt89Zf?@gcQ})=6h@x2y4)*G|B72_hTDAnhwY`JMqKi7+C?QnWKNdKd?J!K1DxQ@!UT z*E^W!4{IEeVjSk6=uJ(Yq{;Nir4`CaSIvSB*egkjV{p%e+fUtQ?lOIvA5py$YF+=@ z@5%dRC|lGcC)%1~@MkK;=#ZeOO)73JOWx9n=9i?*X0z;11PwIVa3!9ZpJfE$nc>BP z3Phh}q)h5KO(|fnlFZ)l02VWYC%2_=u0j#Z50ABTASnUcDlQWx$z?xOH4tXQw@t=! z_70?7eXyJ~V>+Cu0YmUwmU}?NhTpW+DS_?Rfk6ytjza1(b-3g>Be1VwQoU>>QC&T) z-v?ih#%)b~Nl2jwxpBorPblC+O|#+o@JgWYnzP+CK@z7mw#BI1VCy6IKfdWX-$eR2 z9LB#21u0nE73rB1|3B*C|HCERs<#hd^xdms1j+Tt;=&berc@FiW@lWmMz|Y?3fBFmn6OV_80pu=I9QwRs2EH`qv@9CpfV+WxZ@nHN5jUaC;)cw zU|cvwGSsJF&5S&j4iU=+Py@h&JbbxUkVk8!V1H^MoH-lm8zk1WyCgthnN0!IU5cen z8pEJed1xQ$yJgB;>u7LjM}--0zi`5TEhN^~*l9@Od3if*?d|zM0X~c*4+)ecoOh99 z9>lsD6+6=Q@`!vdFlz_MA2ufs8B*hcs(YL|V^|;Kcp`n`;N|dTcUCcKos#M81($Zf z;EeR+uPW*y4=G?ygQcjcyVJ*?i(xA)4djO&uQ&)|%Ql$31+UnKqsB0GGt;0|m|` zV})_1rkJ|VdzH#y$KIxHH(jCGx_`LXZMKj!bvCg#7gje2a;~v{F0+9_9f_%W!E6{OjZixK!TM_v4bvuv+V=Z%0Mo7aiG5FUl6Gt#WfhPpr- zH)dT@<;D)16k6=Wu<|6ApGD9)kO25Ie3j;b#_C$#-KpL}RU#v9^ib0eTy+Wdkqe37 z6*SAF5lQ_+#~+_JB=~>2RXI^J$>pB6?oaEA4Mor!*ni1KEn$j9Ungc?nhSO>^WBgnDlRtMOF2pl(Io3cY_KGk^c$*0n= zKtB3`0to6@$_}a$a(z?28nI>5x(!?S3y6UoNY+1O&LFeg({*P>l@R#-TY^-%yHym zmVnW6hWW<^$B-DYw>(;M2%~FlG0kFcv!+IvCf0L4Zw}x(xu6jfIF0}#b%jSxbeQNH zG#&S9m9e1O{1!UsnLyYaOmJ*lzQ{*1@YFC>bz5Y)2?2Zbn13-ak%DxXoeLYBFp|oY zYcBwabeoxqRP7sDU03xe8vxEqe6hzJK^q!bCMhT4%!({Rks}(!!!TOe$|O1oCwl_M znFAz;8vD2BBM09wffKm@)bb{dw#xf5f>=yihI18U@csg5fJy&`%6S6){GiVv8bob| zNI??CG(9gn=v76u8cCWEu#u)2Kekx?QOu}<)b3m|$bF{!lsomv^ zn-UFn-`{K;P6}JB$LLQ=MCqroyYS~j>#Zq8^0J!Kbe?`2$MN-+H4eD+F&)k&gTvw@ zKQ-|3Y3juLM=PeBkc}W0pJIVjJKiPaM{h#!MgqB$wM$tpUAFWI(@R%&ww#g6ws5G{ zQo!nr*ym9~yd}L)4Y=wf9t%~ZW;Eel(UAfRYsY^YC~8`R`J_yV$bH4KR7jtdpAui` zT=Oe_u}50nj;TSPa=PL8Ex8qvu)+9QYN6lgzAi*c$IySA+f3Bi zTM92%GI{4}liq*8*Bk!sp=Go~Y5LLXL07i}!EOw>0?@Jc5IJR|qQw@CCFqNjk`#+0 z=eSLa{Vj|VH9s@E7H^&yFbEG(cCoWU#%6mT%XTrHNf=Bi zcT8Q!=2woPs!SaV)UEwc$iq$hs0heE%+X=Ptq<2BrnA%dPbbA&-jIRn2fuc$hg)=o zKeZTU;(0y?+OGa25GzLbd@^MV6Tv5k;4cXta4o66)^+&9LzXVCT;&wLrrlqCD#a4Z z5q(Wk;3TzVIb@=+f3yo%mQ>}G(kbyZr1Z|E@`PZ*S#!j*B+|m&#=LebDW01}JurTx z|MW>x22jgxOuNEaBU1J74DHhc)S6rK#(WX=KqvN<;r*w*`hVUD0DY-#7}FP&xpDYe zW#|W<7x>*reXpDifNhwnS&rH8s>=B_95_G?cux0jwS&ibtad-;<`Hu3`H%u9l~m zc-{BJP;~UyMyl+Z(%Hd&F%1huO1#Aen*Kp6!O7HR`+Hp^U8;awt~V%~O?7c{MSd={>9N?^tNq^8 zgT5KY6gZXT&MDkDC4w`(O7aqqc}eyW$yF& zC7rBr!o^W?#p|hUev9BhDF_!s-r#fsX>%#GvUa@GZinr-K6F;_% zbBCmW9p4#JpCFq!@pmy!N`V<%W(B6EY0f3@)PW_{AQzz4SNU*Q!^z$&CavyLDC(nE z_3DDt4^`bw`682xN}P@Xfsshar#1-M;f>*h7+$wI3Ox}c^hS_Crjfc_Rp7P!B$*#+ zpH$t`r>N}irtlyCK0xK6T70TI$s=$T$HX>WsYr4AgoZ5Q$bA&m%T2#2$^c(t6iL6W zs}wcC(~r&18jR%JR*LXerJ#C=(RY?;@m_*bynQL4rvZ}PaH;oaaZFUCFoo>{NO^|A zqflV)Dew}F0^}PK`+KwStf1r1jc{$FL;%z<27NHIUZ7NQ0bHgZ{(7Yh3Q{Pfz<+VJ zt0vjxPd3=7Yt5Y8%&q=i&kI(gUj|PcaL|-{`4=FK^AKB`cD!LcyuR^@YcC;)C;S8J7Z3UJ zQ2-KOLlgbt4tp$F^vz*#SdHVye)y$RguGcv&V}n&b`f280g}u-4P%LDm1sVEeJ#u_x0fpNS`htcS7WG zyEalT(8RY%N=$IsIC?VSIcPfPM1B8;Z`_0P2Li=K>3t^@_d;$=i|<0$piC{4Di=wI ztTs&zbm2S`fKHH~Wxm}w9%U&bNRFy>m=aTu_L{Q87USjC#E>bODTmg|9{BSN=D z|2Vfj$4bIIfb;3xNGiQ}OYKfUgT9r=i)gs`sSWCMlF8q2S(fcD;ArT+2uoi5&l^rG z%m5D(7IG~;MJRK_pQ%E8-a%c;qfx9P(*6CWBNy|=)P#i&3r!$-6*5v8WBs@Pw_euX0@cY>S*6ugoKtkSlNe zf~=>?z6xKF|I}GgjfaCcs)>Ckrda6?e0Xb)NZ zXllyx3@M^^!1-wS=aWd6H^D2(#mfCg5*{c->i%3#!{aS{b z5MEMoc!qvi+bo)jPQ+G|uCY^!M)UU}$>}iOcc@Td0BL)WJ^?_kD>Rg(PsGxfVkXSe zD#$)Rd&e6X9&5^Lk!rUL!)TM@_T#&47h!%FOz^~>^Yq7#0$TuqbTI6|tn z7^K2mekeR*bD{Jte7E3efx;XvMQxv=35s71r z5~cT8(-0DJ3wT_KPHR7Mu(CeS_v5X(+#DdcJ#a9^k_>6qqImPC$X3tVl?%fK1aY)w znl~*qQx)a98s~GI%e-(DLdf(nTWupip+;s6I>9UE&lcSNiB++YS?xe(%lj-?W~5TY9WOKTvzEmC`E{a1RMm|@}6YXSZu2mTVP zyJ?b_t4O0)x%+O~1He$;_j$Zx(12|tnl6Yv(qFyX0Th`OA-(Xlfr&KerTnMwu(4k& zE%jKcFO)3NdQp~|ZtZx`e@1$H9#+#km`p6r7*BP~h)`_Gq}ztJ%imF96NcG)UN^$` zc2`Uvs3SkIjl7lDee(55(qBMq&$+JP#-n9#L54Z^DdvW!jyjTSFy1(!ux?$DIl*mA z{#T<61&$BeiJ(V8Ehfhr?aeL^%)=YZ9)5!9sv_fc>C*<`QJ`p!;s?e?iUx(ub}ET#@XVxXbU#+stVzuR8*`n?bMV03ijzBV=Nx!|2@FJ|NB zB2p&#rcbcQX(330y_Ooco91_dR}*Pzrb3x@Aa)}diTiETE`@Oaf%APX04GFM-sBeA zbG{3+Pa(Cx)eiP1_UyOMhB*W5Hdy$3Kt;%($G5BWPtUPaCCU3g#IdnaojauO{jbu$ zn#y%vGvYCqdVO^B!0<5~1uaVs*>nDLYzHdBij$l_d<%@oE%8=tdv&2JwHmZIv@ZQF z^39%NNFQ|TYDBe-A!HN`88=NA{;d+KhDPJ0kFQaxJXuuKYeX`NNRUQYfmC?)-(kYP zWs8>&jplM$kmXUJF53t2uKzXM0ZfmdZe^hf@ISy&WlXJB-~^EAupn}FsM^gD;$+a8xRh?mZ@5Up6Y*)~S6GE^V%PqU z@BXK|m-`;u%OBk>Z;QQ{yuHAbn54!STbjW{R;!3g`2zh5?6l#p%PBm7>%T_W9}dgk z^rT5b`)oVo55nC&+VY55-(|=q23D8@>aPd}AERbC>%xtdxf~2uW!>Fy9^NL1E#x!e zdDNE-r|kqf$t>WTPW9r)5+Psa_u8p5V6b4YnRV<77gs(4EJqHY5vF(%jF09yI;ova zW*BIfWduFa>Jqr;Ux4n;!yLU&dcGi2vpeu$L ziXpeLe^F9~r}g&ORA5IN*c`cX!I!3YaG__;6Q>mj_+AFBkR&Wl4;Bcs9ax&dUy9`x zH^=wqX2dDG(WZGnF<~bukRRrRknQ}WO`xw{1~^8(f=8VpgX0o{#MBxIP(>Cnm}|P3 zFtq6<0ZPyq(tu=>qh&s2rr{VoCHH&%c>kB&MZ2Pu!FngOIf9?7qulbPx0zh^O3PL+ z;o1;afNcMdt_u6pkWY#tN`lLwB0vK^@y44(o4FjPW-ZvZVPN*)L+!D}J)};GCr67t z*INXq;_${x!4PuEu_eIIJ)|a=|JAe5tp({b{7_+#;6|6ezvxLn_%mAaFQDkRC@HhdomnutZoUxS;%@0BMH1%}Ax>4`wWv#igzKz{+pF==n>#@HRPL7#V zGLPG#{$ZHWm<{GBxeZnfi{j0CxMh%h6%#dORxz4sZ0IyAlq(@YnS@934@gf>`$VE> zFt($*!Izk{M)EhF7(Yw=ENHXx9T{gWZv)!+Ngf#p55XQ+2hqXYPJq~w}!P)#kBg8UztZ4vtaB=zcODUFtJvXdNQ3GE?Kg zRsOAHeTNHC#^9qpM}*Tt6TP@E=x!ihG!zClOLd<2vwgb5VraBWSs+h zL(?NW6X{Yu{`;)>>R9ZuAfxI4FpVH;szLP*2lfSnIRA_ST?6>1LrW356g2L

bLG^UMtd~z&)513yj%yB4GJYRgboLdMRmky35l0@6%^k z3DHf{{dZ^u>&1tqfEzy6mA`=N&JQ$rmu=uBZ&t85uBzT$F~TkLE>Cp-IY=iujQg^? zQ&&8Bg%wjtlB{#6gdwQAzr~Kq=ONA|;-euqH$&D_#r%rculDN<-Mn#v*!qV21JUJMP`p4a7d-?v^0 zxKGrb4&uBqf - + diff --git a/main.48f0abc4a0d8c232.js b/main.48f0abc4a0d8c232.js deleted file mode 100644 index bd943a22d..000000000 --- a/main.48f0abc4a0d8c232.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdemo_maps=self.webpackChunkdemo_maps||[]).push([[179],{6215:(et,Ee,j)=>{j.d(Ee,{X:()=>ce});var l=j(9765),M=j(7971);class ce extends l.xQ{constructor(de){super(),this._value=de}get value(){return this.getValue()}_subscribe(de){const J=super._subscribe(de);return J&&!J.closed&&de.next(this._value),J}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new M.N;return this._value}next(de){super.next(this._value=de)}}},3098:(et,Ee,j)=>{j.d(Ee,{P:()=>de});var l=j(9193),M=j(5917),ce=j(205);class de{constructor(he,X,ae){this.kind=he,this.value=X,this.error=ae,this.hasValue="N"===he}observe(he){switch(this.kind){case"N":return he.next&&he.next(this.value);case"E":return he.error&&he.error(this.error);case"C":return he.complete&&he.complete()}}do(he,X,ae){switch(this.kind){case"N":return he&&he(this.value);case"E":return X&&X(this.error);case"C":return ae&&ae()}}accept(he,X,ae){return he&&"function"==typeof he.next?this.observe(he):this.do(he,X,ae)}toObservable(){switch(this.kind){case"N":return(0,M.of)(this.value);case"E":return(0,ce._)(this.error);case"C":return(0,l.c)()}throw new Error("unexpected notification kind value")}static createNext(he){return typeof he<"u"?new de("N",he):de.undefinedValueNotification}static createError(he){return new de("E",void 0,he)}static createComplete(){return de.completeNotification}}de.completeNotification=new de("C"),de.undefinedValueNotification=new de("N",void 0)},882:(et,Ee,j)=>{j.d(Ee,{y:()=>ae});var l=j(7393),ce=j(9181),pe=j(6490),J=j(6554),he=j(4022),X=j(2494);let ae=(()=>{class ee{constructor(ye){this._isScalar=!1,ye&&(this._subscribe=ye)}lift(ye){const xe=new ee;return xe.source=this,xe.operator=ye,xe}subscribe(ye,xe,ge){const{operator:be}=this,Ce=function de(ee,se,ye){if(ee){if(ee instanceof l.L)return ee;if(ee[ce.b])return ee[ce.b]()}return ee||se||ye?new l.L(ee,se,ye):new l.L(pe.c)}(ye,xe,ge);if(Ce.add(be?be.call(Ce,this.source):this.source||X.v.useDeprecatedSynchronousErrorHandling&&!Ce.syncErrorThrowable?this._subscribe(Ce):this._trySubscribe(Ce)),X.v.useDeprecatedSynchronousErrorHandling&&Ce.syncErrorThrowable&&(Ce.syncErrorThrowable=!1,Ce.syncErrorThrown))throw Ce.syncErrorValue;return Ce}_trySubscribe(ye){try{return this._subscribe(ye)}catch(xe){X.v.useDeprecatedSynchronousErrorHandling&&(ye.syncErrorThrown=!0,ye.syncErrorValue=xe),function M(ee){for(;ee;){const{closed:se,destination:ye,isStopped:xe}=ee;if(se||xe)return!1;ee=ye&&ye instanceof l.L?ye:null}return!0}(ye)?ye.error(xe):console.warn(xe)}}forEach(ye,xe){return new(xe=q(xe))((ge,be)=>{let Ce;Ce=this.subscribe(je=>{try{ye(je)}catch(Rt){be(Rt),Ce&&Ce.unsubscribe()}},be,ge)})}_subscribe(ye){const{source:xe}=this;return xe&&xe.subscribe(ye)}[J.L](){return this}pipe(...ye){return 0===ye.length?this:(0,he.U)(ye)(this)}toPromise(ye){return new(ye=q(ye))((xe,ge)=>{let be;this.subscribe(Ce=>be=Ce,Ce=>ge(Ce),()=>xe(be))})}}return ee.create=se=>new ee(se),ee})();function q(ee){if(ee||(ee=X.v.Promise||Promise),!ee)throw new Error("no Promise impl found");return ee}},6490:(et,Ee,j)=>{j.d(Ee,{c:()=>ce});var l=j(2494),M=j(4449);const ce={closed:!0,next(pe){},error(pe){if(l.v.useDeprecatedSynchronousErrorHandling)throw pe;(0,M.z)(pe)},complete(){}}},9765:(et,Ee,j)=>{j.d(Ee,{Yc:()=>he,xQ:()=>X});var l=j(882),M=j(7393),ce=j(3464),pe=j(7971),de=j(8858),J=j(9181);class he extends M.L{constructor(ee){super(ee),this.destination=ee}}let X=(()=>{class q extends l.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[J.b](){return new he(this)}lift(se){const ye=new ae(this,this);return ye.operator=se,ye}next(se){if(this.closed)throw new pe.N;if(!this.isStopped){const{observers:ye}=this,xe=ye.length,ge=ye.slice();for(let be=0;benew ae(ee,se),q})();class ae extends X{constructor(ee,se){super(),this.destination=ee,this.source=se}next(ee){const{destination:se}=this;se&&se.next&&se.next(ee)}error(ee){const{destination:se}=this;se&&se.error&&this.destination.error(ee)}complete(){const{destination:ee}=this;ee&&ee.complete&&this.destination.complete()}_subscribe(ee){const{source:se}=this;return se?this.source.subscribe(ee):ce.w.EMPTY}}},8858:(et,Ee,j)=>{j.d(Ee,{W:()=>M});var l=j(3464);class M extends l.w{constructor(pe,de){super(),this.subject=pe,this.subscriber=de,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const pe=this.subject,de=pe.observers;if(this.subject=null,!de||0===de.length||pe.isStopped||pe.closed)return;const J=de.indexOf(this.subscriber);-1!==J&&de.splice(J,1)}}},7393:(et,Ee,j)=>{j.d(Ee,{L:()=>he});var l=j(9105),M=j(6490),ce=j(3464),pe=j(9181),de=j(2494),J=j(4449);class he extends ce.w{constructor(q,ee,se){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=M.c;break;case 1:if(!q){this.destination=M.c;break}if("object"==typeof q){q instanceof he?(this.syncErrorThrowable=q.syncErrorThrowable,this.destination=q,q.add(this)):(this.syncErrorThrowable=!0,this.destination=new X(this,q));break}default:this.syncErrorThrowable=!0,this.destination=new X(this,q,ee,se)}}[pe.b](){return this}static create(q,ee,se){const ye=new he(q,ee,se);return ye.syncErrorThrowable=!1,ye}next(q){this.isStopped||this._next(q)}error(q){this.isStopped||(this.isStopped=!0,this._error(q))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(q){this.destination.next(q)}_error(q){this.destination.error(q),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:q}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=q,this}}class X extends he{constructor(q,ee,se,ye){super(),this._parentSubscriber=q;let xe,ge=this;(0,l.m)(ee)?xe=ee:ee&&(xe=ee.next,se=ee.error,ye=ee.complete,ee!==M.c&&(ge=Object.create(ee),(0,l.m)(ge.unsubscribe)&&this.add(ge.unsubscribe.bind(ge)),ge.unsubscribe=this.unsubscribe.bind(this))),this._context=ge,this._next=xe,this._error=se,this._complete=ye}next(q){if(!this.isStopped&&this._next){const{_parentSubscriber:ee}=this;de.v.useDeprecatedSynchronousErrorHandling&&ee.syncErrorThrowable?this.__tryOrSetError(ee,this._next,q)&&this.unsubscribe():this.__tryOrUnsub(this._next,q)}}error(q){if(!this.isStopped){const{_parentSubscriber:ee}=this,{useDeprecatedSynchronousErrorHandling:se}=de.v;if(this._error)se&&ee.syncErrorThrowable?(this.__tryOrSetError(ee,this._error,q),this.unsubscribe()):(this.__tryOrUnsub(this._error,q),this.unsubscribe());else if(ee.syncErrorThrowable)se?(ee.syncErrorValue=q,ee.syncErrorThrown=!0):(0,J.z)(q),this.unsubscribe();else{if(this.unsubscribe(),se)throw q;(0,J.z)(q)}}}complete(){if(!this.isStopped){const{_parentSubscriber:q}=this;if(this._complete){const ee=()=>this._complete.call(this._context);de.v.useDeprecatedSynchronousErrorHandling&&q.syncErrorThrowable?(this.__tryOrSetError(q,ee),this.unsubscribe()):(this.__tryOrUnsub(ee),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(q,ee){try{q.call(this._context,ee)}catch(se){if(this.unsubscribe(),de.v.useDeprecatedSynchronousErrorHandling)throw se;(0,J.z)(se)}}__tryOrSetError(q,ee,se){if(!de.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{ee.call(this._context,se)}catch(ye){return de.v.useDeprecatedSynchronousErrorHandling?(q.syncErrorValue=ye,q.syncErrorThrown=!0,!0):((0,J.z)(ye),!0)}return!1}_unsubscribe(){const{_parentSubscriber:q}=this;this._context=null,this._parentSubscriber=null,q.unsubscribe()}}},3464:(et,Ee,j)=>{j.d(Ee,{w:()=>J});var l=j(9796),M=j(1555),ce=j(9105);const de=(()=>{function X(ae){return Error.call(this),this.message=ae?`${ae.length} errors occurred during unsubscription:\n${ae.map((q,ee)=>`${ee+1}) ${q.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=ae,this}return X.prototype=Object.create(Error.prototype),X})();class J{constructor(ae){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,ae&&(this._ctorUnsubscribe=!0,this._unsubscribe=ae)}unsubscribe(){let ae;if(this.closed)return;let{_parentOrParents:q,_ctorUnsubscribe:ee,_unsubscribe:se,_subscriptions:ye}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,q instanceof J)q.remove(this);else if(null!==q)for(let xe=0;xeae.concat(q instanceof de?q.errors:q),[])}J.EMPTY=((X=new J).closed=!0,X)},2494:(et,Ee,j)=>{j.d(Ee,{v:()=>M});let l=!1;const M={Promise:void 0,set useDeprecatedSynchronousErrorHandling(ce){if(ce){const pe=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+pe.stack)}else l&&console.log("RxJS: Back to a better error behavior. Thank you. <3");l=ce},get useDeprecatedSynchronousErrorHandling(){return l}}},5345:(et,Ee,j)=>{j.d(Ee,{Ds:()=>J,IY:()=>pe,ft:()=>X});var l=j(7393),M=j(882),ce=j(9846);class pe extends l.L{constructor(q){super(),this.parent=q}_next(q){this.parent.notifyNext(q)}_error(q){this.parent.notifyError(q),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class J extends l.L{notifyNext(q){this.destination.next(q)}notifyError(q){this.destination.error(q)}notifyComplete(){this.destination.complete()}}function X(ae,q){if(q.closed)return;if(ae instanceof M.y)return ae.subscribe(q);let ee;try{ee=(0,ce.s)(ae)(q)}catch(se){q.error(se)}return ee}},2441:(et,Ee,j)=>{j.d(Ee,{N:()=>J,c:()=>de});var l=j(9765),M=j(882),ce=j(3464),pe=j(1307);class de extends M.y{constructor(ee,se){super(),this.source=ee,this.subjectFactory=se,this._refCount=0,this._isComplete=!1}_subscribe(ee){return this.getSubject().subscribe(ee)}getSubject(){const ee=this._subject;return(!ee||ee.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let ee=this._connection;return ee||(this._isComplete=!1,ee=this._connection=new ce.w,ee.add(this.source.subscribe(new he(this.getSubject(),this))),ee.closed&&(this._connection=null,ee=ce.w.EMPTY)),ee}refCount(){return(0,pe.x)()(this)}}const J=(()=>{const q=de.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:q._subscribe},_isComplete:{value:q._isComplete,writable:!0},getSubject:{value:q.getSubject},connect:{value:q.connect},refCount:{value:q.refCount}}})();class he extends l.Yc{constructor(ee,se){super(ee),this.connectable=se}_error(ee){this._unsubscribe(),super._error(ee)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const ee=this.connectable;if(ee){this.connectable=null;const se=ee._connection;ee._refCount=0,ee._subject=null,ee._connection=null,se&&se.unsubscribe()}}}},4591:(et,Ee,j)=>{j.d(Ee,{aj:()=>ee});var l=j(4869),M=j(9796),ce=j(7393);class pe extends ce.L{notifyNext(ge,be,Ce,je,Rt){this.destination.next(be)}notifyError(ge,be){this.destination.error(ge)}notifyComplete(ge){this.destination.complete()}}class de extends ce.L{constructor(ge,be,Ce){super(),this.parent=ge,this.outerValue=be,this.outerIndex=Ce,this.index=0}_next(ge){this.parent.notifyNext(this.outerValue,ge,this.outerIndex,this.index++,this)}_error(ge){this.parent.notifyError(ge,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var J=j(9846),he=j(882);function X(xe,ge,be,Ce,je=new de(xe,be,Ce)){if(!je.closed)return ge instanceof he.y?ge.subscribe(je):(0,J.s)(ge)(je)}var ae=j(6693);const q={};function ee(...xe){let ge,be;return(0,l.K)(xe[xe.length-1])&&(be=xe.pop()),"function"==typeof xe[xe.length-1]&&(ge=xe.pop()),1===xe.length&&(0,M.k)(xe[0])&&(xe=xe[0]),(0,ae.n)(xe,be).lift(new se(ge))}class se{constructor(ge){this.resultSelector=ge}call(ge,be){return be.subscribe(new ye(ge,this.resultSelector))}}class ye extends pe{constructor(ge,be){super(ge),this.resultSelector=be,this.active=0,this.values=[],this.observables=[]}_next(ge){this.values.push(q),this.observables.push(ge)}_complete(){const ge=this.observables,be=ge.length;if(0===be)this.destination.complete();else{this.active=be,this.toRespond=be;for(let Ce=0;Ce{j.d(Ee,{z:()=>pe});var l=j(5917),M=j(3282);function pe(...de){return function ce(){return(0,M.J)(1)}()((0,l.of)(...de))}},9193:(et,Ee,j)=>{j.d(Ee,{E:()=>M,c:()=>ce});var l=j(882);const M=new l.y(de=>de.complete());function ce(de){return de?function pe(de){return new l.y(J=>de.schedule(()=>J.complete()))}(de):M}},5758:(et,Ee,j)=>{j.d(Ee,{D:()=>J});var l=j(882),M=j(9796),ce=j(8002),pe=j(1555),de=j(6666);function J(...X){if(1===X.length){const ae=X[0];if((0,M.k)(ae))return he(ae,null);if((0,pe.K)(ae)&&Object.getPrototypeOf(ae)===Object.prototype){const q=Object.keys(ae);return he(q.map(ee=>ae[ee]),q)}}if("function"==typeof X[X.length-1]){const ae=X.pop();return he(X=1===X.length&&(0,M.k)(X[0])?X[0]:X,null).pipe((0,ce.U)(q=>ae(...q)))}return he(X,null)}function he(X,ae){return new l.y(q=>{const ee=X.length;if(0===ee)return void q.complete();const se=new Array(ee);let ye=0,xe=0;for(let ge=0;ge{Ce||(Ce=!0,xe++),se[ge]=je},error:je=>q.error(je),complete:()=>{ye++,(ye===ee||!Ce)&&(xe===ee&&q.next(ae?ae.reduce((je,Rt,tn)=>(je[Rt]=se[tn],je),{}):se),q.complete())}}))}})}},6666:(et,Ee,j)=>{j.d(Ee,{D:()=>ge});var l=j(882),M=j(9846),ce=j(3464),pe=j(6554),he=j(4087),X=j(377),ee=j(4072),se=j(9489);function ge(be,Ce){return Ce?function xe(be,Ce){if(null!=be){if(function q(be){return be&&"function"==typeof be[pe.L]}(be))return function de(be,Ce){return new l.y(je=>{const Rt=new ce.w;return Rt.add(Ce.schedule(()=>{const tn=be[pe.L]();Rt.add(tn.subscribe({next(tt){Rt.add(Ce.schedule(()=>je.next(tt)))},error(tt){Rt.add(Ce.schedule(()=>je.error(tt)))},complete(){Rt.add(Ce.schedule(()=>je.complete()))}}))})),Rt})}(be,Ce);if((0,ee.t)(be))return function J(be,Ce){return new l.y(je=>{const Rt=new ce.w;return Rt.add(Ce.schedule(()=>be.then(tn=>{Rt.add(Ce.schedule(()=>{je.next(tn),Rt.add(Ce.schedule(()=>je.complete()))}))},tn=>{Rt.add(Ce.schedule(()=>je.error(tn)))}))),Rt})}(be,Ce);if((0,se.z)(be))return(0,he.r)(be,Ce);if(function ye(be){return be&&"function"==typeof be[X.hZ]}(be)||"string"==typeof be)return function ae(be,Ce){if(!be)throw new Error("Iterable cannot be null");return new l.y(je=>{const Rt=new ce.w;let tn;return Rt.add(()=>{tn&&"function"==typeof tn.return&&tn.return()}),Rt.add(Ce.schedule(()=>{tn=be[X.hZ](),Rt.add(Ce.schedule(function(){if(je.closed)return;let tt,$e;try{const ft=tn.next();tt=ft.value,$e=ft.done}catch(ft){return void je.error(ft)}$e?je.complete():(je.next(tt),this.schedule())}))})),Rt})}(be,Ce)}throw new TypeError((null!==be&&typeof be||be)+" is not observable")}(be,Ce):be instanceof l.y?be:new l.y((0,M.s)(be))}},6693:(et,Ee,j)=>{j.d(Ee,{n:()=>pe});var l=j(882),M=j(5015),ce=j(4087);function pe(de,J){return J?(0,ce.r)(de,J):new l.y((0,M.V)(de))}},2759:(et,Ee,j)=>{j.d(Ee,{R:()=>J});var l=j(882),M=j(9796),ce=j(9105),pe=j(8002);function J(ee,se,ye,xe){return(0,ce.m)(ye)&&(xe=ye,ye=void 0),xe?J(ee,se,ye).pipe((0,pe.U)(ge=>(0,M.k)(ge)?xe(...ge):xe(ge))):new l.y(ge=>{he(ee,se,function be(Ce){ge.next(arguments.length>1?Array.prototype.slice.call(arguments):Ce)},ge,ye)})}function he(ee,se,ye,xe,ge){let be;if(function q(ee){return ee&&"function"==typeof ee.addEventListener&&"function"==typeof ee.removeEventListener}(ee)){const Ce=ee;ee.addEventListener(se,ye,ge),be=()=>Ce.removeEventListener(se,ye,ge)}else if(function ae(ee){return ee&&"function"==typeof ee.on&&"function"==typeof ee.off}(ee)){const Ce=ee;ee.on(se,ye),be=()=>Ce.off(se,ye)}else if(function X(ee){return ee&&"function"==typeof ee.addListener&&"function"==typeof ee.removeListener}(ee)){const Ce=ee;ee.addListener(se,ye),be=()=>Ce.removeListener(se,ye)}else{if(!ee||!ee.length)throw new TypeError("Invalid event target");for(let Ce=0,je=ee.length;Ce{j.d(Ee,{T:()=>de});var l=j(882),M=j(4869),ce=j(3282),pe=j(6693);function de(...J){let he=Number.POSITIVE_INFINITY,X=null,ae=J[J.length-1];return(0,M.K)(ae)?(X=J.pop(),J.length>1&&"number"==typeof J[J.length-1]&&(he=J.pop())):"number"==typeof ae&&(he=J.pop()),null===X&&1===J.length&&J[0]instanceof l.y?J[0]:(0,ce.J)(he)((0,pe.n)(J,X))}},5917:(et,Ee,j)=>{j.d(Ee,{of:()=>pe});var l=j(4869),M=j(6693),ce=j(4087);function pe(...de){let J=de[de.length-1];return(0,l.K)(J)?(de.pop(),(0,ce.r)(de,J)):(0,M.n)(de)}},205:(et,Ee,j)=>{j.d(Ee,{_:()=>M});var l=j(882);function M(pe,de){return new l.y(de?J=>de.schedule(ce,0,{error:pe,subscriber:J}):J=>J.error(pe))}function ce({error:pe,subscriber:de}){de.error(pe)}},4612:(et,Ee,j)=>{j.d(Ee,{b:()=>M});var l=j(9773);function M(ce,pe){return(0,l.zg)(ce,pe,1)}},4395:(et,Ee,j)=>{j.d(Ee,{b:()=>ce});var l=j(7393),M=j(3637);function ce(he,X=M.P){return ae=>ae.lift(new pe(he,X))}class pe{constructor(X,ae){this.dueTime=X,this.scheduler=ae}call(X,ae){return ae.subscribe(new de(X,this.dueTime,this.scheduler))}}class de extends l.L{constructor(X,ae,q){super(X),this.dueTime=ae,this.scheduler=q,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(X){this.clearDebounce(),this.lastValue=X,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(J,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:X}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(X)}}clearDebounce(){const X=this.debouncedSubscription;null!==X&&(this.remove(X),X.unsubscribe(),this.debouncedSubscription=null)}}function J(he){he.debouncedNext()}},5242:(et,Ee,j)=>{j.d(Ee,{d:()=>M});var l=j(7393);function M(de=null){return J=>J.lift(new ce(de))}class ce{constructor(J){this.defaultValue=J}call(J,he){return he.subscribe(new pe(J,this.defaultValue))}}class pe extends l.L{constructor(J,he){super(J),this.defaultValue=he,this.isEmpty=!0}_next(J){this.isEmpty=!1,this.destination.next(J)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}},7460:(et,Ee,j)=>{j.d(Ee,{g:()=>de});var l=j(3637),ce=j(7393),pe=j(3098);function de(ae,q=l.P){const se=function M(ae){return ae instanceof Date&&!isNaN(+ae)}(ae)?+ae-q.now():Math.abs(ae);return ye=>ye.lift(new J(se,q))}class J{constructor(q,ee){this.delay=q,this.scheduler=ee}call(q,ee){return ee.subscribe(new he(q,this.delay,this.scheduler))}}class he extends ce.L{constructor(q,ee,se){super(q),this.delay=ee,this.scheduler=se,this.queue=[],this.active=!1,this.errored=!1}static dispatch(q){const ee=q.source,se=ee.queue,ye=q.scheduler,xe=q.destination;for(;se.length>0&&se[0].time-ye.now()<=0;)se.shift().notification.observe(xe);if(se.length>0){const ge=Math.max(0,se[0].time-ye.now());this.schedule(q,ge)}else this.unsubscribe(),ee.active=!1}_schedule(q){this.active=!0,this.destination.add(q.schedule(he.dispatch,this.delay,{source:this,destination:this.destination,scheduler:q}))}scheduleNotification(q){if(!0===this.errored)return;const ee=this.scheduler,se=new X(ee.now()+this.delay,q);this.queue.push(se),!1===this.active&&this._schedule(ee)}_next(q){this.scheduleNotification(pe.P.createNext(q))}_error(q){this.errored=!0,this.queue=[],this.destination.error(q),this.unsubscribe()}_complete(){this.scheduleNotification(pe.P.createComplete()),this.unsubscribe()}}class X{constructor(q,ee){this.time=q,this.notification=ee}}},5435:(et,Ee,j)=>{j.d(Ee,{h:()=>M});var l=j(7393);function M(de,J){return function(X){return X.lift(new ce(de,J))}}class ce{constructor(J,he){this.predicate=J,this.thisArg=he}call(J,he){return he.subscribe(new pe(J,this.predicate,this.thisArg))}}class pe extends l.L{constructor(J,he,X){super(J),this.predicate=he,this.thisArg=X,this.count=0}_next(J){let he;try{he=this.predicate.call(this.thisArg,J,this.count++)}catch(X){return void this.destination.error(X)}he&&this.destination.next(J)}}},8049:(et,Ee,j)=>{j.d(Ee,{P:()=>he});var l=j(3410),M=j(5435),ce=j(5257),pe=j(5242),de=j(4635),J=j(4487);function he(X,ae){const q=arguments.length>=2;return ee=>ee.pipe(X?(0,M.h)((se,ye)=>X(se,ye,ee)):J.y,(0,ce.q)(1),q?(0,pe.d)(ae):(0,de.T)(()=>new l.K))}},8002:(et,Ee,j)=>{j.d(Ee,{U:()=>M});var l=j(7393);function M(de,J){return function(X){if("function"!=typeof de)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return X.lift(new ce(de,J))}}class ce{constructor(J,he){this.project=J,this.thisArg=he}call(J,he){return he.subscribe(new pe(J,this.project,this.thisArg))}}class pe extends l.L{constructor(J,he,X){super(J),this.project=he,this.count=0,this.thisArg=X||this}_next(J){let he;try{he=this.project.call(this.thisArg,J,this.count++)}catch(X){return void this.destination.error(X)}this.destination.next(he)}}},3282:(et,Ee,j)=>{j.d(Ee,{J:()=>ce});var l=j(9773),M=j(4487);function ce(pe=Number.POSITIVE_INFINITY){return(0,l.zg)(M.y,pe)}},9773:(et,Ee,j)=>{j.d(Ee,{zg:()=>pe});var l=j(8002),M=j(6666),ce=j(5345);function pe(X,ae,q=Number.POSITIVE_INFINITY){return"function"==typeof ae?ee=>ee.pipe(pe((se,ye)=>(0,M.D)(X(se,ye)).pipe((0,l.U)((xe,ge)=>ae(se,xe,ye,ge))),q)):("number"==typeof ae&&(q=ae),ee=>ee.lift(new de(X,q)))}class de{constructor(ae,q=Number.POSITIVE_INFINITY){this.project=ae,this.concurrent=q}call(ae,q){return q.subscribe(new J(ae,this.project,this.concurrent))}}class J extends ce.Ds{constructor(ae,q,ee=Number.POSITIVE_INFINITY){super(ae),this.project=q,this.concurrent=ee,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(ae){this.active0?this._next(ae.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},1307:(et,Ee,j)=>{j.d(Ee,{x:()=>M});var l=j(7393);function M(){return function(J){return J.lift(new ce(J))}}class ce{constructor(J){this.connectable=J}call(J,he){const{connectable:X}=this;X._refCount++;const ae=new pe(J,X),q=he.subscribe(ae);return ae.closed||(ae.connection=X.connect()),q}}class pe extends l.L{constructor(J,he){super(J),this.connectable=he}_unsubscribe(){const{connectable:J}=this;if(!J)return void(this.connection=null);this.connectable=null;const he=J._refCount;if(he<=0)return void(this.connection=null);if(J._refCount=he-1,he>1)return void(this.connection=null);const{connection:X}=this,ae=J._connection;this.connection=null,ae&&(!X||ae===X)&&ae.unsubscribe()}}},4121:(et,Ee,j)=>{j.d(Ee,{B:()=>he});var l=j(2441);class ce{constructor(ae,q){this.subjectFactory=ae,this.selector=q}call(ae,q){const{selector:ee}=this,se=this.subjectFactory(),ye=ee(se).subscribe(ae);return ye.add(q.subscribe(se)),ye}}var pe=j(1307),de=j(9765);function J(){return new de.xQ}function he(){return X=>(0,pe.x)()(function M(X,ae){return function(ee){let se;if(se="function"==typeof X?X:function(){return X},"function"==typeof ae)return ee.lift(new ce(se,ae));const ye=Object.create(ee,l.N);return ye.source=ee,ye.subjectFactory=se,ye}}(J)(X))}},9761:(et,Ee,j)=>{j.d(Ee,{O:()=>ce});var l=j(6481),M=j(4869);function ce(...pe){const de=pe[pe.length-1];return(0,M.K)(de)?(pe.pop(),J=>(0,l.z)(pe,J,de)):J=>(0,l.z)(pe,J)}},3190:(et,Ee,j)=>{j.d(Ee,{w:()=>pe});var l=j(8002),M=j(6666),ce=j(5345);function pe(he,X){return"function"==typeof X?ae=>ae.pipe(pe((q,ee)=>(0,M.D)(he(q,ee)).pipe((0,l.U)((se,ye)=>X(q,se,ee,ye))))):ae=>ae.lift(new de(he))}class de{constructor(X){this.project=X}call(X,ae){return ae.subscribe(new J(X,this.project))}}class J extends ce.Ds{constructor(X,ae){super(X),this.project=ae,this.index=0}_next(X){let ae;const q=this.index++;try{ae=this.project(X,q)}catch(ee){return void this.destination.error(ee)}this._innerSub(ae)}_innerSub(X){const ae=this.innerSubscription;ae&&ae.unsubscribe();const q=new ce.IY(this),ee=this.destination;ee.add(q),this.innerSubscription=(0,ce.ft)(X,q),this.innerSubscription!==q&&ee.add(this.innerSubscription)}_complete(){const{innerSubscription:X}=this;(!X||X.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(X){this.destination.next(X)}}},5257:(et,Ee,j)=>{j.d(Ee,{q:()=>pe});var l=j(7393),M=j(7108),ce=j(9193);function pe(he){return X=>0===he?(0,ce.c)():X.lift(new de(he))}class de{constructor(X){if(this.total=X,this.total<0)throw new M.W}call(X,ae){return ae.subscribe(new J(X,this.total))}}class J extends l.L{constructor(X,ae){super(X),this.total=ae,this.count=0}_next(X){const ae=this.total,q=++this.count;q<=ae&&(this.destination.next(X),q===ae&&(this.destination.complete(),this.unsubscribe()))}}},6782:(et,Ee,j)=>{j.d(Ee,{R:()=>M});var l=j(5345);function M(de){return J=>J.lift(new ce(de))}class ce{constructor(J){this.notifier=J}call(J,he){const X=new pe(J),ae=(0,l.ft)(this.notifier,new l.IY(X));return ae&&!X.seenValue?(X.add(ae),he.subscribe(X)):X}}class pe extends l.Ds{constructor(J){super(J),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}},6239:(et,Ee,j)=>{j.d(Ee,{b:()=>pe});var l=j(7393);function M(){}var ce=j(9105);function pe(he,X,ae){return function(ee){return ee.lift(new de(he,X,ae))}}class de{constructor(X,ae,q){this.nextOrObserver=X,this.error=ae,this.complete=q}call(X,ae){return ae.subscribe(new J(X,this.nextOrObserver,this.error,this.complete))}}class J extends l.L{constructor(X,ae,q,ee){super(X),this._tapNext=M,this._tapError=M,this._tapComplete=M,this._tapError=q||M,this._tapComplete=ee||M,(0,ce.m)(ae)?(this._context=this,this._tapNext=ae):ae&&(this._context=ae,this._tapNext=ae.next||M,this._tapError=ae.error||M,this._tapComplete=ae.complete||M)}_next(X){try{this._tapNext.call(this._context,X)}catch(ae){return void this.destination.error(ae)}this.destination.next(X)}_error(X){try{this._tapError.call(this._context,X)}catch(ae){return void this.destination.error(ae)}this.destination.error(X)}_complete(){try{this._tapComplete.call(this._context)}catch(X){return void this.destination.error(X)}return this.destination.complete()}}},4635:(et,Ee,j)=>{j.d(Ee,{T:()=>ce});var l=j(3410),M=j(7393);function ce(he=J){return X=>X.lift(new pe(he))}class pe{constructor(X){this.errorFactory=X}call(X,ae){return ae.subscribe(new de(X,this.errorFactory))}}class de extends M.L{constructor(X,ae){super(X),this.errorFactory=ae,this.hasValue=!1}_next(X){this.hasValue=!0,this.destination.next(X)}_complete(){if(this.hasValue)return this.destination.complete();{let X;try{X=this.errorFactory()}catch(ae){X=ae}this.destination.error(X)}}}function J(){return new l.K}},4087:(et,Ee,j)=>{j.d(Ee,{r:()=>ce});var l=j(882),M=j(3464);function ce(pe,de){return new l.y(J=>{const he=new M.w;let X=0;return he.add(de.schedule(function(){X!==pe.length?(J.next(pe[X++]),J.closed||he.add(this.schedule())):J.complete()})),he})}},3989:(et,Ee,j)=>{j.d(Ee,{o:()=>ce});var l=j(3464);class M extends l.w{constructor(de,J){super()}schedule(de,J=0){return this}}class ce extends M{constructor(de,J){super(de,J),this.scheduler=de,this.work=J,this.pending=!1}schedule(de,J=0){if(this.closed)return this;this.state=de;const he=this.id,X=this.scheduler;return null!=he&&(this.id=this.recycleAsyncId(X,he,J)),this.pending=!0,this.delay=J,this.id=this.id||this.requestAsyncId(X,this.id,J),this}requestAsyncId(de,J,he=0){return setInterval(de.flush.bind(de,this),he)}recycleAsyncId(de,J,he=0){if(null!==he&&this.delay===he&&!1===this.pending)return J;clearInterval(J)}execute(de,J){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const he=this._execute(de,J);if(he)return he;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(de,J){let X,he=!1;try{this.work(de)}catch(ae){he=!0,X=!!ae&&ae||new Error(ae)}if(he)return this.unsubscribe(),X}_unsubscribe(){const de=this.id,J=this.scheduler,he=J.actions,X=he.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==X&&he.splice(X,1),null!=de&&(this.id=this.recycleAsyncId(J,de,null)),this.delay=null}}},6493:(et,Ee,j)=>{j.d(Ee,{v:()=>M});let l=(()=>{class ce{constructor(de,J=ce.now){this.SchedulerAction=de,this.now=J}schedule(de,J=0,he){return new this.SchedulerAction(this,de).schedule(he,J)}}return ce.now=()=>Date.now(),ce})();class M extends l{constructor(pe,de=l.now){super(pe,()=>M.delegate&&M.delegate!==this?M.delegate.now():de()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(pe,de=0,J){return M.delegate&&M.delegate!==this?M.delegate.schedule(pe,de,J):super.schedule(pe,de,J)}flush(pe){const{actions:de}=this;if(this.active)return void de.push(pe);let J;this.active=!0;do{if(J=pe.execute(pe.state,pe.delay))break}while(pe=de.shift());if(this.active=!1,J){for(;pe=de.shift();)pe.unsubscribe();throw J}}}},3637:(et,Ee,j)=>{j.d(Ee,{P:()=>pe});var l=j(3989);const pe=new(j(6493).v)(l.o)},377:(et,Ee,j)=>{j.d(Ee,{hZ:()=>M});const M=function l(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},6554:(et,Ee,j)=>{j.d(Ee,{L:()=>l});const l="function"==typeof Symbol&&Symbol.observable||"@@observable"},9181:(et,Ee,j)=>{j.d(Ee,{b:()=>l});const l="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},7108:(et,Ee,j)=>{j.d(Ee,{W:()=>M});const M=(()=>{function ce(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return ce.prototype=Object.create(Error.prototype),ce})()},3410:(et,Ee,j)=>{j.d(Ee,{K:()=>M});const M=(()=>{function ce(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return ce.prototype=Object.create(Error.prototype),ce})()},7971:(et,Ee,j)=>{j.d(Ee,{N:()=>M});const M=(()=>{function ce(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return ce.prototype=Object.create(Error.prototype),ce})()},4449:(et,Ee,j)=>{function l(M){setTimeout(()=>{throw M},0)}j.d(Ee,{z:()=>l})},4487:(et,Ee,j)=>{function l(M){return M}j.d(Ee,{y:()=>l})},9796:(et,Ee,j)=>{j.d(Ee,{k:()=>l});const l=Array.isArray||(M=>M&&"number"==typeof M.length)},9489:(et,Ee,j)=>{j.d(Ee,{z:()=>l});const l=M=>M&&"number"==typeof M.length&&"function"!=typeof M},9105:(et,Ee,j)=>{function l(M){return"function"==typeof M}j.d(Ee,{m:()=>l})},1555:(et,Ee,j)=>{function l(M){return null!==M&&"object"==typeof M}j.d(Ee,{K:()=>l})},4072:(et,Ee,j)=>{function l(M){return!!M&&"function"!=typeof M.subscribe&&"function"==typeof M.then}j.d(Ee,{t:()=>l})},4869:(et,Ee,j)=>{function l(M){return M&&"function"==typeof M.schedule}j.d(Ee,{K:()=>l})},4022:(et,Ee,j)=>{j.d(Ee,{U:()=>ce,z:()=>M});var l=j(4487);function M(...pe){return ce(pe)}function ce(pe){return 0===pe.length?l.y:1===pe.length?pe[0]:function(J){return pe.reduce((he,X)=>X(he),J)}}},9846:(et,Ee,j)=>{j.d(Ee,{s:()=>ee});var l=j(5015),M=j(4449),pe=j(377),J=j(6554),X=j(9489),ae=j(4072),q=j(1555);const ee=se=>{if(se&&"function"==typeof se[J.L])return(se=>ye=>{const xe=se[J.L]();if("function"!=typeof xe.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return xe.subscribe(ye)})(se);if((0,X.z)(se))return(0,l.V)(se);if((0,ae.t)(se))return(se=>ye=>(se.then(xe=>{ye.closed||(ye.next(xe),ye.complete())},xe=>ye.error(xe)).then(null,M.z),ye))(se);if(se&&"function"==typeof se[pe.hZ])return(se=>ye=>{const xe=se[pe.hZ]();for(;;){let ge;try{ge=xe.next()}catch(be){return ye.error(be),ye}if(ge.done){ye.complete();break}if(ye.next(ge.value),ye.closed)break}return"function"==typeof xe.return&&ye.add(()=>{xe.return&&xe.return()}),ye})(se);{const xe=`You provided ${(0,q.K)(se)?"an invalid object":`'${se}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(xe)}}},5015:(et,Ee,j)=>{j.d(Ee,{V:()=>l});const l=M=>ce=>{for(let pe=0,de=M.length;pe{j.d(Ee,{q:()=>de});var l=j(6799),M=j(92),ce=j(8692),pe=j(4537);let de=(()=>{class J{}return J.\u0275fac=function(X){return new(X||J)},J.\u0275mod=pe.oAB({type:J}),J.\u0275inj=pe.cJS({imports:[l.K6A,M.u5,M.UX,ce.ez]}),J})()},6302:(et,Ee,j)=>{j.d(Ee,{c:()=>ce});var l=j(9765),M=j(4537);let ce=(()=>{class pe{constructor(){this.alertSource=new l.xQ,this.alert$=this.alertSource.asObservable()}alert(J){this.alertSource.next(J)}}return pe.\u0275fac=function(J){return new(J||pe)},pe.\u0275prov=M.Yz7({token:pe,factory:pe.\u0275fac,providedIn:"root"}),pe})()},6895:(et,Ee,j)=>{j.d(Ee,{N:()=>ce});var l=j(9765),M=j(4537);let ce=(()=>{class pe{constructor(){this.progressSource=new l.xQ,this.progress$=this.progressSource.asObservable()}progress(J){this.progressSource.next(J)}}return pe.\u0275fac=function(J){return new(J||pe)},pe.\u0275prov=M.Yz7({token:pe,factory:pe.\u0275fac,providedIn:"root"}),pe})()},7306:(et,Ee,j)=>{var l=j(5998),M=j(4537),ce=j(7223);const pe=[{path:"",redirectTo:"examples",pathMatch:"full"},{path:"examples",loadChildren:()=>j.e(384).then(j.bind(j,1384)).then(S=>S.RouteBookmarksModule)},{path:"example-layers",loadChildren:()=>Promise.all([j.e(839),j.e(108),j.e(592),j.e(788)]).then(j.bind(j,5788)).then(S=>S.RouteMapModule),data:{title:"Layers",description:"Example shows how to work with UKIS layers, groups and the layer-service.",img:"assets/route-layers.jpg"}},{path:"example-projection",loadChildren:()=>Promise.all([j.e(839),j.e(592),j.e(546)]).then(j.bind(j,3546)).then(S=>S.RouteMap2Module),data:{title:"Projection",description:"Example shows how to work with projections using ukis-projection-switch from @dlr-eoc/map-tools.",img:"assets/route-projection.jpg"}},{path:"example-events",loadChildren:()=>Promise.all([j.e(839),j.e(592),j.e(523)]).then(j.bind(j,523)).then(S=>S.RouteMap3Module),data:{title:"Events",description:"Example of map and layer events e.g. to show a loading bar or create a grid layer based on zoom.",img:"assets/route-events.jpg"}},{path:"example-custom-layers",loadChildren:()=>Promise.all([j.e(839),j.e(230),j.e(408),j.e(592),j.e(633)]).then(j.bind(j,4633)).then(S=>S.RouteMap4Module),data:{title:"Custom Layers",description:"Example how to use UKIS custom layer e.g. use OpenLayers instances directly, bind events, styles and renderers.",img:"assets/route-custom-layers.jpg"}},{path:"example-owc-layers",loadChildren:()=>Promise.all([j.e(839),j.e(108),j.e(359)]).then(j.bind(j,6359)).then(S=>S.RouteExampleOwcLayersModule),data:{title:"OWS Context layers",description:'Example how to declaratively configure layers in a json structure to save and exchange this state. This is using the "OWS Context GeoJSON format". The example context are sored in projects/shared-assets/owc.',img:"assets/route-ows-context.jpg"}},{path:"example-layout",loadChildren:()=>Promise.all([j.e(839),j.e(537)]).then(j.bind(j,7175)).then(S=>S.RouteMap5Module),data:{title:"Two Vertical-Nav Layout",description:'Example shows how to use "Clarity Vertical Nav" on both sides and a footer. This should not be used when working on smaller screens. See also "Clarity Design System" Responsive navigation.',img:"assets/route-2-nav.jpg"}},{path:"example-layer-style",loadChildren:()=>Promise.all([j.e(839),j.e(514)]).then(j.bind(j,8514)).then(S=>S.RouteMap6Module),data:{title:"Switching Layer-Style",description:'The example shows how styles for "WMS" and "WMTS" are switched dynamically.',img:"assets/route-style-switch.jpg"}},{path:"ol-performance",loadChildren:()=>Promise.all([j.e(839),j.e(189)]).then(j.bind(j,1189)).then(S=>S.RouteMap7Module),data:{title:"Ol-Performance",description:"Example to messure/check performance on layer rendering.",img:"assets/route-performance.jpg"}},{path:"threejs",loadChildren:()=>Promise.all([j.e(839),j.e(230),j.e(592),j.e(861)]).then(j.bind(j,4861)).then(S=>S.RouteExampleThreejsModule),data:{title:"Threejs",description:"This example shows a Threejs map connected to a OpenLayers map e.g. to display a globe and a flat map side by side.",img:"assets/route-threejs.jpg"}},{path:"cesium",loadChildren:()=>Promise.all([j.e(839),j.e(408),j.e(928)]).then(j.bind(j,5928)).then(S=>S.RouteCesiumModule),data:{title:"Cesium",description:"This example shows a cesium map and switch to OpenLayers map",img:"assets/route-cesium.jpg"}},{path:"licenses",loadChildren:()=>j.e(68).then(j.bind(j,5068)).then(S=>S.RouteLicensesModule),data:{title:"Licenses",description:'This example renders all used dependencies specified in assets/licenses.json which are created with "license-checker"',img:"assets/route-licenses.jpg"}}];let de=(()=>{class S{}return S.\u0275fac=function(y){return new(y||S)},S.\u0275mod=M.oAB({type:S}),S.\u0275inj=M.cJS({imports:[ce.Bz.forRoot(pe,{useHash:!0,preloadingStrategy:ce.wm,relativeLinkResolution:"legacy"}),ce.Bz]}),S})();typeof window<"u"&&window.hasOwnProperty("ClarityIcons")&&window.ClarityIcons.add({ukis:'\n \n ukis\n \n \n \n \n \n ',dlr:'\n \n dlr\n \n \n ',eoc:'\n \n eoc\n \n \n '});const X=JSON.parse('{"i8":"12.0.0-alpha.2"}').i8;var ae=j(5435),q=j(6302),ee=j(6895),se=j(8692),ye=j(6799);function xe(S,_){if(1&S&&(M.TgZ(0,"span",12),M._uU(1),M.qZA()),2&S){const y=M.oxw();M.xp6(1),M.Oqu(y.version)}}const ge=[[["",8,"header-nav-el"]],"*",[["",8,"header-action-el"]]],be=function(S){return{"short-title":S}},Ce=[".header-nav-el","*",".header-action-el"];let je=(()=>{class S{constructor(){this.title="",this.shortTitle="",this.version=""}ngOnInit(){}}return S.\u0275fac=function(y){return new(y||S)},S.\u0275cmp=M.Xpm({type:S,selectors:[["ukis-header"]],inputs:{title:["ukis-title","title"],shortTitle:["ukis-short-title","shortTitle"],version:["ukis-version","version"]},ngContentSelectors:Ce,decls:17,vars:9,consts:[[1,"header-1"],[1,"branding",3,"ngClass"],["href","https://www.dlr.de","target","_blank","alt","link to dlr"],["shape","dlr","size","48","alt","dlr icon",1,"is-solid"],["href","https://www.dlr.de/eoc/desktopdefault.aspx/tabid-5413/10560_read-21914","target","_blank","alt","link to dlr ukis"],["shape","ukis","size","33","alt","ukis icon",1,"is-solid"],["routerLink","/","routerLinkActive","active",1,"nav-link"],[1,"title",3,"title"],[1,"title","short",3,"title"],["class","version",4,"ngIf"],[1,"header-nav",3,"clr-nav-level"],[1,"header-actions"],[1,"version"]],template:function(y,E){1&y&&(M.F$t(ge),M.TgZ(0,"clr-header",0)(1,"div",1)(2,"a",2),M._UZ(3,"clr-icon",3),M.qZA(),M.TgZ(4,"a",4),M._UZ(5,"clr-icon",5),M.qZA(),M.TgZ(6,"a",6)(7,"span",7),M._uU(8),M.qZA(),M.TgZ(9,"span",8),M._uU(10),M.qZA()(),M.YNc(11,xe,2,1,"span",9),M.qZA(),M.TgZ(12,"div",10),M.Hsn(13),M.qZA(),M.Hsn(14,1),M.TgZ(15,"div",11),M.Hsn(16,2),M.qZA()()),2&y&&(M.xp6(1),M.Q6J("ngClass",M.VKq(7,be,E.shortTitle)),M.xp6(6),M.Q6J("title",E.title),M.xp6(1),M.Oqu(E.title),M.xp6(1),M.Q6J("title",E.title),M.xp6(1),M.Oqu(E.shortTitle),M.xp6(1),M.Q6J("ngIf",E.version),M.xp6(1),M.Q6J("clr-nav-level",1))},dependencies:[se.mk,se.O5,ce.yS,ce.Od,ye.qvL,ye.uUW,ye.saT,ye.toC]}),S})();function Rt(S,_){if(1&S){const y=M.EpF();M.TgZ(0,"button",11),M.NdJ("click",function(){const H=M.CHM(y).$implicit;return M.KtG(H.callback&&H.callback())}),M._uU(1),M.qZA()}if(2&S){const y=_.$implicit;M.xp6(1),M.Oqu(y.title)}}function tn(S,_){if(1&S&&(M.TgZ(0,"div",9),M.YNc(1,Rt,2,1,"button",10),M.qZA()),2&S){const y=M.oxw(2);M.xp6(1),M.Q6J("ngForOf",y.alert.actions)}}function tt(S,_){if(1&S){const y=M.EpF();M.TgZ(0,"button",12),M.NdJ("click",function(){M.CHM(y);const R=M.oxw(2);return M.KtG(R.close())}),M._UZ(1,"clr-icon",13),M.qZA()}}function $e(S,_){if(1&S&&(M.TgZ(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4),M._UZ(4,"clr-icon",5),M.qZA(),M._UZ(5,"div",6),M.YNc(6,tn,2,1,"div",7),M.qZA()(),M.YNc(7,tt,2,0,"button",8),M.qZA()),2&S){const y=M.oxw();M.Q6J("ngClass","alert-"+y.alert.type),M.xp6(5),M.Q6J("innerHTML",y.alert.text,M.oJD),M.xp6(1),M.Q6J("ngIf",y.alert.actions),M.xp6(1),M.Q6J("ngIf",y.alert.closeable)}}let ft=(()=>{class S{constructor(){this.alertChange=new M.vpe}close(){this.alert=null,this.alertChange.emit(this.alert)}}return S.\u0275fac=function(y){return new(y||S)},S.\u0275cmp=M.Xpm({type:S,selectors:[["ukis-global-alert"]],inputs:{alert:"alert"},outputs:{alertChange:"alertChange"},decls:1,vars:1,consts:[["class","alert alert-app-level","role","alert",3,"ngClass",4,"ngIf"],["role","alert",1,"alert","alert-app-level",3,"ngClass"],[1,"alert-items"],[1,"alert-item","static"],[1,"alert-icon-wrapper"],["shape","info-circle",1,"alert-icon"],[1,"alert-text",3,"innerHTML"],["class","alert-actions",4,"ngIf"],["type","button","class","close","aria-label","alert close",3,"click",4,"ngIf"],[1,"alert-actions"],["class","btn alert-action","aria-label","alert action",3,"click",4,"ngFor","ngForOf"],["aria-label","alert action",1,"btn","alert-action",3,"click"],["type","button","aria-label","alert close",1,"close",3,"click"],["aria-hidden","true","shape","close"]],template:function(y,E){1&y&&M.YNc(0,$e,8,4,"div",0),2&y&&M.Q6J("ngIf",E.alert)},dependencies:[se.mk,se.sg,se.O5,ye.I9z,ye.qvL]}),S})();function Ht(S,_){if(1&S&&(M.TgZ(0,"span")(1,"div",1),M._UZ(2,"progress"),M.qZA()()),2&S){const y=M.oxw();M.xp6(1),M.Q6J("ngClass",y.getProgressClass())}}function rr(S,_){if(1&S&&(M.TgZ(0,"span")(1,"div",2),M._UZ(2,"progress",3),M.qZA()()),2&S){const y=M.oxw();M.xp6(1),M.Q6J("ngClass",y.getProgressClass()),M.xp6(1),M.s9C("max",y.progress.max),M.s9C("value",y.progress.value)}}let $t=(()=>{class S{constructor(){this.progressChange=new M.vpe}ngOnInit(){}getProgressClass(){return this.progress?.class?this.progress?.class:""}}return S.\u0275fac=function(y){return new(y||S)},S.\u0275cmp=M.Xpm({type:S,selectors:[["ukis-global-progress"]],inputs:{progress:"progress"},outputs:{progressChange:"progressChange"},decls:2,vars:2,consts:[[4,"ngIf"],[1,"progress","loop",3,"ngClass"],[1,"progress",3,"ngClass"],[3,"max","value"]],template:function(y,E){1&y&&(M.YNc(0,Ht,3,1,"span",0),M.YNc(1,rr,3,3,"span",0)),2&y&&(M.Q6J("ngIf",E.progress&&E.progress.indeterminate),M.xp6(1),M.Q6J("ngIf",E.progress&&!E.progress.indeterminate))},dependencies:[se.mk,se.O5],styles:[".progress[_ngcontent-%COMP%]{height:.5em}"]}),S})();function it(S,_){if(1&S){const y=M.EpF();M.TgZ(0,"ukis-global-alert",5),M.NdJ("alertChange",function(R){M.CHM(y);const H=M.oxw();return M.KtG(H.ui.alert=R)}),M.qZA()}if(2&S){const y=M.oxw();M.Q6J("alert",y.ui.alert)}}function Wt(S,_){if(1&S){const y=M.EpF();M.TgZ(0,"ukis-global-progress",6),M.NdJ("progressChange",function(R){M.CHM(y);const H=M.oxw();return M.KtG(H.ui.progress=R)}),M.qZA()}if(2&S){const y=M.oxw();M.Q6J("progress",y.ui.progress)}}function yt(S,_){if(1&S&&(M.TgZ(0,"a",9),M._uU(1),M.qZA()),2&S){const y=M.oxw().$implicit;M.MGl("routerLink","/",y.path,""),M.xp6(1),M.Oqu(y.data.title)}}function Gt(S,_){if(1&S&&(M.ynx(0,7),M.YNc(1,yt,2,2,"a",8),M.BQk()),2&S){const y=_.$implicit,E=M.oxw();M.xp6(1),M.Q6J("ngIf",E.currentRoute===y.path)}}let st=(()=>{class S{constructor(y,E,R){this.alertService=y,this.progressService=E,this.router=R,this.title="",this.shortTitle="",this.version=X||null,this.ui={alert:null,progress:null},this.subs=[],this.showProgress=H=>{this.ui.progress=H},this.setAlert=H=>{this.ui.alert=H},this.init(),this.routes=this.router.config.filter(H=>H.data)}ngOnInit(){const y=this.router.events.pipe((0,ae.h)(E=>E instanceof ce.m2||E instanceof ce.OD)).subscribe(E=>{const R=new URL(E.url,`${window.location.origin}${window.location.pathname}`);this.currentRoute="/examples"!==R.pathname?R.pathname.slice(1):null});this.subs.push(y)}ngOnDestroy(){this.subs.map(y=>y.unsubscribe())}init(){this.getHtmlMeta(["title","version","description","short-title"]),this.TITLE&&(this.title=this.TITLE),this["SHORT-TITLE"]&&(this.shortTitle=this["SHORT-TITLE"]),this.alertService.alert$.subscribe(y=>{this.setAlert(y)}),this.progressService.progress$.subscribe(y=>{this.showProgress(y)})}getHtmlMeta(y){const E=document.getElementsByTagName("meta");for(let R=0,H=E.length;R{const We=Ve.get("offset"),rt=We==fe,vt=rt&&De||new Map;Ve.forEach((pt,_t)=>{let nn=_t,jt=pt;if("offset"!==_t)switch(nn=_.normalizePropertyName(nn,Y),jt){case _e.k1:jt=R.get(_t);break;case _e.l3:jt=H.get(_t);break;default:jt=_.normalizeStyleValue(_t,nn,jt,Y)}vt.set(nn,jt)}),rt||K.push(vt),De=vt,fe=We}),Y.length)throw function Xi(S){return new M.vHH(3502,!1)}();return K}function nr(S,_,y,E){switch(_){case"start":S.onStart(()=>E(y&&Nn(y,"start",S)));break;case"done":S.onDone(()=>E(y&&Nn(y,"done",S)));break;case"destroy":S.onDestroy(()=>E(y&&Nn(y,"destroy",S)))}}function Nn(S,_,y){const H=pn(S.element,S.triggerName,S.fromState,S.toState,_||S.phaseName,y.totalTime??S.totalTime,!!y.disabled),Y=S._data;return null!=Y&&(H._data=Y),H}function pn(S,_,y,E,R="",H=0,Y){return{element:S,triggerName:_,fromState:y,toState:E,phaseName:R,totalTime:H,disabled:!!Y}}function dt(S,_,y){let E=S.get(_);return E||S.set(_,E=y),E}function Rn(S){const _=S.indexOf(":");return[S.substring(1,_),S.slice(_+1)]}let Cr=(S,_)=>!1,pr=(S,_,y)=>[],Ts=null;function Ai(S){const _=S.parentNode||S.host;return _===Ts?null:_}(It()||typeof Element<"u")&&(yr()?(Ts=(()=>document.documentElement)(),Cr=(S,_)=>{for(;_;){if(_===S)return!0;_=Ai(_)}return!1}):Cr=(S,_)=>S.contains(_),pr=(S,_,y)=>{if(y)return Array.from(S.querySelectorAll(_));const E=S.querySelector(_);return E?[E]:[]});let Tn=null,zn=!1;const re=Cr,te=pr;let me=(()=>{class S{validateStyleProperty(y){return function hi(S){Tn||(Tn=function ir(){return typeof document<"u"?document.body:null}()||{},zn=!!Tn.style&&"WebkitAppearance"in Tn.style);let _=!0;return Tn.style&&!function en(S){return"ebkit"==S.substring(1,6)}(S)&&(_=S in Tn.style,!_&&zn&&(_="Webkit"+S.charAt(0).toUpperCase()+S.slice(1)in Tn.style)),_}(y)}matchesElement(y,E){return!1}containsElement(y,E){return re(y,E)}getParentElement(y){return Ai(y)}query(y,E,R){return te(y,E,R)}computeStyle(y,E,R){return R||""}animate(y,E,R,H,Y,K=[],fe){return new _e.ZN(R,H)}}return S.\u0275fac=function(y){return new(y||S)},S.\u0275prov=M.Yz7({token:S,factory:S.\u0275fac}),S})(),ke=(()=>{class S{}return S.NOOP=new me,S})();const xn="ng-enter",Ur="ng-leave",wt="ng-trigger",Jr=".ng-trigger",Ii="ng-animating",fi=".ng-animating";function Un(S){if("number"==typeof S)return S;const _=S.match(/^(-?[\.\d]+)(m?s)/);return!_||_.length<2?0:Ln(parseFloat(_[1]),_[2])}function Ln(S,_){return"s"===_?1e3*S:S}function Kn(S,_,y){return S.hasOwnProperty("duration")?S:function Kr(S,_,y){let R,H=0,Y="";if("string"==typeof S){const K=S.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===K)return _.push(Le()),{duration:0,delay:0,easing:""};R=Ln(parseFloat(K[1]),K[2]);const fe=K[3];null!=fe&&(H=Ln(parseFloat(fe),K[4]));const De=K[5];De&&(Y=De)}else R=S;if(!y){let K=!1,fe=_.length;R<0&&(_.push(function Ne(){return new M.vHH(3100,!1)}()),K=!0),H<0&&(_.push(function Be(){return new M.vHH(3101,!1)}()),K=!0),K&&_.splice(fe,0,Le())}return{duration:R,delay:H,easing:Y}}(S,_,y)}function cr(S,_={}){return Object.keys(S).forEach(y=>{_[y]=S[y]}),_}function pi(S){const _=new Map;return Object.keys(S).forEach(y=>{_.set(y,S[y])}),_}function xr(S,_=new Map,y){if(y)for(let[E,R]of y)_.set(E,R);for(let[E,R]of S)_.set(E,R);return _}function Rr(S,_,y){return y?_+":"+y+";":""}function gr(S){let _="";for(let y=0;y{const H=on(R);y&&!y.has(R)&&y.set(R,S.style[H]),S.style[H]=E}),It()&&gr(S))}function ur(S,_){S.style&&(_.forEach((y,E)=>{const R=on(E);S.style[R]=""}),It()&&gr(S))}function Xn(S){return Array.isArray(S)?1==S.length?S[0]:(0,_e.vP)(S):S}const Fn=new RegExp("{{\\s*(.+?)\\s*}}","g");function As(S){let _=[];if("string"==typeof S){let y;for(;y=Fn.exec(S);)_.push(y[1]);Fn.lastIndex=0}return _}function Vn(S,_,y){const E=S.toString(),R=E.replace(Fn,(H,Y)=>{let K=_[Y];return null==K&&(y.push(function mt(S){return new M.vHH(3003,!1)}()),K=""),K.toString()});return R==E?S:R}function dr(S){const _=[];let y=S.next();for(;!y.done;)_.push(y.value),y=S.next();return _}const Xr=/-+([a-z0-9])/g;function on(S){return S.replace(Xr,(..._)=>_[1].toUpperCase())}function Js(S){return S.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Et(S,_,y){switch(_.type){case 7:return S.visitTrigger(_,y);case 0:return S.visitState(_,y);case 1:return S.visitTransition(_,y);case 2:return S.visitSequence(_,y);case 3:return S.visitGroup(_,y);case 4:return S.visitAnimate(_,y);case 5:return S.visitKeyframes(_,y);case 6:return S.visitStyle(_,y);case 8:return S.visitReference(_,y);case 9:return S.visitAnimateChild(_,y);case 10:return S.visitAnimateRef(_,y);case 11:return S.visitQuery(_,y);case 12:return S.visitStagger(_,y);default:throw function Tt(S){return new M.vHH(3004,!1)}()}}function es(S,_){return window.getComputedStyle(S)[_]}function xs(S,_){const y=[];return"string"==typeof S?S.split(/\s*,\s*/).forEach(E=>function qo(S,_,y){if(":"==S[0]){const fe=function Io(S,_){switch(S){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(y,E)=>parseFloat(E)>parseFloat(y);case":decrement":return(y,E)=>parseFloat(E) *"}}(S,y);if("function"==typeof fe)return void _.push(fe);S=fe}const E=S.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==E||E.length<4)return y.push(function ze(S){return new M.vHH(3015,!1)}()),_;const R=E[1],H=E[2],Y=E[3];_.push(Ia(R,Y));"<"==H[0]&&!("*"==R&&"*"==Y)&&_.push(Ia(Y,R))}(E,y,_)):y.push(S),y}const xo=new Set(["true","1"]),Ms=new Set(["false","0"]);function Ia(S,_){const y=xo.has(S)||Ms.has(S),E=xo.has(_)||Ms.has(_);return(R,H)=>{let Y="*"==S||S==R,K="*"==_||_==H;return!Y&&y&&"boolean"==typeof R&&(Y=R?xo.has(S):Ms.has(S)),!K&&E&&"boolean"==typeof H&&(K=H?xo.has(_):Ms.has(_)),Y&&K}}const Jo=new RegExp("s*:selfs*,?","g");function ei(S,_,y,E){return new Ks(S).build(_,y,E)}class Ks{constructor(_){this._driver=_}build(_,y,E){const R=new Gr(y);return this._resetContextStyleTimingState(R),Et(this,Xn(_),R)}_resetContextStyleTimingState(_){_.currentQuerySelector="",_.collectedStyles=new Map,_.collectedStyles.set("",new Map),_.currentTime=0}visitTrigger(_,y){let E=y.queryCount=0,R=y.depCount=0;const H=[],Y=[];return"@"==_.name.charAt(0)&&y.errors.push(function Ct(){return new M.vHH(3006,!1)}()),_.definitions.forEach(K=>{if(this._resetContextStyleTimingState(y),0==K.type){const fe=K,De=fe.name;De.toString().split(/\s*,\s*/).forEach(Ve=>{fe.name=Ve,H.push(this.visitState(fe,y))}),fe.name=De}else if(1==K.type){const fe=this.visitTransition(K,y);E+=fe.queryCount,R+=fe.depCount,Y.push(fe)}else y.errors.push(function Ft(){return new M.vHH(3007,!1)}())}),{type:7,name:_.name,states:H,transitions:Y,queryCount:E,depCount:R,options:null}}visitState(_,y){const E=this.visitStyle(_.styles,y),R=_.options&&_.options.params||null;if(E.containsDynamicStyles){const H=new Set,Y=R||{};E.styles.forEach(K=>{K instanceof Map&&K.forEach(fe=>{As(fe).forEach(De=>{Y.hasOwnProperty(De)||H.add(De)})})}),H.size&&(dr(H.values()),y.errors.push(function fn(S,_){return new M.vHH(3008,!1)}()))}return{type:0,name:_.name,style:E,options:R?{params:R}:null}}visitTransition(_,y){y.queryCount=0,y.depCount=0;const E=Et(this,Xn(_.animation),y);return{type:1,matchers:xs(_.expr,y.errors),animation:E,queryCount:y.queryCount,depCount:y.depCount,options:Lr(_.options)}}visitSequence(_,y){return{type:2,steps:_.steps.map(E=>Et(this,E,y)),options:Lr(_.options)}}visitGroup(_,y){const E=y.currentTime;let R=0;const H=_.steps.map(Y=>{y.currentTime=E;const K=Et(this,Y,y);return R=Math.max(R,y.currentTime),K});return y.currentTime=R,{type:3,steps:H,options:Lr(_.options)}}visitAnimate(_,y){const E=function eo(S,_){if(S.hasOwnProperty("duration"))return S;if("number"==typeof S)return xi(Kn(S,_).duration,0,"");const y=S;if(y.split(/\s+/).some(H=>"{"==H.charAt(0)&&"{"==H.charAt(1))){const H=xi(0,0,"");return H.dynamic=!0,H.strValue=y,H}const R=Kn(y,_);return xi(R.duration,R.delay,R.easing)}(_.timings,y.errors);y.currentAnimateTimings=E;let R,H=_.styles?_.styles:(0,_e.oB)({});if(5==H.type)R=this.visitKeyframes(H,y);else{let Y=_.styles,K=!1;if(!Y){K=!0;const De={};E.easing&&(De.easing=E.easing),Y=(0,_e.oB)(De)}y.currentTime+=E.duration+E.delay;const fe=this.visitStyle(Y,y);fe.isEmptyStep=K,R=fe}return y.currentAnimateTimings=null,{type:4,timings:E,style:R,options:null}}visitStyle(_,y){const E=this._makeStyleAst(_,y);return this._validateStyleAst(E,y),E}_makeStyleAst(_,y){const E=[],R=Array.isArray(_.styles)?_.styles:[_.styles];for(let K of R)"string"==typeof K?K===_e.l3?E.push(K):y.errors.push(new M.vHH(3002,!1)):E.push(pi(K));let H=!1,Y=null;return E.forEach(K=>{if(K instanceof Map&&(K.has("easing")&&(Y=K.get("easing"),K.delete("easing")),!H))for(let fe of K.values())if(fe.toString().indexOf("{{")>=0){H=!0;break}}),{type:6,styles:E,easing:Y,offset:_.offset,containsDynamicStyles:H,options:null}}_validateStyleAst(_,y){const E=y.currentAnimateTimings;let R=y.currentTime,H=y.currentTime;E&&H>0&&(H-=E.duration+E.delay),_.styles.forEach(Y=>{"string"!=typeof Y&&Y.forEach((K,fe)=>{const De=y.collectedStyles.get(y.currentQuerySelector),Ve=De.get(fe);let We=!0;Ve&&(H!=R&&H>=Ve.startTime&&R<=Ve.endTime&&(y.errors.push(function Ir(S,_,y,E,R){return new M.vHH(3010,!1)}()),We=!1),H=Ve.startTime),We&&De.set(fe,{startTime:H,endTime:R}),y.options&&function br(S,_,y){const E=_.params||{},R=As(S);R.length&&R.forEach(H=>{E.hasOwnProperty(H)||y.push(function Ze(S){return new M.vHH(3001,!1)}())})}(K,y.options,y.errors)})})}visitKeyframes(_,y){const E={type:5,styles:[],options:null};if(!y.currentAnimateTimings)return y.errors.push(function jn(){return new M.vHH(3011,!1)}()),E;let H=0;const Y=[];let K=!1,fe=!1,De=0;const Ve=_.steps.map(jt=>{const er=this._makeStyleAst(jt,y);let Bn=null!=er.offset?er.offset:function gi(S){if("string"==typeof S)return null;let _=null;if(Array.isArray(S))S.forEach(y=>{if(y instanceof Map&&y.has("offset")){const E=y;_=parseFloat(E.get("offset")),E.delete("offset")}});else if(S instanceof Map&&S.has("offset")){const y=S;_=parseFloat(y.get("offset")),y.delete("offset")}return _}(er.styles),Yn=0;return null!=Bn&&(H++,Yn=er.offset=Bn),fe=fe||Yn<0||Yn>1,K=K||Yn0&&H{const Bn=rt>0?er==vt?1:rt*er:Y[er],Yn=Bn*nn;y.currentTime=pt+_t.delay+Yn,_t.duration=Yn,this._validateStyleAst(jt,y),jt.offset=Bn,E.styles.push(jt)}),E}visitReference(_,y){return{type:8,animation:Et(this,Xn(_.animation),y),options:Lr(_.options)}}visitAnimateChild(_,y){return y.depCount++,{type:9,options:Lr(_.options)}}visitAnimateRef(_,y){return{type:10,animation:this.visitReference(_.animation,y),options:Lr(_.options)}}visitQuery(_,y){const E=y.currentQuerySelector,R=_.options||{};y.queryCount++,y.currentQuery=_;const[H,Y]=function Xs(S){const _=!!S.split(/\s*,\s*/).find(y=>":self"==y);return _&&(S=S.replace(Jo,"")),S=S.replace(/@\*/g,Jr).replace(/@\w+/g,y=>Jr+"-"+y.slice(1)).replace(/:animating/g,fi),[S,_]}(_.selector);y.currentQuerySelector=E.length?E+" "+H:H,dt(y.collectedStyles,y.currentQuerySelector,new Map);const K=Et(this,Xn(_.animation),y);return y.currentQuery=null,y.currentQuerySelector=E,{type:11,selector:H,limit:R.limit||0,optional:!!R.optional,includeSelf:Y,animation:K,originalSelector:_.selector,options:Lr(_.options)}}visitStagger(_,y){y.currentQuery||y.errors.push(function di(){return new M.vHH(3013,!1)}());const E="full"===_.timings?{duration:0,delay:0,easing:"full"}:Kn(_.timings,y.errors,!0);return{type:12,animation:Et(this,Xn(_.animation),y),timings:E,options:null}}}class Gr{constructor(_){this.errors=_,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Lr(S){return S?(S=cr(S)).params&&(S.params=function $r(S){return S?cr(S):null}(S.params)):S={},S}function xi(S,_,y){return{duration:S,delay:_,easing:y}}function Or(S,_,y,E,R,H,Y=null,K=!1){return{type:1,element:S,keyframes:_,preStyleProps:y,postStyleProps:E,duration:R,delay:H,totalTime:R+H,easing:Y,subTimeline:K}}class Fs{constructor(){this._map=new Map}get(_){return this._map.get(_)||[]}append(_,y){let E=this._map.get(_);E||this._map.set(_,E=[]),E.push(...y)}has(_){return this._map.has(_)}clear(){this._map.clear()}}const Ko=new RegExp(":enter","g"),ns=new RegExp(":leave","g");function rs(S,_,y,E,R,H=new Map,Y=new Map,K,fe,De=[]){return(new ji).buildKeyframes(S,_,y,E,R,H,Y,K,fe,De)}class ji{buildKeyframes(_,y,E,R,H,Y,K,fe,De,Ve=[]){De=De||new Fs;const We=new is(_,y,De,R,H,Ve,[]);We.options=fe;const rt=fe.delay?Un(fe.delay):0;We.currentTimeline.delayNextStep(rt),We.currentTimeline.setStyles([Y],null,We.errors,fe),Et(this,E,We);const vt=We.timelines.filter(pt=>pt.containsAnimation());if(vt.length&&K.size){let pt;for(let _t=vt.length-1;_t>=0;_t--){const nn=vt[_t];if(nn.element===y){pt=nn;break}}pt&&!pt.allowOnlyTimelineStyles()&&pt.setStyles([K],null,We.errors,fe)}return vt.length?vt.map(pt=>pt.buildKeyframes()):[Or(y,[],[],[],0,rt,"",!1)]}visitTrigger(_,y){}visitState(_,y){}visitTransition(_,y){}visitAnimateChild(_,y){const E=y.subInstructions.get(y.element);if(E){const R=y.createSubContext(_.options),H=y.currentTimeline.currentTime,Y=this._visitSubInstructions(E,R,R.options);H!=Y&&y.transformIntoNewTimeline(Y)}y.previousNode=_}visitAnimateRef(_,y){const E=y.createSubContext(_.options);E.transformIntoNewTimeline(),this._applyAnimationRefDelays([_.options,_.animation.options],y,E),this.visitReference(_.animation,E),y.transformIntoNewTimeline(E.currentTimeline.currentTime),y.previousNode=_}_applyAnimationRefDelays(_,y,E){for(const R of _){const H=R?.delay;if(H){const Y="number"==typeof H?H:Un(Vn(H,R?.params??{},y.errors));E.delayNextStep(Y)}}}_visitSubInstructions(_,y,E){let H=y.currentTimeline.currentTime;const Y=null!=E.duration?Un(E.duration):null,K=null!=E.delay?Un(E.delay):null;return 0!==Y&&_.forEach(fe=>{const De=y.appendInstructionToTimeline(fe,Y,K);H=Math.max(H,De.duration+De.delay)}),H}visitReference(_,y){y.updateOptions(_.options,!0),Et(this,_.animation,y),y.previousNode=_}visitSequence(_,y){const E=y.subContextCount;let R=y;const H=_.options;if(H&&(H.params||H.delay)&&(R=y.createSubContext(H),R.transformIntoNewTimeline(),null!=H.delay)){6==R.previousNode.type&&(R.currentTimeline.snapshotCurrentStyles(),R.previousNode=mi);const Y=Un(H.delay);R.delayNextStep(Y)}_.steps.length&&(_.steps.forEach(Y=>Et(this,Y,R)),R.currentTimeline.applyStylesToKeyframe(),R.subContextCount>E&&R.transformIntoNewTimeline()),y.previousNode=_}visitGroup(_,y){const E=[];let R=y.currentTimeline.currentTime;const H=_.options&&_.options.delay?Un(_.options.delay):0;_.steps.forEach(Y=>{const K=y.createSubContext(_.options);H&&K.delayNextStep(H),Et(this,Y,K),R=Math.max(R,K.currentTimeline.currentTime),E.push(K.currentTimeline)}),E.forEach(Y=>y.currentTimeline.mergeTimelineCollectedStyles(Y)),y.transformIntoNewTimeline(R),y.previousNode=_}_visitTiming(_,y){if(_.dynamic){const E=_.strValue;return Kn(y.params?Vn(E,y.params,y.errors):E,y.errors)}return{duration:_.duration,delay:_.delay,easing:_.easing}}visitAnimate(_,y){const E=y.currentAnimateTimings=this._visitTiming(_.timings,y),R=y.currentTimeline;E.delay&&(y.incrementTime(E.delay),R.snapshotCurrentStyles());const H=_.style;5==H.type?this.visitKeyframes(H,y):(y.incrementTime(E.duration),this.visitStyle(H,y),R.applyStylesToKeyframe()),y.currentAnimateTimings=null,y.previousNode=_}visitStyle(_,y){const E=y.currentTimeline,R=y.currentAnimateTimings;!R&&E.hasCurrentStyleProperties()&&E.forwardFrame();const H=R&&R.easing||_.easing;_.isEmptyStep?E.applyEmptyStep(H):E.setStyles(_.styles,H,y.errors,y.options),y.previousNode=_}visitKeyframes(_,y){const E=y.currentAnimateTimings,R=y.currentTimeline.duration,H=E.duration,K=y.createSubContext().currentTimeline;K.easing=E.easing,_.styles.forEach(fe=>{K.forwardTime((fe.offset||0)*H),K.setStyles(fe.styles,fe.easing,y.errors,y.options),K.applyStylesToKeyframe()}),y.currentTimeline.mergeTimelineCollectedStyles(K),y.transformIntoNewTimeline(R+H),y.previousNode=_}visitQuery(_,y){const E=y.currentTimeline.currentTime,R=_.options||{},H=R.delay?Un(R.delay):0;H&&(6===y.previousNode.type||0==E&&y.currentTimeline.hasCurrentStyleProperties())&&(y.currentTimeline.snapshotCurrentStyles(),y.previousNode=mi);let Y=E;const K=y.invokeQuery(_.selector,_.originalSelector,_.limit,_.includeSelf,!!R.optional,y.errors);y.currentQueryTotal=K.length;let fe=null;K.forEach((De,Ve)=>{y.currentQueryIndex=Ve;const We=y.createSubContext(_.options,De);H&&We.delayNextStep(H),De===y.element&&(fe=We.currentTimeline),Et(this,_.animation,We),We.currentTimeline.applyStylesToKeyframe(),Y=Math.max(Y,We.currentTimeline.currentTime)}),y.currentQueryIndex=0,y.currentQueryTotal=0,y.transformIntoNewTimeline(Y),fe&&(y.currentTimeline.mergeTimelineCollectedStyles(fe),y.currentTimeline.snapshotCurrentStyles()),y.previousNode=_}visitStagger(_,y){const E=y.parentContext,R=y.currentTimeline,H=_.timings,Y=Math.abs(H.duration),K=Y*(y.currentQueryTotal-1);let fe=Y*y.currentQueryIndex;switch(H.duration<0?"reverse":H.easing){case"reverse":fe=K-fe;break;case"full":fe=E.currentStaggerTime}const Ve=y.currentTimeline;fe&&Ve.delayNextStep(fe);const We=Ve.currentTime;Et(this,_.animation,y),y.previousNode=_,E.currentStaggerTime=R.currentTime-We+(R.startTime-E.currentTimeline.startTime)}}const mi={};class is{constructor(_,y,E,R,H,Y,K,fe){this._driver=_,this.element=y,this.subInstructions=E,this._enterClassName=R,this._leaveClassName=H,this.errors=Y,this.timelines=K,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=mi,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=fe||new An(this._driver,y,0),K.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(_,y){if(!_)return;const E=_;let R=this.options;null!=E.duration&&(R.duration=Un(E.duration)),null!=E.delay&&(R.delay=Un(E.delay));const H=E.params;if(H){let Y=R.params;Y||(Y=this.options.params={}),Object.keys(H).forEach(K=>{(!y||!Y.hasOwnProperty(K))&&(Y[K]=Vn(H[K],Y,this.errors))})}}_copyOptions(){const _={};if(this.options){const y=this.options.params;if(y){const E=_.params={};Object.keys(y).forEach(R=>{E[R]=y[R]})}}return _}createSubContext(_=null,y,E){const R=y||this.element,H=new is(this._driver,R,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(R,E||0));return H.previousNode=this.previousNode,H.currentAnimateTimings=this.currentAnimateTimings,H.options=this._copyOptions(),H.updateOptions(_),H.currentQueryIndex=this.currentQueryIndex,H.currentQueryTotal=this.currentQueryTotal,H.parentContext=this,this.subContextCount++,H}transformIntoNewTimeline(_){return this.previousNode=mi,this.currentTimeline=this.currentTimeline.fork(this.element,_),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(_,y,E){const R={duration:y??_.duration,delay:this.currentTimeline.currentTime+(E??0)+_.delay,easing:""},H=new Xo(this._driver,_.element,_.keyframes,_.preStyleProps,_.postStyleProps,R,_.stretchStartingKeyframe);return this.timelines.push(H),R}incrementTime(_){this.currentTimeline.forwardTime(this.currentTimeline.duration+_)}delayNextStep(_){_>0&&this.currentTimeline.delayNextStep(_)}invokeQuery(_,y,E,R,H,Y){let K=[];if(R&&K.push(this.element),_.length>0){_=(_=_.replace(Ko,"."+this._enterClassName)).replace(ns,"."+this._leaveClassName);let De=this._driver.query(this.element,_,1!=E);0!==E&&(De=E<0?De.slice(De.length+E,De.length):De.slice(0,E)),K.push(...De)}return!H&&0==K.length&&Y.push(function Ti(S){return new M.vHH(3014,!1)}()),K}}class An{constructor(_,y,E,R){this._driver=_,this.element=y,this.startTime=E,this._elementTimelineStylesLookup=R,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(y),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(y,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(_){const y=1===this._keyframes.size&&this._pendingStyles.size;this.duration||y?(this.forwardTime(this.currentTime+_),y&&this.snapshotCurrentStyles()):this.startTime+=_}fork(_,y){return this.applyStylesToKeyframe(),new An(this._driver,_,y||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(_){this.applyStylesToKeyframe(),this.duration=_,this._loadKeyframe()}_updateStyle(_,y){this._localTimelineStyles.set(_,y),this._globalTimelineStyles.set(_,y),this._styleSummary.set(_,{time:this.currentTime,value:y})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(_){_&&this._previousKeyframe.set("easing",_);for(let[y,E]of this._globalTimelineStyles)this._backFill.set(y,E||_e.l3),this._currentKeyframe.set(y,_e.l3);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(_,y,E,R){y&&this._previousKeyframe.set("easing",y);const H=R&&R.params||{},Y=function zi(S,_){const y=new Map;let E;return S.forEach(R=>{if("*"===R){E=E||_.keys();for(let H of E)y.set(H,_e.l3)}else xr(R,y)}),y}(_,this._globalTimelineStyles);for(let[K,fe]of Y){const De=Vn(fe,H,E);this._pendingStyles.set(K,De),this._localTimelineStyles.has(K)||this._backFill.set(K,this._globalTimelineStyles.get(K)??_e.l3),this._updateStyle(K,De)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((_,y)=>{this._currentKeyframe.set(y,_)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((_,y)=>{this._currentKeyframe.has(y)||this._currentKeyframe.set(y,_)}))}snapshotCurrentStyles(){for(let[_,y]of this._localTimelineStyles)this._pendingStyles.set(_,y),this._updateStyle(_,y)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const _=[];for(let y in this._currentKeyframe)_.push(y);return _}mergeTimelineCollectedStyles(_){_._styleSummary.forEach((y,E)=>{const R=this._styleSummary.get(E);(!R||y.time>R.time)&&this._updateStyle(E,y.value)})}buildKeyframes(){this.applyStylesToKeyframe();const _=new Set,y=new Set,E=1===this._keyframes.size&&0===this.duration;let R=[];this._keyframes.forEach((K,fe)=>{const De=xr(K,new Map,this._backFill);De.forEach((Ve,We)=>{Ve===_e.k1?_.add(We):Ve===_e.l3&&y.add(We)}),E||De.set("offset",fe/this.duration),R.push(De)});const H=_.size?dr(_.values()):[],Y=y.size?dr(y.values()):[];if(E){const K=R[0],fe=new Map(K);K.set("offset",0),fe.set("offset",1),R=[K,fe]}return Or(this.element,R,H,Y,this.duration,this.startTime,this.easing,!1)}}class Xo extends An{constructor(_,y,E,R,H,Y,K=!1){super(_,y,Y.delay),this.keyframes=E,this.preStyleProps=R,this.postStyleProps=H,this._stretchStartingKeyframe=K,this.timings={duration:Y.duration,delay:Y.delay,easing:Y.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let _=this.keyframes,{delay:y,duration:E,easing:R}=this.timings;if(this._stretchStartingKeyframe&&y){const H=[],Y=E+y,K=y/Y,fe=xr(_[0]);fe.set("offset",0),H.push(fe);const De=xr(_[0]);De.set("offset",ks(K)),H.push(De);const Ve=_.length-1;for(let We=1;We<=Ve;We++){let rt=xr(_[We]);const vt=rt.get("offset");rt.set("offset",ks((y+vt*E)/Y)),H.push(rt)}E=Y,y=0,R="",_=H}return Or(this.element,_,this.preStyleProps,this.postStyleProps,E,y,R,!0)}}function ks(S,_=3){const y=Math.pow(10,_-1);return Math.round(S*y)/y}class Ui{}const ss=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class mn extends Ui{normalizePropertyName(_,y){return on(_)}normalizeStyleValue(_,y,E,R){let H="";const Y=E.toString().trim();if(ss.has(y)&&0!==E&&"0"!==E)if("number"==typeof E)H="px";else{const K=E.match(/^[+-]?[\d\.]+([a-z]*)$/);K&&0==K[1].length&&R.push(function zt(S,_){return new M.vHH(3005,!1)}())}return Y+H}}function os(S,_,y,E,R,H,Y,K,fe,De,Ve,We,rt){return{type:0,element:S,triggerName:_,isRemovalTransition:R,fromState:y,fromStyles:H,toState:E,toStyles:Y,timelines:K,queriedElements:fe,preStyleProps:De,postStyleProps:Ve,totalTime:We,errors:rt}}const kr={};class Ps{constructor(_,y,E){this._triggerName=_,this.ast=y,this._stateStyles=E}match(_,y,E,R){return function Mi(S,_,y,E,R){return S.some(H=>H(_,y,E,R))}(this.ast.matchers,_,y,E,R)}buildStyles(_,y,E){let R=this._stateStyles.get("*");return void 0!==_&&(R=this._stateStyles.get(_?.toString())||R),R?R.buildStyles(y,E):new Map}build(_,y,E,R,H,Y,K,fe,De,Ve){const We=[],rt=this.ast.options&&this.ast.options.params||kr,pt=this.buildStyles(E,K&&K.params||kr,We),_t=fe&&fe.params||kr,nn=this.buildStyles(R,_t,We),jt=new Set,er=new Map,Bn=new Map,Yn="void"===R,Ls={params:as(_t,rt),delay:this.ast.options?.delay},ni=Ve?[]:rs(_,y,this.ast.animation,H,Y,pt,nn,Ls,De,We);let Pr=0;if(ni.forEach(Zi=>{Pr=Math.max(Zi.duration+Zi.delay,Pr)}),We.length)return os(y,this._triggerName,E,R,Yn,pt,nn,[],[],er,Bn,Pr,We);ni.forEach(Zi=>{const fs=Zi.element,Ro=dt(er,fs,new Set);Zi.preStyleProps.forEach(gs=>Ro.add(gs));const ps=dt(Bn,fs,new Set);Zi.postStyleProps.forEach(gs=>ps.add(gs)),fs!==y&&jt.add(fs)});const Vs=dr(jt.values());return os(y,this._triggerName,E,R,Yn,pt,nn,ni,Vs,er,Bn,Pr)}}function as(S,_){const y=cr(_);for(const E in S)S.hasOwnProperty(E)&&null!=S[E]&&(y[E]=S[E]);return y}class At{constructor(_,y,E){this.styles=_,this.defaultParams=y,this.normalizer=E}buildStyles(_,y){const E=new Map,R=cr(this.defaultParams);return Object.keys(_).forEach(H=>{const Y=_[H];null!==Y&&(R[H]=Y)}),this.styles.styles.forEach(H=>{"string"!=typeof H&&H.forEach((Y,K)=>{Y&&(Y=Vn(Y,R,y));const fe=this.normalizer.normalizePropertyName(K,y);Y=this.normalizer.normalizeStyleValue(K,fe,Y,y),E.set(fe,Y)})}),E}}class Dl{constructor(_,y,E){this.name=_,this.ast=y,this._normalizer=E,this.transitionFactories=[],this.states=new Map,y.states.forEach(R=>{this.states.set(R.name,new At(R.style,R.options&&R.options.params||{},E))}),_i(this.states,"true","1"),_i(this.states,"false","0"),y.transitions.forEach(R=>{this.transitionFactories.push(new Ps(_,R,this.states))}),this.fallbackTransition=function or(S,_,y){return new Ps(S,{type:1,animation:{type:2,steps:[],options:null},matchers:[(Y,K)=>!0],options:null,queryCount:0,depCount:0},_)}(_,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(_,y,E,R){return this.transitionFactories.find(Y=>Y.match(_,y,E,R))||null}matchStyles(_,y,E){return this.fallbackTransition.buildStyles(_,y,E)}}function _i(S,_,y){S.has(_)?S.has(y)||S.set(y,S.get(_)):S.has(y)&&S.set(_,S.get(y))}const $i=new Fs;class Mo{constructor(_,y,E){this.bodyNode=_,this._driver=y,this._normalizer=E,this._animations=new Map,this._playersById=new Map,this.players=[]}register(_,y){const E=[],H=ei(this._driver,y,E,[]);if(E.length)throw function En(S){return new M.vHH(3503,!1)}();this._animations.set(_,H)}_buildPlayer(_,y,E){const R=_.element,H=Yt(0,this._normalizer,0,_.keyframes,y,E);return this._driver.animate(R,H,_.duration,_.delay,_.easing,[],!0)}create(_,y,E={}){const R=[],H=this._animations.get(_);let Y;const K=new Map;if(H?(Y=rs(this._driver,y,H,xn,Ur,new Map,new Map,E,$i,R),Y.forEach(Ve=>{const We=dt(K,Ve.element,new Map);Ve.postStyleProps.forEach(rt=>We.set(rt,null))})):(R.push(function Oe(){return new M.vHH(3300,!1)}()),Y=[]),R.length)throw function oe(S){return new M.vHH(3504,!1)}();K.forEach((Ve,We)=>{Ve.forEach((rt,vt)=>{Ve.set(vt,this._driver.computeStyle(We,vt,_e.l3))})});const De=xt(Y.map(Ve=>{const We=K.get(Ve.element);return this._buildPlayer(Ve,new Map,We)}));return this._playersById.set(_,De),De.onDestroy(()=>this.destroy(_)),this.players.push(De),De}destroy(_){const y=this._getPlayer(_);y.destroy(),this._playersById.delete(_);const E=this.players.indexOf(y);E>=0&&this.players.splice(E,1)}_getPlayer(_){const y=this._playersById.get(_);if(!y)throw function ne(S){return new M.vHH(3301,!1)}();return y}listen(_,y,E,R){const H=pn(y,"","","");return nr(this._getPlayer(_),E,H,R),()=>{}}command(_,y,E,R){if("register"==E)return void this.register(_,R[0]);if("create"==E)return void this.create(_,y,R[0]||{});const H=this._getPlayer(_);switch(E){case"play":H.play();break;case"pause":H.pause();break;case"reset":H.reset();break;case"restart":H.restart();break;case"finish":H.finish();break;case"init":H.init();break;case"setPosition":H.setPosition(parseFloat(R[0]));break;case"destroy":this.destroy(_)}}}const Oo="ng-animate-queued",Fe="ng-animate-disabled",Cn=[],V={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},N={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},P="__ng_removed";class G{constructor(_,y=""){this.namespaceId=y;const E=_&&_.hasOwnProperty("value");if(this.value=function cs(S){return S??null}(E?_.value:_),E){const H=cr(_);delete H.value,this.options=H}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(_){const y=_.params;if(y){const E=this.options.params;Object.keys(y).forEach(R=>{null==E[R]&&(E[R]=y[R])})}}}const we="void",ct=new G(we);class Qt{constructor(_,y,E){this.id=_,this.hostElement=y,this._engine=E,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+_,Zr(y,this._hostClassName)}listen(_,y,E,R){if(!this._triggers.has(y))throw function Ie(S,_){return new M.vHH(3302,!1)}();if(null==E||0==E.length)throw function Te(S){return new M.vHH(3303,!1)}();if(!function Gi(S){return"start"==S||"done"==S}(E))throw function lt(S,_){return new M.vHH(3400,!1)}();const H=dt(this._elementListeners,_,[]),Y={name:y,phase:E,callback:R};H.push(Y);const K=dt(this._engine.statesByElement,_,new Map);return K.has(y)||(Zr(_,wt),Zr(_,wt+"-"+y),K.set(y,ct)),()=>{this._engine.afterFlush(()=>{const fe=H.indexOf(Y);fe>=0&&H.splice(fe,1),this._triggers.has(y)||K.delete(y)})}}register(_,y){return!this._triggers.has(_)&&(this._triggers.set(_,y),!0)}_getTrigger(_){const y=this._triggers.get(_);if(!y)throw function kt(S){return new M.vHH(3401,!1)}();return y}trigger(_,y,E,R=!0){const H=this._getTrigger(y),Y=new Yr(this.id,y,_);let K=this._engine.statesByElement.get(_);K||(Zr(_,wt),Zr(_,wt+"-"+y),this._engine.statesByElement.set(_,K=new Map));let fe=K.get(y);const De=new G(E,this.id);if(!(E&&E.hasOwnProperty("value"))&&fe&&De.absorbOptions(fe.options),K.set(y,De),fe||(fe=ct),De.value!==we&&fe.value===De.value){if(!function ds(S,_){const y=Object.keys(S),E=Object.keys(_);if(y.length!=E.length)return!1;for(let R=0;R{ur(_,nn),mr(_,jt)})}return}const rt=dt(this._engine.playersByElement,_,[]);rt.forEach(_t=>{_t.namespaceId==this.id&&_t.triggerName==y&&_t.queued&&_t.destroy()});let vt=H.matchTransition(fe.value,De.value,_,De.params),pt=!1;if(!vt){if(!R)return;vt=H.fallbackTransition,pt=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:_,triggerName:y,transition:vt,fromState:fe,toState:De,player:Y,isFallbackTransition:pt}),pt||(Zr(_,Oo),Y.onStart(()=>{us(_,Oo)})),Y.onDone(()=>{let _t=this.players.indexOf(Y);_t>=0&&this.players.splice(_t,1);const nn=this._engine.playersByElement.get(_);if(nn){let jt=nn.indexOf(Y);jt>=0&&nn.splice(jt,1)}}),this.players.push(Y),rt.push(Y),Y}deregister(_){this._triggers.delete(_),this._engine.statesByElement.forEach(y=>y.delete(_)),this._elementListeners.forEach((y,E)=>{this._elementListeners.set(E,y.filter(R=>R.name!=_))})}clearElementCache(_){this._engine.statesByElement.delete(_),this._elementListeners.delete(_);const y=this._engine.playersByElement.get(_);y&&(y.forEach(E=>E.destroy()),this._engine.playersByElement.delete(_))}_signalRemovalForInnerTriggers(_,y){const E=this._engine.driver.query(_,Jr,!0);E.forEach(R=>{if(R[P])return;const H=this._engine.fetchNamespacesByElement(R);H.size?H.forEach(Y=>Y.triggerLeaveAnimation(R,y,!1,!0)):this.clearElementCache(R)}),this._engine.afterFlushAnimationsDone(()=>E.forEach(R=>this.clearElementCache(R)))}triggerLeaveAnimation(_,y,E,R){const H=this._engine.statesByElement.get(_),Y=new Map;if(H){const K=[];if(H.forEach((fe,De)=>{if(Y.set(De,fe.value),this._triggers.has(De)){const Ve=this.trigger(_,De,we,R);Ve&&K.push(Ve)}}),K.length)return this._engine.markElementAsRemoved(this.id,_,!0,y,Y),E&&xt(K).onDone(()=>this._engine.processLeaveNode(_)),!0}return!1}prepareLeaveAnimationListeners(_){const y=this._elementListeners.get(_),E=this._engine.statesByElement.get(_);if(y&&E){const R=new Set;y.forEach(H=>{const Y=H.name;if(R.has(Y))return;R.add(Y);const fe=this._triggers.get(Y).fallbackTransition,De=E.get(Y)||ct,Ve=new G(we),We=new Yr(this.id,Y,_);this._engine.totalQueuedPlayers++,this._queue.push({element:_,triggerName:Y,transition:fe,fromState:De,toState:Ve,player:We,isFallbackTransition:!0})})}}removeNode(_,y){const E=this._engine;if(_.childElementCount&&this._signalRemovalForInnerTriggers(_,y),this.triggerLeaveAnimation(_,y,!0))return;let R=!1;if(E.totalAnimations){const H=E.players.length?E.playersByQueriedElement.get(_):[];if(H&&H.length)R=!0;else{let Y=_;for(;Y=Y.parentNode;)if(E.statesByElement.get(Y)){R=!0;break}}}if(this.prepareLeaveAnimationListeners(_),R)E.markElementAsRemoved(this.id,_,!1,y);else{const H=_[P];(!H||H===V)&&(E.afterFlush(()=>this.clearElementCache(_)),E.destroyInnerAnimations(_),E._onRemovalComplete(_,y))}}insertNode(_,y){Zr(_,this._hostClassName)}drainQueuedTransitions(_){const y=[];return this._queue.forEach(E=>{const R=E.player;if(R.destroyed)return;const H=E.element,Y=this._elementListeners.get(H);Y&&Y.forEach(K=>{if(K.name==E.triggerName){const fe=pn(H,E.triggerName,E.fromState.value,E.toState.value);fe._data=_,nr(E.player,K.phase,fe,K.callback)}}),R.markedForDestroy?this._engine.afterFlush(()=>{R.destroy()}):y.push(E)}),this._queue=[],y.sort((E,R)=>{const H=E.transition.ast.depCount,Y=R.transition.ast.depCount;return 0==H||0==Y?H-Y:this._engine.driver.containsElement(E.element,R.element)?1:-1})}destroy(_){this.players.forEach(y=>y.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,_)}elementContainsData(_){let y=!1;return this._elementListeners.has(_)&&(y=!0),y=!!this._queue.find(E=>E.element===_)||y,y}}class ls{constructor(_,y,E){this.bodyNode=_,this.driver=y,this._normalizer=E,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(R,H)=>{}}_onRemovalComplete(_,y){this.onRemovalComplete(_,y)}get queuedPlayers(){const _=[];return this._namespaceList.forEach(y=>{y.players.forEach(E=>{E.queued&&_.push(E)})}),_}createNamespace(_,y){const E=new Qt(_,y,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,y)?this._balanceNamespaceList(E,y):(this.newHostElements.set(y,E),this.collectEnterElement(y)),this._namespaceLookup[_]=E}_balanceNamespaceList(_,y){const E=this._namespaceList,R=this.namespacesByHostElement;if(E.length-1>=0){let Y=!1,K=this.driver.getParentElement(y);for(;K;){const fe=R.get(K);if(fe){const De=E.indexOf(fe);E.splice(De+1,0,_),Y=!0;break}K=this.driver.getParentElement(K)}Y||E.unshift(_)}else E.push(_);return R.set(y,_),_}register(_,y){let E=this._namespaceLookup[_];return E||(E=this.createNamespace(_,y)),E}registerTrigger(_,y,E){let R=this._namespaceLookup[_];R&&R.register(y,E)&&this.totalAnimations++}destroy(_,y){if(!_)return;const E=this._fetchNamespace(_);this.afterFlush(()=>{this.namespacesByHostElement.delete(E.hostElement),delete this._namespaceLookup[_];const R=this._namespaceList.indexOf(E);R>=0&&this._namespaceList.splice(R,1)}),this.afterFlushAnimationsDone(()=>E.destroy(y))}_fetchNamespace(_){return this._namespaceLookup[_]}fetchNamespacesByElement(_){const y=new Set,E=this.statesByElement.get(_);if(E)for(let R of E.values())if(R.namespaceId){const H=this._fetchNamespace(R.namespaceId);H&&y.add(H)}return y}trigger(_,y,E,R){if(Fo(y)){const H=this._fetchNamespace(_);if(H)return H.trigger(y,E,R),!0}return!1}insertNode(_,y,E,R){if(!Fo(y))return;const H=y[P];if(H&&H.setForRemoval){H.setForRemoval=!1,H.setForMove=!0;const Y=this.collectedLeaveElements.indexOf(y);Y>=0&&this.collectedLeaveElements.splice(Y,1)}if(_){const Y=this._fetchNamespace(_);Y&&Y.insertNode(y,E)}R&&this.collectEnterElement(y)}collectEnterElement(_){this.collectedEnterElements.push(_)}markElementAsDisabled(_,y){y?this.disabledNodes.has(_)||(this.disabledNodes.add(_),Zr(_,Fe)):this.disabledNodes.has(_)&&(this.disabledNodes.delete(_),us(_,Fe))}removeNode(_,y,E,R){if(Fo(y)){const H=_?this._fetchNamespace(_):null;if(H?H.removeNode(y,R):this.markElementAsRemoved(_,y,!1,R),E){const Y=this.namespacesByHostElement.get(y);Y&&Y.id!==_&&Y.removeNode(y,R)}}else this._onRemovalComplete(y,R)}markElementAsRemoved(_,y,E,R,H){this.collectedLeaveElements.push(y),y[P]={namespaceId:_,setForRemoval:R,hasAnimation:E,removedBeforeQueried:!1,previousTriggersValues:H}}listen(_,y,E,R,H){return Fo(y)?this._fetchNamespace(_).listen(y,E,R,H):()=>{}}_buildInstruction(_,y,E,R,H){return _.transition.build(this.driver,_.element,_.fromState.value,_.toState.value,E,R,_.fromState.options,_.toState.options,y,H)}destroyInnerAnimations(_){let y=this.driver.query(_,Jr,!0);y.forEach(E=>this.destroyActiveAnimationsForElement(E)),0!=this.playersByQueriedElement.size&&(y=this.driver.query(_,fi,!0),y.forEach(E=>this.finishActiveQueriedAnimationOnElement(E)))}destroyActiveAnimationsForElement(_){const y=this.playersByElement.get(_);y&&y.forEach(E=>{E.queued?E.markedForDestroy=!0:E.destroy()})}finishActiveQueriedAnimationOnElement(_){const y=this.playersByQueriedElement.get(_);y&&y.forEach(E=>E.finish())}whenRenderingDone(){return new Promise(_=>{if(this.players.length)return xt(this.players).onDone(()=>_());_()})}processLeaveNode(_){const y=_[P];if(y&&y.setForRemoval){if(_[P]=V,y.namespaceId){this.destroyInnerAnimations(_);const E=this._fetchNamespace(y.namespaceId);E&&E.clearElementCache(_)}this._onRemovalComplete(_,y.setForRemoval)}_.classList?.contains(Fe)&&this.markElementAsDisabled(_,!1),this.driver.query(_,".ng-animate-disabled",!0).forEach(E=>{this.markElementAsDisabled(E,!1)})}flush(_=-1){let y=[];if(this.newHostElements.size&&(this.newHostElements.forEach((E,R)=>this._balanceNamespaceList(E,R)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let E=0;EE()),this._flushFns=[],this._whenQuietFns.length){const E=this._whenQuietFns;this._whenQuietFns=[],y.length?xt(y).onDone(()=>{E.forEach(R=>R())}):E.forEach(R=>R())}}reportError(_){throw function Kt(S){return new M.vHH(3402,!1)}()}_flushAnimations(_,y){const E=new Fs,R=[],H=new Map,Y=[],K=new Map,fe=new Map,De=new Map,Ve=new Set;this.disabledNodes.forEach(ut=>{Ve.add(ut);const bt=this.driver.query(ut,".ng-animate-queued",!0);for(let St=0;St{const St=xn+_t++;pt.set(bt,St),ut.forEach(qt=>Zr(qt,St))});const nn=[],jt=new Set,er=new Set;for(let ut=0;utjt.add(qt)):er.add(bt))}const Bn=new Map,Yn=Oa(rt,Array.from(jt));Yn.forEach((ut,bt)=>{const St=Ur+_t++;Bn.set(bt,St),ut.forEach(qt=>Zr(qt,St))}),_.push(()=>{vt.forEach((ut,bt)=>{const St=pt.get(bt);ut.forEach(qt=>us(qt,St))}),Yn.forEach((ut,bt)=>{const St=Bn.get(bt);ut.forEach(qt=>us(qt,St))}),nn.forEach(ut=>{this.processLeaveNode(ut)})});const Ls=[],ni=[];for(let ut=this._namespaceList.length-1;ut>=0;ut--)this._namespaceList[ut].drainQueuedTransitions(y).forEach(St=>{const qt=St.player,hr=St.element;if(Ls.push(qt),this.collectedEnterElements.length){const Hn=hr[P];if(Hn&&Hn.setForMove){if(Hn.previousTriggersValues&&Hn.previousTriggersValues.has(St.triggerName)){const Qr=Hn.previousTriggersValues.get(St.triggerName),Er=this.statesByElement.get(St.element);if(Er&&Er.has(St.triggerName)){const vs=Er.get(St.triggerName);vs.value=Qr,Er.set(St.triggerName,vs)}}return void qt.destroy()}}const Wr=!We||!this.driver.containsElement(We,hr),wr=Bn.get(hr),Wi=pt.get(hr),On=this._buildInstruction(St,E,Wi,wr,Wr);if(On.errors&&On.errors.length)return void ni.push(On);if(Wr)return qt.onStart(()=>ur(hr,On.fromStyles)),qt.onDestroy(()=>mr(hr,On.toStyles)),void R.push(qt);if(St.isFallbackTransition)return qt.onStart(()=>ur(hr,On.fromStyles)),qt.onDestroy(()=>mr(hr,On.toStyles)),void R.push(qt);const tr=[];On.timelines.forEach(Hn=>{Hn.stretchStartingKeyframe=!0,this.disabledNodes.has(Hn.element)||tr.push(Hn)}),On.timelines=tr,E.append(hr,On.timelines),Y.push({instruction:On,player:qt,element:hr}),On.queriedElements.forEach(Hn=>dt(K,Hn,[]).push(qt)),On.preStyleProps.forEach((Hn,Qr)=>{if(Hn.size){let Er=fe.get(Qr);Er||fe.set(Qr,Er=new Set),Hn.forEach((vs,Oi)=>Er.add(Oi))}}),On.postStyleProps.forEach((Hn,Qr)=>{let Er=De.get(Qr);Er||De.set(Qr,Er=new Set),Hn.forEach((vs,Oi)=>Er.add(Oi))})});if(ni.length){const ut=[];ni.forEach(bt=>{ut.push(function un(S,_){return new M.vHH(3505,!1)}())}),Ls.forEach(bt=>bt.destroy()),this.reportError(ut)}const Pr=new Map,Vs=new Map;Y.forEach(ut=>{const bt=ut.element;E.has(bt)&&(Vs.set(bt,bt),this._beforeAnimationBuild(ut.player.namespaceId,ut.instruction,Pr))}),R.forEach(ut=>{const bt=ut.element;this._getPreviousPlayers(bt,!1,ut.namespaceId,ut.triggerName,null).forEach(qt=>{dt(Pr,bt,[]).push(qt),qt.destroy()})});const Zi=nn.filter(ut=>wl(ut,fe,De)),fs=new Map;nl(fs,this.driver,er,De,_e.l3).forEach(ut=>{wl(ut,fe,De)&&Zi.push(ut)});const ps=new Map;vt.forEach((ut,bt)=>{nl(ps,this.driver,new Set(ut),fe,_e.k1)}),Zi.forEach(ut=>{const bt=fs.get(ut),St=ps.get(ut);fs.set(ut,new Map([...Array.from(bt?.entries()??[]),...Array.from(St?.entries()??[])]))});const gs=[],hn=[],ms={};Y.forEach(ut=>{const{element:bt,player:St,instruction:qt}=ut;if(E.has(bt)){if(Ve.has(bt))return St.onDestroy(()=>mr(bt,qt.toStyles)),St.disabled=!0,St.overrideTotalTime(qt.totalTime),void R.push(St);let hr=ms;if(Vs.size>1){let wr=bt;const Wi=[];for(;wr=wr.parentNode;){const On=Vs.get(wr);if(On){hr=On;break}Wi.push(wr)}Wi.forEach(On=>Vs.set(On,hr))}const Wr=this._buildAnimation(St.namespaceId,qt,Pr,H,ps,fs);if(St.setRealPlayer(Wr),hr===ms)gs.push(St);else{const wr=this.playersByElement.get(hr);wr&&wr.length&&(St.parentPlayer=xt(wr)),R.push(St)}}else ur(bt,qt.fromStyles),St.onDestroy(()=>mr(bt,qt.toStyles)),hn.push(St),Ve.has(bt)&&R.push(St)}),hn.forEach(ut=>{const bt=H.get(ut.element);if(bt&&bt.length){const St=xt(bt);ut.setRealPlayer(St)}}),R.forEach(ut=>{ut.parentPlayer?ut.syncPlayerEvents(ut.parentPlayer):ut.destroy()});for(let ut=0;ut!Wr.destroyed);hr.length?Ns(this,bt,hr):this.processLeaveNode(bt)}return nn.length=0,gs.forEach(ut=>{this.players.push(ut),ut.onDone(()=>{ut.destroy();const bt=this.players.indexOf(ut);this.players.splice(bt,1)}),ut.play()}),gs}elementContainsData(_,y){let E=!1;const R=y[P];return R&&R.setForRemoval&&(E=!0),this.playersByElement.has(y)&&(E=!0),this.playersByQueriedElement.has(y)&&(E=!0),this.statesByElement.has(y)&&(E=!0),this._fetchNamespace(_).elementContainsData(y)||E}afterFlush(_){this._flushFns.push(_)}afterFlushAnimationsDone(_){this._whenQuietFns.push(_)}_getPreviousPlayers(_,y,E,R,H){let Y=[];if(y){const K=this.playersByQueriedElement.get(_);K&&(Y=K)}else{const K=this.playersByElement.get(_);if(K){const fe=!H||H==we;K.forEach(De=>{De.queued||!fe&&De.triggerName!=R||Y.push(De)})}}return(E||R)&&(Y=Y.filter(K=>!(E&&E!=K.namespaceId||R&&R!=K.triggerName))),Y}_beforeAnimationBuild(_,y,E){const H=y.element,Y=y.isRemovalTransition?void 0:_,K=y.isRemovalTransition?void 0:y.triggerName;for(const fe of y.timelines){const De=fe.element,Ve=De!==H,We=dt(E,De,[]);this._getPreviousPlayers(De,Ve,Y,K,y.toState).forEach(vt=>{const pt=vt.getRealPlayer();pt.beforeDestroy&&pt.beforeDestroy(),vt.destroy(),We.push(vt)})}ur(H,y.fromStyles)}_buildAnimation(_,y,E,R,H,Y){const K=y.triggerName,fe=y.element,De=[],Ve=new Set,We=new Set,rt=y.timelines.map(pt=>{const _t=pt.element;Ve.add(_t);const nn=_t[P];if(nn&&nn.removedBeforeQueried)return new _e.ZN(pt.duration,pt.delay);const jt=_t!==fe,er=function Ye(S){const _=[];return ot(S,_),_}((E.get(_t)||Cn).map(Pr=>Pr.getRealPlayer())).filter(Pr=>!!Pr.element&&Pr.element===_t),Bn=H.get(_t),Yn=Y.get(_t),Ls=Yt(0,this._normalizer,0,pt.keyframes,Bn,Yn),ni=this._buildPlayer(pt,Ls,er);if(pt.subTimeline&&R&&We.add(_t),jt){const Pr=new Yr(_,K,_t);Pr.setRealPlayer(ni),De.push(Pr)}return ni});De.forEach(pt=>{dt(this.playersByQueriedElement,pt.element,[]).push(pt),pt.onDone(()=>function Mn(S,_,y){let E=S.get(_);if(E){if(E.length){const R=E.indexOf(y);E.splice(R,1)}0==E.length&&S.delete(_)}return E}(this.playersByQueriedElement,pt.element,pt))}),Ve.forEach(pt=>Zr(pt,Ii));const vt=xt(rt);return vt.onDestroy(()=>{Ve.forEach(pt=>us(pt,Ii)),mr(fe,y.toStyles)}),We.forEach(pt=>{dt(R,pt,[]).push(vt)}),vt}_buildPlayer(_,y,E){return y.length>0?this.driver.animate(_.element,y,_.duration,_.delay,_.easing,E):new _e.ZN(_.duration,_.delay)}}class Yr{constructor(_,y,E){this.namespaceId=_,this.triggerName=y,this.element=E,this._player=new _e.ZN,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(_){this._containsRealPlayer||(this._player=_,this._queuedCallbacks.forEach((y,E)=>{y.forEach(R=>nr(_,E,void 0,R))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(_.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(_){this.totalTime=_}syncPlayerEvents(_){const y=this._player;y.triggerCallback&&_.onStart(()=>y.triggerCallback("start")),_.onDone(()=>this.finish()),_.onDestroy(()=>this.destroy())}_queueEvent(_,y){dt(this._queuedCallbacks,_,[]).push(y)}onDone(_){this.queued&&this._queueEvent("done",_),this._player.onDone(_)}onStart(_){this.queued&&this._queueEvent("start",_),this._player.onStart(_)}onDestroy(_){this.queued&&this._queueEvent("destroy",_),this._player.onDestroy(_)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(_){this.queued||this._player.setPosition(_)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(_){const y=this._player;y.triggerCallback&&y.triggerCallback(_)}}function Fo(S){return S&&1===S.nodeType}function yi(S,_){const y=S.style.display;return S.style.display=_??"none",y}function nl(S,_,y,E,R){const H=[];y.forEach(fe=>H.push(yi(fe)));const Y=[];E.forEach((fe,De)=>{const Ve=new Map;fe.forEach(We=>{const rt=_.computeStyle(De,We,R);Ve.set(We,rt),(!rt||0==rt.length)&&(De[P]=N,Y.push(De))}),S.set(De,Ve)});let K=0;return y.forEach(fe=>yi(fe,H[K++])),Y}function Oa(S,_){const y=new Map;if(S.forEach(K=>y.set(K,[])),0==_.length)return y;const R=new Set(_),H=new Map;function Y(K){if(!K)return 1;let fe=H.get(K);if(fe)return fe;const De=K.parentNode;return fe=y.has(De)?De:R.has(De)?1:Y(De),H.set(K,fe),fe}return _.forEach(K=>{const fe=Y(K);1!==fe&&y.get(fe).push(K)}),y}function Zr(S,_){S.classList?.add(_)}function us(S,_){S.classList?.remove(_)}function Ns(S,_,y){xt(y).onDone(()=>S.processLeaveNode(_))}function ot(S,_){for(let y=0;yR.add(H)):_.set(S,E),y.delete(S),!0}class ta{constructor(_,y,E){this.bodyNode=_,this._driver=y,this._normalizer=E,this._triggerCache={},this.onRemovalComplete=(R,H)=>{},this._transitionEngine=new ls(_,y,E),this._timelineEngine=new Mo(_,y,E),this._transitionEngine.onRemovalComplete=(R,H)=>this.onRemovalComplete(R,H)}registerTrigger(_,y,E,R,H){const Y=_+"-"+R;let K=this._triggerCache[Y];if(!K){const fe=[],Ve=ei(this._driver,H,fe,[]);if(fe.length)throw function Vi(S,_){return new M.vHH(3404,!1)}();K=function Ma(S,_,y){return new Dl(S,_,y)}(R,Ve,this._normalizer),this._triggerCache[Y]=K}this._transitionEngine.registerTrigger(y,R,K)}register(_,y){this._transitionEngine.register(_,y)}destroy(_,y){this._transitionEngine.destroy(_,y)}onInsert(_,y,E,R){this._transitionEngine.insertNode(_,y,E,R)}onRemove(_,y,E,R){this._transitionEngine.removeNode(_,y,R||!1,E)}disableAnimations(_,y){this._transitionEngine.markElementAsDisabled(_,y)}process(_,y,E,R){if("@"==E.charAt(0)){const[H,Y]=Rn(E);this._timelineEngine.command(H,y,Y,R)}else this._transitionEngine.trigger(_,y,E,R)}listen(_,y,E,R,H){if("@"==E.charAt(0)){const[Y,K]=Rn(E);return this._timelineEngine.listen(Y,y,K,H)}return this._transitionEngine.listen(_,y,E,R,H)}flush(_=-1){this._transitionEngine.flush(_)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let Fa=(()=>{class S{constructor(y,E,R){this._element=y,this._startStyles=E,this._endStyles=R,this._state=0;let H=S.initialStylesByElement.get(y);H||S.initialStylesByElement.set(y,H=new Map),this._initialStyles=H}start(){this._state<1&&(this._startStyles&&mr(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(mr(this._element,this._initialStyles),this._endStyles&&(mr(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(S.initialStylesByElement.delete(this._element),this._startStyles&&(ur(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ur(this._element,this._endStyles),this._endStyles=null),mr(this._element,this._initialStyles),this._state=3)}}return S.initialStylesByElement=new WeakMap,S})();function ka(S){let _=null;return S.forEach((y,E)=>{(function El(S){return"display"===S||"position"===S})(E)&&(_=_||new Map,_.set(E,y))}),_}class na{constructor(_,y,E,R){this.element=_,this.keyframes=y,this.options=E,this._specialStyles=R,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=E.duration,this._delay=E.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(_=>_()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const _=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,_,this.options),this._finalKeyframe=_.length?_[_.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(_){const y=[];return _.forEach(E=>{y.push(Object.fromEntries(E))}),y}_triggerWebAnimation(_,y,E){return _.animate(this._convertKeyframesToObject(y),E)}onStart(_){this._originalOnStartFns.push(_),this._onStartFns.push(_)}onDone(_){this._originalOnDoneFns.push(_),this._onDoneFns.push(_)}onDestroy(_){this._onDestroyFns.push(_)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(_=>_()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(_=>_()),this._onDestroyFns=[])}setPosition(_){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=_*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const _=new Map;this.hasStarted()&&this._finalKeyframe.forEach((E,R)=>{"offset"!==R&&_.set(R,this._finished?E:es(this.element,R))}),this.currentSnapshot=_}triggerCallback(_){const y="start"===_?this._onStartFns:this._onDoneFns;y.forEach(E=>E()),y.length=0}}class ra{validateStyleProperty(_){return!0}validateAnimatableStyleProperty(_){return!0}matchesElement(_,y){return!1}containsElement(_,y){return re(_,y)}getParentElement(_){return Ai(_)}query(_,y,E){return te(_,y,E)}computeStyle(_,y,E){return window.getComputedStyle(_)[y]}animate(_,y,E,R,H,Y=[]){const fe={duration:E,delay:R,fill:0==R?"both":"forwards"};H&&(fe.easing=H);const De=new Map,Ve=Y.filter(vt=>vt instanceof na);(function Sr(S,_){return 0===S||0===_})(E,R)&&Ve.forEach(vt=>{vt.currentSnapshot.forEach((pt,_t)=>De.set(_t,pt))});let We=function Eo(S){return S.length?S[0]instanceof Map?S:S.map(_=>pi(_)):[]}(y).map(vt=>xr(vt));We=function To(S,_,y){if(y.size&&_.length){let E=_[0],R=[];if(y.forEach((H,Y)=>{E.has(Y)||R.push(Y),E.set(Y,H)}),R.length)for(let H=1;H<_.length;H++){let Y=_[H];R.forEach(K=>Y.set(K,es(S,K)))}}return _}(_,We,De);const rt=function ko(S,_){let y=null,E=null;return Array.isArray(_)&&_.length?(y=ka(_[0]),_.length>1&&(E=ka(_[_.length-1]))):_ instanceof Map&&(y=ka(_)),y||E?new Fa(S,y,E):null}(_,We);return new na(_,We,fe,rt)}}let Tl=(()=>{class S extends _e._j{constructor(y,E){super(),this._nextAnimationId=0,this._renderer=y.createRenderer(E.body,{id:"0",encapsulation:M.ifc.None,styles:[],data:{animation:[]}})}build(y){const E=this._nextAnimationId.toString();this._nextAnimationId++;const R=Array.isArray(y)?(0,_e.vP)(y):y;return ti(this._renderer,null,E,"register",[R]),new Al(E,this._renderer)}}return S.\u0275fac=function(y){return new(y||S)(M.LFG(M.FYo),M.LFG(se.K0))},S.\u0275prov=M.Yz7({token:S,factory:S.\u0275fac}),S})();class Al extends _e.LC{constructor(_,y){super(),this._id=_,this._renderer=y}create(_,y){return new Dr(this._id,_,y||{},this._renderer)}}class Dr{constructor(_,y,E,R){this.id=_,this.element=y,this._renderer=R,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",E)}_listen(_,y){return this._renderer.listen(this.element,`@@${this.id}:${_}`,y)}_command(_,...y){return ti(this._renderer,this.element,this.id,_,y)}onDone(_){this._listen("done",_)}onStart(_){this._listen("start",_)}onDestroy(_){this._listen("destroy",_)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(_){this._command("setPosition",_)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function ti(S,_,y,E,R){return S.setProperty(_,`@@${y}:${E}`,R)}const Po="@.disabled";let fc=(()=>{class S{constructor(y,E,R){this.delegate=y,this.engine=E,this._zone=R,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),E.onRemovalComplete=(H,Y)=>{const K=Y?.parentNode(H);K&&Y.removeChild(K,H)}}createRenderer(y,E){const H=this.delegate.createRenderer(y,E);if(!(y&&E&&E.data&&E.data.animation)){let Ve=this._rendererCache.get(H);return Ve||(Ve=new Il("",H,this.engine,()=>this._rendererCache.delete(H)),this._rendererCache.set(H,Ve)),Ve}const Y=E.id,K=E.id+"-"+this._currentId;this._currentId++,this.engine.register(K,y);const fe=Ve=>{Array.isArray(Ve)?Ve.forEach(fe):this.engine.registerTrigger(Y,K,y,Ve.name,Ve)};return E.data.animation.forEach(fe),new pc(this,K,H,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(y,E,R){y>=0&&yE(R)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(H=>{const[Y,K]=H;Y(K)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([E,R]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return S.\u0275fac=function(y){return new(y||S)(M.LFG(M.FYo),M.LFG(ta),M.LFG(M.R0b))},S.\u0275prov=M.Yz7({token:S,factory:S.\u0275fac}),S})();class Il{constructor(_,y,E,R){this.namespaceId=_,this.delegate=y,this.engine=E,this._onDestroy=R,this.destroyNode=this.delegate.destroyNode?H=>y.destroyNode(H):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(_,y){return this.delegate.createElement(_,y)}createComment(_){return this.delegate.createComment(_)}createText(_){return this.delegate.createText(_)}appendChild(_,y){this.delegate.appendChild(_,y),this.engine.onInsert(this.namespaceId,y,_,!1)}insertBefore(_,y,E,R=!0){this.delegate.insertBefore(_,y,E),this.engine.onInsert(this.namespaceId,y,_,R)}removeChild(_,y,E){this.engine.onRemove(this.namespaceId,y,this.delegate,E)}selectRootElement(_,y){return this.delegate.selectRootElement(_,y)}parentNode(_){return this.delegate.parentNode(_)}nextSibling(_){return this.delegate.nextSibling(_)}setAttribute(_,y,E,R){this.delegate.setAttribute(_,y,E,R)}removeAttribute(_,y,E){this.delegate.removeAttribute(_,y,E)}addClass(_,y){this.delegate.addClass(_,y)}removeClass(_,y){this.delegate.removeClass(_,y)}setStyle(_,y,E,R){this.delegate.setStyle(_,y,E,R)}removeStyle(_,y,E){this.delegate.removeStyle(_,y,E)}setProperty(_,y,E){"@"==y.charAt(0)&&y==Po?this.disableAnimations(_,!!E):this.delegate.setProperty(_,y,E)}setValue(_,y){this.delegate.setValue(_,y)}listen(_,y,E){return this.delegate.listen(_,y,E)}disableAnimations(_,y){this.engine.disableAnimations(_,y)}}class pc extends Il{constructor(_,y,E,R,H){super(y,E,R,H),this.factory=_,this.namespaceId=y}setProperty(_,y,E){"@"==y.charAt(0)?"."==y.charAt(1)&&y==Po?this.disableAnimations(_,E=void 0===E||!!E):this.engine.process(this.namespaceId,_,y.slice(1),E):this.delegate.setProperty(_,y,E)}listen(_,y,E){if("@"==y.charAt(0)){const R=function gc(S){switch(S){case"body":return document.body;case"document":return document;case"window":return window;default:return S}}(_);let H=y.slice(1),Y="";return"@"!=H.charAt(0)&&([H,Y]=function ia(S){const _=S.indexOf(".");return[S.substring(0,_),S.slice(_+1)]}(H)),this.engine.listen(this.namespaceId,R,H,Y,K=>{this.factory.scheduleListenerCallback(K._data||-1,E,K)})}return this.delegate.listen(_,y,E)}}const Rs=[{provide:_e._j,useClass:Tl},{provide:Ui,useFactory:function io(){return new mn}},{provide:ta,useClass:(()=>{class S extends ta{constructor(y,E,R,H){super(y.body,E,R)}ngOnDestroy(){this.flush()}}return S.\u0275fac=function(y){return new(y||S)(M.LFG(se.K0),M.LFG(ke),M.LFG(Ui),M.LFG(M.z2F))},S.\u0275prov=M.Yz7({token:S,factory:S.\u0275fac}),S})()},{provide:M.FYo,useFactory:function hs(S,_,y){return new fc(S,_,y)},deps:[l.se,ta,M.R0b]}],so=[{provide:ke,useFactory:()=>new ra},{provide:M.QbO,useValue:"BrowserAnimations"},...Rs],oo=[{provide:ke,useClass:me},{provide:M.QbO,useValue:"NoopAnimations"},...Rs];let Yi=(()=>{class S{static withConfig(y){return{ngModule:S,providers:y.disableAnimations?oo:so}}}return S.\u0275fac=function(y){return new(y||S)},S.\u0275mod=M.oAB({type:S}),S.\u0275inj=M.cJS({providers:so,imports:[l.b2]}),S})();var sa=j(5732),rl=j(8808);let Na=(()=>{class S{}return S.\u0275fac=function(y){return new(y||S)},S.\u0275mod=M.oAB({type:S,bootstrap:[st]}),S.\u0275inj=M.cJS({providers:[q.c,ee.N],imports:[l.b2,sa.JF,de,ye.K6A,Ar.u5,Ar.UX,Yi,rl.q]}),S})();(0,M.G48)(),window.CESIUM_BASE_URL="assets/cesium/",l.q6().bootstrapModule(Na).catch(S=>console.error(S))},4762:(et,Ee,j)=>{j.d(Ee,{ZT:()=>M,gn:()=>de,pi:()=>ce});var l=function(_e,Me){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Le,Ne){Le.__proto__=Ne}||function(Le,Ne){for(var Be in Ne)Object.prototype.hasOwnProperty.call(Ne,Be)&&(Le[Be]=Ne[Be])})(_e,Me)};function M(_e,Me){if("function"!=typeof Me&&null!==Me)throw new TypeError("Class extends value "+String(Me)+" is not a constructor or null");function Le(){this.constructor=_e}l(_e,Me),_e.prototype=null===Me?Object.create(Me):(Le.prototype=Me.prototype,new Le)}var ce=function(){return ce=Object.assign||function(Me){for(var Le,Ne=1,Be=arguments.length;Ne=0;Tt--)(mt=_e[Tt])&&(Ze=(Be<3?mt(Ze):Be>3?mt(Me,Le,Ze):mt(Me,Le))||Ze);return Be>3&&Ze&&Object.defineProperty(Me,Le,Ze),Ze}},4091:(et,Ee,j)=>{j.d(Ee,{F4:()=>q,LC:()=>M,SB:()=>ae,X$:()=>pe,ZE:()=>Rt,ZN:()=>je,_j:()=>l,eR:()=>ee,jt:()=>de,k1:()=>tn,l3:()=>ce,oB:()=>X,vP:()=>he});class l{}class M{}const ce="*";function pe(tt,$e){return{type:7,name:tt,definitions:$e,options:{}}}function de(tt,$e=null){return{type:4,styles:$e,timings:tt}}function he(tt,$e=null){return{type:2,steps:tt,options:$e}}function X(tt){return{type:6,styles:tt,offset:null}}function ae(tt,$e,ft){return{type:0,name:tt,styles:$e,options:ft}}function q(tt){return{type:5,steps:tt}}function ee(tt,$e,ft=null){return{type:1,expr:tt,animation:$e,options:ft}}function Ce(tt){Promise.resolve().then(tt)}class je{constructor($e=0,ft=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=$e+ft}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach($e=>$e()),this._onDoneFns=[])}onStart($e){this._originalOnStartFns.push($e),this._onStartFns.push($e)}onDone($e){this._originalOnDoneFns.push($e),this._onDoneFns.push($e)}onDestroy($e){this._onDestroyFns.push($e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Ce(()=>this._onFinish())}_onStart(){this._onStartFns.forEach($e=>$e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach($e=>$e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition($e){this._position=this.totalTime?$e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback($e){const ft="start"==$e?this._onStartFns:this._onDoneFns;ft.forEach(Ht=>Ht()),ft.length=0}}class Rt{constructor($e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=$e;let ft=0,Ht=0,rr=0;const $t=this.players.length;0==$t?Ce(()=>this._onFinish()):this.players.forEach(it=>{it.onDone(()=>{++ft==$t&&this._onFinish()}),it.onDestroy(()=>{++Ht==$t&&this._onDestroy()}),it.onStart(()=>{++rr==$t&&this._onStart()})}),this.totalTime=this.players.reduce((it,Wt)=>Math.max(it,Wt.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach($e=>$e()),this._onDoneFns=[])}init(){this.players.forEach($e=>$e.init())}onStart($e){this._onStartFns.push($e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach($e=>$e()),this._onStartFns=[])}onDone($e){this._onDoneFns.push($e)}onDestroy($e){this._onDestroyFns.push($e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach($e=>$e.play())}pause(){this.players.forEach($e=>$e.pause())}restart(){this.players.forEach($e=>$e.restart())}finish(){this._onFinish(),this.players.forEach($e=>$e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach($e=>$e.destroy()),this._onDestroyFns.forEach($e=>$e()),this._onDestroyFns=[])}reset(){this.players.forEach($e=>$e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition($e){const ft=$e*this.totalTime;this.players.forEach(Ht=>{const rr=Ht.totalTime?Math.min(1,ft/Ht.totalTime):1;Ht.setPosition(rr)})}getPosition(){const $e=this.players.reduce((ft,Ht)=>null===ft||Ht.totalTime>ft.totalTime?Ht:ft,null);return null!=$e?$e.getPosition():0}beforeDestroy(){this.players.forEach($e=>{$e.beforeDestroy&&$e.beforeDestroy()})}triggerCallback($e){const ft="start"==$e?this._onStartFns:this._onDoneFns;ft.forEach(Ht=>Ht()),ft.length=0}}const tn="!"},8692:(et,Ee,j)=>{j.d(Ee,{Do:()=>tn,EM:()=>Xo,HT:()=>de,JF:()=>no,K0:()=>he,Mn:()=>Le,Mx:()=>Eo,NF:()=>rs,Nd:()=>Xs,O5:()=>Fn,Ov:()=>ts,PC:()=>es,RF:()=>Xr,S$:()=>Ce,Tn:()=>yt,UT:()=>Ne,V_:()=>q,Ye:()=>tt,b0:()=>Rt,bD:()=>Hi,ez:()=>to,fb:()=>Ze,mk:()=>dn,n9:()=>on,q:()=>ce,sg:()=>ur,tM:()=>Gt,tP:()=>$n,wS:()=>Tt,w_:()=>J,x:()=>Wt});var l=j(4537);let M=null;function ce(){return M}function de(O){M||(M=O)}class J{}const he=new l.OlP("DocumentToken");let X=(()=>{class O{historyGo(_){throw new Error("Not implemented")}}return O.\u0275fac=function(_){return new(_||O)},O.\u0275prov=l.Yz7({token:O,factory:function(){return function ae(){return(0,l.LFG)(ee)}()},providedIn:"platform"}),O})();const q=new l.OlP("Location Initialized");let ee=(()=>{class O extends X{constructor(_){super(),this._doc=_,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return ce().getBaseHref(this._doc)}onPopState(_){const y=ce().getGlobalEventTarget(this._doc,"window");return y.addEventListener("popstate",_,!1),()=>y.removeEventListener("popstate",_)}onHashChange(_){const y=ce().getGlobalEventTarget(this._doc,"window");return y.addEventListener("hashchange",_,!1),()=>y.removeEventListener("hashchange",_)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(_){this.location.pathname=_}pushState(_,y,E){se()?this._history.pushState(_,y,E):this.location.hash=E}replaceState(_,y,E){se()?this._history.replaceState(_,y,E):this.location.hash=E}forward(){this._history.forward()}back(){this._history.back()}historyGo(_=0){this._history.go(_)}getState(){return this._history.state}}return O.\u0275fac=function(_){return new(_||O)(l.LFG(he))},O.\u0275prov=l.Yz7({token:O,factory:function(){return function ye(){return new ee((0,l.LFG)(he))}()},providedIn:"platform"}),O})();function se(){return!!window.history.pushState}function xe(O,S){if(0==O.length)return S;if(0==S.length)return O;let _=0;return O.endsWith("/")&&_++,S.startsWith("/")&&_++,2==_?O+S.substring(1):1==_?O+S:O+"/"+S}function ge(O){const S=O.match(/#|\?|$/),_=S&&S.index||O.length;return O.slice(0,_-("/"===O[_-1]?1:0))+O.slice(_)}function be(O){return O&&"?"!==O[0]?"?"+O:O}let Ce=(()=>{class O{historyGo(_){throw new Error("Not implemented")}}return O.\u0275fac=function(_){return new(_||O)},O.\u0275prov=l.Yz7({token:O,factory:function(){return(0,l.f3M)(Rt)},providedIn:"root"}),O})();const je=new l.OlP("appBaseHref");let Rt=(()=>{class O extends Ce{constructor(_,y){super(),this._platformLocation=_,this._removeListenerFns=[],this._baseHref=y??this._platformLocation.getBaseHrefFromDOM()??(0,l.f3M)(he).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(_){this._removeListenerFns.push(this._platformLocation.onPopState(_),this._platformLocation.onHashChange(_))}getBaseHref(){return this._baseHref}prepareExternalUrl(_){return xe(this._baseHref,_)}path(_=!1){const y=this._platformLocation.pathname+be(this._platformLocation.search),E=this._platformLocation.hash;return E&&_?`${y}${E}`:y}pushState(_,y,E,R){const H=this.prepareExternalUrl(E+be(R));this._platformLocation.pushState(_,y,H)}replaceState(_,y,E,R){const H=this.prepareExternalUrl(E+be(R));this._platformLocation.replaceState(_,y,H)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(_=0){this._platformLocation.historyGo?.(_)}}return O.\u0275fac=function(_){return new(_||O)(l.LFG(X),l.LFG(je,8))},O.\u0275prov=l.Yz7({token:O,factory:O.\u0275fac,providedIn:"root"}),O})(),tn=(()=>{class O extends Ce{constructor(_,y){super(),this._platformLocation=_,this._baseHref="",this._removeListenerFns=[],null!=y&&(this._baseHref=y)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(_){this._removeListenerFns.push(this._platformLocation.onPopState(_),this._platformLocation.onHashChange(_))}getBaseHref(){return this._baseHref}path(_=!1){let y=this._platformLocation.hash;return null==y&&(y="#"),y.length>0?y.substring(1):y}prepareExternalUrl(_){const y=xe(this._baseHref,_);return y.length>0?"#"+y:y}pushState(_,y,E,R){let H=this.prepareExternalUrl(E+be(R));0==H.length&&(H=this._platformLocation.pathname),this._platformLocation.pushState(_,y,H)}replaceState(_,y,E,R){let H=this.prepareExternalUrl(E+be(R));0==H.length&&(H=this._platformLocation.pathname),this._platformLocation.replaceState(_,y,H)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(_=0){this._platformLocation.historyGo?.(_)}}return O.\u0275fac=function(_){return new(_||O)(l.LFG(X),l.LFG(je,8))},O.\u0275prov=l.Yz7({token:O,factory:O.\u0275fac}),O})(),tt=(()=>{class O{constructor(_){this._subject=new l.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=_;const y=this._locationStrategy.getBaseHref();this._baseHref=ge(Ht(y)),this._locationStrategy.onPopState(E=>{this._subject.emit({url:this.path(!0),pop:!0,state:E.state,type:E.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(_=!1){return this.normalize(this._locationStrategy.path(_))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(_,y=""){return this.path()==this.normalize(_+be(y))}normalize(_){return O.stripTrailingSlash(function ft(O,S){return O&&S.startsWith(O)?S.substring(O.length):S}(this._baseHref,Ht(_)))}prepareExternalUrl(_){return _&&"/"!==_[0]&&(_="/"+_),this._locationStrategy.prepareExternalUrl(_)}go(_,y="",E=null){this._locationStrategy.pushState(E,"",_,y),this._notifyUrlChangeListeners(this.prepareExternalUrl(_+be(y)),E)}replaceState(_,y="",E=null){this._locationStrategy.replaceState(E,"",_,y),this._notifyUrlChangeListeners(this.prepareExternalUrl(_+be(y)),E)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(_=0){this._locationStrategy.historyGo?.(_)}onUrlChange(_){return this._urlChangeListeners.push(_),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(y=>{this._notifyUrlChangeListeners(y.url,y.state)})),()=>{const y=this._urlChangeListeners.indexOf(_);this._urlChangeListeners.splice(y,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(_="",y){this._urlChangeListeners.forEach(E=>E(_,y))}subscribe(_,y,E){return this._subject.subscribe({next:_,error:y,complete:E})}}return O.normalizeQueryParams=be,O.joinWithSlash=xe,O.stripTrailingSlash=ge,O.\u0275fac=function(_){return new(_||O)(l.LFG(Ce))},O.\u0275prov=l.Yz7({token:O,factory:function(){return function $e(){return new tt((0,l.LFG)(Ce))}()},providedIn:"root"}),O})();function Ht(O){return O.replace(/\/index.html$/,"")}var Wt=(()=>((Wt=Wt||{})[Wt.Format=0]="Format",Wt[Wt.Standalone=1]="Standalone",Wt))(),yt=(()=>((yt=yt||{})[yt.Narrow=0]="Narrow",yt[yt.Abbreviated=1]="Abbreviated",yt[yt.Wide=2]="Wide",yt[yt.Short=3]="Short",yt))(),Gt=(()=>((Gt=Gt||{})[Gt.Short=0]="Short",Gt[Gt.Medium=1]="Medium",Gt[Gt.Long=2]="Long",Gt[Gt.Full=3]="Full",Gt))();function Le(O,S,_){const y=(0,l.cg1)(O),R=ze([y[l.wAp.DaysFormat],y[l.wAp.DaysStandalone]],S);return ze(R,_)}function Ne(O,S,_){const y=(0,l.cg1)(O),R=ze([y[l.wAp.MonthsFormat],y[l.wAp.MonthsStandalone]],S);return ze(R,_)}function Ze(O){return(0,l.cg1)(O)[l.wAp.FirstDayOfWeek]}function Tt(O,S){return ze((0,l.cg1)(O)[l.wAp.DateFormat],S)}function ze(O,S){for(let _=S;_>-1;_--)if(typeof O[_]<"u")return O[_];throw new Error("Locale data API: locale data undefined")}function Eo(O,S){S=encodeURIComponent(S);for(const _ of O.split(";")){const y=_.indexOf("="),[E,R]=-1==y?[_,""]:[_.slice(0,y),_.slice(y+1)];if(E.trim()===S)return decodeURIComponent(R)}return null}let dn=(()=>{class O{constructor(_,y,E,R){this._iterableDiffers=_,this._keyValueDiffers=y,this._ngEl=E,this._renderer=R,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(_){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof _?_.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(_){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof _?_.split(/\s+/):_,this._rawClass&&((0,l.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const _=this._iterableDiffer.diff(this._rawClass);_&&this._applyIterableChanges(_)}else if(this._keyValueDiffer){const _=this._keyValueDiffer.diff(this._rawClass);_&&this._applyKeyValueChanges(_)}}_applyKeyValueChanges(_){_.forEachAddedItem(y=>this._toggleClass(y.key,y.currentValue)),_.forEachChangedItem(y=>this._toggleClass(y.key,y.currentValue)),_.forEachRemovedItem(y=>{y.previousValue&&this._toggleClass(y.key,!1)})}_applyIterableChanges(_){_.forEachAddedItem(y=>{if("string"!=typeof y.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,l.AaK)(y.item)}`);this._toggleClass(y.item,!0)}),_.forEachRemovedItem(y=>this._toggleClass(y.item,!1))}_applyClasses(_){_&&(Array.isArray(_)||_ instanceof Set?_.forEach(y=>this._toggleClass(y,!0)):Object.keys(_).forEach(y=>this._toggleClass(y,!!_[y])))}_removeClasses(_){_&&(Array.isArray(_)||_ instanceof Set?_.forEach(y=>this._toggleClass(y,!1)):Object.keys(_).forEach(y=>this._toggleClass(y,!1)))}_toggleClass(_,y){(_=_.trim())&&_.split(/\s+/g).forEach(E=>{y?this._renderer.addClass(this._ngEl.nativeElement,E):this._renderer.removeClass(this._ngEl.nativeElement,E)})}}return O.\u0275fac=function(_){return new(_||O)(l.Y36(l.ZZ4),l.Y36(l.aQg),l.Y36(l.SBq),l.Y36(l.Qsj))},O.\u0275dir=l.lG2({type:O,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),O})();class mr{constructor(S,_,y,E){this.$implicit=S,this.ngForOf=_,this.index=y,this.count=E}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let ur=(()=>{class O{constructor(_,y,E){this._viewContainer=_,this._template=y,this._differs=E,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(_){this._ngForOf=_,this._ngForOfDirty=!0}set ngForTrackBy(_){this._trackByFn=_}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(_){_&&(this._template=_)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const _=this._ngForOf;!this._differ&&_&&(this._differ=this._differs.find(_).create(this.ngForTrackBy))}if(this._differ){const _=this._differ.diff(this._ngForOf);_&&this._applyChanges(_)}}_applyChanges(_){const y=this._viewContainer;_.forEachOperation((E,R,H)=>{if(null==E.previousIndex)y.createEmbeddedView(this._template,new mr(E.item,this._ngForOf,-1,-1),null===H?void 0:H);else if(null==H)y.remove(null===R?void 0:R);else if(null!==R){const Y=y.get(R);y.move(Y,H),Xn(Y,E)}});for(let E=0,R=y.length;E{Xn(y.get(E.currentIndex),E)})}static ngTemplateContextGuard(_,y){return!0}}return O.\u0275fac=function(_){return new(_||O)(l.Y36(l.s_b),l.Y36(l.Rgc),l.Y36(l.ZZ4))},O.\u0275dir=l.lG2({type:O,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),O})();function Xn(O,S){O.context.$implicit=S.item}let Fn=(()=>{class O{constructor(_,y){this._viewContainer=_,this._context=new As,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=y}set ngIf(_){this._context.$implicit=this._context.ngIf=_,this._updateView()}set ngIfThen(_){Vn("ngIfThen",_),this._thenTemplateRef=_,this._thenViewRef=null,this._updateView()}set ngIfElse(_){Vn("ngIfElse",_),this._elseTemplateRef=_,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(_,y){return!0}}return O.\u0275fac=function(_){return new(_||O)(l.Y36(l.s_b),l.Y36(l.Rgc))},O.\u0275dir=l.lG2({type:O,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),O})();class As{constructor(){this.$implicit=null,this.ngIf=null}}function Vn(O,S){if(S&&!S.createEmbeddedView)throw new Error(`${O} must be a TemplateRef, but received '${(0,l.AaK)(S)}'.`)}class dr{constructor(S,_){this._viewContainerRef=S,this._templateRef=_,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(S){S&&!this._created?this.create():!S&&this._created&&this.destroy()}}let Xr=(()=>{class O{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(_){this._ngSwitch=_,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(_){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(_)}_matchCase(_){const y=_==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||y,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),y}_updateDefaultCases(_){if(this._defaultViews&&_!==this._defaultUsed){this._defaultUsed=_;for(let y=0;y{class O{constructor(_,y,E){this.ngSwitch=E,E._addCase(),this._view=new dr(_,y)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return O.\u0275fac=function(_){return new(_||O)(l.Y36(l.s_b),l.Y36(l.Rgc),l.Y36(Xr,9))},O.\u0275dir=l.lG2({type:O,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),O})(),es=(()=>{class O{constructor(_,y,E){this._ngEl=_,this._differs=y,this._renderer=E,this._ngStyle=null,this._differ=null}set ngStyle(_){this._ngStyle=_,!this._differ&&_&&(this._differ=this._differs.find(_).create())}ngDoCheck(){if(this._differ){const _=this._differ.diff(this._ngStyle);_&&this._applyChanges(_)}}_setStyle(_,y){const[E,R]=_.split("."),H=-1===E.indexOf("-")?void 0:l.JOm.DashCase;null!=y?this._renderer.setStyle(this._ngEl.nativeElement,E,R?`${y}${R}`:y,H):this._renderer.removeStyle(this._ngEl.nativeElement,E,H)}_applyChanges(_){_.forEachRemovedItem(y=>this._setStyle(y.key,null)),_.forEachAddedItem(y=>this._setStyle(y.key,y.currentValue)),_.forEachChangedItem(y=>this._setStyle(y.key,y.currentValue))}}return O.\u0275fac=function(_){return new(_||O)(l.Y36(l.SBq),l.Y36(l.aQg),l.Y36(l.Qsj))},O.\u0275dir=l.lG2({type:O,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),O})(),$n=(()=>{class O{constructor(_){this._viewContainerRef=_,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(_){if(_.ngTemplateOutlet||_.ngTemplateOutletInjector){const y=this._viewContainerRef;if(this._viewRef&&y.remove(y.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:E,ngTemplateOutletContext:R,ngTemplateOutletInjector:H}=this;this._viewRef=y.createEmbeddedView(E,R,H?{injector:H}:void 0)}else this._viewRef=null}else this._viewRef&&_.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return O.\u0275fac=function(_){return new(_||O)(l.Y36(l.s_b))},O.\u0275dir=l.lG2({type:O,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[l.TTD]}),O})();class Ao{createSubscription(S,_){return S.subscribe({next:_,error:y=>{throw y}})}dispose(S){S.unsubscribe()}}class Mr{createSubscription(S,_){return S.then(_,y=>{throw y})}dispose(S){}}const tl=new Mr,Aa=new Ao;let ts=(()=>{class O{constructor(_){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=_}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(_){return this._obj?_!==this._obj?(this._dispose(),this.transform(_)):this._latestValue:(_&&this._subscribe(_),this._latestValue)}_subscribe(_){this._obj=_,this._strategy=this._selectStrategy(_),this._subscription=this._strategy.createSubscription(_,y=>this._updateLatestValue(_,y))}_selectStrategy(_){if((0,l.QGY)(_))return tl;if((0,l.F4k)(_))return Aa;throw function rn(O,S){return new l.vHH(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(_,y){_===this._obj&&(this._latestValue=y,this._ref.markForCheck())}}return O.\u0275fac=function(_){return new(_||O)(l.Y36(l.sBO,16))},O.\u0275pipe=l.Yjl({name:"async",type:O,pure:!1,standalone:!0}),O})(),Xs=(()=>{class O{constructor(_){this.differs=_,this.keyValues=[],this.compareFn=$r}transform(_,y=$r){if(!_||!(_ instanceof Map)&&"object"!=typeof _)return null;this.differ||(this.differ=this.differs.find(_).create());const E=this.differ.diff(_),R=y!==this.compareFn;return E&&(this.keyValues=[],E.forEachItem(H=>{this.keyValues.push(function Ks(O,S){return{key:O,value:S}}(H.key,H.currentValue))})),(E||R)&&(this.keyValues.sort(y),this.compareFn=y),this.keyValues}}return O.\u0275fac=function(_){return new(_||O)(l.Y36(l.aQg,16))},O.\u0275pipe=l.Yjl({name:"keyvalue",type:O,pure:!1,standalone:!0}),O})();function $r(O,S){const _=O.key,y=S.key;if(_===y)return 0;if(void 0===_)return 1;if(void 0===y)return-1;if(null===_)return 1;if(null===y)return-1;if("string"==typeof _&&"string"==typeof y)return _{class O{}return O.\u0275fac=function(_){return new(_||O)},O.\u0275mod=l.oAB({type:O}),O.\u0275inj=l.cJS({}),O})();const Hi="browser";function rs(O){return O===Hi}let Xo=(()=>{class O{}return O.\u0275prov=(0,l.Yz7)({token:O,providedIn:"root",factory:()=>new ks((0,l.LFG)(he),window)}),O})();class ks{constructor(S,_){this.document=S,this.window=_,this.offset=()=>[0,0]}setOffset(S){this.offset=Array.isArray(S)?()=>S:S}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(S){this.supportsScrolling()&&this.window.scrollTo(S[0],S[1])}scrollToAnchor(S){if(!this.supportsScrolling())return;const _=function Fr(O,S){const _=O.getElementById(S)||O.getElementsByName(S)[0];if(_)return _;if("function"==typeof O.createTreeWalker&&O.body&&(O.body.createShadowRoot||O.body.attachShadow)){const y=O.createTreeWalker(O.body,NodeFilter.SHOW_ELEMENT);let E=y.currentNode;for(;E;){const R=E.shadowRoot;if(R){const H=R.getElementById(S)||R.querySelector(`[name="${S}"]`);if(H)return H}E=y.nextNode()}}return null}(this.document,S);_&&(this.scrollToElement(_),_.focus())}setHistoryScrollRestoration(S){if(this.supportScrollRestoration()){const _=this.window.history;_&&_.scrollRestoration&&(_.scrollRestoration=S)}}scrollToElement(S){const _=S.getBoundingClientRect(),y=_.left+this.window.pageXOffset,E=_.top+this.window.pageYOffset,R=this.offset();this.window.scrollTo(y-R[0],E-R[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const S=zi(this.window.history)||zi(Object.getPrototypeOf(this.window.history));return!(!S||!S.writable&&!S.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function zi(O){return Object.getOwnPropertyDescriptor(O,"scrollRestoration")}class no{}},5732:(et,Ee,j)=>{j.d(Ee,{JF:()=>Vi,WM:()=>q,eN:()=>_e});var l=j(8692),M=j(4537),ce=j(5917),pe=j(882),de=j(4612),J=j(5435),he=j(8002);class X{}class ae{}class q{constructor(oe){this.normalizedNames=new Map,this.lazyUpdate=null,oe?this.lazyInit="string"==typeof oe?()=>{this.headers=new Map,oe.split("\n").forEach(ne=>{const Ie=ne.indexOf(":");if(Ie>0){const Te=ne.slice(0,Ie),lt=Te.toLowerCase(),kt=ne.slice(Ie+1).trim();this.maybeSetNormalizedName(Te,lt),this.headers.has(lt)?this.headers.get(lt).push(kt):this.headers.set(lt,[kt])}})}:()=>{this.headers=new Map,Object.keys(oe).forEach(ne=>{let Ie=oe[ne];const Te=ne.toLowerCase();"string"==typeof Ie&&(Ie=[Ie]),Ie.length>0&&(this.headers.set(Te,Ie),this.maybeSetNormalizedName(ne,Te))})}:this.headers=new Map}has(oe){return this.init(),this.headers.has(oe.toLowerCase())}get(oe){this.init();const ne=this.headers.get(oe.toLowerCase());return ne&&ne.length>0?ne[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(oe){return this.init(),this.headers.get(oe.toLowerCase())||null}append(oe,ne){return this.clone({name:oe,value:ne,op:"a"})}set(oe,ne){return this.clone({name:oe,value:ne,op:"s"})}delete(oe,ne){return this.clone({name:oe,value:ne,op:"d"})}maybeSetNormalizedName(oe,ne){this.normalizedNames.has(ne)||this.normalizedNames.set(ne,oe)}init(){this.lazyInit&&(this.lazyInit instanceof q?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(oe=>this.applyUpdate(oe)),this.lazyUpdate=null))}copyFrom(oe){oe.init(),Array.from(oe.headers.keys()).forEach(ne=>{this.headers.set(ne,oe.headers.get(ne)),this.normalizedNames.set(ne,oe.normalizedNames.get(ne))})}clone(oe){const ne=new q;return ne.lazyInit=this.lazyInit&&this.lazyInit instanceof q?this.lazyInit:this,ne.lazyUpdate=(this.lazyUpdate||[]).concat([oe]),ne}applyUpdate(oe){const ne=oe.name.toLowerCase();switch(oe.op){case"a":case"s":let Ie=oe.value;if("string"==typeof Ie&&(Ie=[Ie]),0===Ie.length)return;this.maybeSetNormalizedName(oe.name,ne);const Te=("a"===oe.op?this.headers.get(ne):void 0)||[];Te.push(...Ie),this.headers.set(ne,Te);break;case"d":const lt=oe.value;if(lt){let kt=this.headers.get(ne);if(!kt)return;kt=kt.filter(Kt=>-1===lt.indexOf(Kt)),0===kt.length?(this.headers.delete(ne),this.normalizedNames.delete(ne)):this.headers.set(ne,kt)}else this.headers.delete(ne),this.normalizedNames.delete(ne)}}forEach(oe){this.init(),Array.from(this.normalizedNames.keys()).forEach(ne=>oe(this.normalizedNames.get(ne),this.headers.get(ne)))}}class se{encodeKey(oe){return be(oe)}encodeValue(oe){return be(oe)}decodeKey(oe){return decodeURIComponent(oe)}decodeValue(oe){return decodeURIComponent(oe)}}const xe=/%(\d[a-f0-9])/gi,ge={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function be(Oe){return encodeURIComponent(Oe).replace(xe,(oe,ne)=>ge[ne]??oe)}function Ce(Oe){return`${Oe}`}class je{constructor(oe={}){if(this.updates=null,this.cloneFrom=null,this.encoder=oe.encoder||new se,oe.fromString){if(oe.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function ye(Oe,oe){const ne=new Map;return Oe.length>0&&Oe.replace(/^\?/,"").split("&").forEach(Te=>{const lt=Te.indexOf("="),[kt,Kt]=-1==lt?[oe.decodeKey(Te),""]:[oe.decodeKey(Te.slice(0,lt)),oe.decodeValue(Te.slice(lt+1))],qe=ne.get(kt)||[];qe.push(Kt),ne.set(kt,qe)}),ne}(oe.fromString,this.encoder)}else oe.fromObject?(this.map=new Map,Object.keys(oe.fromObject).forEach(ne=>{const Ie=oe.fromObject[ne],Te=Array.isArray(Ie)?Ie.map(Ce):[Ce(Ie)];this.map.set(ne,Te)})):this.map=null}has(oe){return this.init(),this.map.has(oe)}get(oe){this.init();const ne=this.map.get(oe);return ne?ne[0]:null}getAll(oe){return this.init(),this.map.get(oe)||null}keys(){return this.init(),Array.from(this.map.keys())}append(oe,ne){return this.clone({param:oe,value:ne,op:"a"})}appendAll(oe){const ne=[];return Object.keys(oe).forEach(Ie=>{const Te=oe[Ie];Array.isArray(Te)?Te.forEach(lt=>{ne.push({param:Ie,value:lt,op:"a"})}):ne.push({param:Ie,value:Te,op:"a"})}),this.clone(ne)}set(oe,ne){return this.clone({param:oe,value:ne,op:"s"})}delete(oe,ne){return this.clone({param:oe,value:ne,op:"d"})}toString(){return this.init(),this.keys().map(oe=>{const ne=this.encoder.encodeKey(oe);return this.map.get(oe).map(Ie=>ne+"="+this.encoder.encodeValue(Ie)).join("&")}).filter(oe=>""!==oe).join("&")}clone(oe){const ne=new je({encoder:this.encoder});return ne.cloneFrom=this.cloneFrom||this,ne.updates=(this.updates||[]).concat(oe),ne}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(oe=>this.map.set(oe,this.cloneFrom.map.get(oe))),this.updates.forEach(oe=>{switch(oe.op){case"a":case"s":const ne=("a"===oe.op?this.map.get(oe.param):void 0)||[];ne.push(Ce(oe.value)),this.map.set(oe.param,ne);break;case"d":if(void 0===oe.value){this.map.delete(oe.param);break}{let Ie=this.map.get(oe.param)||[];const Te=Ie.indexOf(Ce(oe.value));-1!==Te&&Ie.splice(Te,1),Ie.length>0?this.map.set(oe.param,Ie):this.map.delete(oe.param)}}}),this.cloneFrom=this.updates=null)}}class tn{constructor(){this.map=new Map}set(oe,ne){return this.map.set(oe,ne),this}get(oe){return this.map.has(oe)||this.map.set(oe,oe.defaultValue()),this.map.get(oe)}delete(oe){return this.map.delete(oe),this}has(oe){return this.map.has(oe)}keys(){return this.map.keys()}}function $e(Oe){return typeof ArrayBuffer<"u"&&Oe instanceof ArrayBuffer}function ft(Oe){return typeof Blob<"u"&&Oe instanceof Blob}function Ht(Oe){return typeof FormData<"u"&&Oe instanceof FormData}class $t{constructor(oe,ne,Ie,Te){let lt;if(this.url=ne,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=oe.toUpperCase(),function tt(Oe){switch(Oe){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Te?(this.body=void 0!==Ie?Ie:null,lt=Te):lt=Ie,lt&&(this.reportProgress=!!lt.reportProgress,this.withCredentials=!!lt.withCredentials,lt.responseType&&(this.responseType=lt.responseType),lt.headers&&(this.headers=lt.headers),lt.context&&(this.context=lt.context),lt.params&&(this.params=lt.params)),this.headers||(this.headers=new q),this.context||(this.context=new tn),this.params){const kt=this.params.toString();if(0===kt.length)this.urlWithParams=ne;else{const Kt=ne.indexOf("?");this.urlWithParams=ne+(-1===Kt?"?":Ktyr.set(It,oe.setHeaders[It]),qe)),oe.setParams&&(un=Object.keys(oe.setParams).reduce((yr,It)=>yr.set(It,oe.setParams[It]),un)),new $t(ne,Ie,lt,{params:un,headers:qe,context:Xt,reportProgress:Kt,responseType:Te,withCredentials:kt})}}var it=(()=>((it=it||{})[it.Sent=0]="Sent",it[it.UploadProgress=1]="UploadProgress",it[it.ResponseHeader=2]="ResponseHeader",it[it.DownloadProgress=3]="DownloadProgress",it[it.Response=4]="Response",it[it.User=5]="User",it))();class Wt{constructor(oe,ne=200,Ie="OK"){this.headers=oe.headers||new q,this.status=void 0!==oe.status?oe.status:ne,this.statusText=oe.statusText||Ie,this.url=oe.url||null,this.ok=this.status>=200&&this.status<300}}class yt extends Wt{constructor(oe={}){super(oe),this.type=it.ResponseHeader}clone(oe={}){return new yt({headers:oe.headers||this.headers,status:void 0!==oe.status?oe.status:this.status,statusText:oe.statusText||this.statusText,url:oe.url||this.url||void 0})}}class Gt extends Wt{constructor(oe={}){super(oe),this.type=it.Response,this.body=void 0!==oe.body?oe.body:null}clone(oe={}){return new Gt({body:void 0!==oe.body?oe.body:this.body,headers:oe.headers||this.headers,status:void 0!==oe.status?oe.status:this.status,statusText:oe.statusText||this.statusText,url:oe.url||this.url||void 0})}}class st extends Wt{constructor(oe){super(oe,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${oe.url||"(unknown url)"}`:`Http failure response for ${oe.url||"(unknown url)"}: ${oe.status} ${oe.statusText}`,this.error=oe.error||null}}function Ar(Oe,oe){return{body:oe,headers:Oe.headers,context:Oe.context,observe:Oe.observe,params:Oe.params,reportProgress:Oe.reportProgress,responseType:Oe.responseType,withCredentials:Oe.withCredentials}}let _e=(()=>{class Oe{constructor(ne){this.handler=ne}request(ne,Ie,Te={}){let lt;if(ne instanceof $t)lt=ne;else{let qe,un;qe=Te.headers instanceof q?Te.headers:new q(Te.headers),Te.params&&(un=Te.params instanceof je?Te.params:new je({fromObject:Te.params})),lt=new $t(ne,Ie,void 0!==Te.body?Te.body:null,{headers:qe,context:Te.context,params:un,reportProgress:Te.reportProgress,responseType:Te.responseType||"json",withCredentials:Te.withCredentials})}const kt=(0,ce.of)(lt).pipe((0,de.b)(qe=>this.handler.handle(qe)));if(ne instanceof $t||"events"===Te.observe)return kt;const Kt=kt.pipe((0,J.h)(qe=>qe instanceof Gt));switch(Te.observe||"body"){case"body":switch(lt.responseType){case"arraybuffer":return Kt.pipe((0,he.U)(qe=>{if(null!==qe.body&&!(qe.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return qe.body}));case"blob":return Kt.pipe((0,he.U)(qe=>{if(null!==qe.body&&!(qe.body instanceof Blob))throw new Error("Response is not a Blob.");return qe.body}));case"text":return Kt.pipe((0,he.U)(qe=>{if(null!==qe.body&&"string"!=typeof qe.body)throw new Error("Response is not a string.");return qe.body}));default:return Kt.pipe((0,he.U)(qe=>qe.body))}case"response":return Kt;default:throw new Error(`Unreachable: unhandled observe type ${Te.observe}}`)}}delete(ne,Ie={}){return this.request("DELETE",ne,Ie)}get(ne,Ie={}){return this.request("GET",ne,Ie)}head(ne,Ie={}){return this.request("HEAD",ne,Ie)}jsonp(ne,Ie){return this.request("JSONP",ne,{params:(new je).append(Ie,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(ne,Ie={}){return this.request("OPTIONS",ne,Ie)}patch(ne,Ie,Te={}){return this.request("PATCH",ne,Ar(Te,Ie))}post(ne,Ie,Te={}){return this.request("POST",ne,Ar(Te,Ie))}put(ne,Ie,Te={}){return this.request("PUT",ne,Ar(Te,Ie))}}return Oe.\u0275fac=function(ne){return new(ne||Oe)(M.LFG(X))},Oe.\u0275prov=M.Yz7({token:Oe,factory:Oe.\u0275fac}),Oe})();class Me{constructor(oe,ne){this.next=oe,this.interceptor=ne}handle(oe){return this.interceptor.intercept(oe,this.next)}}const Le=new M.OlP("HTTP_INTERCEPTORS");let Ne=(()=>{class Oe{intercept(ne,Ie){return Ie.handle(ne)}}return Oe.\u0275fac=function(ne){return new(ne||Oe)},Oe.\u0275prov=M.Yz7({token:Oe,factory:Oe.\u0275fac}),Oe})();const qn=/^\)\]\}',?\n/;let jn=(()=>{class Oe{constructor(ne){this.xhrFactory=ne}handle(ne){if("JSONP"===ne.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new pe.y(Ie=>{const Te=this.xhrFactory.build();if(Te.open(ne.method,ne.urlWithParams),ne.withCredentials&&(Te.withCredentials=!0),ne.headers.forEach((xt,Yt)=>Te.setRequestHeader(xt,Yt.join(","))),ne.headers.has("Accept")||Te.setRequestHeader("Accept","application/json, text/plain, */*"),!ne.headers.has("Content-Type")){const xt=ne.detectContentTypeHeader();null!==xt&&Te.setRequestHeader("Content-Type",xt)}if(ne.responseType){const xt=ne.responseType.toLowerCase();Te.responseType="json"!==xt?xt:"text"}const lt=ne.serializeBody();let kt=null;const Kt=()=>{if(null!==kt)return kt;const xt=Te.statusText||"OK",Yt=new q(Te.getAllResponseHeaders()),nr=function Ir(Oe){return"responseURL"in Oe&&Oe.responseURL?Oe.responseURL:/^X-Request-URL:/m.test(Oe.getAllResponseHeaders())?Oe.getResponseHeader("X-Request-URL"):null}(Te)||ne.url;return kt=new yt({headers:Yt,status:Te.status,statusText:xt,url:nr}),kt},qe=()=>{let{headers:xt,status:Yt,statusText:nr,url:Nn}=Kt(),pn=null;204!==Yt&&(pn=typeof Te.response>"u"?Te.responseText:Te.response),0===Yt&&(Yt=pn?200:0);let dt=Yt>=200&&Yt<300;if("json"===ne.responseType&&"string"==typeof pn){const Rn=pn;pn=pn.replace(qn,"");try{pn=""!==pn?JSON.parse(pn):null}catch(Cr){pn=Rn,dt&&(dt=!1,pn={error:Cr,text:pn})}}dt?(Ie.next(new Gt({body:pn,headers:xt,status:Yt,statusText:nr,url:Nn||void 0})),Ie.complete()):Ie.error(new st({error:pn,headers:xt,status:Yt,statusText:nr,url:Nn||void 0}))},un=xt=>{const{url:Yt}=Kt(),nr=new st({error:xt,status:Te.status||0,statusText:Te.statusText||"Unknown Error",url:Yt||void 0});Ie.error(nr)};let Xt=!1;const yr=xt=>{Xt||(Ie.next(Kt()),Xt=!0);let Yt={type:it.DownloadProgress,loaded:xt.loaded};xt.lengthComputable&&(Yt.total=xt.total),"text"===ne.responseType&&!!Te.responseText&&(Yt.partialText=Te.responseText),Ie.next(Yt)},It=xt=>{let Yt={type:it.UploadProgress,loaded:xt.loaded};xt.lengthComputable&&(Yt.total=xt.total),Ie.next(Yt)};return Te.addEventListener("load",qe),Te.addEventListener("error",un),Te.addEventListener("timeout",un),Te.addEventListener("abort",un),ne.reportProgress&&(Te.addEventListener("progress",yr),null!==lt&&Te.upload&&Te.upload.addEventListener("progress",It)),Te.send(lt),Ie.next({type:it.Sent}),()=>{Te.removeEventListener("error",un),Te.removeEventListener("abort",un),Te.removeEventListener("load",qe),Te.removeEventListener("timeout",un),ne.reportProgress&&(Te.removeEventListener("progress",yr),null!==lt&&Te.upload&&Te.upload.removeEventListener("progress",It)),Te.readyState!==Te.DONE&&Te.abort()}})}}return Oe.\u0275fac=function(ne){return new(ne||Oe)(M.LFG(l.JF))},Oe.\u0275prov=M.Yz7({token:Oe,factory:Oe.\u0275fac}),Oe})();const sn=new M.OlP("XSRF_COOKIE_NAME"),gn=new M.OlP("XSRF_HEADER_NAME");class zr{}let di=(()=>{class Oe{constructor(ne,Ie,Te){this.doc=ne,this.platform=Ie,this.cookieName=Te,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const ne=this.doc.cookie||"";return ne!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,l.Mx)(ne,this.cookieName),this.lastCookieString=ne),this.lastToken}}return Oe.\u0275fac=function(ne){return new(ne||Oe)(M.LFG(l.K0),M.LFG(M.Lbi),M.LFG(sn))},Oe.\u0275prov=M.Yz7({token:Oe,factory:Oe.\u0275fac}),Oe})(),Ti=(()=>{class Oe{constructor(ne,Ie){this.tokenService=ne,this.headerName=Ie}intercept(ne,Ie){const Te=ne.url.toLowerCase();if("GET"===ne.method||"HEAD"===ne.method||Te.startsWith("http://")||Te.startsWith("https://"))return Ie.handle(ne);const lt=this.tokenService.getToken();return null!==lt&&!ne.headers.has(this.headerName)&&(ne=ne.clone({headers:ne.headers.set(this.headerName,lt)})),Ie.handle(ne)}}return Oe.\u0275fac=function(ne){return new(ne||Oe)(M.LFG(zr),M.LFG(gn))},Oe.\u0275prov=M.Yz7({token:Oe,factory:Oe.\u0275fac}),Oe})(),ze=(()=>{class Oe{constructor(ne,Ie){this.backend=ne,this.injector=Ie,this.chain=null}handle(ne){if(null===this.chain){const Ie=this.injector.get(Le,[]);this.chain=Ie.reduceRight((Te,lt)=>new Me(Te,lt),this.backend)}return this.chain.handle(ne)}}return Oe.\u0275fac=function(ne){return new(ne||Oe)(M.LFG(ae),M.LFG(M.zs3))},Oe.\u0275prov=M.Yz7({token:Oe,factory:Oe.\u0275fac}),Oe})(),wn=(()=>{class Oe{static disable(){return{ngModule:Oe,providers:[{provide:Ti,useClass:Ne}]}}static withOptions(ne={}){return{ngModule:Oe,providers:[ne.cookieName?{provide:sn,useValue:ne.cookieName}:[],ne.headerName?{provide:gn,useValue:ne.headerName}:[]]}}}return Oe.\u0275fac=function(ne){return new(ne||Oe)},Oe.\u0275mod=M.oAB({type:Oe}),Oe.\u0275inj=M.cJS({providers:[Ti,{provide:Le,useExisting:Ti,multi:!0},{provide:zr,useClass:di},{provide:sn,useValue:"XSRF-TOKEN"},{provide:gn,useValue:"X-XSRF-TOKEN"}]}),Oe})(),Vi=(()=>{class Oe{}return Oe.\u0275fac=function(ne){return new(ne||Oe)},Oe.\u0275mod=M.oAB({type:Oe}),Oe.\u0275inj=M.cJS({providers:[_e,{provide:X,useClass:ze},jn,{provide:ae,useExisting:jn}],imports:[wn.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),Oe})()},4537:(et,Ee,j)=>{j.d(Ee,{$8M:()=>tr,$Z:()=>Dg,AFp:()=>Yf,ALo:()=>rv,AaK:()=>X,AsE:()=>mm,BQk:()=>Uc,CHM:()=>Gn,CRH:()=>dv,CZH:()=>fu,CqO:()=>sm,D6c:()=>ww,DdM:()=>ev,DyG:()=>Ra,EJc:()=>RD,EpF:()=>nd,F$t:()=>cm,F4k:()=>Za,FYo:()=>Kp,FiY:()=>Sc,G48:()=>Pe,Gf:()=>uv,GfV:()=>Xp,GkF:()=>Jh,Gpc:()=>ee,Hsn:()=>FC,Ikx:()=>Kc,JOm:()=>la,Jf7:()=>eg,KtG:()=>ro,LFG:()=>Zn,LMc:()=>Tw,LSH:()=>gh,Lbi:()=>Lv,Lck:()=>wd,MAs:()=>Qh,MGl:()=>rd,MMx:()=>Td,NdJ:()=>Kh,OlP:()=>kn,Oqu:()=>qc,PXZ:()=>Yv,Q6J:()=>td,QGY:()=>im,QP$:()=>hi,QbO:()=>Vv,Qsj:()=>_y,R0b:()=>wo,RDi:()=>G0,Rgc:()=>cc,SBq:()=>Ac,Sil:()=>Wb,Suo:()=>Lf,TTD:()=>gi,TgZ:()=>jc,Tol:()=>HC,Udp:()=>Zc,VKq:()=>wf,W1O:()=>Ib,WFA:()=>Uo,XFs:()=>ze,Xpm:()=>Nn,Xts:()=>mh,Y36:()=>Vl,YKP:()=>Dd,YNc:()=>Wl,Yjl:()=>Bi,Yz7:()=>zt,Z0I:()=>cn,ZZ4:()=>f0,_Bn:()=>_l,_UZ:()=>rm,_Vd:()=>Tc,_c5:()=>Sw,_uU:()=>$C,aQg:()=>p0,c2e:()=>Gb,cJS:()=>Ft,cg1:()=>ld,d8E:()=>Xc,dDg:()=>n0,dqk:()=>Te,eFA:()=>Qv,ekj:()=>Wa,eoX:()=>dc,evT:()=>tg,f3M:()=>tp,g9A:()=>Wf,h0i:()=>Ka,hGG:()=>Dw,hij:()=>ya,iGM:()=>He,ifc:()=>Ie,ip1:()=>Gf,jDz:()=>bf,kL8:()=>lf,lG2:()=>Ai,lcZ:()=>sv,lnq:()=>vm,lqb:()=>cl,lri:()=>e0,n5z:()=>Wr,oAB:()=>Cr,oJD:()=>zp,oxw:()=>am,pYS:()=>ng,qLn:()=>Ic,qOj:()=>Ni,qZA:()=>qh,rWj:()=>t0,s9C:()=>um,sBO:()=>yn,sIi:()=>ga,s_b:()=>kd,soG:()=>pu,tb:()=>Qf,tp0:()=>Tu,uIk:()=>Xg,vHH:()=>ge,vpe:()=>Ei,wAp:()=>Mt,xi3:()=>lc,xp6:()=>ug,ynx:()=>zc,z2F:()=>a,zSh:()=>vh,zs3:()=>ul});var l=j(9765),M=j(3464),ce=j(882),pe=j(6682),de=j(4121);function J(d){for(let h in d)if(d[h]===J)return h;throw Error("Could not find renamed property on target object.")}function he(d,h){for(const p in h)h.hasOwnProperty(p)&&!d.hasOwnProperty(p)&&(d[p]=h[p])}function X(d){if("string"==typeof d)return d;if(Array.isArray(d))return"["+d.map(X).join(", ")+"]";if(null==d)return""+d;if(d.overriddenName)return`${d.overriddenName}`;if(d.name)return`${d.name}`;const h=d.toString();if(null==h)return""+h;const p=h.indexOf("\n");return-1===p?h:h.substring(0,p)}function ae(d,h){return null==d||""===d?null===h?"":h:null==h||""===h?d:d+" "+h}const q=J({__forward_ref__:J});function ee(d){return d.__forward_ref__=ee,d.toString=function(){return X(this())},d}function se(d){return ye(d)?d():d}function ye(d){return"function"==typeof d&&d.hasOwnProperty(q)&&d.__forward_ref__===ee}class ge extends Error{constructor(h,p){super(function be(d,h){return`NG0${Math.abs(d)}${h?": "+h.trim():""}`}(h,p)),this.code=h}}function Ce(d){return"string"==typeof d?d:null==d?"":String(d)}function $e(d,h){throw new ge(-201,!1)}function Ne(d,h){null==d&&function Be(d,h,p,m){throw new Error(`ASSERTION ERROR: ${d}`+(null==m?"":` [Expected=> ${p} ${m} ${h} <=Actual]`))}(h,d,null,"!=")}function zt(d){return{token:d.token,providedIn:d.providedIn||null,factory:d.factory,value:void 0}}function Ft(d){return{providers:d.providers||[],imports:d.imports||[]}}function fn(d){return qn(d,gn)||qn(d,di)}function cn(d){return null!==fn(d)}function qn(d,h){return d.hasOwnProperty(h)?d[h]:null}function sn(d){return d&&(d.hasOwnProperty(zr)||d.hasOwnProperty(Ti))?d[zr]:null}const gn=J({\u0275prov:J}),zr=J({\u0275inj:J}),di=J({ngInjectableDef:J}),Ti=J({ngInjectorDef:J});var ze=(()=>((ze=ze||{})[ze.Default=0]="Default",ze[ze.Host=1]="Host",ze[ze.Self=2]="Self",ze[ze.SkipSelf=4]="SkipSelf",ze[ze.Optional=8]="Optional",ze))();let lr;function wn(d){const h=lr;return lr=d,h}function Vi(d,h,p){const m=fn(d);return m&&"root"==m.providedIn?void 0===m.value?m.value=m.factory():m.value:p&ze.Optional?null:void 0!==h?h:void $e(X(d))}function En(d){return{toString:d}.toString()}var Oe=(()=>((Oe=Oe||{})[Oe.OnPush=0]="OnPush",Oe[Oe.Default=1]="Default",Oe))(),Ie=(()=>{return(d=Ie||(Ie={}))[d.Emulated=0]="Emulated",d[d.None=2]="None",d[d.ShadowDom=3]="ShadowDom",Ie;var d})();const Te=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Kt={},qe=[],un=J({\u0275cmp:J}),Xt=J({\u0275dir:J}),yr=J({\u0275pipe:J}),It=J({\u0275mod:J}),xt=J({\u0275fac:J}),Yt=J({__NG_ELEMENT_ID__:J});let nr=0;function Nn(d){return En(()=>{const p=!0===d.standalone,m={},v={type:d.type,providersResolver:null,decls:d.decls,vars:d.vars,factory:null,template:d.template||null,consts:d.consts||null,ngContentSelectors:d.ngContentSelectors,hostBindings:d.hostBindings||null,hostVars:d.hostVars||0,hostAttrs:d.hostAttrs||null,contentQueries:d.contentQueries||null,declaredInputs:m,inputs:null,outputs:null,exportAs:d.exportAs||null,onPush:d.changeDetection===Oe.OnPush,directiveDefs:null,pipeDefs:null,standalone:p,dependencies:p&&d.dependencies||null,getStandaloneInjector:null,selectors:d.selectors||qe,viewQuery:d.viewQuery||null,features:d.features||null,data:d.data||{},encapsulation:d.encapsulation||Ie.Emulated,id:"c"+nr++,styles:d.styles||qe,_:null,setInput:null,schemas:d.schemas||null,tView:null},C=d.dependencies,w=d.features;return v.inputs=Ts(d.inputs,m),v.outputs=Ts(d.outputs),w&&w.forEach(I=>I(v)),v.directiveDefs=C?()=>("function"==typeof C?C():C).map(dt).filter(Rn):null,v.pipeDefs=C?()=>("function"==typeof C?C():C).map(zn).filter(Rn):null,v})}function dt(d){return en(d)||Tn(d)}function Rn(d){return null!==d}function Cr(d){return En(()=>({type:d.type,bootstrap:d.bootstrap||qe,declarations:d.declarations||qe,imports:d.imports||qe,exports:d.exports||qe,transitiveCompileScopes:null,schemas:d.schemas||null,id:d.id||null}))}function Ts(d,h){if(null==d)return Kt;const p={};for(const m in d)if(d.hasOwnProperty(m)){let v=d[m],C=v;Array.isArray(v)&&(C=v[1],v=v[0]),p[v]=m,h&&(h[v]=C)}return p}const Ai=Nn;function Bi(d){return{type:d.type,name:d.name,factory:null,pure:!1!==d.pure,standalone:!0===d.standalone,onDestroy:d.type.prototype.ngOnDestroy||null}}function en(d){return d[un]||null}function Tn(d){return d[Xt]||null}function zn(d){return d[yr]||null}function hi(d){const h=en(d)||Tn(d)||zn(d);return null!==h&&h.standalone}function Jn(d,h){const p=d[It]||null;if(!p&&!0===h)throw new Error(`Type ${X(d)} does not have '\u0275mod' property.`);return p}function Vn(d){return Array.isArray(d)&&"object"==typeof d[1]}function dr(d){return Array.isArray(d)&&!0===d[1]}function Xr(d){return 0!=(8&d.flags)}function on(d){return 2==(2&d.flags)}function Js(d){return 1==(1&d.flags)}function Sr(d){return null!==d.template}function To(d){return 0!=(256&d[2])}function $r(d,h){return d.hasOwnProperty(xt)?d[xt]:null}class Gr{constructor(h,p,m){this.previousValue=h,this.currentValue=p,this.firstChange=m}isFirstChange(){return this.firstChange}}function gi(){return eo}function eo(d){return d.type.prototype.ngOnChanges&&(d.setInput=xi),Lr}function Lr(){const d=Fs(this),h=d?.current;if(h){const p=d.previous;if(p===Kt)d.previous=h;else for(let m in h)p[m]=h[m];d.current=null,this.ngOnChanges(h)}}function xi(d,h,p,m){const v=Fs(d)||function to(d,h){return d[Or]=h}(d,{previous:Kt,current:null}),C=v.current||(v.current={}),w=v.previous,I=this.declaredInputs[p],k=w[I];C[I]=new Gr(k&&k.currentValue,h,w===Kt),d[m]=h}gi.ngInherit=!0;const Or="__ngSimpleChanges__";function Fs(d){return d[Or]||null}function An(d){for(;Array.isArray(d);)d=d[0];return d}function zi(d,h){return An(h[d])}function Fr(d,h){return An(h[d.index])}function no(d,h){return d.data[h]}function ss(d,h){return d[h]}function mn(d,h){const p=h[d];return Vn(p)?p:p[0]}function kr(d){return 64==(64&d[2])}function vi(d,h){return null==h?null:d[h]}function Mi(d){d[18]=0}function as(d,h){d[5]+=h;let p=d,m=d[3];for(;null!==m&&(1===h&&1===p[5]||-1===h&&0===p[5]);)m[5]+=h,p=m,m=m[3]}const At={lFrame:ka(null),bindingsEnabled:!0};function Mo(){return At.bindingsEnabled}function Fe(){return At.lFrame.lView}function Ue(){return At.lFrame.tView}function Gn(d){return At.lFrame.contextLView=d,d[8]}function ro(d){return At.lFrame.contextLView=null,d}function Cn(){let d=V();for(;null!==d&&64===d.type;)d=d.parent;return d}function V(){return At.lFrame.currentTNode}function P(d,h){const p=At.lFrame;p.currentTNode=d,p.isParent=h}function G(){return At.lFrame.isParent}function we(){At.lFrame.isParent=!1}function Mn(){const d=At.lFrame;let h=d.bindingRootIndex;return-1===h&&(h=d.bindingRootIndex=d.tView.bindingStartIndex),h}function cs(){return At.lFrame.bindingIndex}function Gi(){return At.lFrame.bindingIndex++}function yi(d){const h=At.lFrame,p=h.bindingIndex;return h.bindingIndex=h.bindingIndex+d,p}function Zr(d,h){const p=At.lFrame;p.bindingIndex=p.bindingRootIndex=d,Ns(h)}function Ns(d){At.lFrame.currentDirectiveIndex=d}function Ye(d){const h=At.lFrame.currentDirectiveIndex;return-1===h?null:d[h]}function ot(){return At.lFrame.currentQueryIndex}function ds(d){At.lFrame.currentQueryIndex=d}function wl(d){const h=d[1];return 2===h.type?h.declTNode:1===h.type?d[6]:null}function ta(d,h,p){if(p&ze.SkipSelf){let v=h,C=d;for(;!(v=v.parent,null!==v||p&ze.Host||(v=wl(C),null===v||(C=C[15],10&v.type))););if(null===v)return!1;h=v,d=C}const m=At.lFrame=Fa();return m.currentTNode=h,m.lView=d,!0}function ko(d){const h=Fa(),p=d[1];At.lFrame=h,h.currentTNode=p.firstChild,h.lView=d,h.tView=p,h.contextLView=d,h.bindingIndex=p.bindingStartIndex,h.inI18n=!1}function Fa(){const d=At.lFrame,h=null===d?null:d.child;return null===h?ka(d):h}function ka(d){const h={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:d,child:null,inI18n:!1};return null!==d&&(d.child=h),h}function El(){const d=At.lFrame;return At.lFrame=d.parent,d.currentTNode=null,d.lView=null,d}const na=El;function ra(){const d=El();d.isParent=!0,d.tView=null,d.selectedIndex=-1,d.contextLView=null,d.elementDepthCount=0,d.currentDirectiveIndex=-1,d.currentNamespace=null,d.bindingRootIndex=-1,d.bindingIndex=-1,d.currentQueryIndex=0}function Dr(){return At.lFrame.selectedIndex}function ti(d){At.lFrame.selectedIndex=d}function vn(){const d=At.lFrame;return no(d.tView,d.selectedIndex)}function No(d,h){for(let p=h.directiveStart,m=h.directiveEnd;p=m)break}else h[k]<0&&(d[18]+=65536),(I>11>16&&(3&d[2])===h){d[2]+=2048;try{C.call(I)}finally{}}}else try{C.call(I)}finally{}}class Pa{constructor(h,p,m){this.factory=h,this.resolving=!1,this.canSeeViewProviders=p,this.injectImpl=m}}function y(d,h,p){let m=0;for(;mh){w=C-1;break}}}for(;C>16}(d),m=h;for(;p>0;)m=m[15],p--;return m}let We=!0;function rt(d){const h=We;return We=d,h}let nn=0;const jt={};function Bn(d,h){const p=Ls(d,h);if(-1!==p)return p;const m=h[1];m.firstCreatePass&&(d.injectorIndex=h.length,Yn(m.data,d),Yn(h,null),Yn(m.blueprint,null));const v=ni(d,h),C=d.injectorIndex;if(K(v)){const w=fe(v),I=Ve(v,h),k=I[1].data;for(let B=0;B<8;B++)h[C+B]=I[w+B]|k[w+B]}return h[C+8]=v,C}function Yn(d,h){d.push(0,0,0,0,0,0,0,0,h)}function Ls(d,h){return-1===d.injectorIndex||d.parent&&d.parent.injectorIndex===d.injectorIndex||null===h[d.injectorIndex+8]?-1:d.injectorIndex}function ni(d,h){if(d.parent&&-1!==d.parent.injectorIndex)return d.parent.injectorIndex;let p=0,m=null,v=h;for(;null!==v;){if(m=On(v),null===m)return-1;if(p++,v=v[15],-1!==m.injectorIndex)return m.injectorIndex|p<<16}return-1}function Pr(d,h,p){!function er(d,h,p){let m;"string"==typeof p?m=p.charCodeAt(0)||0:p.hasOwnProperty(Yt)&&(m=p[Yt]),null==m&&(m=p[Yt]=nn++);const v=255&m;h.data[d+(v>>5)]|=1<=0?255&h:hr:h}(p);if("function"==typeof C){if(!ta(h,d,m))return m&ze.Host?Zi(v,0,m):fs(h,p,m,v);try{const w=C(m);if(null!=w||m&ze.Optional)return w;$e()}finally{na()}}else if("number"==typeof C){let w=null,I=Ls(d,h),k=-1,B=m&ze.Host?h[16][6]:null;for((-1===I||m&ze.SkipSelf)&&(k=-1===I?ni(d,h):h[I+8],-1!==k&&St(m,!1)?(w=h[1],I=fe(k),h=Ve(k,h)):I=-1);-1!==I;){const U=h[1];if(bt(C,I,U.data)){const Z=gs(I,h,p,w,m,B);if(Z!==jt)return Z}k=h[I+8],-1!==k&&St(m,h[1].data[I+8]===B)&&bt(C,I,h)?(w=U,I=fe(k),h=Ve(k,h)):I=-1}}return v}function gs(d,h,p,m,v,C){const w=h[1],I=w.data[d+8],U=hn(I,w,p,null==m?on(I)&&We:m!=w&&0!=(3&I.type),v&ze.Host&&C===I);return null!==U?ms(h,w,U,I):jt}function hn(d,h,p,m,v){const C=d.providerIndexes,w=h.data,I=1048575&C,k=d.directiveStart,U=C>>20,ue=v?I+U:d.directiveEnd;for(let ve=m?I:I+U;ve=k&&Re.type===p)return ve}if(v){const ve=w[k];if(ve&&Sr(ve)&&ve.type===p)return k}return null}function ms(d,h,p,m){let v=d[p];const C=h.data;if(function vu(d){return d instanceof Pa}(v)){const w=v;w.resolving&&function Rt(d,h){const p=h?`. Dependency path: ${h.join(" > ")} > ${d}`:"";throw new ge(-200,`Circular dependency in DI detected for ${d}${p}`)}(function je(d){return"function"==typeof d?d.name||d.toString():"object"==typeof d&&null!=d&&"function"==typeof d.type?d.type.name||d.type.toString():Ce(d)}(C[p]));const I=rt(w.canSeeViewProviders);w.resolving=!0;const k=w.injectImpl?wn(w.injectImpl):null;ta(d,m,ze.Default);try{v=d[p]=w.factory(void 0,C,d,m),h.firstCreatePass&&p>=m.directiveStart&&function ia(d,h,p){const{ngOnChanges:m,ngOnInit:v,ngDoCheck:C}=h.type.prototype;if(m){const w=eo(h);(p.preOrderHooks||(p.preOrderHooks=[])).push(d,w),(p.preOrderCheckHooks||(p.preOrderCheckHooks=[])).push(d,w)}v&&(p.preOrderHooks||(p.preOrderHooks=[])).push(0-d,v),C&&((p.preOrderHooks||(p.preOrderHooks=[])).push(d,C),(p.preOrderCheckHooks||(p.preOrderCheckHooks=[])).push(d,C))}(p,C[p],h)}finally{null!==k&&wn(k),rt(I),w.resolving=!1,na()}}return v}function bt(d,h,p){return!!(p[h+(d>>5)]&1<{const h=d.prototype.constructor,p=h[xt]||wr(h),m=Object.prototype;let v=Object.getPrototypeOf(d.prototype).constructor;for(;v&&v!==m;){const C=v[xt]||wr(v);if(C&&C!==p)return C;v=Object.getPrototypeOf(v)}return C=>new C})}function wr(d){return ye(d)?()=>{const h=wr(se(d));return h&&h()}:$r(d)}function On(d){const h=d[1],p=h.type;return 2===p?h.declTNode:1===p?d[6]:null}function tr(d){return function Vs(d,h){if("class"===h)return d.classes;if("style"===h)return d.styles;const p=d.attrs;if(p){const m=p.length;let v=0;for(;v{const m=function vs(d){return function(...p){if(d){const m=d(...p);for(const v in m)this[v]=m[v]}}}(h);function v(...C){if(this instanceof v)return m.apply(this,C),this;const w=new v(...C);return I.annotation=w,I;function I(k,B,U){const Z=k.hasOwnProperty(Hn)?k[Hn]:Object.defineProperty(k,Hn,{value:[]})[Hn];for(;Z.length<=U;)Z.push(null);return(Z[U]=Z[U]||[]).push(w),k}}return p&&(v.prototype=Object.create(p.prototype)),v.prototype.ngMetadataName=d,v.annotationCls=v,v})}class kn{constructor(h,p){this._desc=h,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof p?this.__NG_ELEMENT_ID__=p:void 0!==p&&(this.\u0275prov=zt({token:this,providedIn:p.providedIn||"root",factory:p.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const Ra=Function;function ri(d,h){void 0===h&&(h=d);for(let p=0;pArray.isArray(p)?Hs(p,h):h(p))}function _c(d,h,p){h>=d.length?d.push(p):d.splice(h,0,p)}function ys(d,h){return h>=d.length-1?d.pop():d.splice(h,1)[0]}function sl(d,h){const p=[];for(let m=0;m=0?d[1|m]=p:(m=~m,function Su(d,h,p,m){let v=d.length;if(v==h)d.push(p,m);else if(1===v)d.push(m,d[0]),d[0]=p;else{for(v--,d.push(d[v-1],d[v]);v>h;)d[v]=d[v-2],v--;d[h]=p,d[h+1]=m}}(d,m,h,p)),m}function Cc(d,h){const p=Cs(d,h);if(p>=0)return d[1|p]}function Cs(d,h){return function bc(d,h,p){let m=0,v=d.length>>p;for(;v!==m;){const C=m+(v-m>>1),w=d[C<h?v=C:m=C+1}return~(v<((la=la||{})[la.Important=1]="Important",la[la.DashCase=2]="DashCase",la))();const Xd=new Map;let eh=0;const fp="__ngContext__";function Pi(d,h){Vn(h)?(d[fp]=h[20],function d_(d){Xd.set(d[20],d)}(h)):d[fp]=h}function th(d,h){return undefined(d,h)}function ho(d){const h=d[3];return dr(h)?h[3]:h}function Dt(d){return yp(d[13])}function nh(d){return yp(d[4])}function yp(d){for(;null!==d&&!dr(d);)d=d[4];return d}function kl(d,h,p,m,v){if(null!=m){let C,w=!1;dr(m)?C=m:Vn(m)&&(w=!0,m=m[0]);const I=An(m);0===d&&null!==p?null==v?Tp(h,p,I):ol(h,p,I,v||null,!0):1===d&&null!==p?ol(h,p,I,v||null,!0):2===d?function Fp(d,h,p){const m=Fu(d,h);m&&function I_(d,h,p,m){d.removeChild(h,p,m)}(d,m,h,p)}(h,I,w):3===d&&h.destroyNode(I),null!=C&&function k_(d,h,p,m,v){const C=p[7];C!==An(p)&&kl(h,d,m,C,v);for(let I=10;I0&&(d[p-1][4]=m[4]);const C=ys(d,10+h);!function C_(d,h){ku(d,h,h[11],2,null,null),h[0]=null,h[6]=null}(m[1],m);const w=C[19];null!==w&&w.detachView(C[1]),m[3]=null,m[4]=null,m[2]&=-65}return m}function Dp(d,h){if(!(128&h[2])){const p=h[11];p.destroyNode&&ku(d,h,p,3,null,null),function D_(d){let h=d[13];if(!h)return sh(d[1],d);for(;h;){let p=null;if(Vn(h))p=h[13];else{const m=h[10];m&&(p=m)}if(!p){for(;h&&!h[4]&&h!==d;)Vn(h)&&sh(h[1],h),h=h[3];null===h&&(h=d),Vn(h)&&sh(h[1],h),p=h&&h[4]}h=p}}(h)}}function sh(d,h){if(!(128&h[2])){h[2]&=-65,h[2]|=128,function A_(d,h){let p;if(null!=d&&null!=(p=d.destroyHooks))for(let m=0;m=0?m[v=B]():m[v=-B].unsubscribe(),C+=2}else{const w=m[v=p[C+1]];p[C].call(w)}if(null!==m){for(let C=v+1;Cd,createScript:d=>d,createScriptURL:d=>d})}catch{}return Pu}()?.createHTML(d)||d}function G0(d){Rp=d}function B_(d){return function Lp(){if(void 0===dh&&(dh=null,Te.trustedTypes))try{dh=Te.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:d=>d,createScript:d=>d,createScriptURL:d=>d})}catch{}return dh}()?.createHTML(d)||d}class z_{constructor(h){this.changingThisBreaksApplicationSecurity=h}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}function Va(d){return d instanceof z_?d.changingThisBreaksApplicationSecurity:d}function Ec(d,h){const p=function U_(d){return d instanceof z_&&d.getTypeName()||null}(d);if(null!=p&&p!==h){if("ResourceURL"===p&&"URL"===h)return!0;throw new Error(`Required a safe ${h}, got a ${p} (see https://g.co/ng/security#xss)`)}return p===h}class $_{constructor(h){this.inertDocumentHelper=h}getInertBodyElement(h){h=""+h;try{const p=(new window.DOMParser).parseFromString(al(h),"text/html").body;return null===p?this.inertDocumentHelper.getInertBodyElement(h):(p.removeChild(p.firstChild),p)}catch{return null}}}class G_{constructor(h){if(this.defaultDoc=h,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const p=this.inertDocument.createElement("html");this.inertDocument.appendChild(p);const m=this.inertDocument.createElement("body");p.appendChild(m)}}getInertBodyElement(h){const p=this.inertDocument.createElement("template");if("content"in p)return p.innerHTML=al(h),p;const m=this.inertDocument.createElement("body");return m.innerHTML=al(h),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(m),m}stripCustomNsAttrs(h){const p=h.attributes;for(let v=p.length-1;0"),!0}endElement(h){const p=h.nodeName.toLowerCase();hh.hasOwnProperty(p)&&!W_.hasOwnProperty(p)&&(this.buf.push(""))}chars(h){this.buf.push(jp(h))}checkClobberedElement(h,p){if(p&&(h.compareDocumentPosition(p)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${h.outerHTML}`);return p}}const X_=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ey=/([^\#-~ |!])/g;function jp(d){return d.replace(/&/g,"&").replace(X_,function(h){return"&#"+(1024*(h.charCodeAt(0)-55296)+(h.charCodeAt(1)-56320)+65536)+";"}).replace(ey,function(h){return"&#"+h.charCodeAt(0)+";"}).replace(//g,">")}let Ru;function ph(d){return"content"in d&&function ny(d){return d.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===d.nodeName}(d)?d.content:null}var Nr=(()=>((Nr=Nr||{})[Nr.NONE=0]="NONE",Nr[Nr.HTML=1]="HTML",Nr[Nr.STYLE=2]="STYLE",Nr[Nr.SCRIPT=3]="SCRIPT",Nr[Nr.URL=4]="URL",Nr[Nr.RESOURCE_URL=5]="RESOURCE_URL",Nr))();function zp(d){const h=Lu();return h?B_(h.sanitize(Nr.HTML,d)||""):Ec(d,"HTML")?B_(Va(d)):function ty(d,h){let p=null;try{Ru=Ru||function Vp(d){const h=new G_(d);return function Y_(){try{return!!(new window.DOMParser).parseFromString(al(""),"text/html")}catch{return!1}}()?new $_(h):h}(d);let m=h?String(h):"";p=Ru.getInertBodyElement(m);let v=5,C=m;do{if(0===v)throw new Error("Failed to sanitize html because the input is unstable");v--,m=C,C=p.innerHTML,p=Ru.getInertBodyElement(m)}while(m!==C);return al((new K_).sanitizeChildren(ph(p)||p))}finally{if(p){const m=ph(p)||p;for(;m.firstChild;)m.removeChild(m.firstChild)}}}(function V_(){return void 0!==Rp?Rp:typeof document<"u"?document:void 0}(),Ce(d))}function gh(d){const h=Lu();return h?h.sanitize(Nr.URL,d)||"":Ec(d,"URL")?Va(d):Bp(Ce(d))}function Lu(){const d=Fe();return d&&d[12]}const mh=new kn("ENVIRONMENT_INITIALIZER"),Up=new kn("INJECTOR",-1),$p=new kn("INJECTOR_DEF_TYPES");class sy{get(h,p=Ae){if(p===Ae){const m=new Error(`NullInjectorError: No provider for ${X(h)}!`);throw m.name="NullInjectorError",m}return p}}function lS(...d){return{\u0275providers:oy(0,d)}}function oy(d,...h){const p=[],m=new Set;let v;return Hs(h,C=>{const w=C;Gp(w,p,[],m)&&(v||(v=[]),v.push(w))}),void 0!==v&&ay(v,p),p}function ay(d,h){for(let p=0;p{h.push(C)})}}function Gp(d,h,p,m){if(!(d=se(d)))return!1;let v=null,C=sn(d);const w=!C&&en(d);if(C||w){if(w&&!w.standalone)return!1;v=d}else{const k=d.ngModule;if(C=sn(k),!C)return!1;v=k}const I=m.has(v);if(w){if(I)return!1;if(m.add(v),w.dependencies){const k="function"==typeof w.dependencies?w.dependencies():w.dependencies;for(const B of k)Gp(B,h,p,m)}}else{if(!C)return!1;{if(null!=C.imports&&!I){let B;m.add(v);try{Hs(C.imports,U=>{Gp(U,h,p,m)&&(B||(B=[]),B.push(U))})}finally{}void 0!==B&&ay(B,h)}if(!I){const B=$r(v)||(()=>new v);h.push({provide:v,useFactory:B,deps:qe},{provide:$p,useValue:v,multi:!0},{provide:mh,useValue:()=>Zn(v),multi:!0})}const k=C.providers;null==k||I||Hs(k,U=>{h.push(U)})}}return v!==d&&void 0!==d.providers}const cS=J({provide:String,useValue:J});function Yp(d){return null!==d&&"object"==typeof d&&cS in d}function ll(d){return"function"==typeof d}const vh=new kn("Set Injector scope."),Vu={},cy={};let _h;function Bu(){return void 0===_h&&(_h=new sy),_h}class cl{}class Qp extends cl{constructor(h,p,m,v){super(),this.parent=p,this.source=m,this.scopes=v,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Jp(h,w=>this.processProvider(w)),this.records.set(Up,Pl(void 0,this)),v.has("environment")&&this.records.set(cl,Pl(void 0,this));const C=this.records.get(vh);null!=C&&"string"==typeof C.value&&this.scopes.add(C.value),this.injectorDefTypes=new Set(this.get($p.multi,qe,ze.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const h of this._ngOnDestroyHooks)h.ngOnDestroy();for(const h of this._onDestroyHooks)h()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(h){this._onDestroyHooks.push(h)}runInContext(h){this.assertNotDestroyed();const p=oi(this),m=wn(void 0);try{return h()}finally{oi(p),wn(m)}}get(h,p=Ae,m=ze.Default){this.assertNotDestroyed();const v=oi(this),C=wn(void 0);try{if(!(m&ze.SkipSelf)){let I=this.records.get(h);if(void 0===I){const k=function dS(d){return"function"==typeof d||"object"==typeof d&&d instanceof kn}(h)&&fn(h);I=k&&this.injectableDefInScope(k)?Pl(yh(h),Vu):null,this.records.set(h,I)}if(null!=I)return this.hydrate(h,I)}return(m&ze.Self?Bu():this.parent).get(h,p=m&ze.Optional&&p===Ae?null:p)}catch(w){if("NullInjectorError"===w.name){if((w[Ut]=w[Ut]||[]).unshift(X(h)),v)throw w;return function t_(d,h,p,m){const v=d[Ut];throw h[Qi]&&v.unshift(h[Qi]),d.message=function E0(d,h,p,m=null){d=d&&"\n"===d.charAt(0)&&"\u0275"==d.charAt(1)?d.slice(2):d;let v=X(h);if(Array.isArray(h))v=h.map(X).join(" -> ");else if("object"==typeof h){let C=[];for(let w in h)if(h.hasOwnProperty(w)){let I=h[w];C.push(w+":"+("string"==typeof I?JSON.stringify(I):X(I)))}v=`{${C.join(", ")}}`}return`${p}${m?"("+m+")":""}[${v}]: ${d.replace(bn,"\n ")}`}("\n"+d.message,v,p,m),d.ngTokenPath=v,d[Ut]=null,d}(w,h,"R3InjectorError",this.source)}throw w}finally{wn(C),oi(v)}}resolveInjectorInitializers(){const h=oi(this),p=wn(void 0);try{const m=this.get(mh.multi,qe,ze.Self);for(const v of m)v()}finally{oi(h),wn(p)}}toString(){const h=[],p=this.records;for(const m of p.keys())h.push(X(m));return`R3Injector[${h.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ge(205,!1)}processProvider(h){let p=ll(h=se(h))?h:se(h&&h.provide);const m=function dy(d){return Yp(d)?Pl(void 0,d.useValue):Pl(qp(d),Vu)}(h);if(ll(h)||!0!==h.multi)this.records.get(p);else{let v=this.records.get(p);v||(v=Pl(void 0,Vu,!0),v.factory=()=>Du(v.multi),this.records.set(p,v)),p=h,v.multi.push(h)}this.records.set(p,m)}hydrate(h,p){return p.value===Vu&&(p.value=cy,p.value=p.factory()),"object"==typeof p.value&&p.value&&function uS(d){return null!==d&&"object"==typeof d&&"function"==typeof d.ngOnDestroy}(p.value)&&this._ngOnDestroyHooks.add(p.value),p.value}injectableDefInScope(h){if(!h.providedIn)return!1;const p=se(h.providedIn);return"string"==typeof p?"any"===p||this.scopes.has(p):this.injectorDefTypes.has(p)}}function yh(d){const h=fn(d),p=null!==h?h.factory:$r(d);if(null!==p)return p;if(d instanceof kn)throw new ge(204,!1);if(d instanceof Function)return function uy(d){const h=d.length;if(h>0)throw sl(h,"?"),new ge(204,!1);const p=function Ir(d){const h=d&&(d[gn]||d[di]);if(h){const p=function jn(d){if(d.hasOwnProperty("name"))return d.name;const h=(""+d).match(/^function\s*([^\s(]+)/);return null===h?"":h[1]}(d);return console.warn(`DEPRECATED: DI is instantiating a token "${p}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${p}" class.`),h}return null}(d);return null!==p?()=>p.factory(d):()=>new d}(d);throw new ge(204,!1)}function qp(d,h,p){let m;if(ll(d)){const v=se(d);return $r(v)||yh(v)}if(Yp(d))m=()=>se(d.useValue);else if(function Wp(d){return!(!d||!d.useFactory)}(d))m=()=>d.useFactory(...Du(d.deps||[]));else if(function Zp(d){return!(!d||!d.useExisting)}(d))m=()=>Zn(se(d.useExisting));else{const v=se(d&&(d.useClass||d.provide));if(!function hy(d){return!!d.deps}(d))return $r(v)||yh(v);m=()=>new v(...Du(d.deps))}return m}function Pl(d,h,p=!1){return{factory:d,value:h,multi:p?[]:void 0}}function hS(d){return!!d.\u0275providers}function Jp(d,h){for(const p of d)Array.isArray(p)?Jp(p,h):hS(p)?Jp(p.\u0275providers,h):h(p)}class fy{}class gy{resolveComponentFactory(h){throw function pS(d){const h=Error(`No component factory found for ${X(d)}. Did you add it to @NgModule.entryComponents?`);return h.ngComponent=d,h}(h)}}let Tc=(()=>{class d{}return d.NULL=new gy,d})();function my(){return Nl(Cn(),Fe())}function Nl(d,h){return new Ac(Fr(d,h))}let Ac=(()=>{class d{constructor(p){this.nativeElement=p}}return d.__NG_ELEMENT_ID__=my,d})();function vy(d){return d instanceof Ac?d.nativeElement:d}class Kp{}let _y=(()=>{class d{}return d.__NG_ELEMENT_ID__=()=>function yy(){const d=Fe(),p=mn(Cn().index,d);return(Vn(p)?p:d)[11]}(),d})(),Cy=(()=>{class d{}return d.\u0275prov=zt({token:d,providedIn:"root",factory:()=>null}),d})();class Xp{constructor(h){this.full=h,this.major=h.split(".")[0],this.minor=h.split(".")[1],this.patch=h.split(".").slice(2).join(".")}}const by=new Xp("14.3.0"),Ch={};function Sh(d){return d.ngOriginalError}class Ic{constructor(){this._console=console}handleError(h){const p=this._findOriginalError(h);this._console.error("ERROR",h),p&&this._console.error("ORIGINAL ERROR",p)}_findOriginalError(h){let p=h&&Sh(h);for(;p&&Sh(p);)p=Sh(p);return p||null}}function eg(d){return d.ownerDocument.defaultView}function tg(d){return d.ownerDocument}function ng(d){return d.ownerDocument.body}function ua(d){return d instanceof Function?d():d}function ig(d,h,p){let m=d.length;for(;;){const v=d.indexOf(h,p);if(-1===v)return v;if(0===v||d.charCodeAt(v-1)<=32){const C=h.length;if(v+C===m||d.charCodeAt(v+C)<=32)return v}p=v+1}}const sg="ng-template";function xy(d,h,p){let m=0;for(;mC?"":v[Z+1].toLowerCase();const ve=8&m?ue:null;if(ve&&-1!==ig(ve,B,0)||2&m&&B!==ue){if(fo(m))return!1;w=!0}}}}else{if(!w&&!fo(m)&&!fo(k))return!1;if(w&&fo(k))continue;w=!1,m=k|1&m}}return fo(m)||w}function fo(d){return 0==(1&d)}function Oy(d,h,p,m){if(null===h)return-1;let v=0;if(m||!p){let C=!1;for(;v-1)for(p++;p0?'="'+I+'"':"")+"]"}else 8&m?v+="."+w:4&m&&(v+=" "+w);else""!==v&&!fo(w)&&(h+=cg(C,v),v=""),m=w,C=C||!fo(m);p++}return""!==v&&(h+=cg(C,v)),h}const Zt={};function ug(d){dg(Ue(),Fe(),Dr()+d,!1)}function dg(d,h,p,m){if(!m)if(3==(3&h[2])){const C=d.preOrderCheckHooks;null!==C&&io(h,C,p)}else{const C=d.preOrderHooks;null!==C&&hs(h,C,0,p)}ti(p)}function gg(d,h=null,p=null,m){const v=mg(d,h,p,m);return v.resolveInjectorInitializers(),v}function mg(d,h=null,p=null,m,v=new Set){const C=[p||qe,lS(d)];return m=m||("object"==typeof d?void 0:X(d)),new Qp(C,h||Bu(),m||null,v)}let ul=(()=>{class d{static create(p,m){if(Array.isArray(p))return gg({name:""},m,p,"");{const v=p.name??"";return gg({name:v},p.parent,p.providers,v)}}}return d.THROW_IF_NOT_FOUND=Ae,d.NULL=new sy,d.\u0275prov=zt({token:d,providedIn:"any",factory:()=>Zn(Up)}),d.__NG_ELEMENT_ID__=-1,d})();function Vl(d,h=ze.Default){const p=Fe();return null===p?Zn(d,h):Ro(Cn(),p,se(d),h)}function Dg(){throw new Error("invalid")}function ju(d,h){return d<<17|h<<2}function po(d){return d>>17&32767}function Ah(d){return 2|d}function da(d){return(131068&d)>>2}function Ih(d,h){return-131069&d|h<<2}function xh(d){return 1|d}function Pg(d,h){const p=d.contentQueries;if(null!==p)for(let m=0;m22&&dg(d,h,22,!1),p(m,v)}finally{ti(C)}}function Rg(d,h,p){if(Xr(h)){const v=h.directiveEnd;for(let C=h.directiveStart;C0;){const p=d[--h];if("number"==typeof p&&p<0)return p}return 0})(I)!=k&&I.push(k),I.push(m,v,w)}}function js(d,h){null!==d.hostBindings&&d.hostBindings(1,h)}function Ug(d,h){h.flags|=2,(d.components||(d.components=[])).push(h.index)}function Uh(d,h,p){if(p){if(h.exportAs)for(let m=0;m0&&Wu(p)}}function Wu(d){for(let m=Dt(d);null!==m;m=nh(m))for(let v=10;v0&&Wu(C)}const p=d[1].components;if(null!==p)for(let m=0;m0&&Wu(v)}}function GS(d,h){const p=mn(h,d),m=p[1];(function YS(d,h){for(let p=h.length;p-1&&(ih(h,m),ys(p,m))}this._attachedToViewContainer=!1}Dp(this._lView[1],this._lView)}onDestroy(h){Vg(this._lView[1],this._lView,null,h)}markForCheck(){Qu(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){qu(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ge(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function S_(d,h){ku(d,h,h[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(h){if(this._attachedToViewContainer)throw new ge(902,!1);this._appRef=h}}class mo extends bs{constructor(h){super(h),this._view=h}detectChanges(){const h=this._view;qu(h[1],h,h[8],!1)}checkNoChanges(){}get context(){return null}}class Fc extends Tc{constructor(h){super(),this.ngModule=h}resolveComponentFactory(h){const p=en(h);return new fa(p,this.ngModule)}}function Qg(d){const h=[];for(let p in d)d.hasOwnProperty(p)&&h.push({propName:d[p],templateName:p});return h}class ha{constructor(h,p){this.injector=h,this.parentInjector=p}get(h,p,m){const v=this.injector.get(h,Ch,m);return v!==Ch||p===Ch?v:this.parentInjector.get(h,p,m)}}class fa extends fy{constructor(h,p){super(),this.componentDef=h,this.ngModule=p,this.componentType=h.type,this.selector=function Ly(d){return d.map(Ry).join(",")}(h.selectors),this.ngContentSelectors=h.ngContentSelectors?h.ngContentSelectors:[],this.isBoundToModule=!!p}get inputs(){return Qg(this.componentDef.inputs)}get outputs(){return Qg(this.componentDef.outputs)}create(h,p,m,v){let C=(v=v||this.ngModule)instanceof cl?v:v?.injector;C&&null!==this.componentDef.getStandaloneInjector&&(C=this.componentDef.getStandaloneInjector(C)||C);const w=C?new ha(h,C):h,I=w.get(Kp,null);if(null===I)throw new ge(407,!1);const k=w.get(Cy,null),B=I.createRenderer(null,this.componentDef),U=this.componentDef.selectors[0][0]||"div",Z=m?function vC(d,h,p){return d.selectRootElement(h,p===Ie.ShadowDom)}(B,m,this.componentDef.encapsulation):Ou(B,U,function Sn(d){const h=d.toLowerCase();return"svg"===h?"svg":"math"===h?"math":null}(U)),ue=this.componentDef.onPush?288:272,ve=jh(0,null,null,1,0,null,null,null,null,null),Re=$u(null,ve,null,ue,null,null,I,B,k,w,null);let Qe,Ke;ko(Re);try{const gt=function $a(d,h,p,m,v,C){const w=p[1];p[22]=d;const k=Bl(w,22,2,"#host",null),B=k.mergedAttrs=h.hostAttrs;null!==B&&(Xu(k,B,!0),null!==d&&(y(v,d,B),null!==k.classes&&ch(v,d,k.classes),null!==k.styles&&Np(v,d,k.styles)));const U=m.createRenderer(d,h),Z=$u(p,Lg(h),null,h.onPush?32:16,p[22],k,m,U,C||null,null,null);return w.firstCreatePass&&(Pr(Bn(k,p),w,h.type),Ug(w,k),an(k,p.length,1)),Mc(p,Z),p[22]=Z}(Z,this.componentDef,Re,I,B);if(Z)if(m)y(B,Z,["ng-version",by.full]);else{const{attrs:Ot,classes:Ge}=function Vy(d){const h=[],p=[];let m=1,v=2;for(;m0&&ch(B,Z,Ge.join(" "))}if(Ke=no(ve,22),void 0!==p){const Ot=Ke.projection=[];for(let Ge=0;Ge=0;m--){const v=d[m];v.hostVars=h+=v.hostVars,v.hostAttrs=H(v.hostAttrs,p=H(p,v.hostAttrs))}}(m)}function ed(d){return d===Kt?{}:d===qe?[]:d}function wC(d,h){const p=d.viewQuery;d.viewQuery=p?(m,v)=>{h(m,v),p(m,v)}:h}function $l(d,h){const p=d.contentQueries;d.contentQueries=p?(m,v,C)=>{h(m,v,C),p(m,v,C)}:h}function kc(d,h){const p=d.hostBindings;d.hostBindings=p?(m,v)=>{h(m,v),p(m,v)}:h}let Rc=null;function Ga(){if(!Rc){const d=Te.Symbol;if(d&&d.iterator)Rc=d.iterator;else{const h=Object.getOwnPropertyNames(Map.prototype);for(let p=0;pI(An(Pn[m.index])):m.index;let Bt=null;if(!I&&k&&(Bt=function QS(d,h,p,m){const v=d.cleanup;if(null!=v)for(let C=0;Ck?I[k]:null}"string"==typeof w&&(C+=2)}return null}(d,h,v,m.index)),null!==Bt)(Bt.__ngLastListenerFn__||Bt).__ngNextListenerFn__=C,Bt.__ngLastListenerFn__=C,ve=!1;else{C=OC(m,h,Z,C,!1);const Pn=p.listen(gt,v,C);ue.push(C,Pn),U&&U.push(v,Ge,Ot,Ot+1)}}else C=OC(m,h,Z,C,!1);const Re=m.outputs;let Qe;if(ve&&null!==Re&&(Qe=Re[v])){const Ke=Qe.length;if(Ke)for(let gt=0;gt0;)h=h[15],d--;return h}(d,At.lFrame.contextLView))[8]}(d)}function lm(d,h){let p=null;const m=function Fy(d){const h=d.attrs;if(null!=h){const p=h.indexOf(5);if(0==(1&p))return h[p+1]}return null}(d);for(let v=0;v=0}const Hr={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function ef(d){return d.substring(Hr.key,Hr.keyEnd)}function Ys(d,h){const p=Hr.textEnd;return p===h?-1:(h=Hr.keyEnd=function RC(d,h,p){for(;h32;)h++;return h}(d,Hr.key=h,p),ql(d,h,p))}function ql(d,h,p){for(;h=0;p=Ys(h,p))ii(d,ef(h),!0)}function $o(d,h,p,m){const v=Fe(),C=Ue(),w=yi(2);C.firstUpdatePass&&id(C,d,w,m),h!==Zt&&Ri(v,w,h)&&Kl(C,C.data[Dr()],v,v[11],d,v[w+1]=function Xl(d,h){return null==d||("string"==typeof h?d+=h:"object"==typeof d&&(d=X(Va(d)))),d}(h,p),m,w)}function jr(d,h){return h>=d.expandoStartIndex}function id(d,h,p,m){const v=d.data;if(null===v[p+1]){const C=v[Dr()],w=jr(d,p);UC(C,m)&&null===h&&!w&&(h=!1),h=function jC(d,h,p,m){const v=Ye(d);let C=m?h.residualClasses:h.residualStyles;if(null===v)0===(m?h.classBindings:h.styleBindings)&&(p=Wc(p=nf(null,d,h,p,m),h.attrs,m),C=null);else{const w=h.directiveStylingLast;if(-1===w||d[w]!==v)if(p=nf(v,d,h,p,m),null===C){let k=function zC(d,h,p){const m=p?h.classBindings:h.styleBindings;if(0!==da(m))return d[po(m)]}(d,h,m);void 0!==k&&Array.isArray(k)&&(k=nf(null,d,h,k[1],m),k=Wc(k,h.attrs,m),function sd(d,h,p,m){d[po(p?h.classBindings:h.styleBindings)]=m}(d,h,m,k))}else C=function od(d,h,p){let m;const v=h.directiveEnd;for(let C=1+h.directiveStylingLast;C0)&&(B=!0)}else U=p;if(v)if(0!==k){const ue=po(d[I+1]);d[m+1]=ju(ue,I),0!==ue&&(d[ue+1]=Ih(d[ue+1],m)),d[I+1]=function rC(d,h){return 131071&d|h<<17}(d[I+1],m)}else d[m+1]=ju(I,0),0!==I&&(d[I+1]=Ih(d[I+1],m)),I=m;else d[m+1]=ju(k,0),0===I?I=m:d[k+1]=Ih(d[k+1],m),k=m;B&&(d[m+1]=Ah(d[m+1])),fl(d,U,m,!0),fl(d,U,m,!1),function Ql(d,h,p,m,v){const C=v?d.residualClasses:d.residualStyles;null!=C&&"string"==typeof h&&Cs(C,h)>=0&&(p[m+1]=xh(p[m+1]))}(h,U,d,m,C),w=ju(I,k),C?h.classBindings=w:h.styleBindings=w}(v,C,h,p,w,m)}}function nf(d,h,p,m,v){let C=null;const w=p.directiveEnd;let I=p.directiveStylingLast;for(-1===I?I=p.directiveStart:I++;I0;){const k=d[v],B=Array.isArray(k),U=B?k[1]:k,Z=null===U;let ue=p[v+1];ue===Zt&&(ue=Z?qe:void 0);let ve=Z?Cc(ue,m):U===m?ue:void 0;if(B&&!Qc(ve)&&(ve=Cc(k,m)),Qc(ve)&&(I=ve,w))return I;const Re=d[v+1];v=w?po(Re):da(Re)}if(null!==h){let k=C?h.residualClasses:h.residualStyles;null!=k&&(I=Cc(k,m))}return I}function Qc(d){return void 0!==d}function UC(d,h){return 0!=(d.flags&(h?16:32))}function $C(d,h=""){const p=Fe(),m=Ue(),v=d+22,C=m.firstCreatePass?Bl(m,v,1,h,null):m.data[v],w=p[v]=function rh(d,h){return d.createText(h)}(p[11],h);ah(m,p,w,C),P(C,!1)}function qc(d){return ya("",d,""),qc}function ya(d,h,p){const m=Fe(),v=Vc(m,d,h,p);return v!==Zt&&Ua(m,Dr(),v),ya}function mm(d,h,p,m,v){const C=Fe(),w=function Bc(d,h,p,m,v,C){const I=Br(d,cs(),p,v);return yi(2),I?h+Ce(p)+m+Ce(v)+C:Zt}(C,d,h,p,m,v);return w!==Zt&&Ua(C,Dr(),w),mm}function vm(d,h,p,m,v,C,w){const I=Fe(),k=Ya(I,d,h,p,m,v,C,w);return k!==Zt&&Ua(I,Dr(),k),vm}function Kc(d,h,p){const m=Fe();return Ri(m,Gi(),h)&&Jt(Ue(),vn(),m,d,h,m[11],p,!0),Kc}function Xc(d,h,p){const m=Fe();if(Ri(m,Gi(),h)){const C=Ue(),w=vn();Jt(C,w,m,d,h,Zg(Ye(C.data),w,m),p,!0)}return Xc}const Ca=void 0;var af=["en",[["a","p"],["AM","PM"],Ca],[["AM","PM"],Ca,Ca],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Ca,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Ca,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Ca,"{1} 'at' {0}",Ca],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function ad(d){const p=Math.floor(Math.abs(d)),m=d.toString().replace(/^[^.]*\.?/,"").length;return 1===p&&0===m?1:5}];let ec={};function ld(d){const h=function qC(d){return d.toLowerCase().replace(/_/g,"-")}(d);let p=Om(h);if(p)return p;const m=h.split("-")[0];if(p=Om(m),p)return p;if("en"===m)return af;throw new ge(701,!1)}function lf(d){return ld(d)[Mt.PluralCase]}function Om(d){return d in ec||(ec[d]=Te.ng&&Te.ng.common&&Te.ng.common.locales&&Te.ng.common.locales[d]),ec[d]}var Mt=(()=>((Mt=Mt||{})[Mt.LocaleId=0]="LocaleId",Mt[Mt.DayPeriodsFormat=1]="DayPeriodsFormat",Mt[Mt.DayPeriodsStandalone=2]="DayPeriodsStandalone",Mt[Mt.DaysFormat=3]="DaysFormat",Mt[Mt.DaysStandalone=4]="DaysStandalone",Mt[Mt.MonthsFormat=5]="MonthsFormat",Mt[Mt.MonthsStandalone=6]="MonthsStandalone",Mt[Mt.Eras=7]="Eras",Mt[Mt.FirstDayOfWeek=8]="FirstDayOfWeek",Mt[Mt.WeekendRange=9]="WeekendRange",Mt[Mt.DateFormat=10]="DateFormat",Mt[Mt.TimeFormat=11]="TimeFormat",Mt[Mt.DateTimeFormat=12]="DateTimeFormat",Mt[Mt.NumberSymbols=13]="NumberSymbols",Mt[Mt.NumberFormats=14]="NumberFormats",Mt[Mt.CurrencyCode=15]="CurrencyCode",Mt[Mt.CurrencySymbol=16]="CurrencySymbol",Mt[Mt.CurrencyName=17]="CurrencyName",Mt[Mt.Currencies=18]="Currencies",Mt[Mt.Directionality=19]="Directionality",Mt[Mt.PluralCase=20]="PluralCase",Mt[Mt.ExtraData=21]="ExtraData",Mt))();const Go="en-US";let cf=Go;function lu(d,h,p,m,v){if(d=se(d),Array.isArray(d))for(let C=0;C>20;if(ll(d)||!d.multi){const ve=new Pa(k,v,Vl),Re=vl(I,h,v?U:U+ue,Z);-1===Re?(Pr(Bn(B,w),C,I),oc(C,d,h.length),h.push(I),B.directiveStart++,B.directiveEnd++,v&&(B.providerIndexes+=1048576),p.push(ve),w.push(ve)):(p[Re]=ve,w[Re]=ve)}else{const ve=vl(I,h,U+ue,Z),Re=vl(I,h,U,U+ue),Qe=ve>=0&&p[ve],Ke=Re>=0&&p[Re];if(v&&!Ke||!v&&!Qe){Pr(Bn(B,w),C,I);const gt=function fb(d,h,p,m,v){const C=new Pa(d,p,Vl);return C.multi=[],C.index=h,C.componentProviders=0,Cf(C,v,m&&!p),C}(v?_n:Ja,p.length,v,m,k);!v&&Ke&&(p[Re].providerFactory=gt),oc(C,d,h.length,0),h.push(I),B.directiveStart++,B.directiveEnd++,v&&(B.providerIndexes+=1048576),p.push(gt),w.push(gt)}else oc(C,d,ve>-1?ve:Re,Cf(p[v?Re:ve],k,!v&&m));!v&&m&&Ke&&p[Re].componentProviders++}}}function oc(d,h,p,m){const v=ll(h),C=function ly(d){return!!d.useClass}(h);if(v||C){const k=(C?se(h.useClass):h).prototype.ngOnDestroy;if(k){const B=d.destroyHooks||(d.destroyHooks=[]);if(!v&&h.multi){const U=B.indexOf(p);-1===U?B.push(p,[m,k]):B[U+1].push(m,k)}else B.push(p,k)}}}function Cf(d,h,p){return p&&d.componentProviders++,d.multi.push(h)-1}function vl(d,h,p,m){for(let v=p;v{p.providersResolver=(m,v)=>function yf(d,h,p){const m=Ue();if(m.firstCreatePass){const v=Sr(d);lu(p,m.data,m.blueprint,v,!0),lu(h,m.data,m.blueprint,v,!1)}}(m,v?v(d):d,h)}}class Ka{}class Dd{}function wd(d,h){return new ui(d,h??null)}class ui extends Ka{constructor(h,p){super(),this._parent=p,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Fc(this);const m=Jn(h);this._bootstrapComponents=ua(m.bootstrap),this._r3Injector=mg(h,p,[{provide:Ka,useValue:this},{provide:Tc,useValue:this.componentFactoryResolver}],X(h),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(h)}get injector(){return this._r3Injector}destroy(){const h=this._r3Injector;!h.destroyed&&h.destroy(),this.destroyCbs.forEach(p=>p()),this.destroyCbs=null}onDestroy(h){this.destroyCbs.push(h)}}class Ed extends Dd{constructor(h){super(),this.moduleType=h}create(h){return new ui(this.moduleType,h)}}class Ea extends Ka{constructor(h,p,m){super(),this.componentFactoryResolver=new Fc(this),this.instance=null;const v=new Qp([...h,{provide:Ka,useValue:this},{provide:Tc,useValue:this.componentFactoryResolver}],p||Bu(),m,new Set(["environment"]));this.injector=v,v.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(h){this.injector.onDestroy(h)}}function Td(d,h,p=null){return new Ea(d,h,p).injector}let pb=(()=>{class d{constructor(p){this._injector=p,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(p){if(!p.standalone)return null;if(!this.cachedInjectors.has(p.id)){const m=oy(0,p.type),v=m.length>0?Td([m],this._injector,`Standalone[${p.type.name}]`):null;this.cachedInjectors.set(p.id,v)}return this.cachedInjectors.get(p.id)}ngOnDestroy(){try{for(const p of this.cachedInjectors.values())null!==p&&p.destroy()}finally{this.cachedInjectors.clear()}}}return d.\u0275prov=zt({token:d,providedIn:"environment",factory:()=>new d(Zn(cl))}),d})();function bf(d){d.getStandaloneInjector=h=>h.get(pb).getOrCreateStandaloneInjector(d)}function ev(d,h,p){const m=Mn()+d,v=Fe();return v[m]===Zt?zs(v,m,p?h.call(p):h()):function Us(d,h){return d[h]}(v,m)}function wf(d,h,p,m){return Md(Fe(),Mn(),d,h,p,m)}function uu(d,h){const p=d[h];return p===Zt?void 0:p}function Md(d,h,p,m,v,C){const w=h+p;return Ri(d,w,v)?zs(d,w+1,C?m.call(C,v):m(v)):uu(d,w+1)}function rv(d,h){const p=Ue();let m;const v=d+22;p.firstCreatePass?(m=function iv(d,h){if(h)for(let p=h.length-1;p>=0;p--){const m=h[p];if(d===m.name)return m}}(h,p.pipeRegistry),p.data[v]=m,m.onDestroy&&(p.destroyHooks||(p.destroyHooks=[])).push(v,m.onDestroy)):m=p.data[v];const C=m.factory||(m.factory=$r(m.type)),w=wn(Vl);try{const I=rt(!1),k=C();return rt(I),function Wh(d,h,p,m){p>=d.data.length&&(d.data[p]=null,d.blueprint[p]=null),h[p]=m}(p,Fe(),v,k),k}finally{wn(w)}}function sv(d,h,p){const m=d+22,v=Fe(),C=ss(v,m);return Od(v,m)?Md(v,Mn(),h,C.transform,p,C):C.transform(p)}function lc(d,h,p,m){const v=d+22,C=Fe(),w=ss(C,v);return Od(C,v)?function tv(d,h,p,m,v,C,w){const I=h+p;return Br(d,I,v,C)?zs(d,I+2,w?m.call(w,v,C):m(v,C)):uu(d,I+2)}(C,Mn(),h,w.transform,p,m,w):w.transform(p,m)}function Od(d,h){return d[1].data[h].pure}function If(d){return h=>{setTimeout(d,void 0,h)}}const Ei=class TD extends l.xQ{constructor(h=!1){super(),this.__isAsync=h}emit(h){super.next(h)}subscribe(h,p,m){let v=h,C=p||(()=>null),w=m;if(h&&"object"==typeof h){const k=h;v=k.next?.bind(k),C=k.error?.bind(k),w=k.complete?.bind(k)}this.__isAsync&&(C=If(C),v&&(v=If(v)),w&&(w=If(w)));const I=super.subscribe({next:v,error:C,complete:w});return h instanceof M.w&&h.add(I),I}};function Sb(){return this._results[Ga()]()}class Fd{constructor(h=!1){this._emitDistinctChangesOnly=h,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const p=Ga(),m=Fd.prototype;m[p]||(m[p]=Sb)}get changes(){return this._changes||(this._changes=new Ei)}get(h){return this._results[h]}map(h){return this._results.map(h)}filter(h){return this._results.filter(h)}find(h){return this._results.find(h)}reduce(h,p){return this._results.reduce(h,p)}forEach(h){this._results.forEach(h)}some(h){return this._results.some(h)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(h,p){const m=this;m.dirty=!1;const v=ri(h);(this._changesDetected=!function il(d,h,p){if(d.length!==h.length)return!1;for(let m=0;m{class d{}return d.__NG_ELEMENT_ID__=av,d})();const Db=cc,vr=class extends Db{constructor(h,p,m){super(),this._declarationLView=h,this._declarationTContainer=p,this.elementRef=m}createEmbeddedView(h,p){const m=this._declarationTContainer.tViews,v=$u(this._declarationLView,m,h,16,null,m.declTNode,null,null,null,null,p||null);v[17]=this._declarationLView[this._declarationTContainer.index];const w=this._declarationLView[19];return null!==w&&(v[19]=w.createEmbeddedView(m)),Vh(m,v,h),new bs(v)}};function av(){return yl(Cn(),Fe())}function yl(d,h){return 4&d.type?new vr(h,d,Nl(d,h)):null}let kd=(()=>{class d{}return d.__NG_ELEMENT_ID__=xf,d})();function xf(){return Ff(Cn(),Fe())}const wb=kd,Mf=class extends wb{constructor(h,p,m){super(),this._lContainer=h,this._hostTNode=p,this._hostLView=m}get element(){return Nl(this._hostTNode,this._hostLView)}get injector(){return new qt(this._hostTNode,this._hostLView)}get parentInjector(){const h=ni(this._hostTNode,this._hostLView);if(K(h)){const p=Ve(h,this._hostLView),m=fe(h);return new qt(p[1].data[m+8],p)}return new qt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(h){const p=lv(this._lContainer);return null!==p&&p[h]||null}get length(){return this._lContainer.length-10}createEmbeddedView(h,p,m){let v,C;"number"==typeof m?v=m:null!=m&&(v=m.index,C=m.injector);const w=h.createEmbeddedView(p||{},C);return this.insert(w,v),w}createComponent(h,p,m,v,C){const w=h&&!function _s(d){return"function"==typeof d}(h);let I;if(w)I=p;else{const Z=p||{};I=Z.index,m=Z.injector,v=Z.projectableNodes,C=Z.environmentInjector||Z.ngModuleRef}const k=w?h:new fa(en(h)),B=m||this.parentInjector;if(!C&&null==k.ngModule){const ue=(w?B:this.parentInjector).get(cl,null);ue&&(C=ue)}const U=k.create(B,v,void 0,C);return this.insert(U.hostView,I),U}insert(h,p){const m=h._lView,v=m[1];if(function Ps(d){return dr(d[3])}(m)){const U=this.indexOf(h);if(-1!==U)this.detach(U);else{const Z=m[3],ue=new Mf(Z,Z[6],Z[3]);ue.detach(ue.indexOf(h))}}const C=this._adjustIndex(p),w=this._lContainer;!function w_(d,h,p,m){const v=10+m,C=p.length;m>0&&(p[v-1][4]=h),m0)m.push(w[I/2]);else{const B=C[I+1],U=h[-k];for(let Z=10;Z{class d{constructor(p){this.appInits=p,this.resolve=qs,this.reject=qs,this.initialized=!1,this.done=!1,this.donePromise=new Promise((m,v)=>{this.resolve=m,this.reject=v})}runInitializers(){if(this.initialized)return;const p=[],m=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let v=0;v{C.subscribe({complete:I,error:k})});p.push(w)}}Promise.all(p).then(()=>{m()}).catch(v=>{this.reject(v)}),0===p.length&&m(),this.initialized=!0}}return d.\u0275fac=function(p){return new(p||d)(Zn(Gf,8))},d.\u0275prov=zt({token:d,factory:d.\u0275fac,providedIn:"root"}),d})();const Yf=new kn("AppId",{providedIn:"root",factory:function $b(){return`${Zf()}${Zf()}${Zf()}`}});function Zf(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Wf=new kn("Platform Initializer"),Lv=new kn("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Qf=new kn("appBootstrapListener"),Vv=new kn("AnimationModuleType");let Gb=(()=>{class d{log(p){console.log(p)}warn(p){console.warn(p)}}return d.\u0275fac=function(p){return new(p||d)},d.\u0275prov=zt({token:d,factory:d.\u0275fac,providedIn:"platform"}),d})();const pu=new kn("LocaleId",{providedIn:"root",factory:()=>tp(pu,ze.Optional|ze.SkipSelf)||function Yb(){return typeof $localize<"u"&&$localize.locale||Go}()}),RD=new kn("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class Zb{constructor(h,p){this.ngModuleFactory=h,this.componentFactories=p}}let Wb=(()=>{class d{compileModuleSync(p){return new Ed(p)}compileModuleAsync(p){return Promise.resolve(this.compileModuleSync(p))}compileModuleAndAllComponentsSync(p){const m=this.compileModuleSync(p),C=ua(Jn(p).declarations).reduce((w,I)=>{const k=en(I);return k&&w.push(new fa(k)),w},[]);return new Zb(m,C)}compileModuleAndAllComponentsAsync(p){return Promise.resolve(this.compileModuleAndAllComponentsSync(p))}clearCache(){}clearCacheFor(p){}getModuleId(p){}}return d.\u0275fac=function(p){return new(p||d)},d.\u0275prov=zt({token:d,factory:d.\u0275fac,providedIn:"root"}),d})();const Jb=(()=>Promise.resolve(0))();function Jf(d){typeof Zone>"u"?Jb.then(()=>{d&&d.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",d)}class wo{constructor({enableLongStackTrace:h=!1,shouldCoalesceEventChangeDetection:p=!1,shouldCoalesceRunChangeDetection:m=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ei(!1),this.onMicrotaskEmpty=new Ei(!1),this.onStable=new Ei(!1),this.onError=new Ei(!1),typeof Zone>"u")throw new ge(908,!1);Zone.assertZonePatched();const v=this;if(v._nesting=0,v._outer=v._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const C=Zone.AsyncStackTaggingZoneSpec;v._inner=v._inner.fork(new C("Angular"))}Zone.TaskTrackingZoneSpec&&(v._inner=v._inner.fork(new Zone.TaskTrackingZoneSpec)),h&&Zone.longStackTraceZoneSpec&&(v._inner=v._inner.fork(Zone.longStackTraceZoneSpec)),v.shouldCoalesceEventChangeDetection=!m&&p,v.shouldCoalesceRunChangeDetection=m,v.lastRequestAnimationFrameId=-1,v.nativeRequestAnimationFrame=function BD(){let d=Te.requestAnimationFrame,h=Te.cancelAnimationFrame;if(typeof Zone<"u"&&d&&h){const p=d[Zone.__symbol__("OriginalDelegate")];p&&(d=p);const m=h[Zone.__symbol__("OriginalDelegate")];m&&(h=m)}return{nativeRequestAnimationFrame:d,nativeCancelAnimationFrame:h}}().nativeRequestAnimationFrame,function zv(d){const h=()=>{!function Wo(d){d.isCheckStableRunning||-1!==d.lastRequestAnimationFrameId||(d.lastRequestAnimationFrameId=d.nativeRequestAnimationFrame.call(Te,()=>{d.fakeTopEventTask||(d.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{d.lastRequestAnimationFrameId=-1,Kf(d),d.isCheckStableRunning=!0,Sl(d),d.isCheckStableRunning=!1},void 0,()=>{},()=>{})),d.fakeTopEventTask.invoke()}),Kf(d))}(d)};d._inner=d._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(p,m,v,C,w,I)=>{try{return Xf(d),p.invokeTask(v,C,w,I)}finally{(d.shouldCoalesceEventChangeDetection&&"eventTask"===C.type||d.shouldCoalesceRunChangeDetection)&&h(),Xb(d)}},onInvoke:(p,m,v,C,w,I,k)=>{try{return Xf(d),p.invoke(v,C,w,I,k)}finally{d.shouldCoalesceRunChangeDetection&&h(),Xb(d)}},onHasTask:(p,m,v,C)=>{p.hasTask(v,C),m===v&&("microTask"==C.change?(d._hasPendingMicrotasks=C.microTask,Kf(d),Sl(d)):"macroTask"==C.change&&(d.hasPendingMacrotasks=C.macroTask))},onHandleError:(p,m,v,C)=>(p.handleError(v,C),d.runOutsideAngular(()=>d.onError.emit(C)),!1)})}(v)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!wo.isInAngularZone())throw new ge(909,!1)}static assertNotInAngularZone(){if(wo.isInAngularZone())throw new ge(909,!1)}run(h,p,m){return this._inner.run(h,p,m)}runTask(h,p,m,v){const C=this._inner,w=C.scheduleEventTask("NgZoneEvent: "+v,h,Kb,qs,qs);try{return C.runTask(w,p,m)}finally{C.cancelTask(w)}}runGuarded(h,p,m){return this._inner.runGuarded(h,p,m)}runOutsideAngular(h){return this._outer.run(h)}}const Kb={};function Sl(d){if(0==d._nesting&&!d.hasPendingMicrotasks&&!d.isStable)try{d._nesting++,d.onMicrotaskEmpty.emit(null)}finally{if(d._nesting--,!d.hasPendingMicrotasks)try{d.runOutsideAngular(()=>d.onStable.emit(null))}finally{d.isStable=!0}}}function Kf(d){d.hasPendingMicrotasks=!!(d._hasPendingMicrotasks||(d.shouldCoalesceEventChangeDetection||d.shouldCoalesceRunChangeDetection)&&-1!==d.lastRequestAnimationFrameId)}function Xf(d){d._nesting++,d.isStable&&(d.isStable=!1,d.onUnstable.emit(null))}function Xb(d){d._nesting--,Sl(d)}class HD{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ei,this.onMicrotaskEmpty=new Ei,this.onStable=new Ei,this.onError=new Ei}run(h,p,m){return h.apply(p,m)}runGuarded(h,p,m){return h.apply(p,m)}runOutsideAngular(h){return h()}runTask(h,p,m,v){return h.apply(p,m)}}const e0=new kn(""),t0=new kn("");let el,n0=(()=>{class d{constructor(p,m,v){this._ngZone=p,this.registry=m,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,el||(function hc(d){el=d}(v),v.addToWindow(m)),this._watchAngularEvents(),p.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{wo.assertNotInAngularZone(),Jf(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Jf(()=>{for(;0!==this._callbacks.length;){let p=this._callbacks.pop();clearTimeout(p.timeoutId),p.doneCb(this._didWork)}this._didWork=!1});else{let p=this.getPendingTasks();this._callbacks=this._callbacks.filter(m=>!m.updateCb||!m.updateCb(p)||(clearTimeout(m.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(p=>({source:p.source,creationLocation:p.creationLocation,data:p.data})):[]}addCallback(p,m,v){let C=-1;m&&m>0&&(C=setTimeout(()=>{this._callbacks=this._callbacks.filter(w=>w.timeoutId!==C),p(this._didWork,this.getPendingTasks())},m)),this._callbacks.push({doneCb:p,timeoutId:C,updateCb:v})}whenStable(p,m,v){if(v&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(p,m,v),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(p){this.registry.registerApplication(p,this)}unregisterApplication(p){this.registry.unregisterApplication(p)}findProviders(p,m,v){return[]}}return d.\u0275fac=function(p){return new(p||d)(Zn(wo),Zn(dc),Zn(t0))},d.\u0275prov=zt({token:d,factory:d.\u0275fac}),d})(),dc=(()=>{class d{constructor(){this._applications=new Map}registerApplication(p,m){this._applications.set(p,m)}unregisterApplication(p){this._applications.delete(p)}unregisterAllApplications(){this._applications.clear()}getTestability(p){return this._applications.get(p)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(p,m=!0){return el?.findTestabilityInTree(this,p,m)??null}}return d.\u0275fac=function(p){return new(p||d)},d.\u0275prov=zt({token:d,factory:d.\u0275fac,providedIn:"platform"}),d})(),Ta=null;const Uv=new kn("AllowMultipleToken"),jd=new kn("PlatformDestroyListeners");class Yv{constructor(h,p){this.name=h,this.token=p}}function Qv(d,h,p=[]){const m=`Platform: ${h}`,v=new kn(m);return(C=[])=>{let w=qv();if(!w||w.injector.get(Uv,!1)){const I=[...p,...C,{provide:v,useValue:!0}];d?d(I):function Zv(d){if(Ta&&!Ta.get(Uv,!1))throw new ge(400,!1);Ta=d;const h=d.get(Jv);(function ep(d){const h=d.get(Wf,null);h&&h.forEach(p=>p())})(d)}(function o0(d=[],h){return ul.create({name:h,providers:[{provide:vh,useValue:"platform"},{provide:jd,useValue:new Set([()=>Ta=null])},...d]})}(I,m))}return function s0(d){const h=qv();if(!h)throw new ge(401,!1);return h}()}}function qv(){return Ta?.get(Jv)??null}let Jv=(()=>{class d{constructor(p){this._injector=p,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(p,m){const v=function a0(d,h){let p;return p="noop"===d?new HD:("zone.js"===d?void 0:d)||new wo(h),p}(m?.ngZone,function Kv(d){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!d||!d.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!d||!d.ngZoneRunCoalescing)||!1}}(m)),C=[{provide:wo,useValue:v}];return v.run(()=>{const w=ul.create({providers:C,parent:this.injector,name:p.moduleType.name}),I=p.create(w),k=I.injector.get(Ic,null);if(!k)throw new ge(402,!1);return v.runOutsideAngular(()=>{const B=v.onError.subscribe({next:U=>{k.handleError(U)}});I.onDestroy(()=>{g(this._modules,I),B.unsubscribe()})}),function c(d,h,p){try{const m=p();return im(m)?m.catch(v=>{throw h.runOutsideAngular(()=>d.handleError(v)),v}):m}catch(m){throw h.runOutsideAngular(()=>d.handleError(m)),m}}(k,v,()=>{const B=I.injector.get(fu);return B.runInitializers(),B.donePromise.then(()=>(function uf(d){Ne(d,"Expected localeId to be defined"),"string"==typeof d&&(cf=d.toLowerCase().replace(/_/g,"-"))}(I.injector.get(pu,Go)||Go),this._moduleDoBootstrap(I),I))})})}bootstrapModule(p,m=[]){const v=f({},m);return function $v(d,h,p){const m=new Ed(p);return Promise.resolve(m)}(0,0,p).then(C=>this.bootstrapModuleFactory(C,v))}_moduleDoBootstrap(p){const m=p.injector.get(a);if(p._bootstrapComponents.length>0)p._bootstrapComponents.forEach(v=>m.bootstrap(v));else{if(!p.instance.ngDoBootstrap)throw new ge(403,!1);p.instance.ngDoBootstrap(m)}this._modules.push(p)}onDestroy(p){this._destroyListeners.push(p)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ge(404,!1);this._modules.slice().forEach(m=>m.destroy()),this._destroyListeners.forEach(m=>m());const p=this._injector.get(jd,null);p&&(p.forEach(m=>m()),p.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return d.\u0275fac=function(p){return new(p||d)(Zn(ul))},d.\u0275prov=zt({token:d,factory:d.\u0275fac,providedIn:"platform"}),d})();function f(d,h){return Array.isArray(h)?h.reduce(f,d):{...d,...h}}let a=(()=>{class d{constructor(p,m,v){this._zone=p,this._injector=m,this._exceptionHandler=v,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const C=new ce.y(I=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{I.next(this._stable),I.complete()})}),w=new ce.y(I=>{let k;this._zone.runOutsideAngular(()=>{k=this._zone.onStable.subscribe(()=>{wo.assertNotInAngularZone(),Jf(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,I.next(!0))})})});const B=this._zone.onUnstable.subscribe(()=>{wo.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{I.next(!1)}))});return()=>{k.unsubscribe(),B.unsubscribe()}});this.isStable=(0,pe.T)(C,w.pipe((0,de.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(p,m){const v=p instanceof fy;if(!this._injector.get(fu).done)throw!v&&hi(p),new ge(405,false);let w;w=v?p:this._injector.get(Tc).resolveComponentFactory(p),this.componentTypes.push(w.componentType);const I=function Gv(d){return d.isBoundToModule}(w)?void 0:this._injector.get(Ka),B=w.create(ul.NULL,[],m||w.selector,I),U=B.location.nativeElement,Z=B.injector.get(e0,null);return Z?.registerApplication(U),B.onDestroy(()=>{this.detachView(B.hostView),g(this.components,B),Z?.unregisterApplication(U)}),this._loadComponent(B),B}tick(){if(this._runningTick)throw new ge(101,!1);try{this._runningTick=!0;for(let p of this._views)p.detectChanges()}catch(p){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(p))}finally{this._runningTick=!1}}attachView(p){const m=p;this._views.push(m),m.attachToAppRef(this)}detachView(p){const m=p;g(this._views,m),m.detachFromAppRef()}_loadComponent(p){this.attachView(p.hostView),this.tick(),this.components.push(p),this._injector.get(Qf,[]).concat(this._bootstrapListeners).forEach(v=>v(p))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(p=>p()),this._views.slice().forEach(p=>p.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(p){return this._destroyListeners.push(p),()=>g(this._destroyListeners,p)}destroy(){if(this._destroyed)throw new ge(406,!1);const p=this._injector;p.destroy&&!p.destroyed&&p.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return d.\u0275fac=function(p){return new(p||d)(Zn(wo),Zn(cl),Zn(Ic))},d.\u0275prov=zt({token:d,factory:d.\u0275fac,providedIn:"root"}),d})();function g(d,h){const p=d.indexOf(h);p>-1&&d.splice(p,1)}let $=!0;function Pe(){$=!1}let yn=(()=>{class d{}return d.__NG_ELEMENT_ID__=fr,d})();function fr(d){return function qr(d,h,p){if(on(d)&&!p){const m=mn(d.index,h);return new bs(m,m)}return 47&d.type?new bs(h[16],h):null}(Cn(),Fe(),16==(16&d))}class YD{constructor(){}supports(h){return ga(h)}create(h){return new gw(h)}}const pw=(d,h)=>h;class gw{constructor(h){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=h||pw}forEachItem(h){let p;for(p=this._itHead;null!==p;p=p._next)h(p)}forEachOperation(h){let p=this._itHead,m=this._removalsHead,v=0,C=null;for(;p||m;){const w=!m||p&&p.currentIndex{w=this._trackByFn(v,I),null!==p&&Object.is(p.trackById,w)?(m&&(p=this._verifyReinsertion(p,I,w,v)),Object.is(p.item,I)||this._addIdentityChange(p,I)):(p=this._mismatch(p,I,w,v),m=!0),p=p._next,v++}),this.length=v;return this._truncate(p),this.collection=h,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let h;for(h=this._previousItHead=this._itHead;null!==h;h=h._next)h._nextPrevious=h._next;for(h=this._additionsHead;null!==h;h=h._nextAdded)h.previousIndex=h.currentIndex;for(this._additionsHead=this._additionsTail=null,h=this._movesHead;null!==h;h=h._nextMoved)h.previousIndex=h.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(h,p,m,v){let C;return null===h?C=this._itTail:(C=h._prev,this._remove(h)),null!==(h=null===this._unlinkedRecords?null:this._unlinkedRecords.get(m,null))?(Object.is(h.item,p)||this._addIdentityChange(h,p),this._reinsertAfter(h,C,v)):null!==(h=null===this._linkedRecords?null:this._linkedRecords.get(m,v))?(Object.is(h.item,p)||this._addIdentityChange(h,p),this._moveAfter(h,C,v)):h=this._addAfter(new mw(p,m),C,v),h}_verifyReinsertion(h,p,m,v){let C=null===this._unlinkedRecords?null:this._unlinkedRecords.get(m,null);return null!==C?h=this._reinsertAfter(C,h._prev,v):h.currentIndex!=v&&(h.currentIndex=v,this._addToMoves(h,v)),h}_truncate(h){for(;null!==h;){const p=h._next;this._addToRemovals(this._unlink(h)),h=p}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(h,p,m){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(h);const v=h._prevRemoved,C=h._nextRemoved;return null===v?this._removalsHead=C:v._nextRemoved=C,null===C?this._removalsTail=v:C._prevRemoved=v,this._insertAfter(h,p,m),this._addToMoves(h,m),h}_moveAfter(h,p,m){return this._unlink(h),this._insertAfter(h,p,m),this._addToMoves(h,m),h}_addAfter(h,p,m){return this._insertAfter(h,p,m),this._additionsTail=null===this._additionsTail?this._additionsHead=h:this._additionsTail._nextAdded=h,h}_insertAfter(h,p,m){const v=null===p?this._itHead:p._next;return h._next=v,h._prev=p,null===v?this._itTail=h:v._prev=h,null===p?this._itHead=h:p._next=h,null===this._linkedRecords&&(this._linkedRecords=new ZD),this._linkedRecords.put(h),h.currentIndex=m,h}_remove(h){return this._addToRemovals(this._unlink(h))}_unlink(h){null!==this._linkedRecords&&this._linkedRecords.remove(h);const p=h._prev,m=h._next;return null===p?this._itHead=m:p._next=m,null===m?this._itTail=p:m._prev=p,h}_addToMoves(h,p){return h.previousIndex===p||(this._movesTail=null===this._movesTail?this._movesHead=h:this._movesTail._nextMoved=h),h}_addToRemovals(h){return null===this._unlinkedRecords&&(this._unlinkedRecords=new ZD),this._unlinkedRecords.put(h),h.currentIndex=null,h._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=h,h._prevRemoved=null):(h._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=h),h}_addIdentityChange(h,p){return h.item=p,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=h:this._identityChangesTail._nextIdentityChange=h,h}}class mw{constructor(h,p){this.item=h,this.trackById=p,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class vw{constructor(){this._head=null,this._tail=null}add(h){null===this._head?(this._head=this._tail=h,h._nextDup=null,h._prevDup=null):(this._tail._nextDup=h,h._prevDup=this._tail,h._nextDup=null,this._tail=h)}get(h,p){let m;for(m=this._head;null!==m;m=m._nextDup)if((null===p||p<=m.currentIndex)&&Object.is(m.trackById,h))return m;return null}remove(h){const p=h._prevDup,m=h._nextDup;return null===p?this._head=m:p._nextDup=m,null===m?this._tail=p:m._prevDup=p,null===this._head}}class ZD{constructor(){this.map=new Map}put(h){const p=h.trackById;let m=this.map.get(p);m||(m=new vw,this.map.set(p,m)),m.add(h)}get(h,p){const v=this.map.get(h);return v?v.get(h,p):null}remove(h){const p=h.trackById;return this.map.get(p).remove(h)&&this.map.delete(p),h}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function WD(d,h,p){const m=d.previousIndex;if(null===m)return m;let v=0;return p&&m{if(p&&p.key===v)this._maybeAddToChanges(p,m),this._appendAfter=p,p=p._next;else{const C=this._getOrCreateRecordForKey(v,m);p=this._insertBeforeOrAppend(p,C)}}),p){p._prev&&(p._prev._next=null),this._removalsHead=p;for(let m=p;null!==m;m=m._nextRemoved)m===this._mapHead&&(this._mapHead=null),this._records.delete(m.key),m._nextRemoved=m._next,m.previousValue=m.currentValue,m.currentValue=null,m._prev=null,m._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(h,p){if(h){const m=h._prev;return p._next=h,p._prev=m,h._prev=p,m&&(m._next=p),h===this._mapHead&&(this._mapHead=p),this._appendAfter=h,h}return this._appendAfter?(this._appendAfter._next=p,p._prev=this._appendAfter):this._mapHead=p,this._appendAfter=p,null}_getOrCreateRecordForKey(h,p){if(this._records.has(h)){const v=this._records.get(h);this._maybeAddToChanges(v,p);const C=v._prev,w=v._next;return C&&(C._next=w),w&&(w._prev=C),v._next=null,v._prev=null,v}const m=new yw(h);return this._records.set(h,m),m.currentValue=p,this._addToAdditions(m),m}_reset(){if(this.isDirty){let h;for(this._previousMapHead=this._mapHead,h=this._previousMapHead;null!==h;h=h._next)h._nextPrevious=h._next;for(h=this._changesHead;null!==h;h=h._nextChanged)h.previousValue=h.currentValue;for(h=this._additionsHead;null!=h;h=h._nextAdded)h.previousValue=h.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(h,p){Object.is(p,h.currentValue)||(h.previousValue=h.currentValue,h.currentValue=p,this._addToChanges(h))}_addToAdditions(h){null===this._additionsHead?this._additionsHead=this._additionsTail=h:(this._additionsTail._nextAdded=h,this._additionsTail=h)}_addToChanges(h){null===this._changesHead?this._changesHead=this._changesTail=h:(this._changesTail._nextChanged=h,this._changesTail=h)}_forEach(h,p){h instanceof Map?h.forEach(p):Object.keys(h).forEach(m=>p(h[m],m))}}class yw{constructor(h){this.key=h,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function qD(){return new f0([new YD])}let f0=(()=>{class d{constructor(p){this.factories=p}static create(p,m){if(null!=m){const v=m.factories.slice();p=p.concat(v)}return new d(p)}static extend(p){return{provide:d,useFactory:m=>d.create(p,m||qD()),deps:[[d,new Tu,new Sc]]}}find(p){const m=this.factories.find(v=>v.supports(p));if(null!=m)return m;throw new ge(901,!1)}}return d.\u0275prov=zt({token:d,providedIn:"root",factory:qD}),d})();function JD(){return new p0([new QD])}let p0=(()=>{class d{constructor(p){this.factories=p}static create(p,m){if(m){const v=m.factories.slice();p=p.concat(v)}return new d(p)}static extend(p){return{provide:d,useFactory:m=>d.create(p,m||JD()),deps:[[d,new Tu,new Sc]]}}find(p){const m=this.factories.find(v=>v.supports(p));if(m)return m;throw new ge(901,!1)}}return d.\u0275prov=zt({token:d,providedIn:"root",factory:JD}),d})();const Sw=Qv(null,"core",[]);let Dw=(()=>{class d{constructor(p){}}return d.\u0275fac=function(p){return new(p||d)(Zn(a))},d.\u0275mod=Cr({type:d}),d.\u0275inj=Ft({}),d})();function ww(d){return"boolean"==typeof d?d:null!=d&&"false"!==d}function Tw(d,h){const p=en(d),m=h.elementInjector||Bu();return new fa(p).create(m,h.projectableNodes,h.hostElement,h.environmentInjector)}},92:(et,Ee,j)=>{j.d(Ee,{Cf:()=>je,EJ:()=>xi,F:()=>gr,Fd:()=>An,Fj:()=>xe,JJ:()=>ze,JL:()=>lr,K7:()=>sr,Kr:()=>ns,Mq:()=>Sr,NI:()=>Xn,On:()=>es,UX:()=>$i,Wl:()=>q,YN:()=>Or,_:()=>ts,_Y:()=>$n,a5:()=>gn,cw:()=>en,eT:()=>qo,kI:()=>tt,qQ:()=>ks,sg:()=>Os,u:()=>Gr,u5:()=>_i,wV:()=>rn,x0:()=>ei});var l=j(4537),M=j(8692),ce=j(6666),pe=j(5758),de=j(8002);let J=(()=>{class V{constructor(P,G){this._renderer=P,this._elementRef=G,this.onChange=we=>{},this.onTouched=()=>{}}setProperty(P,G){this._renderer.setProperty(this._elementRef.nativeElement,P,G)}registerOnTouched(P){this.onTouched=P}registerOnChange(P){this.onChange=P}setDisabledState(P){this.setProperty("disabled",P)}}return V.\u0275fac=function(P){return new(P||V)(l.Y36(l.Qsj),l.Y36(l.SBq))},V.\u0275dir=l.lG2({type:V}),V})(),he=(()=>{class V extends J{}return V.\u0275fac=function(){let N;return function(G){return(N||(N=l.n5z(V)))(G||V)}}(),V.\u0275dir=l.lG2({type:V,features:[l.qOj]}),V})();const X=new l.OlP("NgValueAccessor"),ae={provide:X,useExisting:(0,l.Gpc)(()=>q),multi:!0};let q=(()=>{class V extends he{writeValue(P){this.setProperty("checked",P)}}return V.\u0275fac=function(){let N;return function(G){return(N||(N=l.n5z(V)))(G||V)}}(),V.\u0275dir=l.lG2({type:V,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(P,G){1&P&&l.NdJ("change",function(ct){return G.onChange(ct.target.checked)})("blur",function(){return G.onTouched()})},features:[l._Bn([ae]),l.qOj]}),V})();const ee={provide:X,useExisting:(0,l.Gpc)(()=>xe),multi:!0},ye=new l.OlP("CompositionEventMode");let xe=(()=>{class V extends J{constructor(P,G,we){super(P,G),this._compositionMode=we,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function se(){const V=(0,M.q)()?(0,M.q)().getUserAgent():"";return/android (\d+)/.test(V.toLowerCase())}())}writeValue(P){this.setProperty("value",P??"")}_handleInput(P){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(P)}_compositionStart(){this._composing=!0}_compositionEnd(P){this._composing=!1,this._compositionMode&&this.onChange(P)}}return V.\u0275fac=function(P){return new(P||V)(l.Y36(l.Qsj),l.Y36(l.SBq),l.Y36(ye,8))},V.\u0275dir=l.lG2({type:V,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(P,G){1&P&&l.NdJ("input",function(ct){return G._handleInput(ct.target.value)})("blur",function(){return G.onTouched()})("compositionstart",function(){return G._compositionStart()})("compositionend",function(ct){return G._compositionEnd(ct.target.value)})},features:[l._Bn([ee]),l.qOj]}),V})();function be(V){return null==V||("string"==typeof V||Array.isArray(V))&&0===V.length}function Ce(V){return null!=V&&"number"==typeof V.length}const je=new l.OlP("NgValidators"),Rt=new l.OlP("NgAsyncValidators"),tn=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class tt{static min(N){return $e(N)}static max(N){return ft(N)}static required(N){return function Ht(V){return be(V.value)?{required:!0}:null}(N)}static requiredTrue(N){return function rr(V){return!0===V.value?null:{required:!0}}(N)}static email(N){return function $t(V){return be(V.value)||tn.test(V.value)?null:{email:!0}}(N)}static minLength(N){return function it(V){return N=>be(N.value)||!Ce(N.value)?null:N.value.lengthCe(N.value)&&N.value.length>V?{maxlength:{requiredLength:V,actualLength:N.value.length}}:null}(N)}static pattern(N){return function yt(V){if(!V)return Gt;let N,P;return"string"==typeof V?(P="","^"!==V.charAt(0)&&(P+="^"),P+=V,"$"!==V.charAt(V.length-1)&&(P+="$"),N=new RegExp(P)):(P=V.toString(),N=V),G=>{if(be(G.value))return null;const we=G.value;return N.test(we)?null:{pattern:{requiredPattern:P,actualValue:we}}}}(N)}static nullValidator(N){return null}static compose(N){return Be(N)}static composeAsync(N){return mt(N)}}function $e(V){return N=>{if(be(N.value)||be(V))return null;const P=parseFloat(N.value);return!isNaN(P)&&P{if(be(N.value)||be(V))return null;const P=parseFloat(N.value);return!isNaN(P)&&P>V?{max:{max:V,actual:N.value}}:null}}function Gt(V){return null}function st(V){return null!=V}function Ar(V){return(0,l.QGY)(V)?(0,ce.D)(V):V}function _e(V){let N={};return V.forEach(P=>{N=null!=P?{...N,...P}:N}),0===Object.keys(N).length?null:N}function Me(V,N){return N.map(P=>P(V))}function Ne(V){return V.map(N=>function Le(V){return!V.validate}(N)?N:P=>N.validate(P))}function Be(V){if(!V)return null;const N=V.filter(st);return 0==N.length?null:function(P){return _e(Me(P,N))}}function Ze(V){return null!=V?Be(Ne(V)):null}function mt(V){if(!V)return null;const N=V.filter(st);return 0==N.length?null:function(P){const G=Me(P,N).map(Ar);return(0,pe.D)(G).pipe((0,de.U)(_e))}}function Tt(V){return null!=V?mt(Ne(V)):null}function zt(V,N){return null===V?[N]:Array.isArray(V)?[...V,N]:[V,N]}function Ct(V){return V._rawValidators}function Ft(V){return V._rawAsyncValidators}function fn(V){return V?Array.isArray(V)?V:[V]:[]}function cn(V,N){return Array.isArray(V)?V.includes(N):V===N}function qn(V,N){const P=fn(N);return fn(V).forEach(we=>{cn(P,we)||P.push(we)}),P}function Ir(V,N){return fn(N).filter(P=>!cn(V,P))}class jn{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(N){this._rawValidators=N||[],this._composedValidatorFn=Ze(this._rawValidators)}_setAsyncValidators(N){this._rawAsyncValidators=N||[],this._composedAsyncValidatorFn=Tt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(N){this._onDestroyCallbacks.push(N)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(N=>N()),this._onDestroyCallbacks=[]}reset(N){this.control&&this.control.reset(N)}hasError(N,P){return!!this.control&&this.control.hasError(N,P)}getError(N,P){return this.control?this.control.getError(N,P):null}}class sn extends jn{get formDirective(){return null}get path(){return null}}class gn extends jn{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class zr{constructor(N){this._cd=N}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let ze=(()=>{class V extends zr{constructor(P){super(P)}}return V.\u0275fac=function(P){return new(P||V)(l.Y36(gn,2))},V.\u0275dir=l.lG2({type:V,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(P,G){2&P&&l.ekj("ng-untouched",G.isUntouched)("ng-touched",G.isTouched)("ng-pristine",G.isPristine)("ng-dirty",G.isDirty)("ng-valid",G.isValid)("ng-invalid",G.isInvalid)("ng-pending",G.isPending)},features:[l.qOj]}),V})(),lr=(()=>{class V extends zr{constructor(P){super(P)}}return V.\u0275fac=function(P){return new(P||V)(l.Y36(sn,10))},V.\u0275dir=l.lG2({type:V,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(P,G){2&P&&l.ekj("ng-untouched",G.isUntouched)("ng-touched",G.isTouched)("ng-pristine",G.isPristine)("ng-dirty",G.isDirty)("ng-valid",G.isValid)("ng-invalid",G.isInvalid)("ng-pending",G.isPending)("ng-submitted",G.isSubmitted)},features:[l.qOj]}),V})();const xt="VALID",Yt="INVALID",nr="PENDING",Nn="DISABLED";function pn(V){return(pr(V)?V.validators:V)||null}function dt(V){return Array.isArray(V)?Ze(V):V||null}function Rn(V,N){return(pr(N)?N.asyncValidators:V)||null}function Cr(V){return Array.isArray(V)?Tt(V):V||null}function pr(V){return null!=V&&!Array.isArray(V)&&"object"==typeof V}class Bi{constructor(N,P){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=N,this._rawAsyncValidators=P,this._composedValidatorFn=dt(this._rawValidators),this._composedAsyncValidatorFn=Cr(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(N){this._rawValidators=this._composedValidatorFn=N}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(N){this._rawAsyncValidators=this._composedAsyncValidatorFn=N}get parent(){return this._parent}get valid(){return this.status===xt}get invalid(){return this.status===Yt}get pending(){return this.status==nr}get disabled(){return this.status===Nn}get enabled(){return this.status!==Nn}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(N){this._rawValidators=N,this._composedValidatorFn=dt(N)}setAsyncValidators(N){this._rawAsyncValidators=N,this._composedAsyncValidatorFn=Cr(N)}addValidators(N){this.setValidators(qn(N,this._rawValidators))}addAsyncValidators(N){this.setAsyncValidators(qn(N,this._rawAsyncValidators))}removeValidators(N){this.setValidators(Ir(N,this._rawValidators))}removeAsyncValidators(N){this.setAsyncValidators(Ir(N,this._rawAsyncValidators))}hasValidator(N){return cn(this._rawValidators,N)}hasAsyncValidator(N){return cn(this._rawAsyncValidators,N)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(N={}){this.touched=!0,this._parent&&!N.onlySelf&&this._parent.markAsTouched(N)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(N=>N.markAllAsTouched())}markAsUntouched(N={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(P=>{P.markAsUntouched({onlySelf:!0})}),this._parent&&!N.onlySelf&&this._parent._updateTouched(N)}markAsDirty(N={}){this.pristine=!1,this._parent&&!N.onlySelf&&this._parent.markAsDirty(N)}markAsPristine(N={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(P=>{P.markAsPristine({onlySelf:!0})}),this._parent&&!N.onlySelf&&this._parent._updatePristine(N)}markAsPending(N={}){this.status=nr,!1!==N.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!N.onlySelf&&this._parent.markAsPending(N)}disable(N={}){const P=this._parentMarkedDirty(N.onlySelf);this.status=Nn,this.errors=null,this._forEachChild(G=>{G.disable({...N,onlySelf:!0})}),this._updateValue(),!1!==N.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...N,skipPristineCheck:P}),this._onDisabledChange.forEach(G=>G(!0))}enable(N={}){const P=this._parentMarkedDirty(N.onlySelf);this.status=xt,this._forEachChild(G=>{G.enable({...N,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:N.emitEvent}),this._updateAncestors({...N,skipPristineCheck:P}),this._onDisabledChange.forEach(G=>G(!1))}_updateAncestors(N){this._parent&&!N.onlySelf&&(this._parent.updateValueAndValidity(N),N.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(N){this._parent=N}getRawValue(){return this.value}updateValueAndValidity(N={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===xt||this.status===nr)&&this._runAsyncValidator(N.emitEvent)),!1!==N.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!N.onlySelf&&this._parent.updateValueAndValidity(N)}_updateTreeValidity(N={emitEvent:!0}){this._forEachChild(P=>P._updateTreeValidity(N)),this.updateValueAndValidity({onlySelf:!0,emitEvent:N.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Nn:xt}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(N){if(this.asyncValidator){this.status=nr,this._hasOwnPendingAsyncValidator=!0;const P=Ar(this.asyncValidator(this));this._asyncValidationSubscription=P.subscribe(G=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(G,{emitEvent:N})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(N,P={}){this.errors=N,this._updateControlsErrors(!1!==P.emitEvent)}get(N){let P=N;return null==P||(Array.isArray(P)||(P=P.split(".")),0===P.length)?null:P.reduce((G,we)=>G&&G._find(we),this)}getError(N,P){const G=P?this.get(P):this;return G&&G.errors?G.errors[N]:null}hasError(N,P){return!!this.getError(N,P)}get root(){let N=this;for(;N._parent;)N=N._parent;return N}_updateControlsErrors(N){this.status=this._calculateStatus(),N&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(N)}_initObservables(){this.valueChanges=new l.vpe,this.statusChanges=new l.vpe}_calculateStatus(){return this._allControlsDisabled()?Nn:this.errors?Yt:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(nr)?nr:this._anyControlsHaveStatus(Yt)?Yt:xt}_anyControlsHaveStatus(N){return this._anyControls(P=>P.status===N)}_anyControlsDirty(){return this._anyControls(N=>N.dirty)}_anyControlsTouched(){return this._anyControls(N=>N.touched)}_updatePristine(N={}){this.pristine=!this._anyControlsDirty(),this._parent&&!N.onlySelf&&this._parent._updatePristine(N)}_updateTouched(N={}){this.touched=this._anyControlsTouched(),this._parent&&!N.onlySelf&&this._parent._updateTouched(N)}_registerOnCollectionChange(N){this._onCollectionChange=N}_setUpdateStrategy(N){pr(N)&&null!=N.updateOn&&(this._updateOn=N.updateOn)}_parentMarkedDirty(N){return!N&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(N){return null}}class en extends Bi{constructor(N,P,G){super(pn(P),Rn(G,P)),this.controls=N,this._initObservables(),this._setUpdateStrategy(P),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(N,P){return this.controls[N]?this.controls[N]:(this.controls[N]=P,P.setParent(this),P._registerOnCollectionChange(this._onCollectionChange),P)}addControl(N,P,G={}){this.registerControl(N,P),this.updateValueAndValidity({emitEvent:G.emitEvent}),this._onCollectionChange()}removeControl(N,P={}){this.controls[N]&&this.controls[N]._registerOnCollectionChange(()=>{}),delete this.controls[N],this.updateValueAndValidity({emitEvent:P.emitEvent}),this._onCollectionChange()}setControl(N,P,G={}){this.controls[N]&&this.controls[N]._registerOnCollectionChange(()=>{}),delete this.controls[N],P&&this.registerControl(N,P),this.updateValueAndValidity({emitEvent:G.emitEvent}),this._onCollectionChange()}contains(N){return this.controls.hasOwnProperty(N)&&this.controls[N].enabled}setValue(N,P={}){(function Ai(V,N,P){V._forEachChild((G,we)=>{if(void 0===P[we])throw new l.vHH(1002,"")})})(this,0,N),Object.keys(N).forEach(G=>{(function Ts(V,N,P){const G=V.controls;if(!(N?Object.keys(G):G).length)throw new l.vHH(1e3,"");if(!G[P])throw new l.vHH(1001,"")})(this,!0,G),this.controls[G].setValue(N[G],{onlySelf:!0,emitEvent:P.emitEvent})}),this.updateValueAndValidity(P)}patchValue(N,P={}){null!=N&&(Object.keys(N).forEach(G=>{const we=this.controls[G];we&&we.patchValue(N[G],{onlySelf:!0,emitEvent:P.emitEvent})}),this.updateValueAndValidity(P))}reset(N={},P={}){this._forEachChild((G,we)=>{G.reset(N[we],{onlySelf:!0,emitEvent:P.emitEvent})}),this._updatePristine(P),this._updateTouched(P),this.updateValueAndValidity(P)}getRawValue(){return this._reduceChildren({},(N,P,G)=>(N[G]=P.getRawValue(),N))}_syncPendingControls(){let N=this._reduceChildren(!1,(P,G)=>!!G._syncPendingControls()||P);return N&&this.updateValueAndValidity({onlySelf:!0}),N}_forEachChild(N){Object.keys(this.controls).forEach(P=>{const G=this.controls[P];G&&N(G,P)})}_setUpControls(){this._forEachChild(N=>{N.setParent(this),N._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(N){for(const[P,G]of Object.entries(this.controls))if(this.contains(P)&&N(G))return!0;return!1}_reduceValue(){return this._reduceChildren({},(P,G,we)=>((G.enabled||this.disabled)&&(P[we]=G.value),P))}_reduceChildren(N,P){let G=N;return this._forEachChild((we,ct)=>{G=P(G,we,ct)}),G}_allControlsDisabled(){for(const N of Object.keys(this.controls))if(this.controls[N].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(N){return this.controls.hasOwnProperty(N)?this.controls[N]:null}}function ir(V,N){return[...N.path,V]}function re(V,N){ke(V,N),N.valueAccessor.writeValue(V.value),V.disabled&&N.valueAccessor.setDisabledState?.(!0),function Lt(V,N){N.valueAccessor.registerOnChange(P=>{V._pendingValue=P,V._pendingChange=!0,V._pendingDirty=!0,"change"===V.updateOn&&xn(V,N)})}(V,N),function Ur(V,N){const P=(G,we)=>{N.valueAccessor.writeValue(G),we&&N.viewToModelUpdate(G)};V.registerOnChange(P),N._registerOnDestroy(()=>{V._unregisterOnChange(P)})}(V,N),function Vt(V,N){N.valueAccessor.registerOnTouched(()=>{V._pendingTouched=!0,"blur"===V.updateOn&&V._pendingChange&&xn(V,N),"submit"!==V.updateOn&&V.markAsTouched()})}(V,N),function me(V,N){if(N.valueAccessor.setDisabledState){const P=G=>{N.valueAccessor.setDisabledState(G)};V.registerOnDisabledChange(P),N._registerOnDestroy(()=>{V._unregisterOnDisabledChange(P)})}}(V,N)}function te(V,N,P=!0){const G=()=>{};N.valueAccessor&&(N.valueAccessor.registerOnChange(G),N.valueAccessor.registerOnTouched(G)),Xe(V,N),V&&(N._invokeOnDestroyCallbacks(),V._registerOnCollectionChange(()=>{}))}function W(V,N){V.forEach(P=>{P.registerOnValidatorChange&&P.registerOnValidatorChange(N)})}function ke(V,N){const P=Ct(V);null!==N.validator?V.setValidators(zt(P,N.validator)):"function"==typeof P&&V.setValidators([P]);const G=Ft(V);null!==N.asyncValidator?V.setAsyncValidators(zt(G,N.asyncValidator)):"function"==typeof G&&V.setAsyncValidators([G]);const we=()=>V.updateValueAndValidity();W(N._rawValidators,we),W(N._rawAsyncValidators,we)}function Xe(V,N){let P=!1;if(null!==V){if(null!==N.validator){const we=Ct(V);if(Array.isArray(we)&&we.length>0){const ct=we.filter(Qt=>Qt!==N.validator);ct.length!==we.length&&(P=!0,V.setValidators(ct))}}if(null!==N.asyncValidator){const we=Ft(V);if(Array.isArray(we)&&we.length>0){const ct=we.filter(Qt=>Qt!==N.asyncValidator);ct.length!==we.length&&(P=!0,V.setAsyncValidators(ct))}}}const G=()=>{};return W(N._rawValidators,G),W(N._rawAsyncValidators,G),P}function xn(V,N){V._pendingDirty&&V.markAsDirty(),V.setValue(V._pendingValue,{emitModelToViewChange:!1}),N.viewToModelUpdate(V._pendingValue),V._pendingChange=!1}function wt(V,N){ke(V,N)}function Kn(V,N){if(!V.hasOwnProperty("model"))return!1;const P=V.model;return!!P.isFirstChange()||!Object.is(N,P.currentValue)}function cr(V,N){V._syncPendingControls(),N.forEach(P=>{const G=P.control;"submit"===G.updateOn&&G._pendingChange&&(P.viewToModelUpdate(G._pendingValue),G._pendingChange=!1)})}function pi(V,N){if(!N)return null;let P,G,we;return Array.isArray(N),N.forEach(ct=>{ct.constructor===xe?P=ct:function Kr(V){return Object.getPrototypeOf(V.constructor)===he}(ct)?G=ct:we=ct}),we||G||P||null}const xr={provide:sn,useExisting:(0,l.Gpc)(()=>gr)},Rr=(()=>Promise.resolve())();let gr=(()=>{class V extends sn{constructor(P,G){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new l.vpe,this.form=new en({},Ze(P),Tt(G))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(P){Rr.then(()=>{const G=this._findContainer(P.path);P.control=G.registerControl(P.name,P.control),re(P.control,P),P.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(P)})}getControl(P){return this.form.get(P.path)}removeControl(P){Rr.then(()=>{const G=this._findContainer(P.path);G&&G.removeControl(P.name),this._directives.delete(P)})}addFormGroup(P){Rr.then(()=>{const G=this._findContainer(P.path),we=new en({});wt(we,P),G.registerControl(P.name,we),we.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(P){Rr.then(()=>{const G=this._findContainer(P.path);G&&G.removeControl(P.name)})}getFormGroup(P){return this.form.get(P.path)}updateModel(P,G){Rr.then(()=>{this.form.get(P.path).setValue(G)})}setValue(P){this.control.setValue(P)}onSubmit(P){return this.submitted=!0,cr(this.form,this._directives),this.ngSubmit.emit(P),"dialog"===P?.target?.method}onReset(){this.resetForm()}resetForm(P){this.form.reset(P),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(P){return P.pop(),P.length?this.form.get(P):this.form}}return V.\u0275fac=function(P){return new(P||V)(l.Y36(je,10),l.Y36(Rt,10))},V.\u0275dir=l.lG2({type:V,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(P,G){1&P&&l.NdJ("submit",function(ct){return G.onSubmit(ct)})("reset",function(){return G.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[l._Bn([xr]),l.qOj]}),V})();function mr(V,N){const P=V.indexOf(N);P>-1&&V.splice(P,1)}function ur(V){return"object"==typeof V&&null!==V&&2===Object.keys(V).length&&"value"in V&&"disabled"in V}const Xn=class extends Bi{constructor(N=null,P,G){super(pn(P),Rn(G,P)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(N),this._setUpdateStrategy(P),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),pr(P)&&(P.nonNullable||P.initialValueIsDefault)&&(this.defaultValue=ur(N)?N.value:N)}setValue(N,P={}){this.value=this._pendingValue=N,this._onChange.length&&!1!==P.emitModelToViewChange&&this._onChange.forEach(G=>G(this.value,!1!==P.emitViewToModelChange)),this.updateValueAndValidity(P)}patchValue(N,P={}){this.setValue(N,P)}reset(N=this.defaultValue,P={}){this._applyFormState(N),this.markAsPristine(P),this.markAsUntouched(P),this.setValue(this.value,P),this._pendingChange=!1}_updateValue(){}_anyControls(N){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(N){this._onChange.push(N)}_unregisterOnChange(N){mr(this._onChange,N)}registerOnDisabledChange(N){this._onDisabledChange.push(N)}_unregisterOnDisabledChange(N){mr(this._onDisabledChange,N)}_forEachChild(N){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(N){ur(N)?(this.value=this._pendingValue=N.value,N.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=N}};let As=(()=>{class V extends sn{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return ir(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}return V.\u0275fac=function(){let N;return function(G){return(N||(N=l.n5z(V)))(G||V)}}(),V.\u0275dir=l.lG2({type:V,features:[l.qOj]}),V})();const Js={provide:sn,useExisting:(0,l.Gpc)(()=>Sr)};let Sr=(()=>{class V extends As{constructor(P,G,we){super(),this._parent=P,this._setValidators(G),this._setAsyncValidators(we)}_checkParentType(){}}return V.\u0275fac=function(P){return new(P||V)(l.Y36(sn,5),l.Y36(je,10),l.Y36(Rt,10))},V.\u0275dir=l.lG2({type:V,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[l._Bn([Js]),l.qOj]}),V})();const To={provide:gn,useExisting:(0,l.Gpc)(()=>es)},Et=(()=>Promise.resolve())();let es=(()=>{class V extends gn{constructor(P,G,we,ct,Qt){super(),this._changeDetectorRef=Qt,this.control=new Xn,this._registered=!1,this.update=new l.vpe,this._parent=P,this._setValidators(G),this._setAsyncValidators(we),this.valueAccessor=pi(0,ct)}ngOnChanges(P){if(this._checkForErrors(),!this._registered||"name"in P){if(this._registered&&(this._checkName(),this.formDirective)){const G=P.name.previousValue;this.formDirective.removeControl({name:G,path:this._getPath(G)})}this._setUpControl()}"isDisabled"in P&&this._updateDisabled(P),Kn(P,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(P){this.viewModel=P,this.update.emit(P)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){re(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(P){Et.then(()=>{this.control.setValue(P,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(P){const G=P.isDisabled.currentValue,we=0!==G&&(0,l.D6c)(G);Et.then(()=>{we&&!this.control.disabled?this.control.disable():!we&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(P){return this._parent?ir(P,this._parent):[P]}}return V.\u0275fac=function(P){return new(P||V)(l.Y36(sn,9),l.Y36(je,10),l.Y36(Rt,10),l.Y36(X,10),l.Y36(l.sBO,8))},V.\u0275dir=l.lG2({type:V,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[l._Bn([To]),l.qOj,l.TTD]}),V})(),$n=(()=>{class V{}return V.\u0275fac=function(P){return new(P||V)},V.\u0275dir=l.lG2({type:V,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),V})();const Is={provide:X,useExisting:(0,l.Gpc)(()=>rn),multi:!0};let rn=(()=>{class V extends he{writeValue(P){this.setProperty("value",P??"")}registerOnChange(P){this.onChange=G=>{P(""==G?null:parseFloat(G))}}}return V.\u0275fac=function(){let N;return function(G){return(N||(N=l.n5z(V)))(G||V)}}(),V.\u0275dir=l.lG2({type:V,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(P,G){1&P&&l.NdJ("input",function(ct){return G.onChange(ct.target.value)})("blur",function(){return G.onTouched()})},features:[l._Bn([Is]),l.qOj]}),V})();const Ao={provide:X,useExisting:(0,l.Gpc)(()=>ts),multi:!0};let tl=(()=>{class V{}return V.\u0275fac=function(P){return new(P||V)},V.\u0275mod=l.oAB({type:V}),V.\u0275inj=l.cJS({}),V})(),Aa=(()=>{class V{constructor(){this._accessors=[]}add(P,G){this._accessors.push([P,G])}remove(P){for(let G=this._accessors.length-1;G>=0;--G)if(this._accessors[G][1]===P)return void this._accessors.splice(G,1)}select(P){this._accessors.forEach(G=>{this._isSameGroup(G,P)&&G[1]!==P&&G[1].fireUncheck(P.value)})}_isSameGroup(P,G){return!!P[0].control&&P[0]._parent===G._control._parent&&P[1].name===G.name}}return V.\u0275fac=function(P){return new(P||V)},V.\u0275prov=l.Yz7({token:V,factory:V.\u0275fac,providedIn:tl}),V})(),ts=(()=>{class V extends he{constructor(P,G,we,ct){super(P,G),this._registry=we,this._injector=ct,this.onChange=()=>{}}ngOnInit(){this._control=this._injector.get(gn),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(P){this._state=P===this.value,this.setProperty("checked",this._state)}registerOnChange(P){this._fn=P,this.onChange=()=>{P(this.value),this._registry.select(this)}}fireUncheck(P){this.writeValue(P)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return V.\u0275fac=function(P){return new(P||V)(l.Y36(l.Qsj),l.Y36(l.SBq),l.Y36(Aa),l.Y36(l.zs3))},V.\u0275dir=l.lG2({type:V,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(P,G){1&P&&l.NdJ("change",function(){return G.onChange()})("blur",function(){return G.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[l._Bn([Ao]),l.qOj]}),V})();const xs={provide:X,useExisting:(0,l.Gpc)(()=>qo),multi:!0};let qo=(()=>{class V extends he{writeValue(P){this.setProperty("value",parseFloat(P))}registerOnChange(P){this.onChange=G=>{P(""==G?null:parseFloat(G))}}}return V.\u0275fac=function(){let N;return function(G){return(N||(N=l.n5z(V)))(G||V)}}(),V.\u0275dir=l.lG2({type:V,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(P,G){1&P&&l.NdJ("change",function(ct){return G.onChange(ct.target.value)})("input",function(ct){return G.onChange(ct.target.value)})("blur",function(){return G.onTouched()})},features:[l._Bn([xs]),l.qOj]}),V})();const Io=new l.OlP("NgModelWithFormControlWarning"),Ia={provide:sn,useExisting:(0,l.Gpc)(()=>Os)};let Os=(()=>{class V extends sn{constructor(P,G){super(),this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new l.vpe,this._setValidators(P),this._setAsyncValidators(G)}ngOnChanges(P){this._checkFormPresent(),P.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Xe(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(P){const G=this.form.get(P.path);return re(G,P),G.updateValueAndValidity({emitEvent:!1}),this.directives.push(P),G}getControl(P){return this.form.get(P.path)}removeControl(P){te(P.control||null,P,!1),function Eo(V,N){const P=V.indexOf(N);P>-1&&V.splice(P,1)}(this.directives,P)}addFormGroup(P){this._setUpFormContainer(P)}removeFormGroup(P){this._cleanUpFormContainer(P)}getFormGroup(P){return this.form.get(P.path)}addFormArray(P){this._setUpFormContainer(P)}removeFormArray(P){this._cleanUpFormContainer(P)}getFormArray(P){return this.form.get(P.path)}updateModel(P,G){this.form.get(P.path).setValue(G)}onSubmit(P){return this.submitted=!0,cr(this.form,this.directives),this.ngSubmit.emit(P),"dialog"===P?.target?.method}onReset(){this.resetForm()}resetForm(P){this.form.reset(P),this.submitted=!1}_updateDomValue(){this.directives.forEach(P=>{const G=P.control,we=this.form.get(P.path);G!==we&&(te(G||null,P),(V=>V instanceof Xn)(we)&&(re(we,P),P.control=we))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(P){const G=this.form.get(P.path);wt(G,P),G.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(P){if(this.form){const G=this.form.get(P.path);G&&function Jr(V,N){return Xe(V,N)}(G,P)&&G.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){ke(this.form,this),this._oldForm&&Xe(this._oldForm,this)}_checkFormPresent(){}}return V.\u0275fac=function(P){return new(P||V)(l.Y36(je,10),l.Y36(Rt,10))},V.\u0275dir=l.lG2({type:V,selectors:[["","formGroup",""]],hostBindings:function(P,G){1&P&&l.NdJ("submit",function(ct){return G.onSubmit(ct)})("reset",function(){return G.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[l._Bn([Ia]),l.qOj,l.TTD]}),V})();const Jo={provide:sn,useExisting:(0,l.Gpc)(()=>ei)};let ei=(()=>{class V extends As{constructor(P,G,we){super(),this._parent=P,this._setValidators(G),this._setAsyncValidators(we)}_checkParentType(){Xs(this._parent)}}return V.\u0275fac=function(P){return new(P||V)(l.Y36(sn,13),l.Y36(je,10),l.Y36(Rt,10))},V.\u0275dir=l.lG2({type:V,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[l._Bn([Jo]),l.qOj]}),V})();const xa={provide:sn,useExisting:(0,l.Gpc)(()=>Ks)};let Ks=(()=>{class V extends sn{constructor(P,G,we){super(),this._parent=P,this._setValidators(G),this._setAsyncValidators(we)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return ir(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){Xs(this._parent)}}return V.\u0275fac=function(P){return new(P||V)(l.Y36(sn,13),l.Y36(je,10),l.Y36(Rt,10))},V.\u0275dir=l.lG2({type:V,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[l._Bn([xa]),l.qOj]}),V})();function Xs(V){return!(V instanceof ei||V instanceof Os||V instanceof Ks)}const $r={provide:gn,useExisting:(0,l.Gpc)(()=>Gr)};let Gr=(()=>{class V extends gn{constructor(P,G,we,ct,Qt){super(),this._ngModelWarningConfig=Qt,this._added=!1,this.update=new l.vpe,this._ngModelWarningSent=!1,this._parent=P,this._setValidators(G),this._setAsyncValidators(we),this.valueAccessor=pi(0,ct)}set isDisabled(P){}ngOnChanges(P){this._added||this._setUpControl(),Kn(P,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(P){this.viewModel=P,this.update.emit(P)}get path(){return ir(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return V._ngModelWarningSentOnce=!1,V.\u0275fac=function(P){return new(P||V)(l.Y36(sn,13),l.Y36(je,10),l.Y36(Rt,10),l.Y36(X,10),l.Y36(Io,8))},V.\u0275dir=l.lG2({type:V,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[l._Bn([$r]),l.qOj,l.TTD]}),V})();const gi={provide:X,useExisting:(0,l.Gpc)(()=>xi),multi:!0};function eo(V,N){return null==V?`${N}`:(N&&"object"==typeof N&&(N="Object"),`${V}: ${N}`.slice(0,50))}let xi=(()=>{class V extends he{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(P){this._compareWith=P}writeValue(P){this.value=P;const we=eo(this._getOptionId(P),P);this.setProperty("value",we)}registerOnChange(P){this.onChange=G=>{this.value=this._getOptionValue(G),P(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(P){for(const G of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(G),P))return G;return null}_getOptionValue(P){const G=function Lr(V){return V.split(":")[0]}(P);return this._optionMap.has(G)?this._optionMap.get(G):P}}return V.\u0275fac=function(){let N;return function(G){return(N||(N=l.n5z(V)))(G||V)}}(),V.\u0275dir=l.lG2({type:V,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(P,G){1&P&&l.NdJ("change",function(ct){return G.onChange(ct.target.value)})("blur",function(){return G.onTouched()})},inputs:{compareWith:"compareWith"},features:[l._Bn([gi]),l.qOj]}),V})(),Or=(()=>{class V{constructor(P,G,we){this._element=P,this._renderer=G,this._select=we,this._select&&(this.id=this._select._registerOption())}set ngValue(P){null!=this._select&&(this._select._optionMap.set(this.id,P),this._setElementValue(eo(this.id,P)),this._select.writeValue(this._select.value))}set value(P){this._setElementValue(P),this._select&&this._select.writeValue(this._select.value)}_setElementValue(P){this._renderer.setProperty(this._element.nativeElement,"value",P)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return V.\u0275fac=function(P){return new(P||V)(l.Y36(l.SBq),l.Y36(l.Qsj),l.Y36(xi,9))},V.\u0275dir=l.lG2({type:V,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),V})();const Fs={provide:X,useExisting:(0,l.Gpc)(()=>sr),multi:!0};function to(V,N){return null==V?`${N}`:("string"==typeof N&&(N=`'${N}'`),N&&"object"==typeof N&&(N="Object"),`${V}: ${N}`.slice(0,50))}let sr=(()=>{class V extends he{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(P){this._compareWith=P}writeValue(P){let G;if(this.value=P,Array.isArray(P)){const we=P.map(ct=>this._getOptionId(ct));G=(ct,Qt)=>{ct._setSelected(we.indexOf(Qt.toString())>-1)}}else G=(we,ct)=>{we._setSelected(!1)};this._optionMap.forEach(G)}registerOnChange(P){this.onChange=G=>{const we=[],ct=G.selectedOptions;if(void 0!==ct){const Qt=ct;for(let ls=0;ls{class V{constructor(P,G,we){this._element=P,this._renderer=G,this._select=we,this._select&&(this.id=this._select._registerOption(this))}set ngValue(P){null!=this._select&&(this._value=P,this._setElementValue(to(this.id,P)),this._select.writeValue(this._select.value))}set value(P){this._select?(this._value=P,this._setElementValue(to(this.id,P)),this._select.writeValue(this._select.value)):this._setElementValue(P)}_setElementValue(P){this._renderer.setProperty(this._element.nativeElement,"value",P)}_setSelected(P){this._renderer.setProperty(this._element.nativeElement,"selected",P)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return V.\u0275fac=function(P){return new(P||V)(l.Y36(l.SBq),l.Y36(l.Qsj),l.Y36(sr,9))},V.\u0275dir=l.lG2({type:V,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),V})();function ji(V){return"number"==typeof V?V:parseFloat(V)}let mi=(()=>{class V{constructor(){this._validator=Gt}ngOnChanges(P){if(this.inputName in P){const G=this.normalizeInput(P[this.inputName].currentValue);this._enabled=this.enabled(G),this._validator=this._enabled?this.createValidator(G):Gt,this._onChange&&this._onChange()}}validate(P){return this._validator(P)}registerOnValidatorChange(P){this._onChange=P}enabled(P){return null!=P}}return V.\u0275fac=function(P){return new(P||V)},V.\u0275dir=l.lG2({type:V,features:[l.TTD]}),V})();const is={provide:je,useExisting:(0,l.Gpc)(()=>An),multi:!0};let An=(()=>{class V extends mi{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=P=>ji(P),this.createValidator=P=>ft(P)}}return V.\u0275fac=function(){let N;return function(G){return(N||(N=l.n5z(V)))(G||V)}}(),V.\u0275dir=l.lG2({type:V,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(P,G){2&P&&l.uIk("max",G._enabled?G.max:null)},inputs:{max:"max"},features:[l._Bn([is]),l.qOj]}),V})();const Xo={provide:je,useExisting:(0,l.Gpc)(()=>ks),multi:!0};let ks=(()=>{class V extends mi{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=P=>ji(P),this.createValidator=P=>$e(P)}}return V.\u0275fac=function(){let N;return function(G){return(N||(N=l.n5z(V)))(G||V)}}(),V.\u0275dir=l.lG2({type:V,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(P,G){2&P&&l.uIk("min",G._enabled?G.min:null)},inputs:{min:"min"},features:[l._Bn([Xo]),l.qOj]}),V})(),or=(()=>{class V{}return V.\u0275fac=function(P){return new(P||V)},V.\u0275mod=l.oAB({type:V}),V.\u0275inj=l.cJS({imports:[tl]}),V})(),_i=(()=>{class V{}return V.\u0275fac=function(P){return new(P||V)},V.\u0275mod=l.oAB({type:V}),V.\u0275inj=l.cJS({imports:[or]}),V})(),$i=(()=>{class V{static withConfig(P){return{ngModule:V,providers:[{provide:Io,useValue:P.warnOnNgModelWithFormControl}]}}}return V.\u0275fac=function(P){return new(P||V)},V.\u0275mod=l.oAB({type:V}),V.\u0275inj=l.cJS({imports:[or]}),V})()},5998:(et,Ee,j)=>{j.d(Ee,{Dx:()=>Oe,b2:()=>Li,q6:()=>di,se:()=>st});var l=j(8692),M=j(4537);class ce extends l.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class pe extends ce{static makeCurrent(){(0,l.HT)(new pe)}onAndCancel(te,W,me){return te.addEventListener(W,me,!1),()=>{te.removeEventListener(W,me,!1)}}dispatchEvent(te,W){te.dispatchEvent(W)}remove(te){te.parentNode&&te.parentNode.removeChild(te)}createElement(te,W){return(W=W||this.getDefaultDocument()).createElement(te)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(te){return te.nodeType===Node.ELEMENT_NODE}isShadowRoot(te){return te instanceof DocumentFragment}getGlobalEventTarget(te,W){return"window"===W?window:"document"===W?te:"body"===W?te.body:null}getBaseHref(te){const W=function J(){return de=de||document.querySelector("base"),de?de.getAttribute("href"):null}();return null==W?null:function X(re){he=he||document.createElement("a"),he.setAttribute("href",re);const te=he.pathname;return"/"===te.charAt(0)?te:`/${te}`}(W)}resetBaseElement(){de=null}getUserAgent(){return window.navigator.userAgent}getCookie(te){return(0,l.Mx)(document.cookie,te)}}let he,de=null;const ae=new M.OlP("TRANSITION_ID"),ee=[{provide:M.ip1,useFactory:function q(re,te,W){return()=>{W.get(M.CZH).donePromise.then(()=>{const me=(0,l.q)(),ke=te.querySelectorAll(`style[ng-transition="${re}"]`);for(let Xe=0;Xe{class re{build(){return new XMLHttpRequest}}return re.\u0275fac=function(W){return new(W||re)},re.\u0275prov=M.Yz7({token:re,factory:re.\u0275fac}),re})();const xe=new M.OlP("EventManagerPlugins");let ge=(()=>{class re{constructor(W,me){this._zone=me,this._eventNameToPlugin=new Map,W.forEach(ke=>ke.manager=this),this._plugins=W.slice().reverse()}addEventListener(W,me,ke){return this._findPluginFor(me).addEventListener(W,me,ke)}addGlobalEventListener(W,me,ke){return this._findPluginFor(me).addGlobalEventListener(W,me,ke)}getZone(){return this._zone}_findPluginFor(W){const me=this._eventNameToPlugin.get(W);if(me)return me;const ke=this._plugins;for(let Xe=0;Xe{class re{constructor(){this._stylesSet=new Set}addStyles(W){const me=new Set;W.forEach(ke=>{this._stylesSet.has(ke)||(this._stylesSet.add(ke),me.add(ke))}),this.onStylesAdded(me)}onStylesAdded(W){}getAllStyles(){return Array.from(this._stylesSet)}}return re.\u0275fac=function(W){return new(W||re)},re.\u0275prov=M.Yz7({token:re,factory:re.\u0275fac}),re})(),je=(()=>{class re extends Ce{constructor(W){super(),this._doc=W,this._hostNodes=new Map,this._hostNodes.set(W.head,[])}_addStylesToHost(W,me,ke){W.forEach(Xe=>{const Lt=this._doc.createElement("style");Lt.textContent=Xe,ke.push(me.appendChild(Lt))})}addHost(W){const me=[];this._addStylesToHost(this._stylesSet,W,me),this._hostNodes.set(W,me)}removeHost(W){const me=this._hostNodes.get(W);me&&me.forEach(Rt),this._hostNodes.delete(W)}onStylesAdded(W){this._hostNodes.forEach((me,ke)=>{this._addStylesToHost(W,ke,me)})}ngOnDestroy(){this._hostNodes.forEach(W=>W.forEach(Rt))}}return re.\u0275fac=function(W){return new(W||re)(M.LFG(l.K0))},re.\u0275prov=M.Yz7({token:re,factory:re.\u0275fac}),re})();function Rt(re){(0,l.q)().remove(re)}const tn={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},tt=/%COMP%/g;function Wt(re,te,W){for(let me=0;me{if("__ngUnwrap__"===te)return re;!1===re(te)&&(te.preventDefault(),te.returnValue=!1)}}let st=(()=>{class re{constructor(W,me,ke){this.eventManager=W,this.sharedStylesHost=me,this.appId=ke,this.rendererByCompId=new Map,this.defaultRenderer=new Ar(W)}createRenderer(W,me){if(!W||!me)return this.defaultRenderer;switch(me.encapsulation){case M.ifc.Emulated:{let ke=this.rendererByCompId.get(me.id);return ke||(ke=new Ne(this.eventManager,this.sharedStylesHost,me,this.appId),this.rendererByCompId.set(me.id,ke)),ke.applyToHost(W),ke}case 1:case M.ifc.ShadowDom:return new Be(this.eventManager,this.sharedStylesHost,W,me);default:if(!this.rendererByCompId.has(me.id)){const ke=Wt(me.id,me.styles,[]);this.sharedStylesHost.addStyles(ke),this.rendererByCompId.set(me.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return re.\u0275fac=function(W){return new(W||re)(M.LFG(ge),M.LFG(je),M.LFG(M.AFp))},re.\u0275prov=M.Yz7({token:re,factory:re.\u0275fac}),re})();class Ar{constructor(te){this.eventManager=te,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(te,W){return W?document.createElementNS(tn[W]||W,te):document.createElement(te)}createComment(te){return document.createComment(te)}createText(te){return document.createTextNode(te)}appendChild(te,W){(Le(te)?te.content:te).appendChild(W)}insertBefore(te,W,me){te&&(Le(te)?te.content:te).insertBefore(W,me)}removeChild(te,W){te&&te.removeChild(W)}selectRootElement(te,W){let me="string"==typeof te?document.querySelector(te):te;if(!me)throw new Error(`The selector "${te}" did not match any elements`);return W||(me.textContent=""),me}parentNode(te){return te.parentNode}nextSibling(te){return te.nextSibling}setAttribute(te,W,me,ke){if(ke){W=ke+":"+W;const Xe=tn[ke];Xe?te.setAttributeNS(Xe,W,me):te.setAttribute(W,me)}else te.setAttribute(W,me)}removeAttribute(te,W,me){if(me){const ke=tn[me];ke?te.removeAttributeNS(ke,W):te.removeAttribute(`${me}:${W}`)}else te.removeAttribute(W)}addClass(te,W){te.classList.add(W)}removeClass(te,W){te.classList.remove(W)}setStyle(te,W,me,ke){ke&(M.JOm.DashCase|M.JOm.Important)?te.style.setProperty(W,me,ke&M.JOm.Important?"important":""):te.style[W]=me}removeStyle(te,W,me){me&M.JOm.DashCase?te.style.removeProperty(W):te.style[W]=""}setProperty(te,W,me){te[W]=me}setValue(te,W){te.nodeValue=W}listen(te,W,me){return"string"==typeof te?this.eventManager.addGlobalEventListener(te,W,yt(me)):this.eventManager.addEventListener(te,W,yt(me))}}function Le(re){return"TEMPLATE"===re.tagName&&void 0!==re.content}class Ne extends Ar{constructor(te,W,me,ke){super(te),this.component=me;const Xe=Wt(ke+"-"+me.id,me.styles,[]);W.addStyles(Xe),this.contentAttr=function $t(re){return"_ngcontent-%COMP%".replace(tt,re)}(ke+"-"+me.id),this.hostAttr=function it(re){return"_nghost-%COMP%".replace(tt,re)}(ke+"-"+me.id)}applyToHost(te){super.setAttribute(te,this.hostAttr,"")}createElement(te,W){const me=super.createElement(te,W);return super.setAttribute(me,this.contentAttr,""),me}}class Be extends Ar{constructor(te,W,me,ke){super(te),this.sharedStylesHost=W,this.hostEl=me,this.shadowRoot=me.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Xe=Wt(ke.id,ke.styles,[]);for(let Lt=0;Lt{class re extends be{constructor(W){super(W)}supports(W){return!0}addEventListener(W,me,ke){return W.addEventListener(me,ke,!1),()=>this.removeEventListener(W,me,ke)}removeEventListener(W,me,ke){return W.removeEventListener(me,ke)}}return re.\u0275fac=function(W){return new(W||re)(M.LFG(l.K0))},re.\u0275prov=M.Yz7({token:re,factory:re.\u0275fac}),re})();const mt=["alt","control","meta","shift"],Tt={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},zt={alt:re=>re.altKey,control:re=>re.ctrlKey,meta:re=>re.metaKey,shift:re=>re.shiftKey};let Ct=(()=>{class re extends be{constructor(W){super(W)}supports(W){return null!=re.parseEventName(W)}addEventListener(W,me,ke){const Xe=re.parseEventName(me),Lt=re.eventCallback(Xe.fullKey,ke,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,l.q)().onAndCancel(W,Xe.domEventName,Lt))}static parseEventName(W){const me=W.toLowerCase().split("."),ke=me.shift();if(0===me.length||"keydown"!==ke&&"keyup"!==ke)return null;const Xe=re._normalizeKey(me.pop());let Lt="",Vt=me.indexOf("code");if(Vt>-1&&(me.splice(Vt,1),Lt="code."),mt.forEach(Ur=>{const wt=me.indexOf(Ur);wt>-1&&(me.splice(wt,1),Lt+=Ur+".")}),Lt+=Xe,0!=me.length||0===Xe.length)return null;const xn={};return xn.domEventName=ke,xn.fullKey=Lt,xn}static matchEventFullKeyCode(W,me){let ke=Tt[W.key]||W.key,Xe="";return me.indexOf("code.")>-1&&(ke=W.code,Xe="code."),!(null==ke||!ke)&&(ke=ke.toLowerCase()," "===ke?ke="space":"."===ke&&(ke="dot"),mt.forEach(Lt=>{Lt!==ke&&(0,zt[Lt])(W)&&(Xe+=Lt+".")}),Xe+=ke,Xe===me)}static eventCallback(W,me,ke){return Xe=>{re.matchEventFullKeyCode(Xe,W)&&ke.runGuarded(()=>me(Xe))}}static _normalizeKey(W){return"esc"===W?"escape":W}}return re.\u0275fac=function(W){return new(W||re)(M.LFG(l.K0))},re.\u0275prov=M.Yz7({token:re,factory:re.\u0275fac}),re})();const di=(0,M.eFA)(M._c5,"browser",[{provide:M.Lbi,useValue:l.bD},{provide:M.g9A,useValue:function jn(){pe.makeCurrent()},multi:!0},{provide:l.K0,useFactory:function gn(){return(0,M.RDi)(document),document},deps:[]}]),Ti=new M.OlP(""),ze=[{provide:M.rWj,useClass:class se{addToWindow(te){M.dqk.getAngularTestability=(me,ke=!0)=>{const Xe=te.findTestabilityInTree(me,ke);if(null==Xe)throw new Error("Could not find testability for element.");return Xe},M.dqk.getAllAngularTestabilities=()=>te.getAllTestabilities(),M.dqk.getAllAngularRootElements=()=>te.getAllRootElements(),M.dqk.frameworkStabilizers||(M.dqk.frameworkStabilizers=[]),M.dqk.frameworkStabilizers.push(me=>{const ke=M.dqk.getAllAngularTestabilities();let Xe=ke.length,Lt=!1;const Vt=function(xn){Lt=Lt||xn,Xe--,0==Xe&&me(Lt)};ke.forEach(function(xn){xn.whenStable(Vt)})})}findTestabilityInTree(te,W,me){return null==W?null:te.getTestability(W)??(me?(0,l.q)().isShadowRoot(W)?this.findTestabilityInTree(te,W.host,!0):this.findTestabilityInTree(te,W.parentElement,!0):null)}},deps:[]},{provide:M.lri,useClass:M.dDg,deps:[M.R0b,M.eoX,M.rWj]},{provide:M.dDg,useClass:M.dDg,deps:[M.R0b,M.eoX,M.rWj]}],lr=[{provide:M.zSh,useValue:"root"},{provide:M.qLn,useFactory:function sn(){return new M.qLn},deps:[]},{provide:xe,useClass:Ze,multi:!0,deps:[l.K0,M.R0b,M.Lbi]},{provide:xe,useClass:Ct,multi:!0,deps:[l.K0]},{provide:st,useClass:st,deps:[ge,je,M.AFp]},{provide:M.FYo,useExisting:st},{provide:Ce,useExisting:je},{provide:je,useClass:je,deps:[l.K0]},{provide:ge,useClass:ge,deps:[xe,M.R0b]},{provide:l.JF,useClass:ye,deps:[]},[]];let Li=(()=>{class re{constructor(W){}static withServerTransition(W){return{ngModule:re,providers:[{provide:M.AFp,useValue:W.appId},{provide:ae,useExisting:M.AFp},ee]}}}return re.\u0275fac=function(W){return new(W||re)(M.LFG(Ti,12))},re.\u0275mod=M.oAB({type:re}),re.\u0275inj=M.cJS({providers:[...lr,...ze],imports:[l.ez,M.hGG]}),re})(),Oe=(()=>{class re{constructor(W){this._doc=W}getTitle(){return this._doc.title}setTitle(W){this._doc.title=W||""}}return re.\u0275fac=function(W){return new(W||re)(M.LFG(l.K0))},re.\u0275prov=M.Yz7({token:re,factory:function(W){let me=null;return me=W?new W:function En(){return new Oe((0,M.LFG)(l.K0))}(),me},providedIn:"root"}),re})();typeof window<"u"&&window},7223:(et,Ee,j)=>{j.d(Ee,{gz:()=>Or,m2:()=>rn,OD:()=>Is,wm:()=>zd,F0:()=>tr,Od:()=>vs,yS:()=>Er,Bz:()=>$d,lC:()=>kr});var l=j(4537),M=j(6666),ce=j(5917),pe=j(6215),de=j(3410),J=j(4591),he=j(6481),X=j(882),ae=j(9193);function q(A){return new X.y(T=>{let D;try{D=A()}catch(L){return void T.error(L)}return(D?(0,M.D)(D):(0,ae.c)()).subscribe(T)})}var ee=j(4022),se=j(205),ye=j(2441),xe=j(9765),ge=j(8692),be=j(8002),Ce=j(3190),je=j(5257),Rt=j(9761),tn=j(5435),tt=j(9773),$e=j(8049),ft=j(4612),Ht=j(6239),rr=j(5345);function $t(A){return function(D){const F=new it(A),L=D.lift(F);return F.caught=L}}class it{constructor(T){this.selector=T}call(T,D){return D.subscribe(new Wt(T,this.selector,this.caught))}}class Wt extends rr.Ds{constructor(T,D,F){super(T),this.selector=D,this.caught=F}error(T){if(!this.isStopped){let D;try{D=this.selector(T,this.caught)}catch(z){return void super.error(z)}this._unsubscribeAndRecycle();const F=new rr.IY(this);this.add(F);const L=(0,rr.ft)(D,F);L!==F&&this.add(L)}}}var yt=j(7393);function Gt(A,T){let D=!1;return arguments.length>=2&&(D=!0),function(L){return L.lift(new st(A,T,D))}}class st{constructor(T,D,F=!1){this.accumulator=T,this.seed=D,this.hasSeed=F}call(T,D){return D.subscribe(new Ar(T,this.accumulator,this.seed,this.hasSeed))}}class Ar extends yt.L{constructor(T,D,F,L){super(T),this.accumulator=D,this._seed=F,this.hasSeed=L,this.index=0}get seed(){return this._seed}set seed(T){this.hasSeed=!0,this._seed=T}_next(T){if(this.hasSeed)return this._tryNext(T);this.seed=T,this.destination.next(T)}_tryNext(T){const D=this.index++;let F;try{F=this.accumulator(this.seed,T,D)}catch(L){this.destination.error(L)}this.seed=F,this.destination.next(F)}}var _e=j(7108);function Me(A){return function(D){return 0===A?(0,ae.c)():D.lift(new Le(A))}}class Le{constructor(T){if(this.total=T,this.total<0)throw new _e.W}call(T,D){return D.subscribe(new Ne(T,this.total))}}class Ne extends yt.L{constructor(T,D){super(T),this.total=D,this.ring=new Array,this.count=0}_next(T){const D=this.ring,F=this.total,L=this.count++;D.length0){const F=this.count>=this.total?this.total:this.count,L=this.ring;for(let z=0;z=2;return F=>F.pipe(A?(0,tn.h)((L,z)=>A(L,z,F)):mt.y,Me(1),D?(0,Ze.d)(T):(0,Be.T)(()=>new de.K))}class Ct{constructor(T,D){this.predicate=T,this.inclusive=D}call(T,D){return D.subscribe(new Ft(T,this.predicate,this.inclusive))}}class Ft extends yt.L{constructor(T,D,F){super(T),this.predicate=D,this.inclusive=F,this.index=0}_next(T){const D=this.destination;let F;try{F=this.predicate(T,this.index++)}catch(L){return void D.error(L)}this.nextOrComplete(T,F)}nextOrComplete(T,D){const F=this.destination;Boolean(D)?F.next(T):(this.inclusive&&F.next(T),F.complete())}}class cn{constructor(T){this.value=T}call(T,D){return D.subscribe(new qn(T,this.value))}}class qn extends yt.L{constructor(T,D){super(T),this.value=D}_next(T){this.destination.next(this.value)}}var Ir=j(3464);function jn(A){return T=>T.lift(new sn(A))}class sn{constructor(T){this.callback=T}call(T,D){return D.subscribe(new gn(T,this.callback))}}class gn extends yt.L{constructor(T,D){super(T),this.add(new Ir.w(D))}}var zr=j(1307),di=j(3282),Ti=j(5998);const ze="primary",lr=Symbol("RouteTitle");class Li{constructor(T){this.params=T||{}}has(T){return Object.prototype.hasOwnProperty.call(this.params,T)}get(T){if(this.has(T)){const D=this.params[T];return Array.isArray(D)?D[0]:D}return null}getAll(T){if(this.has(T)){const D=this.params[T];return Array.isArray(D)?D:[D]}return[]}get keys(){return Object.keys(this.params)}}function wn(A){return new Li(A)}function Vi(A,T,D){const F=D.path.split("/");if(F.length>A.length||"full"===D.pathMatch&&(T.hasChildren()||F.lengthF[z]===L)}return A===T}function oe(A){return Array.prototype.concat.apply([],A)}function ne(A){return A.length>0?A[A.length-1]:null}function Te(A,T){for(const D in A)A.hasOwnProperty(D)&&T(A[D],D)}function lt(A){return(0,l.CqO)(A)?A:(0,l.QGY)(A)?(0,M.D)(Promise.resolve(A)):(0,ce.of)(A)}const qe={exact:function It(A,T,D){if(!pr(A.segments,T.segments)||!Nn(A.segments,T.segments,D)||A.numberOfChildren!==T.numberOfChildren)return!1;for(const F in T.children)if(!A.children[F]||!It(A.children[F],T.children[F],D))return!1;return!0},subset:Yt},un={exact:function yr(A,T){return En(A,T)},subset:function xt(A,T){return Object.keys(T).length<=Object.keys(A).length&&Object.keys(T).every(D=>Oe(A[D],T[D]))},ignored:()=>!0};function Xt(A,T,D){return qe[D.paths](A.root,T.root,D.matrixParams)&&un[D.queryParams](A.queryParams,T.queryParams)&&!("exact"===D.fragment&&A.fragment!==T.fragment)}function Yt(A,T,D){return nr(A,T,T.segments,D)}function nr(A,T,D,F){if(A.segments.length>D.length){const L=A.segments.slice(0,D.length);return!(!pr(L,D)||T.hasChildren()||!Nn(L,D,F))}if(A.segments.length===D.length){if(!pr(A.segments,D)||!Nn(A.segments,D,F))return!1;for(const L in T.children)if(!A.children[L]||!Yt(A.children[L],T.children[L],F))return!1;return!0}{const L=D.slice(0,A.segments.length),z=D.slice(A.segments.length);return!!(pr(A.segments,L)&&Nn(A.segments,L,F)&&A.children[ze])&&nr(A.children[ze],T,z,F)}}function Nn(A,T,D){return T.every((F,L)=>un[D](A[L].parameters,F.parameters))}class pn{constructor(T,D,F){this.root=T,this.queryParams=D,this.fragment=F}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=wn(this.queryParams)),this._queryParamMap}toString(){return en.serialize(this)}}class dt{constructor(T,D){this.segments=T,this.children=D,this.parent=null,Te(D,(F,L)=>F.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Tn(this)}}class Rn{constructor(T,D){this.path=T,this.parameters=D}get parameterMap(){return this._parameterMap||(this._parameterMap=wn(this.parameters)),this._parameterMap}toString(){return me(this)}}function pr(A,T){return A.length===T.length&&A.every((D,F)=>D.path===T[F].path)}let Ai=(()=>{class A{}return A.\u0275fac=function(D){return new(D||A)},A.\u0275prov=l.Yz7({token:A,factory:function(){return new Bi},providedIn:"root"}),A})();class Bi{parse(T){const D=new Ii(T);return new pn(D.parseRootSegment(),D.parseQueryParams(),D.parseFragment())}serialize(T){const D=`/${zn(T.root,!0)}`,F=function Xe(A){const T=Object.keys(A).map(D=>{const F=A[D];return Array.isArray(F)?F.map(L=>`${Jn(D)}=${Jn(L)}`).join("&"):`${Jn(D)}=${Jn(F)}`}).filter(D=>!!D);return T.length?`?${T.join("&")}`:""}(T.queryParams);return`${D}${F}${"string"==typeof T.fragment?`#${function ir(A){return encodeURI(A)}(T.fragment)}`:""}`}}const en=new Bi;function Tn(A){return A.segments.map(T=>me(T)).join("/")}function zn(A,T){if(!A.hasChildren())return Tn(A);if(T){const D=A.children[ze]?zn(A.children[ze],!1):"",F=[];return Te(A.children,(L,z)=>{z!==ze&&F.push(`${z}:${zn(L,!1)}`)}),F.length>0?`${D}(${F.join("//")})`:D}{const D=function Ts(A,T){let D=[];return Te(A.children,(F,L)=>{L===ze&&(D=D.concat(T(F,L)))}),Te(A.children,(F,L)=>{L!==ze&&(D=D.concat(T(F,L)))}),D}(A,(F,L)=>L===ze?[zn(A.children[ze],!1)]:[`${L}:${zn(F,!1)}`]);return 1===Object.keys(A.children).length&&null!=A.children[ze]?`${Tn(A)}/${D[0]}`:`${Tn(A)}/(${D.join("//")})`}}function hi(A){return encodeURIComponent(A).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Jn(A){return hi(A).replace(/%3B/gi,";")}function re(A){return hi(A).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function te(A){return decodeURIComponent(A)}function W(A){return te(A.replace(/\+/g,"%20"))}function me(A){return`${re(A.path)}${function ke(A){return Object.keys(A).map(T=>`;${re(T)}=${re(A[T])}`).join("")}(A.parameters)}`}const Lt=/^[^\/()?;=#]+/;function Vt(A){const T=A.match(Lt);return T?T[0]:""}const xn=/^[^=?&#]+/,wt=/^[^&#]+/;class Ii{constructor(T){this.url=T,this.remaining=T}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new dt([],{}):new dt([],this.parseChildren())}parseQueryParams(){const T={};if(this.consumeOptional("?"))do{this.parseQueryParam(T)}while(this.consumeOptional("&"));return T}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const T=[];for(this.peekStartsWith("(")||T.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),T.push(this.parseSegment());let D={};this.peekStartsWith("/(")&&(this.capture("/"),D=this.parseParens(!0));let F={};return this.peekStartsWith("(")&&(F=this.parseParens(!1)),(T.length>0||Object.keys(D).length>0)&&(F[ze]=new dt(T,D)),F}parseSegment(){const T=Vt(this.remaining);if(""===T&&this.peekStartsWith(";"))throw new l.vHH(4009,!1);return this.capture(T),new Rn(te(T),this.parseMatrixParams())}parseMatrixParams(){const T={};for(;this.consumeOptional(";");)this.parseParam(T);return T}parseParam(T){const D=Vt(this.remaining);if(!D)return;this.capture(D);let F="";if(this.consumeOptional("=")){const L=Vt(this.remaining);L&&(F=L,this.capture(F))}T[te(D)]=te(F)}parseQueryParam(T){const D=function Ur(A){const T=A.match(xn);return T?T[0]:""}(this.remaining);if(!D)return;this.capture(D);let F="";if(this.consumeOptional("=")){const Q=function Jr(A){const T=A.match(wt);return T?T[0]:""}(this.remaining);Q&&(F=Q,this.capture(F))}const L=W(D),z=W(F);if(T.hasOwnProperty(L)){let Q=T[L];Array.isArray(Q)||(Q=[Q],T[L]=Q),Q.push(z)}else T[L]=z}parseParens(T){const D={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const F=Vt(this.remaining),L=this.remaining[F.length];if("/"!==L&&")"!==L&&";"!==L)throw new l.vHH(4010,!1);let z;F.indexOf(":")>-1?(z=F.slice(0,F.indexOf(":")),this.capture(z),this.capture(":")):T&&(z=ze);const Q=this.parseChildren();D[z]=1===Object.keys(Q).length?Q[ze]:new dt([],Q),this.consumeOptional("//")}return D}peekStartsWith(T){return this.remaining.startsWith(T)}consumeOptional(T){return!!this.peekStartsWith(T)&&(this.remaining=this.remaining.substring(T.length),!0)}capture(T){if(!this.consumeOptional(T))throw new l.vHH(4011,!1)}}function fi(A){return A.segments.length>0?new dt([],{[ze]:A}):A}function Un(A){const T={};for(const F of Object.keys(A.children)){const z=Un(A.children[F]);(z.segments.length>0||z.hasChildren())&&(T[F]=z)}return function Ln(A){if(1===A.numberOfChildren&&A.children[ze]){const T=A.children[ze];return new dt(A.segments.concat(T.segments),T.children)}return A}(new dt(A.segments,T))}function Kn(A){return A instanceof pn}function dn(A,T,D,F,L){if(0===D.length)return gr(T.root,T.root,T.root,F,L);const z=function Xn(A){if("string"==typeof A[0]&&1===A.length&&"/"===A[0])return new ur(!0,0,A);let T=0,D=!1;const F=A.reduce((L,z,Q)=>{if("object"==typeof z&&null!=z){if(z.outlets){const ie={};return Te(z.outlets,(Ae,Je)=>{ie[Je]="string"==typeof Ae?Ae.split("/"):Ae}),[...L,{outlets:ie}]}if(z.segmentPath)return[...L,z.segmentPath]}return"string"!=typeof z?[...L,z]:0===Q?(z.split("/").forEach((ie,Ae)=>{0==Ae&&"."===ie||(0==Ae&&""===ie?D=!0:".."===ie?T++:""!=ie&&L.push(ie))}),L):[...L,z]},[]);return new ur(D,T,F)}(D);return z.toRoot()?gr(T.root,T.root,new dt([],{}),F,L):function Q(Ae){const Je=function As(A,T,D,F){if(A.isAbsolute)return new br(T.root,!0,0);if(-1===F)return new br(D,D===T.root,0);return function Vn(A,T,D){let F=A,L=T,z=D;for(;z>L;){if(z-=L,F=F.parent,!F)throw new l.vHH(4005,!1);L=F.segments.length}return new br(F,!1,L-z)}(D,F+(xr(A.commands[0])?0:1),A.numberOfDoubleDots)}(z,T,A.snapshot?._urlSegment,Ae),Ut=Je.processChildren?on(Je.segmentGroup,Je.index,z.commands):Xr(Je.segmentGroup,Je.index,z.commands);return gr(T.root,Je.segmentGroup,Ut,F,L)}(A.snapshot?._lastPathIndex)}function xr(A){return"object"==typeof A&&null!=A&&!A.outlets&&!A.segmentPath}function Rr(A){return"object"==typeof A&&null!=A&&A.outlets}function gr(A,T,D,F,L){let Q,z={};F&&Te(F,(Ae,Je)=>{z[Je]=Array.isArray(Ae)?Ae.map(Ut=>`${Ut}`):`${Ae}`}),Q=A===T?D:mr(A,T,D);const ie=fi(Un(Q));return new pn(ie,z,L)}function mr(A,T,D){const F={};return Te(A.children,(L,z)=>{F[z]=L===T?D:mr(L,T,D)}),new dt(A.segments,F)}class ur{constructor(T,D,F){if(this.isAbsolute=T,this.numberOfDoubleDots=D,this.commands=F,T&&F.length>0&&xr(F[0]))throw new l.vHH(4003,!1);const L=F.find(Rr);if(L&&L!==ne(F))throw new l.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class br{constructor(T,D,F){this.segmentGroup=T,this.processChildren=D,this.index=F}}function Xr(A,T,D){if(A||(A=new dt([],{})),0===A.segments.length&&A.hasChildren())return on(A,T,D);const F=function Js(A,T,D){let F=0,L=T;const z={match:!1,pathIndex:0,commandIndex:0};for(;L=D.length)return z;const Q=A.segments[L],ie=D[F];if(Rr(ie))break;const Ae=`${ie}`,Je=F0&&void 0===Ae)break;if(Ae&&Je&&"object"==typeof Je&&void 0===Je.outlets){if(!es(Ae,Je,Q))return z;F+=2}else{if(!es(Ae,{},Q))return z;F++}L++}return{match:!0,pathIndex:L,commandIndex:F}}(A,T,D),L=D.slice(F.commandIndex);if(F.match&&F.pathIndex{"string"==typeof z&&(z=[z]),null!==z&&(L[Q]=Xr(A.children[Q],T,z))}),Te(A.children,(z,Q)=>{void 0===F[Q]&&(L[Q]=z)}),new dt(A.segments,L)}}function Sr(A,T,D){const F=A.segments.slice(0,T);let L=0;for(;L{"string"==typeof D&&(D=[D]),null!==D&&(T[F]=Sr(new dt([],{}),0,D))}),T}function Et(A){const T={};return Te(A,(D,F)=>T[F]=`${D}`),T}function es(A,T,D){return A==D.path&&En(T,D.parameters)}class $n{constructor(T,D){this.id=T,this.url=D}}class Is extends $n{constructor(T,D,F="imperative",L=null){super(T,D),this.type=0,this.navigationTrigger=F,this.restoredState=L}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class rn extends $n{constructor(T,D,F){super(T,D),this.urlAfterRedirects=F,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Ao extends $n{constructor(T,D,F,L){super(T,D),this.reason=F,this.code=L,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Mr extends $n{constructor(T,D,F,L){super(T,D),this.error=F,this.target=L,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class tl extends $n{constructor(T,D,F,L){super(T,D),this.urlAfterRedirects=F,this.state=L,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Aa extends $n{constructor(T,D,F,L){super(T,D),this.urlAfterRedirects=F,this.state=L,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ts extends $n{constructor(T,D,F,L,z){super(T,D),this.urlAfterRedirects=F,this.state=L,this.shouldActivate=z,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class xs extends $n{constructor(T,D,F,L){super(T,D),this.urlAfterRedirects=F,this.state=L,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class qo extends $n{constructor(T,D,F,L){super(T,D),this.urlAfterRedirects=F,this.state=L,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Io{constructor(T){this.route=T,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class xo{constructor(T){this.route=T,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Ms{constructor(T){this.snapshot=T,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ia{constructor(T){this.snapshot=T,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Os{constructor(T){this.snapshot=T,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Jo{constructor(T){this.snapshot=T,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ei{constructor(T,D,F){this.routerEvent=T,this.position=D,this.anchor=F,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Ks{constructor(T){this._root=T}get root(){return this._root.value}parent(T){const D=this.pathFromRoot(T);return D.length>1?D[D.length-2]:null}children(T){const D=Xs(T,this._root);return D?D.children.map(F=>F.value):[]}firstChild(T){const D=Xs(T,this._root);return D&&D.children.length>0?D.children[0].value:null}siblings(T){const D=$r(T,this._root);return D.length<2?[]:D[D.length-2].children.map(L=>L.value).filter(L=>L!==T)}pathFromRoot(T){return $r(T,this._root).map(D=>D.value)}}function Xs(A,T){if(A===T.value)return T;for(const D of T.children){const F=Xs(A,D);if(F)return F}return null}function $r(A,T){if(A===T.value)return[T];for(const D of T.children){const F=$r(A,D);if(F.length)return F.unshift(T),F}return[]}class Gr{constructor(T,D){this.value=T,this.children=D}toString(){return`TreeNode(${this.value})`}}function gi(A){const T={};return A&&A.children.forEach(D=>T[D.value.outlet]=D),T}class eo extends Ks{constructor(T,D){super(T),this.snapshot=D,sr(this,T)}toString(){return this.snapshot.toString()}}function Lr(A,T){const D=function xi(A,T){const Q=new Hi([],{},{},"",{},ze,T,null,A.root,-1,{});return new Ko("",new Gr(Q,[]))}(A,T),F=new pe.X([new Rn("",{})]),L=new pe.X({}),z=new pe.X({}),Q=new pe.X({}),ie=new pe.X(""),Ae=new Or(F,L,Q,ie,z,ze,T,D.root);return Ae.snapshot=D.root,new eo(new Gr(Ae,[]),D)}class Or{constructor(T,D,F,L,z,Q,ie,Ae){this.url=T,this.params=D,this.queryParams=F,this.fragment=L,this.data=z,this.outlet=Q,this.component=ie,this.title=this.data?.pipe((0,be.U)(Je=>Je[lr]))??(0,ce.of)(void 0),this._futureSnapshot=Ae}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,be.U)(T=>wn(T)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,be.U)(T=>wn(T)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Fs(A,T="emptyOnly"){const D=A.pathFromRoot;let F=0;if("always"!==T)for(F=D.length-1;F>=1;){const L=D[F],z=D[F-1];if(L.routeConfig&&""===L.routeConfig.path)F--;else{if(z.component)break;F--}}return function to(A){return A.reduce((T,D)=>({params:{...T.params,...D.params},data:{...T.data,...D.data},resolve:{...D.data,...T.resolve,...D.routeConfig?.data,...D._resolvedData}}),{params:{},data:{},resolve:{}})}(D.slice(F))}class Hi{constructor(T,D,F,L,z,Q,ie,Ae,Je,Ut,at,bn){this.url=T,this.params=D,this.queryParams=F,this.fragment=L,this.data=z,this.outlet=Q,this.component=ie,this.title=this.data?.[lr],this.routeConfig=Ae,this._urlSegment=Je,this._lastPathIndex=Ut,this._correctedLastPathIndex=bn??Ut,this._resolve=at}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=wn(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=wn(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(F=>F.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Ko extends Ks{constructor(T,D){super(D),this.url=T,sr(this,D)}toString(){return ns(this._root)}}function sr(A,T){T.value._routerState=A,T.children.forEach(D=>sr(A,D))}function ns(A){const T=A.children.length>0?` { ${A.children.map(ns).join(", ")} } `:"";return`${A.value}${T}`}function rs(A){if(A.snapshot){const T=A.snapshot,D=A._futureSnapshot;A.snapshot=D,En(T.queryParams,D.queryParams)||A.queryParams.next(D.queryParams),T.fragment!==D.fragment&&A.fragment.next(D.fragment),En(T.params,D.params)||A.params.next(D.params),function Xi(A,T){if(A.length!==T.length)return!1;for(let D=0;DEn(D.parameters,T[F].parameters))}(A.url,T.url);return D&&!(!A.parent!=!T.parent)&&(!A.parent||ji(A.parent,T.parent))}function is(A,T,D){if(D&&A.shouldReuseRoute(T.value,D.value.snapshot)){const F=D.value;F._futureSnapshot=T.value;const L=function An(A,T,D){return T.children.map(F=>{for(const L of D.children)if(A.shouldReuseRoute(F.value,L.value.snapshot))return is(A,F,L);return is(A,F)})}(A,T,D);return new Gr(F,L)}{if(A.shouldAttach(T.value)){const z=A.retrieve(T.value);if(null!==z){const Q=z.route;return Q.value._futureSnapshot=T.value,Q.children=T.children.map(ie=>is(A,ie)),Q}}const F=function Xo(A){return new Or(new pe.X(A.url),new pe.X(A.params),new pe.X(A.queryParams),new pe.X(A.fragment),new pe.X(A.data),A.outlet,A.component,A)}(T.value),L=T.children.map(z=>is(A,z));return new Gr(F,L)}}const ks="ngNavigationCancelingError";function zi(A,T){const{redirectTo:D,navigationBehaviorOptions:F}=Kn(T)?{redirectTo:T,navigationBehaviorOptions:void 0}:T,L=Fr(!1,0,T);return L.url=D,L.navigationBehaviorOptions=F,L}function Fr(A,T,D){const F=new Error("NavigationCancelingError: "+(A||""));return F[ks]=!0,F.cancellationCode=T,D&&(F.url=D),F}function Ui(A){return no(A)&&Kn(A.url)}function no(A){return A&&A[ks]}class ss{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new mn,this.attachRef=null}}let mn=(()=>{class A{constructor(){this.contexts=new Map}onChildOutletCreated(D,F){const L=this.getOrCreateContext(D);L.outlet=F,this.contexts.set(D,L)}onChildOutletDestroyed(D){const F=this.getContext(D);F&&(F.outlet=null,F.attachRef=null)}onOutletDeactivated(){const D=this.contexts;return this.contexts=new Map,D}onOutletReAttached(D){this.contexts=D}getOrCreateContext(D){let F=this.getContext(D);return F||(F=new ss,this.contexts.set(D,F)),F}getContext(D){return this.contexts.get(D)||null}}return A.\u0275fac=function(D){return new(D||A)},A.\u0275prov=l.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"}),A})();const os=!1;let kr=(()=>{class A{constructor(D,F,L,z,Q){this.parentContexts=D,this.location=F,this.changeDetector=z,this.environmentInjector=Q,this.activated=null,this._activatedRoute=null,this.activateEvents=new l.vpe,this.deactivateEvents=new l.vpe,this.attachEvents=new l.vpe,this.detachEvents=new l.vpe,this.name=L||ze,D.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const D=this.parentContexts.getContext(this.name);D&&D.route&&(D.attachRef?this.attach(D.attachRef,D.route):this.activateWith(D.route,D.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new l.vHH(4012,os);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new l.vHH(4012,os);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new l.vHH(4012,os);this.location.detach();const D=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(D.instance),D}attach(D,F){this.activated=D,this._activatedRoute=F,this.location.insert(D.hostView),this.attachEvents.emit(D.instance)}deactivate(){if(this.activated){const D=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(D)}}activateWith(D,F){if(this.isActivated)throw new l.vHH(4013,os);this._activatedRoute=D;const L=this.location,Q=D._futureSnapshot.component,ie=this.parentContexts.getOrCreateContext(this.name).children,Ae=new Ps(D,ie,L.injector);if(F&&function vi(A){return!!A.resolveComponentFactory}(F)){const Je=F.resolveComponentFactory(Q);this.activated=L.createComponent(Je,L.length,Ae)}else this.activated=L.createComponent(Q,{index:L.length,injector:Ae,environmentInjector:F??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return A.\u0275fac=function(D){return new(D||A)(l.Y36(mn),l.Y36(l.s_b),l.$8M("name"),l.Y36(l.sBO),l.Y36(l.lqb))},A.\u0275dir=l.lG2({type:A,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0}),A})();class Ps{constructor(T,D,F){this.route=T,this.childContexts=D,this.parent=F}get(T,D){return T===Or?this.route:T===mn?this.childContexts:this.parent.get(T,D)}}let Mi=(()=>{class A{}return A.\u0275fac=function(D){return new(D||A)},A.\u0275cmp=l.Xpm({type:A,selectors:[["ng-component"]],standalone:!0,features:[l.jDz],decls:1,vars:0,template:function(D,F){1&D&&l._UZ(0,"router-outlet")},dependencies:[kr],encapsulation:2}),A})();function as(A,T){return A.providers&&!A._injector&&(A._injector=(0,l.MMx)(A.providers,T,`Route: ${A.path}`)),A._injector??T}function ea(A){const T=A.children&&A.children.map(ea),D=T?{...A,children:T}:{...A};return!D.component&&!D.loadComponent&&(T||D.loadChildren)&&D.outlet&&D.outlet!==ze&&(D.component=Mi),D}function Fe(A){return A.outlet||ze}function Ue(A,T){const D=A.filter(F=>Fe(F)===T);return D.push(...A.filter(F=>Fe(F)!==T)),D}function Gn(A){if(!A)return null;if(A.routeConfig?._injector)return A.routeConfig._injector;for(let T=A.parent;T;T=T.parent){const D=T.routeConfig;if(D?._loadedInjector)return D._loadedInjector;if(D?._injector)return D._injector}return null}class Cn{constructor(T,D,F,L){this.routeReuseStrategy=T,this.futureState=D,this.currState=F,this.forwardEvent=L}activate(T){const D=this.futureState._root,F=this.currState?this.currState._root:null;this.deactivateChildRoutes(D,F,T),rs(this.futureState.root),this.activateChildRoutes(D,F,T)}deactivateChildRoutes(T,D,F){const L=gi(D);T.children.forEach(z=>{const Q=z.value.outlet;this.deactivateRoutes(z,L[Q],F),delete L[Q]}),Te(L,(z,Q)=>{this.deactivateRouteAndItsChildren(z,F)})}deactivateRoutes(T,D,F){const L=T.value,z=D?D.value:null;if(L===z)if(L.component){const Q=F.getContext(L.outlet);Q&&this.deactivateChildRoutes(T,D,Q.children)}else this.deactivateChildRoutes(T,D,F);else z&&this.deactivateRouteAndItsChildren(D,F)}deactivateRouteAndItsChildren(T,D){T.value.component&&this.routeReuseStrategy.shouldDetach(T.value.snapshot)?this.detachAndStoreRouteSubtree(T,D):this.deactivateRouteAndOutlet(T,D)}detachAndStoreRouteSubtree(T,D){const F=D.getContext(T.value.outlet),L=F&&T.value.component?F.children:D,z=gi(T);for(const Q of Object.keys(z))this.deactivateRouteAndItsChildren(z[Q],L);if(F&&F.outlet){const Q=F.outlet.detach(),ie=F.children.onOutletDeactivated();this.routeReuseStrategy.store(T.value.snapshot,{componentRef:Q,route:T,contexts:ie})}}deactivateRouteAndOutlet(T,D){const F=D.getContext(T.value.outlet),L=F&&T.value.component?F.children:D,z=gi(T);for(const Q of Object.keys(z))this.deactivateRouteAndItsChildren(z[Q],L);F&&F.outlet&&(F.outlet.deactivate(),F.children.onOutletDeactivated(),F.attachRef=null,F.resolver=null,F.route=null)}activateChildRoutes(T,D,F){const L=gi(D);T.children.forEach(z=>{this.activateRoutes(z,L[z.value.outlet],F),this.forwardEvent(new Jo(z.value.snapshot))}),T.children.length&&this.forwardEvent(new Ia(T.value.snapshot))}activateRoutes(T,D,F){const L=T.value,z=D?D.value:null;if(rs(L),L===z)if(L.component){const Q=F.getOrCreateContext(L.outlet);this.activateChildRoutes(T,D,Q.children)}else this.activateChildRoutes(T,D,F);else if(L.component){const Q=F.getOrCreateContext(L.outlet);if(this.routeReuseStrategy.shouldAttach(L.snapshot)){const ie=this.routeReuseStrategy.retrieve(L.snapshot);this.routeReuseStrategy.store(L.snapshot,null),Q.children.onOutletReAttached(ie.contexts),Q.attachRef=ie.componentRef,Q.route=ie.route.value,Q.outlet&&Q.outlet.attach(ie.componentRef,ie.route.value),rs(ie.route.value),this.activateChildRoutes(T,null,Q.children)}else{const ie=Gn(L.snapshot),Ae=ie?.get(l._Vd)??null;Q.attachRef=null,Q.route=L,Q.resolver=Ae,Q.injector=ie,Q.outlet&&Q.outlet.activateWith(L,Q.injector),this.activateChildRoutes(T,null,Q.children)}}else this.activateChildRoutes(T,null,F)}}class V{constructor(T){this.path=T,this.route=this.path[this.path.length-1]}}class N{constructor(T,D){this.component=T,this.route=D}}function P(A,T,D){const F=A._root;return ct(F,T?T._root:null,D,[F.value])}function we(A,T){const D=Symbol(),F=T.get(A,D);return F===D?"function"!=typeof A||(0,l.Z0I)(A)?T.get(A):A:F}function ct(A,T,D,F,L={canDeactivateChecks:[],canActivateChecks:[]}){const z=gi(T);return A.children.forEach(Q=>{(function Qt(A,T,D,F,L={canDeactivateChecks:[],canActivateChecks:[]}){const z=A.value,Q=T?T.value:null,ie=D?D.getContext(A.value.outlet):null;if(Q&&z.routeConfig===Q.routeConfig){const Ae=function ls(A,T,D){if("function"==typeof D)return D(A,T);switch(D){case"pathParamsChange":return!pr(A.url,T.url);case"pathParamsOrQueryParamsChange":return!pr(A.url,T.url)||!En(A.queryParams,T.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ji(A,T)||!En(A.queryParams,T.queryParams);default:return!ji(A,T)}}(Q,z,z.routeConfig.runGuardsAndResolvers);Ae?L.canActivateChecks.push(new V(F)):(z.data=Q.data,z._resolvedData=Q._resolvedData),ct(A,T,z.component?ie?ie.children:null:D,F,L),Ae&&ie&&ie.outlet&&ie.outlet.isActivated&&L.canDeactivateChecks.push(new N(ie.outlet.component,Q))}else Q&&Yr(T,ie,L),L.canActivateChecks.push(new V(F)),ct(A,null,z.component?ie?ie.children:null:D,F,L)})(Q,z[Q.value.outlet],D,F.concat([Q.value]),L),delete z[Q.value.outlet]}),Te(z,(Q,ie)=>Yr(Q,D.getContext(ie),L)),L}function Yr(A,T,D){const F=gi(A),L=A.value;Te(F,(z,Q)=>{Yr(z,L.component?T?T.children.getContext(Q):null:T,D)}),D.canDeactivateChecks.push(new N(L.component&&T&&T.outlet&&T.outlet.isActivated?T.outlet.component:null,L))}function Mn(A){return"function"==typeof A}function Ns(A){return A instanceof de.K||"EmptyError"===A?.name}const Ye=Symbol("INITIAL_VALUE");function ot(){return(0,Ce.w)(A=>(0,J.aj)(A.map(T=>T.pipe((0,je.q)(1),(0,Rt.O)(Ye)))).pipe((0,be.U)(T=>{for(const D of T)if(!0!==D){if(D===Ye)return Ye;if(!1===D||D instanceof pn)return D}return!0}),(0,tn.h)(T=>T!==Ye),(0,je.q)(1)))}function Tl(A){return(0,ee.z)((0,Ht.b)(T=>{if(Kn(T))throw zi(0,T)}),(0,be.U)(T=>!0===T))}const Dr={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ti(A,T,D,F,L){const z=vn(A,T,D);return z.matched?function Al(A,T,D,F){const L=T.canMatch;if(!L||0===L.length)return(0,ce.of)(!0);const z=L.map(Q=>{const ie=we(Q,A);return lt(function Oa(A){return A&&Mn(A.canMatch)}(ie)?ie.canMatch(T,D):A.runInContext(()=>ie(T,D)))});return(0,ce.of)(z).pipe(ot(),Tl())}(F=as(T,F),T,D).pipe((0,be.U)(Q=>!0===Q?z:{...Dr})):(0,ce.of)(z)}function vn(A,T,D){if(""===T.path)return"full"===T.pathMatch&&(A.hasChildren()||D.length>0)?{...Dr}:{matched:!0,consumedSegments:[],remainingSegments:D,parameters:{},positionalParamSegments:{}};const L=(T.matcher||Vi)(D,A,T);if(!L)return{...Dr};const z={};Te(L.posParams,(ie,Ae)=>{z[Ae]=ie.path});const Q=L.consumed.length>0?{...z,...L.consumed[L.consumed.length-1].parameters}:z;return{matched:!0,consumedSegments:L.consumed,remainingSegments:D.slice(L.consumed.length),parameters:Q,positionalParamSegments:L.posParams??{}}}function Po(A,T,D,F,L="corrected"){if(D.length>0&&function pc(A,T,D){return D.some(F=>ia(A,T,F)&&Fe(F)!==ze)}(A,D,F)){const Q=new dt(T,function Il(A,T,D,F){const L={};L[ze]=F,F._sourceSegment=A,F._segmentIndexShift=T.length;for(const z of D)if(""===z.path&&Fe(z)!==ze){const Q=new dt([],{});Q._sourceSegment=A,Q._segmentIndexShift=T.length,L[Fe(z)]=Q}return L}(A,T,F,new dt(D,A.children)));return Q._sourceSegment=A,Q._segmentIndexShift=T.length,{segmentGroup:Q,slicedSegments:[]}}if(0===D.length&&function gc(A,T,D){return D.some(F=>ia(A,T,F))}(A,D,F)){const Q=new dt(A.segments,function fc(A,T,D,F,L,z){const Q={};for(const ie of F)if(ia(A,D,ie)&&!L[Fe(ie)]){const Ae=new dt([],{});Ae._sourceSegment=A,Ae._segmentIndexShift="legacy"===z?A.segments.length:T.length,Q[Fe(ie)]=Ae}return{...L,...Q}}(A,T,D,F,A.children,L));return Q._sourceSegment=A,Q._segmentIndexShift=T.length,{segmentGroup:Q,slicedSegments:D}}const z=new dt(A.segments,A.children);return z._sourceSegment=A,z._segmentIndexShift=T.length,{segmentGroup:z,slicedSegments:D}}function ia(A,T,D){return(!(A.hasChildren()||T.length>0)||"full"!==D.pathMatch)&&""===D.path}function No(A,T,D,F){return!!(Fe(A)===F||F!==ze&&ia(T,D,A))&&("**"===A.path||vn(T,A,D).matched)}function io(A,T,D){return 0===T.length&&!A.children[D]}const hs=!1;class Rs{constructor(T){this.segmentGroup=T||null}}class so{constructor(T){this.urlTree=T}}function oo(A){return(0,se._)(new Rs(A))}function Yi(A){return(0,se._)(new so(A))}class sa{constructor(T,D,F,L,z){this.injector=T,this.configLoader=D,this.urlSerializer=F,this.urlTree=L,this.config=z,this.allowRedirects=!0}apply(){const T=Po(this.urlTree.root,[],[],this.config).segmentGroup,D=new dt(T.segments,T.children);return this.expandSegmentGroup(this.injector,this.config,D,ze).pipe((0,be.U)(z=>this.createUrlTree(Un(z),this.urlTree.queryParams,this.urlTree.fragment))).pipe($t(z=>{if(z instanceof so)return this.allowRedirects=!1,this.match(z.urlTree);throw z instanceof Rs?this.noMatchError(z):z}))}match(T){return this.expandSegmentGroup(this.injector,this.config,T.root,ze).pipe((0,be.U)(L=>this.createUrlTree(Un(L),T.queryParams,T.fragment))).pipe($t(L=>{throw L instanceof Rs?this.noMatchError(L):L}))}noMatchError(T){return new l.vHH(4002,hs)}createUrlTree(T,D,F){const L=fi(T);return new pn(L,D,F)}expandSegmentGroup(T,D,F,L){return 0===F.segments.length&&F.hasChildren()?this.expandChildren(T,D,F).pipe((0,be.U)(z=>new dt([],z))):this.expandSegment(T,F,D,F.segments,L,!0)}expandChildren(T,D,F){const L=[];for(const z of Object.keys(F.children))"primary"===z?L.unshift(z):L.push(z);return(0,M.D)(L).pipe((0,ft.b)(z=>{const Q=F.children[z],ie=Ue(D,z);return this.expandSegmentGroup(T,ie,Q,z).pipe((0,be.U)(Ae=>({segment:Ae,outlet:z})))}),Gt((z,Q)=>(z[Q.outlet]=Q.segment,z),{}),Tt())}expandSegment(T,D,F,L,z,Q){return(0,M.D)(F).pipe((0,ft.b)(ie=>this.expandSegmentAgainstRoute(T,D,F,ie,L,z,Q).pipe($t(Je=>{if(Je instanceof Rs)return(0,ce.of)(null);throw Je}))),(0,$e.P)(ie=>!!ie),$t((ie,Ae)=>{if(Ns(ie))return io(D,L,z)?(0,ce.of)(new dt([],{})):oo(D);throw ie}))}expandSegmentAgainstRoute(T,D,F,L,z,Q,ie){return No(L,D,z,Q)?void 0===L.redirectTo?this.matchSegmentAgainstRoute(T,D,L,z,Q):ie&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(T,D,F,L,z,Q):oo(D):oo(D)}expandSegmentAgainstRouteUsingRedirect(T,D,F,L,z,Q){return"**"===L.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(T,F,L,Q):this.expandRegularSegmentAgainstRouteUsingRedirect(T,D,F,L,z,Q)}expandWildCardWithParamsAgainstRouteUsingRedirect(T,D,F,L){const z=this.applyRedirectCommands([],F.redirectTo,{});return F.redirectTo.startsWith("/")?Yi(z):this.lineralizeSegments(F,z).pipe((0,tt.zg)(Q=>{const ie=new dt(Q,{});return this.expandSegment(T,ie,D,Q,L,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(T,D,F,L,z,Q){const{matched:ie,consumedSegments:Ae,remainingSegments:Je,positionalParamSegments:Ut}=vn(D,L,z);if(!ie)return oo(D);const at=this.applyRedirectCommands(Ae,L.redirectTo,Ut);return L.redirectTo.startsWith("/")?Yi(at):this.lineralizeSegments(L,at).pipe((0,tt.zg)(bn=>this.expandSegment(T,D,F,bn.concat(Je),Q,!1)))}matchSegmentAgainstRoute(T,D,F,L,z){return"**"===F.path?(T=as(F,T),F.loadChildren?(F._loadedRoutes?(0,ce.of)({routes:F._loadedRoutes,injector:F._loadedInjector}):this.configLoader.loadChildren(T,F)).pipe((0,be.U)(ie=>(F._loadedRoutes=ie.routes,F._loadedInjector=ie.injector,new dt(L,{})))):(0,ce.of)(new dt(L,{}))):ti(D,F,L,T).pipe((0,Ce.w)(({matched:Q,consumedSegments:ie,remainingSegments:Ae})=>Q?this.getChildConfig(T=F._injector??T,F,L).pipe((0,tt.zg)(Ut=>{const at=Ut.injector??T,bn=Ut.routes,{segmentGroup:si,slicedSegments:Qi}=Po(D,ie,Ae,bn),Fi=new dt(si.segments,si.children);if(0===Qi.length&&Fi.hasChildren())return this.expandChildren(at,bn,Fi).pipe((0,be.U)(Yd=>new dt(ie,Yd)));if(0===bn.length&&0===Qi.length)return(0,ce.of)(new dt(ie,{}));const oi=Fe(F)===z;return this.expandSegment(at,Fi,bn,Qi,oi?ze:z,!0).pipe((0,be.U)(Zn=>new dt(ie.concat(Zn.segments),Zn.children)))})):oo(D)))}getChildConfig(T,D,F){return D.children?(0,ce.of)({routes:D.children,injector:T}):D.loadChildren?void 0!==D._loadedRoutes?(0,ce.of)({routes:D._loadedRoutes,injector:D._loadedInjector}):function ra(A,T,D,F){const L=T.canLoad;if(void 0===L||0===L.length)return(0,ce.of)(!0);const z=L.map(Q=>{const ie=we(Q,A);return lt(function Fo(A){return A&&Mn(A.canLoad)}(ie)?ie.canLoad(T,D):A.runInContext(()=>ie(T,D)))});return(0,ce.of)(z).pipe(ot(),Tl())}(T,D,F).pipe((0,tt.zg)(L=>L?this.configLoader.loadChildren(T,D).pipe((0,Ht.b)(z=>{D._loadedRoutes=z.routes,D._loadedInjector=z.injector})):function vu(A){return(0,se._)(Fr(hs,3))}())):(0,ce.of)({routes:[],injector:T})}lineralizeSegments(T,D){let F=[],L=D.root;for(;;){if(F=F.concat(L.segments),0===L.numberOfChildren)return(0,ce.of)(F);if(L.numberOfChildren>1||!L.children[ze])return(0,se._)(new l.vHH(4e3,hs));L=L.children[ze]}}applyRedirectCommands(T,D,F){return this.applyRedirectCreateUrlTree(D,this.urlSerializer.parse(D),T,F)}applyRedirectCreateUrlTree(T,D,F,L){const z=this.createSegmentGroup(T,D.root,F,L);return new pn(z,this.createQueryParams(D.queryParams,this.urlTree.queryParams),D.fragment)}createQueryParams(T,D){const F={};return Te(T,(L,z)=>{if("string"==typeof L&&L.startsWith(":")){const ie=L.substring(1);F[z]=D[ie]}else F[z]=L}),F}createSegmentGroup(T,D,F,L){const z=this.createSegments(T,D.segments,F,L);let Q={};return Te(D.children,(ie,Ae)=>{Q[Ae]=this.createSegmentGroup(T,ie,F,L)}),new dt(z,Q)}createSegments(T,D,F,L){return D.map(z=>z.path.startsWith(":")?this.findPosParam(T,z,L):this.findOrReturn(z,F))}findPosParam(T,D,F){const L=F[D.path.substring(1)];if(!L)throw new l.vHH(4001,hs);return L}findOrReturn(T,D){let F=0;for(const L of D){if(L.path===T.path)return D.splice(F),L;F++}return T}}class O{}class y{constructor(T,D,F,L,z,Q,ie,Ae){this.injector=T,this.rootComponentType=D,this.config=F,this.urlTree=L,this.url=z,this.paramsInheritanceStrategy=Q,this.relativeLinkResolution=ie,this.urlSerializer=Ae}recognize(){const T=Po(this.urlTree.root,[],[],this.config.filter(D=>void 0===D.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,T,ze).pipe((0,be.U)(D=>{if(null===D)return null;const F=new Hi([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},ze,this.rootComponentType,null,this.urlTree.root,-1,{}),L=new Gr(F,D),z=new Ko(this.url,L);return this.inheritParamsAndData(z._root),z}))}inheritParamsAndData(T){const D=T.value,F=Fs(D,this.paramsInheritanceStrategy);D.params=Object.freeze(F.params),D.data=Object.freeze(F.data),T.children.forEach(L=>this.inheritParamsAndData(L))}processSegmentGroup(T,D,F,L){return 0===F.segments.length&&F.hasChildren()?this.processChildren(T,D,F):this.processSegment(T,D,F,F.segments,L)}processChildren(T,D,F){return(0,M.D)(Object.keys(F.children)).pipe((0,ft.b)(L=>{const z=F.children[L],Q=Ue(D,L);return this.processSegmentGroup(T,Q,z,L)}),Gt((L,z)=>L&&z?(L.push(...z),L):null),function zt(A,T=!1){return D=>D.lift(new Ct(A,T))}(L=>null!==L),(0,Ze.d)(null),Tt(),(0,be.U)(L=>{if(null===L)return null;const z=Y(L);return function E(A){A.sort((T,D)=>T.value.outlet===ze?-1:D.value.outlet===ze?1:T.value.outlet.localeCompare(D.value.outlet))}(z),z}))}processSegment(T,D,F,L,z){return(0,M.D)(D).pipe((0,ft.b)(Q=>this.processSegmentAgainstRoute(Q._injector??T,Q,F,L,z)),(0,$e.P)(Q=>!!Q),$t(Q=>{if(Ns(Q))return io(F,L,z)?(0,ce.of)([]):(0,ce.of)(null);throw Q}))}processSegmentAgainstRoute(T,D,F,L,z){if(D.redirectTo||!No(D,F,L,z))return(0,ce.of)(null);let Q;if("**"===D.path){const ie=L.length>0?ne(L).parameters:{},Ae=De(F)+L.length,Je=new Hi(L,ie,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,We(D),Fe(D),D.component??D._loadedComponent??null,D,fe(F),Ae,rt(D),Ae);Q=(0,ce.of)({snapshot:Je,consumedSegments:[],remainingSegments:[]})}else Q=ti(F,D,L,T).pipe((0,be.U)(({matched:ie,consumedSegments:Ae,remainingSegments:Je,parameters:Ut})=>{if(!ie)return null;const at=De(F)+Ae.length;return{snapshot:new Hi(Ae,Ut,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,We(D),Fe(D),D.component??D._loadedComponent??null,D,fe(F),at,rt(D),at),consumedSegments:Ae,remainingSegments:Je}}));return Q.pipe((0,Ce.w)(ie=>{if(null===ie)return(0,ce.of)(null);const{snapshot:Ae,consumedSegments:Je,remainingSegments:Ut}=ie;T=D._injector??T;const at=D._loadedInjector??T,bn=function R(A){return A.children?A.children:A.loadChildren?A._loadedRoutes:[]}(D),{segmentGroup:si,slicedSegments:Qi}=Po(F,Je,Ut,bn.filter(oi=>void 0===oi.redirectTo),this.relativeLinkResolution);if(0===Qi.length&&si.hasChildren())return this.processChildren(at,bn,si).pipe((0,be.U)(oi=>null===oi?null:[new Gr(Ae,oi)]));if(0===bn.length&&0===Qi.length)return(0,ce.of)([new Gr(Ae,[])]);const Fi=Fe(D)===z;return this.processSegment(at,bn,si,Qi,Fi?ze:z).pipe((0,be.U)(oi=>null===oi?null:[new Gr(Ae,oi)]))}))}}function H(A){const T=A.value.routeConfig;return T&&""===T.path&&void 0===T.redirectTo}function Y(A){const T=[],D=new Set;for(const F of A){if(!H(F)){T.push(F);continue}const L=T.find(z=>F.value.routeConfig===z.value.routeConfig);void 0!==L?(L.children.push(...F.children),D.add(L)):T.push(F)}for(const F of D){const L=Y(F.children);T.push(new Gr(F.value,L))}return T.filter(F=>!D.has(F))}function fe(A){let T=A;for(;T._sourceSegment;)T=T._sourceSegment;return T}function De(A){let T=A,D=T._segmentIndexShift??0;for(;T._sourceSegment;)T=T._sourceSegment,D+=T._segmentIndexShift??0;return D-1}function We(A){return A.data||{}}function rt(A){return A.resolve||{}}function Bn(A){return"string"==typeof A.title||null===A.title}function Yn(A){return(0,Ce.w)(T=>{const D=A(T);return D?(0,M.D)(D).pipe((0,be.U)(()=>T)):(0,ce.of)(T)})}let Ls=(()=>{class A{buildTitle(D){let F,L=D.root;for(;void 0!==L;)F=this.getResolvedTitleForRoute(L)??F,L=L.children.find(z=>z.outlet===ze);return F}getResolvedTitleForRoute(D){return D.data[lr]}}return A.\u0275fac=function(D){return new(D||A)},A.\u0275prov=l.Yz7({token:A,factory:function(){return(0,l.f3M)(ni)},providedIn:"root"}),A})(),ni=(()=>{class A extends Ls{constructor(D){super(),this.title=D}updateTitle(D){const F=this.buildTitle(D);void 0!==F&&this.title.setTitle(F)}}return A.\u0275fac=function(D){return new(D||A)(l.LFG(Ti.Dx))},A.\u0275prov=l.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"}),A})();class Vs{}class fs extends class Zi{shouldDetach(T){return!1}store(T,D){}shouldAttach(T){return!1}retrieve(T){return null}shouldReuseRoute(T,D){return T.routeConfig===D.routeConfig}}{}const ps=new l.OlP("",{providedIn:"root",factory:()=>({})}),hn=new l.OlP("ROUTES");let ms=(()=>{class A{constructor(D,F){this.injector=D,this.compiler=F,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(D){if(this.componentLoaders.get(D))return this.componentLoaders.get(D);if(D._loadedComponent)return(0,ce.of)(D._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(D);const F=lt(D.loadComponent()).pipe((0,Ht.b)(z=>{this.onLoadEndListener&&this.onLoadEndListener(D),D._loadedComponent=z}),jn(()=>{this.componentLoaders.delete(D)})),L=new ye.c(F,()=>new xe.xQ).pipe((0,zr.x)());return this.componentLoaders.set(D,L),L}loadChildren(D,F){if(this.childrenLoaders.get(F))return this.childrenLoaders.get(F);if(F._loadedRoutes)return(0,ce.of)({routes:F._loadedRoutes,injector:F._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(F);const z=this.loadModuleFactoryOrRoutes(F.loadChildren).pipe((0,be.U)(ie=>{this.onLoadEndListener&&this.onLoadEndListener(F);let Ae,Je,Ut=!1;Array.isArray(ie)?Je=ie:(Ae=ie.create(D).injector,Je=oe(Ae.get(hn,[],l.XFs.Self|l.XFs.Optional)));return{routes:Je.map(ea),injector:Ae}}),jn(()=>{this.childrenLoaders.delete(F)})),Q=new ye.c(z,()=>new xe.xQ).pipe((0,zr.x)());return this.childrenLoaders.set(F,Q),Q}loadModuleFactoryOrRoutes(D){return lt(D()).pipe((0,tt.zg)(F=>F instanceof l.YKP||Array.isArray(F)?(0,ce.of)(F):(0,M.D)(this.compiler.compileModuleAsync(F))))}}return A.\u0275fac=function(D){return new(D||A)(l.LFG(l.zs3),l.LFG(l.Sil))},A.\u0275prov=l.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"}),A})();class ut{}class bt{shouldProcessUrl(T){return!0}extract(T){return T}merge(T,D){return T}}function qt(A){throw A}function hr(A,T,D){return T.parse("/")}const Wr={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},wr={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function On(){const A=(0,l.f3M)(Ai),T=(0,l.f3M)(mn),D=(0,l.f3M)(ge.Ye),F=(0,l.f3M)(l.zs3),L=(0,l.f3M)(l.Sil),z=(0,l.f3M)(hn,{optional:!0})??[],Q=(0,l.f3M)(ps,{optional:!0})??{},ie=(0,l.f3M)(ni),Ae=(0,l.f3M)(Ls,{optional:!0}),Je=(0,l.f3M)(ut,{optional:!0}),Ut=(0,l.f3M)(Vs,{optional:!0}),at=new tr(null,A,T,D,F,L,oe(z));return Je&&(at.urlHandlingStrategy=Je),Ut&&(at.routeReuseStrategy=Ut),at.titleStrategy=Ae??ie,function Wi(A,T){A.errorHandler&&(T.errorHandler=A.errorHandler),A.malformedUriErrorHandler&&(T.malformedUriErrorHandler=A.malformedUriErrorHandler),A.onSameUrlNavigation&&(T.onSameUrlNavigation=A.onSameUrlNavigation),A.paramsInheritanceStrategy&&(T.paramsInheritanceStrategy=A.paramsInheritanceStrategy),A.relativeLinkResolution&&(T.relativeLinkResolution=A.relativeLinkResolution),A.urlUpdateStrategy&&(T.urlUpdateStrategy=A.urlUpdateStrategy),A.canceledNavigationResolution&&(T.canceledNavigationResolution=A.canceledNavigationResolution)}(Q,at),at}let tr=(()=>{class A{constructor(D,F,L,z,Q,ie,Ae){this.rootComponentType=D,this.urlSerializer=F,this.rootContexts=L,this.location=z,this.config=Ae,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new xe.xQ,this.errorHandler=qt,this.malformedUriErrorHandler=hr,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,ce.of)(void 0),this.urlHandlingStrategy=new bt,this.routeReuseStrategy=new fs,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=Q.get(ms),this.configLoader.onLoadEndListener=bn=>this.triggerEvent(new xo(bn)),this.configLoader.onLoadStartListener=bn=>this.triggerEvent(new Io(bn)),this.ngModule=Q.get(l.h0i),this.console=Q.get(l.c2e);const at=Q.get(l.R0b);this.isNgZoneEnabled=at instanceof l.R0b&&l.R0b.isInAngularZone(),this.resetConfig(Ae),this.currentUrlTree=function Kt(){return new pn(new dt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=Lr(this.currentUrlTree,this.rootComponentType),this.transitions=new pe.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(D){const F=this.events;return D.pipe((0,tn.h)(L=>0!==L.id),(0,be.U)(L=>({...L,extractedUrl:this.urlHandlingStrategy.extract(L.rawUrl)})),(0,Ce.w)(L=>{let z=!1,Q=!1;return(0,ce.of)(L).pipe((0,Ht.b)(ie=>{this.currentNavigation={id:ie.id,initialUrl:ie.rawUrl,extractedUrl:ie.extractedUrl,trigger:ie.source,extras:ie.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,Ce.w)(ie=>{const Ae=this.browserUrlTree.toString(),Je=!this.navigated||ie.extractedUrl.toString()!==Ae||Ae!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||Je)&&this.urlHandlingStrategy.shouldProcessUrl(ie.rawUrl))return Hn(ie.source)&&(this.browserUrlTree=ie.extractedUrl),(0,ce.of)(ie).pipe((0,Ce.w)(at=>{const bn=this.transitions.getValue();return F.next(new Is(at.id,this.serializeUrl(at.extractedUrl),at.source,at.restoredState)),bn!==this.transitions.getValue()?ae.E:Promise.resolve(at)}),function rl(A,T,D,F){return(0,Ce.w)(L=>function _u(A,T,D,F,L){return new sa(A,T,D,F,L).apply()}(A,T,D,L.extractedUrl,F).pipe((0,be.U)(z=>({...L,urlAfterRedirects:z}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,Ht.b)(at=>{this.currentNavigation={...this.currentNavigation,finalUrl:at.urlAfterRedirects},L.urlAfterRedirects=at.urlAfterRedirects}),function vt(A,T,D,F,L,z){return(0,tt.zg)(Q=>function _(A,T,D,F,L,z,Q="emptyOnly",ie="legacy"){return new y(A,T,D,F,L,Q,ie,z).recognize().pipe((0,Ce.w)(Ae=>null===Ae?function S(A){return new X.y(T=>T.error(A))}(new O):(0,ce.of)(Ae)))}(A,T,D,Q.urlAfterRedirects,F.serialize(Q.urlAfterRedirects),F,L,z).pipe((0,be.U)(ie=>({...Q,targetSnapshot:ie}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,Ht.b)(at=>{if(L.targetSnapshot=at.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!at.extras.skipLocationChange){const si=this.urlHandlingStrategy.merge(at.urlAfterRedirects,at.rawUrl);this.setBrowserUrl(si,at)}this.browserUrlTree=at.urlAfterRedirects}const bn=new tl(at.id,this.serializeUrl(at.extractedUrl),this.serializeUrl(at.urlAfterRedirects),at.targetSnapshot);F.next(bn)}));if(Je&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:bn,extractedUrl:si,source:Qi,restoredState:Fi,extras:oi}=ie,aa=new Is(bn,this.serializeUrl(si),Qi,Fi);F.next(aa);const Zn=Lr(si,this.rootComponentType).snapshot;return L={...ie,targetSnapshot:Zn,urlAfterRedirects:si,extras:{...oi,skipLocationChange:!1,replaceUrl:!1}},(0,ce.of)(L)}return this.rawUrlTree=ie.rawUrl,ie.resolve(null),ae.E}),(0,Ht.b)(ie=>{const Ae=new Aa(ie.id,this.serializeUrl(ie.extractedUrl),this.serializeUrl(ie.urlAfterRedirects),ie.targetSnapshot);this.triggerEvent(Ae)}),(0,be.U)(ie=>L={...ie,guards:P(ie.targetSnapshot,ie.currentSnapshot,this.rootContexts)}),function ds(A,T){return(0,tt.zg)(D=>{const{targetSnapshot:F,currentSnapshot:L,guards:{canActivateChecks:z,canDeactivateChecks:Q}}=D;return 0===Q.length&&0===z.length?(0,ce.of)({...D,guardsResult:!0}):function wl(A,T,D,F){return(0,M.D)(A).pipe((0,tt.zg)(L=>function na(A,T,D,F,L){const z=T&&T.routeConfig?T.routeConfig.canDeactivate:null;if(!z||0===z.length)return(0,ce.of)(!0);const Q=z.map(ie=>{const Ae=Gn(T)??L,Je=we(ie,Ae);return lt(function nl(A){return A&&Mn(A.canDeactivate)}(Je)?Je.canDeactivate(A,T,D,F):Ae.runInContext(()=>Je(A,T,D,F))).pipe((0,$e.P)())});return(0,ce.of)(Q).pipe(ot())}(L.component,L.route,D,T,F)),(0,$e.P)(L=>!0!==L,!0))}(Q,F,L,A).pipe((0,tt.zg)(ie=>ie&&function cs(A){return"boolean"==typeof A}(ie)?function ta(A,T,D,F){return(0,M.D)(T).pipe((0,ft.b)(L=>(0,he.z)(function Fa(A,T){return null!==A&&T&&T(new Ms(A)),(0,ce.of)(!0)}(L.route.parent,F),function ko(A,T){return null!==A&&T&&T(new Os(A)),(0,ce.of)(!0)}(L.route,F),function El(A,T,D){const F=T[T.length-1],z=T.slice(0,T.length-1).reverse().map(Q=>function G(A){const T=A.routeConfig?A.routeConfig.canActivateChild:null;return T&&0!==T.length?{node:A,guards:T}:null}(Q)).filter(Q=>null!==Q).map(Q=>q(()=>{const ie=Q.guards.map(Ae=>{const Je=Gn(Q.node)??D,Ut=we(Ae,Je);return lt(function yi(A){return A&&Mn(A.canActivateChild)}(Ut)?Ut.canActivateChild(F,A):Je.runInContext(()=>Ut(F,A))).pipe((0,$e.P)())});return(0,ce.of)(ie).pipe(ot())}));return(0,ce.of)(z).pipe(ot())}(A,L.path,D),function ka(A,T,D){const F=T.routeConfig?T.routeConfig.canActivate:null;if(!F||0===F.length)return(0,ce.of)(!0);const L=F.map(z=>q(()=>{const Q=Gn(T)??D,ie=we(z,Q);return lt(function Gi(A){return A&&Mn(A.canActivate)}(ie)?ie.canActivate(T,A):Q.runInContext(()=>ie(T,A))).pipe((0,$e.P)())}));return(0,ce.of)(L).pipe(ot())}(A,L.route,D))),(0,$e.P)(L=>!0!==L,!0))}(F,z,A,T):(0,ce.of)(ie)),(0,be.U)(ie=>({...D,guardsResult:ie})))})}(this.ngModule.injector,ie=>this.triggerEvent(ie)),(0,Ht.b)(ie=>{if(L.guardsResult=ie.guardsResult,Kn(ie.guardsResult))throw zi(0,ie.guardsResult);const Ae=new ts(ie.id,this.serializeUrl(ie.extractedUrl),this.serializeUrl(ie.urlAfterRedirects),ie.targetSnapshot,!!ie.guardsResult);this.triggerEvent(Ae)}),(0,tn.h)(ie=>!!ie.guardsResult||(this.restoreHistory(ie),this.cancelNavigationTransition(ie,"",3),!1)),Yn(ie=>{if(ie.guards.canActivateChecks.length)return(0,ce.of)(ie).pipe((0,Ht.b)(Ae=>{const Je=new xs(Ae.id,this.serializeUrl(Ae.extractedUrl),this.serializeUrl(Ae.urlAfterRedirects),Ae.targetSnapshot);this.triggerEvent(Je)}),(0,Ce.w)(Ae=>{let Je=!1;return(0,ce.of)(Ae).pipe(function pt(A,T){return(0,tt.zg)(D=>{const{targetSnapshot:F,guards:{canActivateChecks:L}}=D;if(!L.length)return(0,ce.of)(D);let z=0;return(0,M.D)(L).pipe((0,ft.b)(Q=>function _t(A,T,D,F){const L=A.routeConfig,z=A._resolve;return void 0!==L?.title&&!Bn(L)&&(z[lr]=L.title),function nn(A,T,D,F){const L=function jt(A){return[...Object.keys(A),...Object.getOwnPropertySymbols(A)]}(A);if(0===L.length)return(0,ce.of)({});const z={};return(0,M.D)(L).pipe((0,tt.zg)(Q=>function er(A,T,D,F){const L=Gn(T)??F,z=we(A,L);return lt(z.resolve?z.resolve(T,D):L.runInContext(()=>z(T,D)))}(A[Q],T,D,F).pipe((0,$e.P)(),(0,Ht.b)(ie=>{z[Q]=ie}))),Me(1),function fn(A){return T=>T.lift(new cn(A))}(z),$t(Q=>Ns(Q)?ae.E:(0,se._)(Q)))}(z,A,T,F).pipe((0,be.U)(Q=>(A._resolvedData=Q,A.data=Fs(A,D).resolve,L&&Bn(L)&&(A.data[lr]=L.title),null)))}(Q.route,F,A,T)),(0,Ht.b)(()=>z++),Me(1),(0,tt.zg)(Q=>z===L.length?(0,ce.of)(D):ae.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,Ht.b)({next:()=>Je=!0,complete:()=>{Je||(this.restoreHistory(Ae),this.cancelNavigationTransition(Ae,"",2))}}))}),(0,Ht.b)(Ae=>{const Je=new qo(Ae.id,this.serializeUrl(Ae.extractedUrl),this.serializeUrl(Ae.urlAfterRedirects),Ae.targetSnapshot);this.triggerEvent(Je)}))}),Yn(ie=>{const Ae=Je=>{const Ut=[];Je.routeConfig?.loadComponent&&!Je.routeConfig._loadedComponent&&Ut.push(this.configLoader.loadComponent(Je.routeConfig).pipe((0,Ht.b)(at=>{Je.component=at}),(0,be.U)(()=>{})));for(const at of Je.children)Ut.push(...Ae(at));return Ut};return(0,J.aj)(Ae(ie.targetSnapshot.root)).pipe((0,Ze.d)(),(0,je.q)(1))}),Yn(()=>this.afterPreactivation()),(0,be.U)(ie=>{const Ae=function mi(A,T,D){const F=is(A,T._root,D?D._root:void 0);return new eo(F,T)}(this.routeReuseStrategy,ie.targetSnapshot,ie.currentRouterState);return L={...ie,targetRouterState:Ae}}),(0,Ht.b)(ie=>{this.currentUrlTree=ie.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(ie.urlAfterRedirects,ie.rawUrl),this.routerState=ie.targetRouterState,"deferred"===this.urlUpdateStrategy&&(ie.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,ie),this.browserUrlTree=ie.urlAfterRedirects)}),((A,T,D)=>(0,be.U)(F=>(new Cn(T,F.targetRouterState,F.currentRouterState,D).activate(A),F)))(this.rootContexts,this.routeReuseStrategy,ie=>this.triggerEvent(ie)),(0,Ht.b)({next(){z=!0},complete(){z=!0}}),jn(()=>{z||Q||this.cancelNavigationTransition(L,"",1),this.currentNavigation?.id===L.id&&(this.currentNavigation=null)}),$t(ie=>{if(Q=!0,no(ie)){Ui(ie)||(this.navigated=!0,this.restoreHistory(L,!0));const Ae=new Ao(L.id,this.serializeUrl(L.extractedUrl),ie.message,ie.cancellationCode);if(F.next(Ae),Ui(ie)){const Je=this.urlHandlingStrategy.merge(ie.url,this.rawUrlTree),Ut={skipLocationChange:L.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Hn(L.source)};this.scheduleNavigation(Je,"imperative",null,Ut,{resolve:L.resolve,reject:L.reject,promise:L.promise})}else L.resolve(!1)}else{this.restoreHistory(L,!0);const Ae=new Mr(L.id,this.serializeUrl(L.extractedUrl),ie,L.targetSnapshot??void 0);F.next(Ae);try{L.resolve(this.errorHandler(ie))}catch(Je){L.reject(Je)}}return ae.E}))}))}resetRootComponentType(D){this.rootComponentType=D,this.routerState.root.component=this.rootComponentType}setTransition(D){this.transitions.next({...this.transitions.value,...D})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(D=>{const F="popstate"===D.type?"popstate":"hashchange";"popstate"===F&&setTimeout(()=>{const L={replaceUrl:!0},z=D.state?.navigationId?D.state:null;if(z){const ie={...z};delete ie.navigationId,delete ie.\u0275routerPageId,0!==Object.keys(ie).length&&(L.state=ie)}const Q=this.parseUrl(D.url);this.scheduleNavigation(Q,F,z,L)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(D){this.events.next(D)}resetConfig(D){this.config=D.map(ea),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(D,F={}){const{relativeTo:L,queryParams:z,fragment:Q,queryParamsHandling:ie,preserveFragment:Ae}=F,Je=L||this.routerState.root,Ut=Ae?this.currentUrlTree.fragment:Q;let at=null;switch(ie){case"merge":at={...this.currentUrlTree.queryParams,...z};break;case"preserve":at=this.currentUrlTree.queryParams;break;default:at=z||null}return null!==at&&(at=this.removeEmptyProps(at)),dn(Je,this.currentUrlTree,D,at,Ut??null)}navigateByUrl(D,F={skipLocationChange:!1}){const L=Kn(D)?D:this.parseUrl(D),z=this.urlHandlingStrategy.merge(L,this.rawUrlTree);return this.scheduleNavigation(z,"imperative",null,F)}navigate(D,F={skipLocationChange:!1}){return function Lo(A){for(let T=0;T{const z=D[L];return null!=z&&(F[L]=z),F},{})}processNavigations(){this.navigations.subscribe(D=>{this.navigated=!0,this.lastSuccessfulId=D.id,this.currentPageId=D.targetPageId,this.events.next(new rn(D.id,this.serializeUrl(D.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),D.resolve(!0)},D=>{this.console.warn(`Unhandled Navigation Error: ${D}`)})}scheduleNavigation(D,F,L,z,Q){if(this.disposed)return Promise.resolve(!1);let ie,Ae,Je;Q?(ie=Q.resolve,Ae=Q.reject,Je=Q.promise):Je=new Promise((bn,si)=>{ie=bn,Ae=si});const Ut=++this.navigationId;let at;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(L=this.location.getState()),at=L&&L.\u0275routerPageId?L.\u0275routerPageId:z.replaceUrl||z.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):at=0,this.setTransition({id:Ut,targetPageId:at,source:F,restoredState:L,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:D,extras:z,resolve:ie,reject:Ae,promise:Je,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Je.catch(bn=>Promise.reject(bn))}setBrowserUrl(D,F){const L=this.urlSerializer.serialize(D),z={...F.extras.state,...this.generateNgRouterState(F.id,F.targetPageId)};this.location.isCurrentPathEqualTo(L)||F.extras.replaceUrl?this.location.replaceState(L,"",z):this.location.go(L,"",z)}restoreHistory(D,F=!1){if("computed"===this.canceledNavigationResolution){const L=this.currentPageId-D.targetPageId;"popstate"!==D.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===L?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===L&&(this.resetState(D),this.browserUrlTree=D.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(L)}else"replace"===this.canceledNavigationResolution&&(F&&this.resetState(D),this.resetUrlToCurrentUrlTree())}resetState(D){this.routerState=D.currentRouterState,this.currentUrlTree=D.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,D.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(D,F,L){const z=new Ao(D.id,this.serializeUrl(D.extractedUrl),F,L);this.triggerEvent(z),D.resolve(!1)}generateNgRouterState(D,F){return"computed"===this.canceledNavigationResolution?{navigationId:D,\u0275routerPageId:F}:{navigationId:D}}}return A.\u0275fac=function(D){l.$Z()},A.\u0275prov=l.Yz7({token:A,factory:function(){return On()},providedIn:"root"}),A})();function Hn(A){return"imperative"!==A}let Qr=(()=>{class A{constructor(D,F,L,z,Q){this.router=D,this.route=F,this.tabIndexAttribute=L,this.renderer=z,this.el=Q,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.commands=null,this.onChanges=new xe.xQ,this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(D){this._preserveFragment=(0,l.D6c)(D)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(D){this._skipLocationChange=(0,l.D6c)(D)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(D){this._replaceUrl=(0,l.D6c)(D)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(D){if(null!=this.tabIndexAttribute)return;const F=this.renderer,L=this.el.nativeElement;null!==D?F.setAttribute(L,"tabindex",D):F.removeAttribute(L,"tabindex")}ngOnChanges(D){this.onChanges.next(this)}set routerLink(D){null!=D?(this.commands=Array.isArray(D)?D:[D],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){return null===this.urlTree||this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return A.\u0275fac=function(D){return new(D||A)(l.Y36(tr),l.Y36(Or),l.$8M("tabindex"),l.Y36(l.Qsj),l.Y36(l.SBq))},A.\u0275dir=l.lG2({type:A,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(D,F){1&D&&l.NdJ("click",function(){return F.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[l.TTD]}),A})(),Er=(()=>{class A{constructor(D,F,L){this.router=D,this.route=F,this.locationStrategy=L,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.commands=null,this.href=null,this.onChanges=new xe.xQ,this.subscription=D.events.subscribe(z=>{z instanceof rn&&this.updateTargetUrlAndHref()})}set preserveFragment(D){this._preserveFragment=(0,l.D6c)(D)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(D){this._skipLocationChange=(0,l.D6c)(D)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(D){this._replaceUrl=(0,l.D6c)(D)}get replaceUrl(){return this._replaceUrl}set routerLink(D){this.commands=null!=D?Array.isArray(D)?D:[D]:null}ngOnChanges(D){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(D,F,L,z,Q){return!!(0!==D||F||L||z||Q||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!1)}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return A.\u0275fac=function(D){return new(D||A)(l.Y36(tr),l.Y36(Or),l.Y36(ge.S$))},A.\u0275dir=l.lG2({type:A,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(D,F){1&D&&l.NdJ("click",function(z){return F.onClick(z.button,z.ctrlKey,z.shiftKey,z.altKey,z.metaKey)}),2&D&&l.uIk("target",F.target)("href",F.href,l.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[l.TTD]}),A})(),vs=(()=>{class A{constructor(D,F,L,z,Q,ie){this.router=D,this.element=F,this.renderer=L,this.cdr=z,this.link=Q,this.linkWithHref=ie,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new l.vpe,this.routerEventsSubscription=D.events.subscribe(Ae=>{Ae instanceof rn&&this.update()})}ngAfterContentInit(){(0,ce.of)(this.links.changes,this.linksWithHrefs.changes,(0,ce.of)(null)).pipe((0,di.J)()).subscribe(D=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const D=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(F=>!!F).map(F=>F.onChanges);this.linkInputChangesSubscription=(0,M.D)(D).pipe((0,di.J)()).subscribe(F=>{this.isActive!==this.isLinkActive(this.router)(F)&&this.update()})}set routerLinkActive(D){const F=Array.isArray(D)?D:D.split(" ");this.classes=F.filter(L=>!!L)}ngOnChanges(D){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(()=>{const D=this.hasActiveLinks();this.isActive!==D&&(this.isActive=D,this.cdr.markForCheck(),this.classes.forEach(F=>{D?this.renderer.addClass(this.element.nativeElement,F):this.renderer.removeClass(this.element.nativeElement,F)}),D&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(D))})}isLinkActive(D){const F=function Oi(A){return!!A.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return L=>!!L.urlTree&&D.isActive(L.urlTree,F)}hasActiveLinks(){const D=this.isLinkActive(this.router);return this.link&&D(this.link)||this.linkWithHref&&D(this.linkWithHref)||this.links.some(D)||this.linksWithHrefs.some(D)}}return A.\u0275fac=function(D){return new(D||A)(l.Y36(tr),l.Y36(l.SBq),l.Y36(l.Qsj),l.Y36(l.sBO),l.Y36(Qr,8),l.Y36(Er,8))},A.\u0275dir=l.lG2({type:A,selectors:[["","routerLinkActive",""]],contentQueries:function(D,F,L){if(1&D&&(l.Suo(L,Qr,5),l.Suo(L,Er,5)),2&D){let z;l.iGM(z=l.CRH())&&(F.links=z),l.iGM(z=l.CRH())&&(F.linksWithHrefs=z)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[l.TTD]}),A})();class yu{}let zd=(()=>{class A{preload(D,F){return F().pipe($t(()=>(0,ce.of)(null)))}}return A.\u0275fac=function(D){return new(D||A)},A.\u0275prov=l.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"}),A})(),Cu=(()=>{class A{constructor(D,F,L,z,Q){this.router=D,this.injector=L,this.preloadingStrategy=z,this.loader=Q}setUpPreloading(){this.subscription=this.router.events.pipe((0,tn.h)(D=>D instanceof rn),(0,ft.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(D,F){const L=[];for(const z of F){z.providers&&!z._injector&&(z._injector=(0,l.MMx)(z.providers,D,`Route: ${z.path}`));const Q=z._injector??D,ie=z._loadedInjector??Q;z.loadChildren&&!z._loadedRoutes&&void 0===z.canLoad||z.loadComponent&&!z._loadedComponent?L.push(this.preloadConfig(Q,z)):(z.children||z._loadedRoutes)&&L.push(this.processRoutes(ie,z.children??z._loadedRoutes))}return(0,M.D)(L).pipe((0,di.J)())}preloadConfig(D,F){return this.preloadingStrategy.preload(F,()=>{let L;L=F.loadChildren&&void 0===F.canLoad?this.loader.loadChildren(D,F):(0,ce.of)(null);const z=L.pipe((0,tt.zg)(Q=>null===Q?(0,ce.of)(void 0):(F._loadedRoutes=Q.routes,F._loadedInjector=Q.injector,this.processRoutes(Q.injector??D,Q.routes))));if(F.loadComponent&&!F._loadedComponent){const Q=this.loader.loadComponent(F);return(0,M.D)([z,Q]).pipe((0,di.J)())}return z})}}return A.\u0275fac=function(D){return new(D||A)(l.LFG(tr),l.LFG(l.Sil),l.LFG(l.lqb),l.LFG(yu),l.LFG(ms))},A.\u0275prov=l.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"}),A})();const mc=new l.OlP("");let vc=(()=>{class A{constructor(D,F,L={}){this.router=D,this.viewportScroller=F,this.options=L,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},L.scrollPositionRestoration=L.scrollPositionRestoration||"disabled",L.anchorScrolling=L.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(D=>{D instanceof Is?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=D.navigationTrigger,this.restoredId=D.restoredState?D.restoredState.navigationId:0):D instanceof rn&&(this.lastId=D.id,this.scheduleScrollEvent(D,this.router.parseUrl(D.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(D=>{D instanceof ei&&(D.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(D.position):D.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(D.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(D,F){this.router.triggerEvent(new ei(D,"popstate"===this.lastSource?this.store[this.restoredId]:null,F))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return A.\u0275fac=function(D){l.$Z()},A.\u0275prov=l.Yz7({token:A,factory:A.\u0275fac}),A})();function Bs(A,T){return{\u0275kind:A,\u0275providers:T}}function Bo(A){return[{provide:hn,multi:!0,useValue:A}]}function ao(){const A=(0,l.f3M)(l.zs3);return T=>{const D=A.get(l.z2F);if(T!==D.components[0])return;const F=A.get(tr),L=A.get(ar);1===A.get(Ra)&&F.initialNavigation(),A.get(ri,null,l.XFs.Optional)?.setUpPreloading(),A.get(mc,null,l.XFs.Optional)?.init(),F.resetRootComponentType(D.componentTypes[0]),L.closed||(L.next(),L.unsubscribe())}}const ar=new l.OlP("",{factory:()=>new xe.xQ}),Ra=new l.OlP("",{providedIn:"root",factory:()=>1});const ri=new l.OlP("");function Hs(A){return Bs(0,[{provide:ri,useExisting:Cu},{provide:yu,useExisting:A}])}const Ol=new l.OlP("ROUTER_FORROOT_GUARD"),oa=[ge.Ye,{provide:Ai,useClass:Bi},{provide:tr,useFactory:On},mn,{provide:Or,useFactory:function xl(A){return A.routerState.root},deps:[tr]},ms];function Su(){return new l.PXZ("Router",tr)}let $d=(()=>{class A{constructor(D){}static forRoot(D,F){return{ngModule:A,providers:[oa,[],Bo(D),{provide:Ol,useFactory:Cc,deps:[[tr,new l.FiY,new l.tp0]]},{provide:ps,useValue:F||{}},F?.useHash?{provide:ge.S$,useClass:ge.Do}:{provide:ge.S$,useClass:ge.b0},{provide:mc,useFactory:()=>{const A=(0,l.f3M)(tr),T=(0,l.f3M)(ge.EM),D=(0,l.f3M)(ps);return D.scrollOffset&&T.setOffset(D.scrollOffset),new vc(A,T,D)}},F?.preloadingStrategy?Hs(F.preloadingStrategy).\u0275providers:[],{provide:l.PXZ,multi:!0,useFactory:Su},F?.initialNavigation?Cs(F):[],[{provide:Tr,useFactory:ao},{provide:l.tb,multi:!0,useExisting:Tr}]]}}static forChild(D){return{ngModule:A,providers:[Bo(D)]}}}return A.\u0275fac=function(D){return new(D||A)(l.LFG(Ol,8))},A.\u0275mod=l.oAB({type:A}),A.\u0275inj=l.cJS({imports:[Mi]}),A})();function Cc(A){return"guarded"}function Cs(A){return["disabled"===A.initialNavigation?Bs(3,[{provide:l.ip1,multi:!0,useFactory:()=>{const T=(0,l.f3M)(tr);return()=>{T.setUpLocationChangeListener()}}},{provide:Ra,useValue:2}]).\u0275providers:[],"enabledBlocking"===A.initialNavigation?Bs(2,[{provide:Ra,useValue:0},{provide:l.ip1,multi:!0,deps:[l.zs3],useFactory:T=>{const D=T.get(ge.V_,Promise.resolve());let F=!1;return()=>D.then(()=>new Promise(z=>{const Q=T.get(tr),ie=T.get(ar);(function L(z){T.get(tr).events.pipe((0,tn.h)(ie=>ie instanceof rn||ie instanceof Ao||ie instanceof Mr),(0,be.U)(ie=>ie instanceof rn||ie instanceof Ao&&(0===ie.code||1===ie.code)&&null),(0,tn.h)(ie=>null!==ie),(0,je.q)(1)).subscribe(()=>{z()})})(()=>{z(!0),F=!0}),Q.afterPreactivation=()=>(z(!0),F||ie.closed?(0,ce.of)(void 0):ie),Q.initialNavigation()}))}}]).\u0275providers:[]]}const Tr=new l.OlP("")},6799:(et,Ee,j)=>{j.d(Ee,{K6A:()=>Kv,I9z:()=>zf,KKC:()=>od,Y_4:()=>nf,PEh:()=>sd,CM6:()=>ef,C9t:()=>Ad,fv_:()=>oc,m4W:()=>bd,dRQ:()=>Km,Z4N:()=>$m,YAP:()=>BC,uUW:()=>Uf,qvL:()=>jg,nqY:()=>Zh,xRP:()=>WC,G55:()=>bm,MgK:()=>ci,mIp:()=>Co,QoI:()=>Ld,saT:()=>Rb,blk:()=>pD,XTz:()=>Lm,otW:()=>mD,dTv:()=>cb,EuU:()=>yf,hQ:()=>pu,vNO:()=>Jl,fzC:()=>zb,A0B:()=>Ub,d6G:()=>Gf,ogR:()=>fu,zYX:()=>Yf,zuD:()=>du,toC:()=>Fb,dml:()=>ff,jND:()=>Ef,KHL:()=>Tf,PDs:()=>Af,Gcc:()=>Md,Nh1:()=>_d,K8c:()=>Hm});var l=j(4537),M=j(8692);class ce{constructor(f,a){this.fn=f,this.subscriptions=a}unsubscribe(){const f=this.subscriptions.indexOf(this);-1!==f&&this.subscriptions.splice(f,1)}}function de(c){return null!=c&&"object"==typeof c&&!0===c["@@functional/placeholder"]}function J(c){return function f(a){return 0===arguments.length||de(a)?f:c.apply(this,arguments)}}function he(c){return function f(a,g){switch(arguments.length){case 0:return f;case 1:return de(a)?f:J(function(b){return c(a,b)});default:return de(a)&&de(g)?f:de(a)?J(function(b){return c(b,g)}):de(g)?J(function(b){return c(a,b)}):c(a,g)}}}const ae=he(function(f,a){return a instanceof f||null!=a&&(a.constructor===f||"Object"===f.name&&"object"==typeof a)});function q(c,f){return Object.prototype.hasOwnProperty.call(f,c)}var ee=Object.prototype.toString;const ye=function(){return"[object Arguments]"===ee.call(arguments)?function(f){return"[object Arguments]"===ee.call(f)}:function(f){return q("callee",f)}}(),xe=Array.isArray||function(f){return null!=f&&f.length>=0&&"[object Array]"===Object.prototype.toString.call(f)};function be(c){return"[object String]"===Object.prototype.toString.call(c)}var je=J(function(f){return null!=f&&"function"==typeof f["fantasy-land/empty"]?f["fantasy-land/empty"]():null!=f&&null!=f.constructor&&"function"==typeof f.constructor["fantasy-land/empty"]?f.constructor["fantasy-land/empty"]():null!=f&&"function"==typeof f.empty?f.empty():null!=f&&null!=f.constructor&&"function"==typeof f.constructor.empty?f.constructor.empty():xe(f)?[]:be(f)?"":function ge(c){return"[object Object]"===Object.prototype.toString.call(c)}(f)?{}:ye(f)?function(){return arguments}():function Ce(c){var f=Object.prototype.toString.call(c);return"[object Uint8ClampedArray]"===f||"[object Int8Array]"===f||"[object Uint8Array]"===f||"[object Int16Array]"===f||"[object Uint16Array]"===f||"[object Int32Array]"===f||"[object Uint32Array]"===f||"[object Float32Array]"===f||"[object Float64Array]"===f||"[object BigInt64Array]"===f||"[object BigUint64Array]"===f}(f)?f.constructor.from(""):void 0});const Rt=je;function tn(c){for(var a,f=[];!(a=c.next()).done;)f.push(a.value);return f}function tt(c,f,a){for(var g=0,b=a.length;g=0;)q(a=$t[g],f)&&!Wt(b,a)&&(b[b.length]=a),g-=1;return b}:function(f){return Object(f)!==f?[]:Object.keys(f)}),Ar=J(function(f){return null===f?"Null":void 0===f?"Undefined":Object.prototype.toString.call(f).slice(8,-1)});function _e(c,f,a,g){var b=tn(c);function $(le,Se){return Me(le,Se,a.slice(),g.slice())}return!tt(function(le,Se){return!tt($,Se,le)},tn(f),b)}function Me(c,f,a,g){if(Ht(c,f))return!0;var b=Ar(c);if(b!==Ar(f))return!1;if("function"==typeof c["fantasy-land/equals"]||"function"==typeof f["fantasy-land/equals"])return"function"==typeof c["fantasy-land/equals"]&&c["fantasy-land/equals"](f)&&"function"==typeof f["fantasy-land/equals"]&&f["fantasy-land/equals"](c);if("function"==typeof c.equals||"function"==typeof f.equals)return"function"==typeof c.equals&&c.equals(f)&&"function"==typeof f.equals&&f.equals(c);switch(b){case"Arguments":case"Array":case"Object":if("function"==typeof c.constructor&&"Promise"===function $e(c){var f=String(c).match(/^function (\w*)/);return null==f?"":f[1]}(c.constructor))return c===f;break;case"Boolean":case"Number":case"String":if(typeof c!=typeof f||!Ht(c.valueOf(),f.valueOf()))return!1;break;case"Date":if(!Ht(c.valueOf(),f.valueOf()))return!1;break;case"Error":return c.name===f.name&&c.message===f.message;case"RegExp":if(c.source!==f.source||c.global!==f.global||c.ignoreCase!==f.ignoreCase||c.multiline!==f.multiline||c.sticky!==f.sticky||c.unicode!==f.unicode)return!1}for(var x=a.length-1;x>=0;){if(a[x]===c)return g[x]===f;x-=1}switch(b){case"Map":return c.size===f.size&&_e(c.entries(),f.entries(),a.concat([c]),g.concat([f]));case"Set":return c.size===f.size&&_e(c.values(),f.values(),a.concat([c]),g.concat([f]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var $=Gt(c);if($.length!==Gt(f).length)return!1;var le=a.concat([c]),Se=g.concat([f]);for(x=$.length-1;x>=0;){var Pe=$[x];if(!q(Pe,f)||!Me(f[Pe],c[Pe],le,Se))return!1;x-=1}return!0}const Ne=he(function(f,a){return Me(f,a,[],[])}),Ze=J(function(f){return null!=f&&Ne(f,Rt(f))});function mt(c){return null==c}function Tt(c){return mt(c)||Ze(c)}function zt(c){return ae(String,c)}function cn(c){return ae(Object,c)}function qn(c){return ae(Map,c)}function jn(c,f){return c!==f}function Ti(c,f){return JSON.stringify(c)===JSON.stringify(f)}function lr(c){const f=new Map;for(const[a,g]of c)qn(g)?f.set(a,lr(g)):f.set(a,g);return f}function Li(c){switch(!0){case qn(c):return lr(c);case cn(c)&&!Array.isArray(c):return Te({},c);default:return JSON.parse(JSON.stringify(c))}}function Te(...c){const f={};return c.map(a=>cn(a)?{...a}:{}).forEach(a=>{Object.keys(a).forEach(g=>{const b=a[g];f[g]=Array.isArray(b)?Array.from(b):cn(b)?Te(f[g]||{},b):b})}),f}function lt(c=window){return!mt(c)}let Kt,qe,un,Xt;function yr(c=!0){if(!c||!Kt){const f=document&&document.querySelector("[ng-version]");Kt=f?""+f.getAttribute("ng-version"):void 0}return Kt}function It(c=!0){return c&&Kt||(qe=window?.angular?.version?.full),qe}function xt(c=!0){return c&&un||(un=window?.CDS?._react?.version?window.CDS._react.version:document.querySelector("[data-reactroot], [data-reactid]")?"unknown version":void 0),un}function Yt(c=!0){if(!c||!Xt){const f=document.querySelectorAll("*");let a;for(let g=0;g"-"+f.toLowerCase())}function en(c){return c.charAt(0).toUpperCase()+c.slice(1)}const Jr=new class{constructor(){if(this.supports={js:!0},!document.body.hasAttribute("cds-supports")||"no-js"===document.body.getAttribute("cds-supports")){const c=Rn(Object.keys(this.supports).reduce((f,a)=>`${f} ${this.supports[a]?a:"no-"+a}`,"")).trim();document.body.setAttribute("cds-supports",c)}}};function Ii(c,f){switch(c){case 0:return function(){return f.apply(this,arguments)};case 1:return function(a){return f.apply(this,arguments)};case 2:return function(a,g){return f.apply(this,arguments)};case 3:return function(a,g,b){return f.apply(this,arguments)};case 4:return function(a,g,b,x){return f.apply(this,arguments)};case 5:return function(a,g,b,x,$){return f.apply(this,arguments)};case 6:return function(a,g,b,x,$,le){return f.apply(this,arguments)};case 7:return function(a,g,b,x,$,le,Se){return f.apply(this,arguments)};case 8:return function(a,g,b,x,$,le,Se,Pe){return f.apply(this,arguments)};case 9:return function(a,g,b,x,$,le,Se,Pe,nt){return f.apply(this,arguments)};case 10:return function(a,g,b,x,$,le,Se,Pe,nt,Pt){return f.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function fi(c,f,a){return function(){for(var g=[],b=0,x=c,$=0;$=arguments.length)?le=f[$]:(le=arguments[b],b+=1),g[$]=le,de(le)||(x-=1),$+=1}return x<=0?a.apply(this,g):Ii(x,fi(c,g,a))}}const Ln=he(function(f,a){return 1===f?J(a):Ii(f,fi(f,[],a))}),Kn=Number.isInteger||function(f){return f<<0===f},cr=he(function(f,a){var g=f<0?a.length+f:f;return be(a)?a.charAt(g):a[g]}),Eo=he(function(f,a){return f.map(function(g){for(var $,b=a,x=0;xvoid 0!==xr(c,f)),ur=gr({"@@functional/placeholder":!0},window);class Xn{static log(...f){Fn()&&br()&&console.log(...f)}static warn(...f){Fn()&&br()&&console.warn(...f)}static error(...f){Fn()&&br()&&console.error(...f)}}function br(){return!ur(["jasmine"])}function Fn(){return!window.CDS.environment.production}function As(){lt()&&(window.CDS=window.CDS||{_version:[],_react:{version:void 0},_supports:Jr.supports,_isStateProxied:!1,_state:{focusTrapItems:[],layerElements:[],i18nRegistry:{},elementRegistry:{},iconRegistry:{},motionRegistry:{}},environment:{production:!1},getDetails:Vn,logDetails:dr},function(){const c="6.4.2";window.CDS._version.indexOf(c)<0&&(window.CDS._version.push(c),document.querySelector("body")?.setAttribute("cds-version",window.CDS._version.join(" "))),window.CDS._version.length>1&&Xn.warn("Running more than one version of Clarity can cause unexpected issues. Please ensure only one version is loaded.")}(),window.CDS._isStateProxied||(window.CDS._isStateProxied=!0,window.CDS._state=new Proxy(window.CDS._state,{set:(c,f,a)=>{const g={key:f,prev:window.CDS._state[f],current:a};return c[f]=a,document.dispatchEvent(new CustomEvent("CDS_STATE_UPDATE",{detail:g})),!0}})))}function Vn(){return{versions:window.CDS._version,environment:window.CDS.environment,userAgent:navigator.userAgent,supports:window.CDS._supports,angularVersion:yr(!1),angularJSVersion:It(!1),reactVersion:xt(!1),vueVersion:Yt(!1),state:{...window.CDS._state,iconRegistry:Object.keys(window.CDS._state.iconRegistry),motionRegistry:Object.keys(window.CDS._state.motionRegistry),focusTrapRegistry:Object.keys(window.CDS._state.focusTrapItems.map(c=>c.focusTrapId))}}}function dr(){Xn.log(JSON.stringify(Vn(),null,2))}const Xr=new class pe{constructor(){this.subscriptions=[]}subscribe(f){const a=new ce(f,this.subscriptions);return this.subscriptions.push(a),a}emit(f){this.subscriptions.forEach(a=>a.fn(f))}toEventObservable(){return this}};Xr.listener=document.addEventListener("CDS_STATE_UPDATE",c=>Xr.emit(c.detail));class on{static get state(){return As(),window.CDS._state}static getValue(f){return on.state[f]}static setValue(f,a){on.state[f]=a}static log(){Xn.log(JSON.stringify(on.state,null,2))}}on.stateUpdates=Xr.toEventObservable();const To=["unknown",{outline:''}];class Et{static get registry(){return{unknown:To[1],...on.state.iconRegistry}}static addIcons(...f){on.state.iconRegistry={...on.state.iconRegistry,...Object.fromEntries(f.filter(([a])=>!Et.registry[a]))}}static addAliases(...f){const a=f.filter(([g])=>Et.registry[g]).flatMap(([g,b])=>b.map(x=>[x,Et.registry[g]]));on.state.iconRegistry={...on.state.iconRegistry,...Object.fromEntries(a)}}static getIconNameFromShape(f){return f[0]}}const $n=["angle",{outline:''}],rn=["exclamation-circle",{outline:'',solid:''}],Mr=["check-circle",{outline:'',solid:''}],Aa=["ellipsis-horizontal",{outline:'',outlineBadged:''}],xs=["window-close",{outline:''}],Io=["event",{outline:'',outlineAlerted:'',outlineBadged:'',solid:'',solidAlerted:'',solidBadged:''}],Ms=["calendar",{outline:'',outlineAlerted:'',outlineBadged:'',solid:'',solidAlerted:'',solidBadged:''}],Os=["eye-hide",{outline:'',solid:''}],ei=["eye",{outline:'',solid:''}],Ks=["ellipsis-vertical",{outline:'',outlineBadged:''}],$r=["view-columns",{outline:''}],gi=["arrow",{outline:''}],Lr=["times",{outline:''}],Or=["step-forward-2",{outline:''}],to=["angle-double",{outline:''}],Ko=["filter-grid-circle",{outline:'',solid:''}],ns=["filter-grid",{outline:'',solid:''}],ji=["info-circle",{outline:'',solid:''}],is=["exclamation-triangle",{outline:'',solid:''}],Xo=["circle",{outline:'',solid:''}],zi=["dot-circle",{outline:''}],Ui=["error-standard",{outline:'',solid:''}],ss=["success-standard",{outline:'',solid:''}];var mn=j(8002),Ps=(j(6239),j(9761),j(7393)),or=j(5435),_i=j(4395),$i=j(6782),Oo=(j(7460),j(5257)),Ue=(j(8049),j(3190),j(9765)),Gn=j(6215),ro=j(882),Cn=j(2759);var N=j(5917),P=j(3989),we=j(6493);const ls=new class ct extends we.v{}(class G extends P.o{constructor(f,a){super(f,a),this.scheduler=f,this.work=a}schedule(f,a=0){return a>0?super.schedule(f,a):(this.delay=a,this.state=f,this.scheduler.flush(this),this)}execute(f,a){return a>0||this.closed?super.execute(f,a):this._execute(f,a)}requestAsyncId(f,a,g=0){return null!==g&&g>0||null===g&&this.delay>0?super.requestAsyncId(f,a,g):f.flush(this)}});var Yr=j(3464),Mn=j(3098);class Gi extends Ps.L{constructor(f,a,g=0){super(f),this.scheduler=a,this.delay=g}static dispatch(f){const{notification:a,destination:g}=f;a.observe(g),this.unsubscribe()}scheduleMessage(f){this.destination.add(this.scheduler.schedule(Gi.dispatch,this.delay,new yi(f,this.destination)))}_next(f){this.scheduleMessage(Mn.P.createNext(f))}_error(f){this.scheduleMessage(Mn.P.createError(f)),this.unsubscribe()}_complete(){this.scheduleMessage(Mn.P.createComplete()),this.unsubscribe()}}class yi{constructor(f,a){this.notification=f,this.destination=a}}var nl=j(7971),Oa=j(8858);class Zr extends Ue.xQ{constructor(f=Number.POSITIVE_INFINITY,a=Number.POSITIVE_INFINITY,g){super(),this.scheduler=g,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=f<1?1:f,this._windowTime=a<1?1:a,a===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(f){if(!this.isStopped){const a=this._events;a.push(f),a.length>this._bufferSize&&a.shift()}super.next(f)}nextTimeWindow(f){this.isStopped||(this._events.push(new us(this._getNow(),f)),this._trimBufferThenGetEvents()),super.next(f)}_subscribe(f){const a=this._infiniteTimeWindow,g=a?this._events:this._trimBufferThenGetEvents(),b=this.scheduler,x=g.length;let $;if(this.closed)throw new nl.N;if(this.isStopped||this.hasError?$=Yr.w.EMPTY:(this.observers.push(f),$=new Oa.W(this,f)),b&&f.add(f=new Gi(f,b)),a)for(let le=0;lea&&($=Math.max($,x-a)),$>0&&b.splice(0,$),b}}class us{constructor(f,a){this.time=f,this.value=a}}var Ns=j(4591),Ye=j(4091),ot=j(92);j(7223),j(8817);class Ro{static getTrapElements(){return[...on.state.focusTrapItems]}static setTrapElements(f){const a=document.querySelector("html");null!==a&&function Ve(c,...f){c&&f.forEach(([a,g])=>{!1===g||null===g?c.removeAttribute(a):c.setAttribute(a,g+"")})}(a,["cds-focus-trap",!!f.length&&""]),on.state.focusTrapItems=[...f]}static removeTrapElement(f){this.getTrapElements().length<1||this.setTrapElements([...this.getTrapElements().filter(a=>a.focusTrapId!==f.focusTrapId)])}static setCurrent(f){f?.focusTrapId&&this.setTrapElements([...this.getTrapElements().filter(a=>a.focusTrapId!==f.focusTrapId),f])}static activatePreviousCurrent(){this.setTrapElements([...this.getTrapElements()].slice(0,-1))}static getCurrent(){return function ko(c){return c.length?c[c.length-1]:void 0}(this.getTrapElements())||null}}const ps=Ln(3,(c,f,a)=>{!function mr(c,f){return f||(f=window&&window.customElements),!f||!!f.get(c)}(c)||function nr(){return window?.location?.href?.includes("localhost:6006")}()?(a.define(c,f),As(),window&&!Object.keys(window.CDS._state.elementRegistry).some(g=>g===c)&&(window.CDS._state.elementRegistry={...window.CDS._state.elementRegistry,[c]:{}})):Xn.warn(c+" has already been registered")});function gs(c,f){lt()&&ur(["customElements"])&&ps(c,f,window.customElements)}var hn=j(4762);let ms=!1;function ut(c){if((c=Math.trunc(c)||0)<0&&(c+=this.length),!(c<0||c>=this.length))return this[c]}if(!ms){ms=!0;const c=Reflect.getPrototypeOf(Int8Array);for(const f of[Array,String,c])Object.defineProperty(f.prototype,"at",{value:ut,writable:!0,enumerable:!1,configurable:!0})}let bt=!1,St=!1;function qt(c,f,a){Object.defineProperty(c,a,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(f)?this.getAttribute(f):null},set:function(g){null!==g?this.setAttribute(f,g):this.removeAttribute(f)}})}bt||Element.prototype.hasOwnProperty("role")||(qt(Element.prototype,"role","role"),bt=!0),St||Element.prototype.hasOwnProperty("ariaLabel")||(St=!0,["ActiveDescendant","Atomic","AutoComplete","Busy","Checked","ColCount","ColIndex","ColSpan","Controls","Current","DescribedBy","Details","Disabled","ErrorMessage","Expanded","FlowTo","HasPopup","Hidden","Invalid","KeyShortcuts","Label","LabelledBy","Level","Live","Modal","MultiLine","MultiSelectable","Orientation","Owns","Placeholder","PosInSet","Pressed","ReadOnly","Relevant","Required","RoleDescription","RowCount","RowIndex","RowSpan","Selected","SetSize","Sort","ValueMax","ValueMin","ValueNow","ValueText"].forEach(c=>qt(Element.prototype,"aria-"+c.toLowerCase(),"aria"+c)));var hr=j(8239);const Wr=window,wr=Wr.ShadowRoot&&(void 0===Wr.ShadyCSS||Wr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Wi=Symbol(),On=new WeakMap;class tr{constructor(f,a,g){if(this._$cssResult$=!0,g!==Wi)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=f,this.t=a}get styleSheet(){let f=this.o;const a=this.t;if(wr&&void 0===f){const g=void 0!==a&&1===a.length;g&&(f=On.get(a)),void 0===f&&((this.o=f=new CSSStyleSheet).replaceSync(this.cssText),g&&On.set(a,f))}return f}toString(){return this.cssText}}const Hn=(c,...f)=>{const a=1===c.length?c[0]:f.reduce((g,b,x)=>g+($=>{if(!0===$._$cssResult$)return $.cssText;if("number"==typeof $)return $;throw Error("Value passed to 'css' function must be a 'css' function result: "+$+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(b)+c[x+1],c[0]);return new tr(a,c,Wi)},Er=wr?c=>c:c=>c instanceof CSSStyleSheet?(f=>{let a="";for(const g of f.cssRules)a+=g.cssText;return(c=>new tr("string"==typeof c?c:c+"",void 0,Wi))(a)})(c):c;var vs;const Oi=window,yu=Oi.trustedTypes,zd=yu?yu.emptyScript:"",kn=Oi.reactiveElementPolyfillSupport,Cu={toAttribute(c,f){switch(f){case Boolean:c=c?zd:null;break;case Object:case Array:c=null==c?c:JSON.stringify(c)}return c},fromAttribute(c,f){let a=c;switch(f){case Boolean:a=null!==c;break;case Number:a=null===c?null:Number(c);break;case Object:case Array:try{a=JSON.parse(c)}catch{a=null}}return a}},mc=(c,f)=>f!==c&&(f==f||c==c),vc={attribute:!0,type:String,converter:Cu,reflect:!1,hasChanged:mc};class Vo extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(f){var a;this.finalize(),(null!==(a=this.h)&&void 0!==a?a:this.h=[]).push(f)}static get observedAttributes(){this.finalize();const f=[];return this.elementProperties.forEach((a,g)=>{const b=this._$Ep(g,a);void 0!==b&&(this._$Ev.set(b,g),f.push(b))}),f}static createProperty(f,a=vc){if(a.state&&(a.attribute=!1),this.finalize(),this.elementProperties.set(f,a),!a.noAccessor&&!this.prototype.hasOwnProperty(f)){const g="symbol"==typeof f?Symbol():"__"+f,b=this.getPropertyDescriptor(f,g,a);void 0!==b&&Object.defineProperty(this.prototype,f,b)}}static getPropertyDescriptor(f,a,g){return{get(){return this[a]},set(b){const x=this[f];this[a]=b,this.requestUpdate(f,x,g)},configurable:!0,enumerable:!0}}static getPropertyOptions(f){return this.elementProperties.get(f)||vc}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const f=Object.getPrototypeOf(this);if(f.finalize(),void 0!==f.h&&(this.h=[...f.h]),this.elementProperties=new Map(f.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const a=this.properties,g=[...Object.getOwnPropertyNames(a),...Object.getOwnPropertySymbols(a)];for(const b of g)this.createProperty(b,a[b])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(f){const a=[];if(Array.isArray(f)){const g=new Set(f.flat(1/0).reverse());for(const b of g)a.unshift(Er(b))}else void 0!==f&&a.push(Er(f));return a}static _$Ep(f,a){const g=a.attribute;return!1===g?void 0:"string"==typeof g?g:"string"==typeof f?f.toLowerCase():void 0}u(){var f;this._$E_=new Promise(a=>this.enableUpdating=a),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(f=this.constructor.h)||void 0===f||f.forEach(a=>a(this))}addController(f){var a,g;(null!==(a=this._$ES)&&void 0!==a?a:this._$ES=[]).push(f),void 0!==this.renderRoot&&this.isConnected&&(null===(g=f.hostConnected)||void 0===g||g.call(f))}removeController(f){var a;null===(a=this._$ES)||void 0===a||a.splice(this._$ES.indexOf(f)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((f,a)=>{this.hasOwnProperty(a)&&(this._$Ei.set(a,this[a]),delete this[a])})}createRenderRoot(){var f;const a=null!==(f=this.shadowRoot)&&void 0!==f?f:this.attachShadow(this.constructor.shadowRootOptions);return((c,f)=>{wr?c.adoptedStyleSheets=f.map(a=>a instanceof CSSStyleSheet?a:a.styleSheet):f.forEach(a=>{const g=document.createElement("style"),b=Wr.litNonce;void 0!==b&&g.setAttribute("nonce",b),g.textContent=a.cssText,c.appendChild(g)})})(a,this.constructor.elementStyles),a}connectedCallback(){var f;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(f=this._$ES)||void 0===f||f.forEach(a=>{var g;return null===(g=a.hostConnected)||void 0===g?void 0:g.call(a)})}enableUpdating(f){}disconnectedCallback(){var f;null===(f=this._$ES)||void 0===f||f.forEach(a=>{var g;return null===(g=a.hostDisconnected)||void 0===g?void 0:g.call(a)})}attributeChangedCallback(f,a,g){this._$AK(f,g)}_$EO(f,a,g=vc){var b;const x=this.constructor._$Ep(f,g);if(void 0!==x&&!0===g.reflect){const $=(void 0!==(null===(b=g.converter)||void 0===b?void 0:b.toAttribute)?g.converter:Cu).toAttribute(a,g.type);this._$El=f,null==$?this.removeAttribute(x):this.setAttribute(x,$),this._$El=null}}_$AK(f,a){var g;const b=this.constructor,x=b._$Ev.get(f);if(void 0!==x&&this._$El!==x){const $=b.getPropertyOptions(x),le="function"==typeof $.converter?{fromAttribute:$.converter}:void 0!==(null===(g=$.converter)||void 0===g?void 0:g.fromAttribute)?$.converter:Cu;this._$El=x,this[x]=le.fromAttribute(a,$.type),this._$El=null}}requestUpdate(f,a,g){let b=!0;void 0!==f&&(((g=g||this.constructor.getPropertyOptions(f)).hasChanged||mc)(this[f],a)?(this._$AL.has(f)||this._$AL.set(f,a),!0===g.reflect&&this._$El!==f&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(f,g))):b=!1),!this.isUpdatePending&&b&&(this._$E_=this._$Ej())}_$Ej(){var f=this;return(0,hr.Z)(function*(){f.isUpdatePending=!0;try{yield f._$E_}catch(g){Promise.reject(g)}const a=f.scheduleUpdate();return null!=a&&(yield a),!f.isUpdatePending})()}scheduleUpdate(){return this.performUpdate()}performUpdate(){var f;if(!this.isUpdatePending)return;this._$Ei&&(this._$Ei.forEach((b,x)=>this[x]=b),this._$Ei=void 0);let a=!1;const g=this._$AL;try{a=this.shouldUpdate(g),a?(this.willUpdate(g),null===(f=this._$ES)||void 0===f||f.forEach(b=>{var x;return null===(x=b.hostUpdate)||void 0===x?void 0:x.call(b)}),this.update(g)):this._$Ek()}catch(b){throw a=!1,this._$Ek(),b}a&&this._$AE(g)}willUpdate(f){}_$AE(f){var a;null===(a=this._$ES)||void 0===a||a.forEach(g=>{var b;return null===(b=g.hostUpdated)||void 0===b?void 0:b.call(g)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(f)),this.updated(f)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(f){return!0}update(f){void 0!==this._$EC&&(this._$EC.forEach((a,g)=>this._$EO(g,this[g],a)),this._$EC=void 0),this._$Ek()}updated(f){}firstUpdated(f){}}var Ud;Vo.finalized=!0,Vo.elementProperties=new Map,Vo.elementStyles=[],Vo.shadowRootOptions={mode:"open"},kn?.({ReactiveElement:Vo}),(null!==(vs=Oi.reactiveElementVersions)&&void 0!==vs?vs:Oi.reactiveElementVersions=[]).push("1.6.1");const xl=window,Bs=xl.trustedTypes,Bo=Bs?Bs.createPolicy("lit-html",{createHTML:c=>c}):void 0,bu="$lit$",ao=`lit$${(Math.random()+"").slice(9)}$`,ar="?"+ao,Ra=`<${ar}>`,_s=document,Ml=()=>_s.createComment(""),il=c=>null===c||"object"!=typeof c&&"function"!=typeof c,ri=Array.isArray,_c="[ \t\n\f\r]",ys=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,sl=/-->/g,Ol=/>/g,oa=RegExp(`>|${_c}(?:([^\\s"'>=/]+)(${_c}*=${_c}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Su=/'/g,$d=/"/g,Gd=/^(?:script|style|textarea|title)$/i,yc=c=>(f,...a)=>({_$litType$:c,strings:f,values:a}),ii=yc(1),Cc=yc(2),Cs=Symbol.for("lit-noChange"),Tr=Symbol.for("lit-nothing"),bc=new WeakMap,La=_s.createTreeWalker(_s,129,null,!1);class T{constructor({strings:f,_$litType$:a},g){let b;this.parts=[];let x=0,$=0;const le=f.length-1,Se=this.parts,[Pe,nt]=((c,f)=>{const a=c.length-1,g=[];let b,x=2===f?"":"",$=ys;for(let Se=0;Se"===Pt[0]?($=b??ys,Nt=-1):void 0===Pt[1]?Nt=-2:(Nt=$.lastIndex-Pt[2].length,nt=Pt[1],$=void 0===Pt[3]?oa:'"'===Pt[3]?$d:Su):$===$d||$===Su?$=oa:$===sl||$===Ol?$=ys:($=oa,b=void 0);const fr=$===oa&&c[Se+1].startsWith("/>")?" ":"";x+=$===ys?Pe+Ra:Nt>=0?(g.push(nt),Pe.slice(0,Nt)+bu+Pe.slice(Nt)+ao+fr):Pe+ao+(-2===Nt?(g.push(void 0),Se):fr)}const le=x+(c[a]||"")+(2===f?"":"");if(!Array.isArray(c)||!c.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==Bo?Bo.createHTML(le):le,g]})(f,a);if(this.el=T.createElement(Pe,g),La.currentNode=this.el.content,2===a){const Pt=this.el.content,Nt=Pt.firstChild;Nt.remove(),Pt.append(...Nt.childNodes)}for(;null!==(b=La.nextNode())&&Se.length0){b.textContent=Bs?Bs.emptyScript:"";for(let yn=0;ynri(c)||"function"==typeof c?.[Symbol.iterator])(f)?this.T(f):this._(f)}k(f){return this._$AA.parentNode.insertBefore(f,this._$AB)}$(f){this._$AH!==f&&(this._$AR(),this._$AH=this.k(f))}_(f){this._$AH!==Tr&&il(this._$AH)?this._$AA.nextSibling.data=f:this.$(_s.createTextNode(f)),this._$AH=f}g(f){var a;const{values:g,_$litType$:b}=f,x="number"==typeof b?this._$AC(f):(void 0===b.el&&(b.el=T.createElement(b.h,this.options)),b);if((null===(a=this._$AH)||void 0===a?void 0:a._$AD)===x)this._$AH.v(g);else{const $=new F(x,this),le=$.u(this.options);$.v(g),this.$(le),this._$AH=$}}_$AC(f){let a=bc.get(f.strings);return void 0===a&&bc.set(f.strings,a=new T(f)),a}T(f){ri(this._$AH)||(this._$AH=[],this._$AR());const a=this._$AH;let g,b=0;for(const x of f)b===a.length?a.push(g=new L(this.k(Ml()),this.k(Ml()),this,this.options)):g=a[b],g._$AI(x),b++;b2||""!==g[0]||""!==g[1]?(this._$AH=Array(g.length-1).fill(new String),this.strings=g):this._$AH=Tr}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(f,a=this,g,b){const x=this.strings;let $=!1;if(void 0===x)f=D(this,f,a,0),$=!il(f)||f!==this._$AH&&f!==Cs,$&&(this._$AH=f);else{const le=f;let Se,Pe;for(f=x[0],Se=0;Se{var g,b;const x=null!==(g=a?.renderBefore)&&void 0!==g?g:f;let $=x._$litPart$;if(void 0===$){const le=null!==(b=a?.renderBefore)&&void 0!==b?b:null;x._$litPart$=$=new L(f.insertBefore(Ml(),le),le,void 0,a??{})}return $._$AI(c),$};var Qi,Fi;class aa extends Vo{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var f,a;const g=super.createRenderRoot();return null!==(f=(a=this.renderOptions).renderBefore)&&void 0!==f||(a.renderBefore=g.firstChild),g}update(f){const a=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(f),this._$Do=si(a,this.renderRoot,this.renderOptions)}connectedCallback(){var f;super.connectedCallback(),null===(f=this._$Do)||void 0===f||f.setConnected(!0)}disconnectedCallback(){var f;super.disconnectedCallback(),null===(f=this._$Do)||void 0===f||f.setConnected(!1)}render(){return Cs}}aa.finalized=!0,aa._$litElement$=!0,null===(Qi=globalThis.litElementHydrateSupport)||void 0===Qi||Qi.call(globalThis,{LitElement:aa}),(0,globalThis.litElementPolyfillSupport)?.({LitElement:aa}),(null!==(Fi=globalThis.litElementVersions)&&void 0!==Fi?Fi:globalThis.litElementVersions=[]).push("3.3.2");const Du=Hn`@charset "UTF-8";:host,:root{--δ2:var(--cds-global-layout-space-xxs, calc(4 * 1rem / var(--cds-global-base, 20)));--δ3:var(--cds-global-layout-space-xs, calc(8 * 1rem / var(--cds-global-base, 20)));--δ4:var(--cds-global-layout-space-sm, calc(12 * 1rem / var(--cds-global-base, 20)));--δ5:var(--cds-global-layout-space-md, calc(16 * 1rem / var(--cds-global-base, 20)));--δ6:var(--cds-global-layout-space-lg, calc(24 * 1rem / var(--cds-global-base, 20)));--δ7:var(--cds-global-layout-space-xl, calc(32 * 1rem / var(--cds-global-base, 20)))}[cds-layout~="wrap:none"]{flex-wrap:nowrap!important}[cds-layout*="align:stretch"]{flex-grow:1!important}[cds-layout*="align:shrink"]{flex-shrink:1!important;flex-grow:0!important}[cds-layout~=horizontal]{display:flex;flex-direction:row;flex-wrap:wrap;justify-items:flex-start;align-items:flex-start;width:100%;margin:0;min-height:0}[cds-layout~=horizontal]>[cds-layout~=horizontal],[cds-layout~=horizontal]>[cds-layout~=vertical],[cds-layout~=horizontal]>[cds-text]{width:initial!important}[cds-layout~=horizontal][cds-layout*="align:top"]{align-items:flex-start}[cds-layout~=horizontal][cds-layout*="align:left"]{justify-content:flex-start}[cds-layout~=horizontal][cds-layout*="align:right"]{justify-content:flex-end}[cds-layout~=horizontal][cds-layout*="align:vertical-center"]{align-items:center;align-content:center}[cds-layout~=horizontal][cds-layout*="align:horizontal-center"]{justify-content:center}[cds-layout~=horizontal][cds-layout*="align:center"]{align-items:center;align-content:center;justify-content:center}[cds-layout~=horizontal][cds-layout*="order:reverse"]{flex-direction:row-reverse}[cds-layout~=horizontal][cds-layout*="align:horizontal-stretch"]{justify-content:stretch;flex-grow:1}[cds-layout~=horizontal][cds-layout*="align:horizontal-stretch"]>*{flex-grow:1}[cds-layout~=horizontal][cds-layout*="align:stretch"]{align-items:stretch;align-content:stretch;flex-grow:1}[cds-layout~=horizontal][cds-layout*="align:stretch"]>*{flex-grow:1}[cds-layout~=horizontal]>[cds-layout*="align:center"],[cds-layout~=horizontal]>[cds-layout*="align:vertical-center"]{align-self:center}[cds-layout~=horizontal]>[cds-layout*="align:center"],[cds-layout~=horizontal]>[cds-layout*="align:horizontal-center"]{margin-left:auto!important;margin-right:auto!important}[cds-layout~=horizontal]>[cds-layout*="align:top"]{align-self:flex-start}[cds-layout~=horizontal]>[cds-layout*="align:right"]{margin-left:auto!important}[cds-layout~=horizontal]>[cds-layout*="align:left"]{margin-right:auto!important}[cds-layout~=vertical]{width:100%;display:flex;flex-direction:column;align-items:flex-start}[cds-layout~=vertical],[cds-layout~=vertical][cds-layout*="align:top"]{justify-content:flex-start}[cds-layout~=vertical][cds-layout*="align:left"]{align-items:flex-start}[cds-layout~=vertical][cds-layout*="align:right"]{align-items:flex-end}[cds-layout~=vertical][cds-layout*="align:vertical-center"]{justify-content:center}[cds-layout~=vertical][cds-layout*="align:horizontal-center"]{align-items:center}[cds-layout~=vertical][cds-layout*="align:center"]{align-items:center;justify-content:center}[cds-layout~=vertical][cds-layout*="order:reverse"]{flex-direction:column-reverse}[cds-layout~=vertical][cds-layout*="align:horizontal-stretch"]{align-items:stretch}[cds-layout~=vertical][cds-layout*="align:stretch"]{align-items:stretch;justify-content:stretch}[cds-layout~=vertical][cds-layout*="align:stretch"]>*{flex-grow:1}[cds-layout~=vertical]>[cds-layout*="align:center"],[cds-layout~=vertical]>[cds-layout*="align:vertical-center"]{margin-top:auto;margin-bottom:auto}[cds-layout~=vertical]>[cds-layout*="align:center"],[cds-layout~=vertical]>[cds-layout*="align:horizontal-center"]{align-self:center}[cds-layout~=vertical]>[cds-layout*="align:top"]{margin-bottom:auto!important}[cds-layout~=vertical]>[cds-layout*="align:right"]{margin-left:auto}[cds-layout~=vertical]>[cds-layout*="align:left"]{margin-right:auto}[cds-layout~=grid]{display:grid;align-items:start;align-content:start;grid-template-columns:repeat(var(--cds-global-layout-grid-cols,12),1fr);width:100%}[cds-layout~=grid][cds-layout*=rows]{grid-template-rows:repeat(12,auto)}[cds-layout~=grid]>[cds-layout*=row]{align-self:stretch}[cds-layout~=grid][cds-layout*="align:top"]{align-content:start}[cds-layout~=grid][cds-layout*="align:right"]{justify-content:end}[cds-layout~=grid][cds-layout*="align:left"]{justify-content:start}[cds-layout~=grid][cds-layout*="align:horizontal-stretch"]{justify-items:stretch;justify-content:stretch}[cds-layout~=grid][cds-layout*="align:stretch"]{align-items:stretch;align-content:stretch;justify-items:stretch;justify-content:stretch}[cds-layout~=grid][cds-layout*="align:vertical-center"]{align-items:center;align-content:center}[cds-layout~=grid][cds-layout*="align:horizontal-center"]{justify-items:center;justify-content:center}[cds-layout~=grid][cds-layout*="align:center"]{align-items:center;align-content:center;justify-items:center;justify-content:center}::slotted([cds-layout~="display:screen-reader-only"]),[cds-layout~="display:screen-reader-only"]{position:absolute!important;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);padding:0;border:0;height:1px;width:1px;overflow:hidden;white-space:nowrap;top:0;left:0;display:block!important}[cds-layout*="gap:none"]{gap:0}[cds-layout*="gap:xxs"]{gap:var(--δ2)}[cds-layout*="gap:xs"]{gap:var(--δ3)}[cds-layout*="gap:sm"]{gap:var(--δ4)}[cds-layout*="gap:md"]{gap:var(--δ5)}[cds-layout*="gap:lg"]{gap:var(--δ6)}[cds-layout~="p:none"]{padding:0!important}[cds-layout~="p:xxs"]{padding:var(--δ2)!important}[cds-layout~="p:xs"]{padding:var(--δ3)!important}[cds-layout~="p:sm"]{padding:var(--δ4)!important}[cds-layout~="p:md"]{padding:var(--δ5)!important}[cds-layout~="m:md"]{margin:var(--δ5)!important}[cds-layout~="p:lg"]{padding:var(--δ6)!important}[cds-layout~="p-y:xs"]{padding-top:var(--δ3)!important;padding-bottom:var(--δ3)!important}[cds-layout~="p-x:lg"]{padding-left:var(--δ6)!important;padding-right:var(--δ6)!important}[cds-layout~="p-y:lg"]{padding-top:var(--δ6)!important;padding-bottom:var(--δ6)!important}[cds-layout~="p-l:md"]{padding-left:var(--δ5)!important}@media (min-width:992px){[cds-layout*="gap@md:lg"]{gap:var(--δ6)}[cds-layout~="p@md:lg"]{padding:var(--δ6)!important}[cds-layout~="m@md:xl"]{margin:var(--δ7)!important}}[cds-layout~=fill]{width:100%!important}*,:after,:before{box-sizing:border-box}[cds-layout~=horizontal][cds-layout*="align:horizontal-stretch"]>::slotted(*),[cds-layout~=horizontal][cds-layout*="align:stretch"]>::slotted(*),[cds-layout~=vertical][cds-layout*="align:stretch"]>::slotted(*){flex-grow:1}[cds-layout~=vertical] ::slotted([cds-layout*="align:center"]),[cds-layout~=vertical] ::slotted([cds-layout*="align:vertical-center"]){margin-top:auto;margin-bottom:auto}[cds-layout~=vertical] ::slotted([cds-layout*="align:center"]),[cds-layout~=vertical] ::slotted([cds-layout*="align:horizontal-center"]){align-self:center}[cds-layout~=vertical] ::slotted([cds-layout*="align:top"]){margin-bottom:auto!important}[cds-layout~=vertical] ::slotted([cds-layout*="align:bottom"]){margin-top:auto!important}[cds-layout~=vertical] ::slotted([cds-layout*="align:right"]){margin-left:auto}[cds-layout~=vertical] ::slotted([cds-layout*="align:left"]),[cds-layout~=vertical]>[cds-layout*="align:left"]{margin-right:auto}@media (min-width:576px){[cds-layout~=vertical] ::slotted([cds-layout*="align@xs:center"]),[cds-layout~=vertical] ::slotted([cds-layout*="align@xs:vertical-center"]){margin-top:auto;margin-bottom:auto}[cds-layout~=vertical] ::slotted([cds-layout*="align@xs:center"]),[cds-layout~=vertical] ::slotted([cds-layout*="align@xs:horizontal-center"]){align-self:center}[cds-layout~=vertical] ::slotted([cds-layout*="align@xs:top"]){margin-bottom:auto!important}[cds-layout~=vertical] ::slotted([cds-layout*="align@xs:bottom"]){margin-top:auto!important}[cds-layout~=vertical] ::slotted([cds-layout*="align@xs:right"]){margin-left:auto}[cds-layout~=vertical] ::slotted([cds-layout*="align@xs:left"]){margin-right:auto}}@media (min-width:768px){[cds-layout~=vertical] ::slotted([cds-layout*="align@sm:center"]),[cds-layout~=vertical] ::slotted([cds-layout*="align@sm:vertical-center"]){margin-top:auto;margin-bottom:auto}[cds-layout~=vertical] ::slotted([cds-layout*="align@sm:center"]),[cds-layout~=vertical] ::slotted([cds-layout*="align@sm:horizontal-center"]){align-self:center}[cds-layout~=vertical] ::slotted([cds-layout*="align@sm:top"]){margin-bottom:auto!important}[cds-layout~=vertical] ::slotted([cds-layout*="align@sm:bottom"]){margin-top:auto!important}[cds-layout~=vertical] ::slotted([cds-layout*="align@sm:right"]){margin-left:auto}[cds-layout~=vertical] ::slotted([cds-layout*="align@sm:left"]){margin-right:auto}}@media (min-width:992px){[cds-layout~=vertical] ::slotted([cds-layout*="align@md:center"]),[cds-layout~=vertical] ::slotted([cds-layout*="align@md:vertical-center"]){margin-top:auto;margin-bottom:auto}[cds-layout~=vertical] ::slotted([cds-layout*="align@md:center"]),[cds-layout~=vertical] ::slotted([cds-layout*="align@md:horizontal-center"]){align-self:center}[cds-layout~=vertical] ::slotted([cds-layout*="align@md:top"]){margin-bottom:auto!important}[cds-layout~=vertical] ::slotted([cds-layout*="align@md:bottom"]){margin-top:auto!important}[cds-layout~=vertical] ::slotted([cds-layout*="align@md:right"]){margin-left:auto}[cds-layout~=vertical] ::slotted([cds-layout*="align@md:left"]){margin-right:auto}}@media (min-width:1200px){[cds-layout~=vertical] ::slotted([cds-layout*="align@lg:center"]),[cds-layout~=vertical] ::slotted([cds-layout*="align@lg:vertical-center"]){margin-top:auto;margin-bottom:auto}[cds-layout~=vertical] ::slotted([cds-layout*="align@lg:center"]),[cds-layout~=vertical] ::slotted([cds-layout*="align@lg:horizontal-center"]){align-self:center}[cds-layout~=vertical] ::slotted([cds-layout*="align@lg:top"]){margin-bottom:auto!important}[cds-layout~=vertical] ::slotted([cds-layout*="align@lg:bottom"]){margin-top:auto!important}[cds-layout~=vertical] ::slotted([cds-layout*="align@lg:right"]){margin-left:auto}[cds-layout~=vertical] ::slotted([cds-layout*="align@lg:left"]){margin-right:auto}}@media (min-width:1440px){[cds-layout~=vertical] ::slotted([cds-layout*="align@xl:center"]),[cds-layout~=vertical] ::slotted([cds-layout*="align@xl:vertical-center"]){margin-top:auto;margin-bottom:auto}[cds-layout~=vertical] ::slotted([cds-layout*="align@xl:center"]),[cds-layout~=vertical] ::slotted([cds-layout*="align@xl:horizontal-center"]){align-self:center}[cds-layout~=vertical] ::slotted([cds-layout*="align@xl:top"]){margin-bottom:auto!important}[cds-layout~=vertical] ::slotted([cds-layout*="align@xl:bottom"]){margin-top:auto!important}[cds-layout~=vertical] ::slotted([cds-layout*="align@xl:right"]){margin-left:auto}[cds-layout~=vertical] ::slotted([cds-layout*="align@xl:left"]){margin-right:auto}}[cds-layout~=horizontal] ::slotted([cds-layout*="align:center"]),[cds-layout~=horizontal] ::slotted([cds-layout*="align:vertical-center"]){align-self:center}[cds-layout~=horizontal] ::slotted([cds-layout*="align:center"]),[cds-layout~=horizontal] ::slotted([cds-layout*="align:horizontal-center"]){margin-left:auto!important;margin-right:auto!important}[cds-layout~=horizontal] ::slotted([cds-layout*="align:top"]){align-self:flex-start}[cds-layout~=horizontal] ::slotted([cds-layout*="align:bottom"]){align-self:flex-end}[cds-layout~=horizontal] ::slotted([cds-layout*="align:right"]){margin-left:auto!important}[cds-layout~=horizontal] ::slotted([cds-layout*="align:left"]){margin-right:auto!important}@media (min-width:576px){[cds-layout~=horizontal] ::slotted([cds-layout*="align@xs:center"]),[cds-layout~=horizontal] ::slotted([cds-layout*="align@xs:vertical-center"]){align-self:center}[cds-layout~=horizontal] ::slotted([cds-layout*="align@xs:center"]),[cds-layout~=horizontal] ::slotted([cds-layout*="align@xs:horizontal-center"]){margin-left:auto!important;margin-right:auto!important}[cds-layout~=horizontal] ::slotted([cds-layout*="align@xs:top"]){align-self:flex-start}[cds-layout~=horizontal] ::slotted([cds-layout*="align@xs:bottom"]){align-self:flex-end}[cds-layout~=horizontal] ::slotted([cds-layout*="align@xs:right"]){margin-left:auto!important}[cds-layout~=horizontal] ::slotted([cds-layout*="align@xs:left"]){margin-right:auto!important}}@media (min-width:768px){[cds-layout~=horizontal] ::slotted([cds-layout*="align@sm:center"]),[cds-layout~=horizontal] ::slotted([cds-layout*="align@sm:vertical-center"]){align-self:center}[cds-layout~=horizontal] ::slotted([cds-layout*="align@sm:center"]),[cds-layout~=horizontal] ::slotted([cds-layout*="align@sm:horizontal-center"]){margin-left:auto!important;margin-right:auto!important}[cds-layout~=horizontal] ::slotted([cds-layout*="align@sm:top"]){align-self:flex-start}[cds-layout~=horizontal] ::slotted([cds-layout*="align@sm:bottom"]){align-self:flex-end}[cds-layout~=horizontal] ::slotted([cds-layout*="align@sm:right"]){margin-left:auto!important}[cds-layout~=horizontal] ::slotted([cds-layout*="align@sm:left"]){margin-right:auto!important}}@media (min-width:992px){[cds-layout~=horizontal] ::slotted([cds-layout*="align@md:center"]),[cds-layout~=horizontal] ::slotted([cds-layout*="align@md:vertical-center"]){align-self:center}[cds-layout~=horizontal] ::slotted([cds-layout*="align@md:center"]),[cds-layout~=horizontal] ::slotted([cds-layout*="align@md:horizontal-center"]){margin-left:auto!important;margin-right:auto!important}[cds-layout~=horizontal] ::slotted([cds-layout*="align@md:top"]){align-self:flex-start}[cds-layout~=horizontal] ::slotted([cds-layout*="align@md:bottom"]){align-self:flex-end}[cds-layout~=horizontal] ::slotted([cds-layout*="align@md:right"]){margin-left:auto!important}[cds-layout~=horizontal] ::slotted([cds-layout*="align@md:left"]){margin-right:auto!important}}@media (min-width:1200px){[cds-layout~=horizontal] ::slotted([cds-layout*="align@lg:center"]),[cds-layout~=horizontal] ::slotted([cds-layout*="align@lg:vertical-center"]){align-self:center}[cds-layout~=horizontal] ::slotted([cds-layout*="align@lg:center"]),[cds-layout~=horizontal] ::slotted([cds-layout*="align@lg:horizontal-center"]){margin-left:auto!important;margin-right:auto!important}[cds-layout~=horizontal] ::slotted([cds-layout*="align@lg:top"]){align-self:flex-start}[cds-layout~=horizontal] ::slotted([cds-layout*="align@lg:bottom"]){align-self:flex-end}[cds-layout~=horizontal] ::slotted([cds-layout*="align@lg:right"]){margin-left:auto!important}[cds-layout~=horizontal] ::slotted([cds-layout*="align@lg:left"]){margin-right:auto!important}}@media (min-width:1440px){[cds-layout~=horizontal] ::slotted([cds-layout*="align@xl:center"]),[cds-layout~=horizontal] ::slotted([cds-layout*="align@xl:vertical-center"]){align-self:center}[cds-layout~=horizontal] ::slotted([cds-layout*="align@xl:center"]),[cds-layout~=horizontal] ::slotted([cds-layout*="align@xl:horizontal-center"]){margin-left:auto!important;margin-right:auto!important}[cds-layout~=horizontal] ::slotted([cds-layout*="align@xl:top"]){align-self:flex-start}[cds-layout~=horizontal] ::slotted([cds-layout*="align@xl:bottom"]){align-self:flex-end}[cds-layout~=horizontal] ::slotted([cds-layout*="align@xl:right"]){margin-left:auto!important}[cds-layout~=horizontal] ::slotted([cds-layout*="align@xl:left"]){margin-right:auto!important}}[cds-text]{font-family:var(--cds-global-typography-font-family, "Clarity City", "Avenir Next", sans-serif);margin-top:0;margin-bottom:0}[cds-text][cds-layout~=grid]::after,[cds-text][cds-layout~=grid]::before,[cds-text][cds-layout~=horizontal]::after,[cds-text][cds-layout~=horizontal]::before,[cds-text][cds-layout~=vertical]::after,[cds-text][cds-layout~=vertical]::before{display:none}[cds-text*=display],[cds-text*=section],[cds-text*=subsection],[cds-text*=title]{font-family:var(--cds-global-typography-header-font-family, "Clarity City", "Avenir Next", sans-serif);color:var(--cds-global-typography-color-400,var(--cds-global-color-construction-900,#21333b))}[cds-text*=body],[cds-text*=message],[cds-text*=secondary]{color:var(--cds-global-typography-color-500,var(--cds-global-color-black,#000))}[cds-text*=inline]{width:auto!important;display:inline-block!important}[cds-text*=display]{font-size:var(--cds-global-typography-display-font-size,calc(40 * 1rem / var(--cds-global-base,20)));font-weight:var(--cds-global-typography-display-font-weight,400);line-height:var(--cds-global-typography-display-line-height,1.1em);letter-spacing:var(--cds-global-typography-display-letter-spacing,-.0125em)}[cds-text*=display]::before{content:"";display:block;height:0;width:0;margin-bottom:calc(((var(--cds-global-typography-top-gap-height,.1475em) + calc((var(--cds-global-typography-display-line-height,1.1em) - 1em)/ 2))*-1) + .037em)}[cds-text*=display]::after{content:"";display:block;height:0;width:0;margin-top:calc((((1em - var(--cds-global-typography-top-gap-height,.1475em) - var(--cds-global-typography-ascender-height,.1703em) - var(--cds-global-typography-x-height,.517em)) + calc((var(--cds-global-typography-display-line-height,1.1em) - 1em)/ 2))*-1) - .044em)}[cds-text*=title]{font-size:var(--cds-global-typography-title-font-size,calc(24 * 1rem / var(--cds-global-base,20)));font-weight:var(--cds-global-typography-title-font-weight,400);line-height:var(--cds-global-typography-title-line-height,1.16667em);letter-spacing:var(--cds-global-typography-title-letter-spacing,-.008333em)}[cds-text*=title]::before{content:"";display:block;height:0;width:0;margin-bottom:calc(((var(--cds-global-typography-top-gap-height,.1475em) + calc((var(--cds-global-typography-title-line-height,1.16667em) - 1em)/ 2))*-1) + .037em)}[cds-text*=title]::after{content:"";display:block;height:0;width:0;margin-top:calc((((1em - var(--cds-global-typography-top-gap-height,.1475em) - var(--cds-global-typography-ascender-height,.1703em) - var(--cds-global-typography-x-height,.517em)) + calc((var(--cds-global-typography-title-line-height,1.16667em) - 1em)/ 2))*-1) - .044em)}[cds-text*=section]{font-size:var(--cds-global-typography-section-font-size,calc(20 * 1rem / var(--cds-global-base,20)));font-weight:var(--cds-global-typography-section-font-weight,400);line-height:var(--cds-global-typography-section-line-height,1.2em);letter-spacing:var(--cds-global-typography-section-letter-spacing,-.01em)}[cds-text*=section]::before{content:"";display:block;height:0;width:0;margin-bottom:calc(((var(--cds-global-typography-top-gap-height,.1475em) + calc((var(--cds-global-typography-section-line-height,1.2em) - 1em)/ 2))*-1) + .037em)}[cds-text*=section]::after{content:"";display:block;height:0;width:0;margin-top:calc((((1em - var(--cds-global-typography-top-gap-height,.1475em) - var(--cds-global-typography-ascender-height,.1703em) - var(--cds-global-typography-x-height,.517em)) + calc((var(--cds-global-typography-section-line-height,1.2em) - 1em)/ 2))*-1) - .044em)}[cds-text*=subsection]{font-size:var(--cds-global-typography-subsection-font-size,calc(16 * 1rem / var(--cds-global-base,20)));font-weight:var(--cds-global-typography-subsection-font-weight,400);line-height:var(--cds-global-typography-subsection-line-height,1.25em);letter-spacing:var(--cds-global-typography-subsection-letter-spacing,-.0125em)}[cds-text*=subsection]::before{content:"";display:block;height:0;width:0;margin-bottom:calc(((var(--cds-global-typography-top-gap-height,.1475em) + calc((var(--cds-global-typography-subsection-line-height,1.25em) - 1em)/ 2))*-1) + .037em)}[cds-text*=subsection]::after{content:"";display:block;height:0;width:0;margin-top:calc((((1em - var(--cds-global-typography-top-gap-height,.1475em) - var(--cds-global-typography-ascender-height,.1703em) - var(--cds-global-typography-x-height,.517em)) + calc((var(--cds-global-typography-subsection-line-height,1.25em) - 1em)/ 2))*-1) - .044em)}[cds-text*=body]{font-weight:var(--cds-global-typography-body-font-weight,400);font-size:var(--cds-global-typography-body-font-size,calc(14 * 1rem / var(--cds-global-base,20)));letter-spacing:var(--cds-global-typography-body-letter-spacing,-.014286em);line-height:var(--cds-global-typography-body-line-height,1.42857em)}[cds-text*=body]::before{content:"";display:block;height:0;width:0;margin-bottom:calc(((var(--cds-global-typography-top-gap-height,.1475em) + calc((var(--cds-global-typography-body-line-height,1.42857em) - 1em)/ 2))*-1) + .1em)}[cds-text*=body]::after{content:"";display:block;height:0;width:0;margin-top:calc((((1em - var(--cds-global-typography-top-gap-height,.1475em) - var(--cds-global-typography-ascender-height,.1703em) - var(--cds-global-typography-x-height,.517em)) + calc((var(--cds-global-typography-body-line-height,1.42857em) - 1em)/ 2))*-1) - .044em)}body[cds-text*=body]::after,body[cds-text*=body]::before{content:none}[cds-text*=message]{font-size:var(--cds-global-typography-message-font-size,calc(16 * 1rem / var(--cds-global-base,20)));font-weight:var(--cds-global-typography-message-font-weight,calc(400 * 1rem / var(--cds-global-base,20)));line-height:var(--cds-global-typography-message-line-height,1.25em);letter-spacing:var(--cds-global-typography-message-letter-spacing,-.0125em)}[cds-text*=message]::before{content:"";display:block;height:0;width:0;margin-bottom:calc(((var(--cds-global-typography-top-gap-height,.1475em) + calc((var(--cds-global-typography-message-line-height,1.25em) - 1em)/ 2))*-1) + .037em)}[cds-text*=message]::after{content:"";display:block;height:0;width:0;margin-top:calc((((1em - var(--cds-global-typography-top-gap-height,.1475em) - var(--cds-global-typography-ascender-height,.1703em) - var(--cds-global-typography-x-height,.517em)) + calc((var(--cds-global-typography-message-line-height,1.25em) - 1em)/ 2))*-1) - .044em)}[cds-text*=secondary]{font-size:var(--cds-global-typography-secondary-font-size,calc(13 * 1rem / var(--cds-global-base,20)));font-weight:var(--cds-global-typography-secondary-font-weight,400);line-height:var(--cds-global-typography-secondary-line-height,1.23077em);letter-spacing:var(--cds-global-typography-secondary-letter-spacing,-.007692em)}[cds-text*=secondary]::before{content:"";display:block;height:0;width:0;margin-bottom:calc(((var(--cds-global-typography-top-gap-height,.1475em) + calc((var(--cds-global-typography-secondary-line-height,1.23077em) - 1em)/ 2))*-1) + .037em)}[cds-text*=secondary]::after{content:"";display:block;height:0;width:0;margin-top:calc((((1em - var(--cds-global-typography-top-gap-height,.1475em) - var(--cds-global-typography-ascender-height,.1703em) - var(--cds-global-typography-x-height,.517em)) + calc((var(--cds-global-typography-secondary-line-height,1.23077em) - 1em)/ 2))*-1) - .044em)}[cds-text~=link]{color:var(--cds-global-typography-link-color,var(--cds-global-color-blue-800,#00608a))!important;text-decoration:underline!important;line-height:inherit!important;font-size:inherit!important}[cds-text~=link]:focus{outline:var(--cds-alias-object-interaction-outline,Highlight solid 2px);outline-offset:var(--cds-alias-object-interaction-outline-offset,1px)}[cds-text~=link]:hover{color:var(--cds-global-typography-link-color-hover,var(--cds-global-color-blue-900,#004b6b))!important}[cds-text~=link]:visited:not([cds-text~=static]){color:var(--cds-global-typography-link-color-visited,var(--cds-global-color-lavender-600,#3b40ce))!important}[cds-text~=link]:visited:not([cds-text~=static]):hover{color:var(--cds-global-typography-link-color-visited-hover,var(--cds-global-color-lavender-700,#2429c2))!important}@media (-webkit-min-device-pixel-ratio:0){[cds-text=link]:focus{outline:var(--cds-alias-object-interaction-outline-webkit,5px auto -webkit-focus-ring-color)}}[cds-text~=code]{color:var(--cds-alias-status-danger,var(--cds-global-color-red-700,#e02200));font-family:monospace;font-size:1.1em}[cds-divider]{display:block;height:var(--cds-alias-object-border-width-100,calc(1 * 1rem / var(--cds-global-base,20)));overflow:hidden;box-shadow:var(--cds-alias-object-border-color,var(--cds-global-color-construction-200,#cbd4d8)) 0 0 0 var(--cds-alias-object-border-width-100,calc(1 * 1rem / var(--cds-global-base,20))) inset}[cds-text~=light]{font-weight:var(--cds-global-typography-font-weight-light,300)!important}[cds-text~=justify]{text-align:justify!important}[cds-text~=left]{text-align:left!important}[cds-text~=right]{text-align:right!important}[cds-text~=center]{text-align:center!important}[cds-text~=lhe]{padding:.05px 0}[cds-text~=lhe]::before{content:"";margin-top:-.124em;display:block;height:0}[cds-text~=lhe]::after{content:"";margin-bottom:-.221em;display:block;height:0}[cds-text*=h2],[cds-text*=h3]{font-family:var(--cds-global-typography-header-font-family, "Clarity City", "Avenir Next", sans-serif);font-size:1.4rem;font-weight:200;color:var(--cds-global-typography-color-400);line-height:1.7143em;letter-spacing:-.017857em}[cds-text*=h2]::before{content:"";display:block;height:0;width:0;margin-bottom:calc(((var(--cds-global-typography-top-gap-height,.1475em) + calc((1.7143em - 1em)/ 2))*-1) + .037em)}[cds-text*=h2]::after{content:"";display:block;height:0;width:0;margin-top:calc((((1em - var(--cds-global-typography-top-gap-height,.1475em) - var(--cds-global-typography-ascender-height,.1703em) - var(--cds-global-typography-x-height,.517em)) + calc((1.7143em - 1em)/ 2))*-1) - .044em)}[cds-text*=h3]{font-size:1.1rem;line-height:1.0909em;letter-spacing:-.013636em}[cds-text*=h3]::before{content:"";display:block;height:0;width:0;margin-bottom:calc(((var(--cds-global-typography-top-gap-height,.1475em) + calc((1.0909em - 1em)/ 2))*-1) + .037em)}[cds-text*=h3]::after{content:"";display:block;height:0;width:0;margin-top:calc((((1em - var(--cds-global-typography-top-gap-height,.1475em) - var(--cds-global-typography-ascender-height,.1703em) - var(--cds-global-typography-x-height,.517em)) + calc((1.0909em - 1em)/ 2))*-1) - .044em)}:host{all:initial;display:block;visibility:inherit;font-family:var(--cds-global-typography-font-family, "Clarity City", "Avenir Next", sans-serif);contain:layout;box-sizing:border-box!important;-webkit-appearance:none!important}*,:after,:before{box-sizing:inherit!important}slot{font-family:var(--cds-global-typography-font-family, "Clarity City", "Avenir Next", sans-serif);display:contents!important}::slotted(*){font-family:inherit;box-sizing:inherit}::slotted(*)::placeholder{color:var(--cds-global-typography-color-200,var(--cds-global-color-construction-600,#4f6169))}:host([_is-anchor]),:host([role=button]){cursor:pointer!important}:host([_is-anchor]) ::slotted(*),:host([role=button]) ::slotted(*){cursor:pointer!important}:host([role=button][disabled]){cursor:not-allowed!important}:host([role=button][disabled]) ::slotted(*){cursor:not-allowed!important;pointer-events:none}:host([hidden]),[hidden]{display:none!important}:host([hidden*=false]){display:block!important}:host([role=dialog][hidden]),:host([role=dialog][hidden]) ::slotted(*){display:block!important;visibility:hidden!important}:host([role=dialog][hidden*=false]),:host([role=dialog][hidden*=false]) ::slotted(*){visibility:visible!important}:host([_focused]) .input,:host([_focused]) [focusable],:host([tabindex="0"]:focus),:host([tabindex="0"]:focus) [focusable],[tabindex="0"][focusable]:focus{outline:Highlight solid 2px;outline:5px auto -webkit-focus-ring-color;outline-offset:var(--cds-alias-object-interaction-outline-offset,1px)}`;function Eu(c){return`calc((${c} / var(--cds-global-base)) * 1rem)`}const Iu=(c,f)=>"method"===f.kind&&f.descriptor&&!("value"in f.descriptor)?{...f,finisher(a){a.createProperty(f.key,c)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:f.key,initializer(){"function"==typeof f.initializer&&(this[f.key]=f.initializer.call(this))},finisher(a){a.createProperty(f.key,c)}};function Wd(c){return(f,a)=>void 0!==a?void f.constructor.createProperty(a,c):Iu(c,f)}function np(c,f){switch(f&&f.type){case Array:case Object:return{reflect:!1,...f};case String:return{reflect:!0,attribute:Rn(c),converter:{toAttribute:a=>a||null},...f};case Number:return{reflect:!0,attribute:Rn(c),...f};case Boolean:return{reflect:!0,attribute:Rn(c),converter:{toAttribute:a=>a?"":null,fromAttribute:a=>function Zi(c){return null!=c&&""+c!="false"}(a)},...f};case Date:return{reflect:!1,converter:{fromAttribute:a=>new Date(a)},...f};default:return{...f}}}function Wn(c){return(f,a)=>(c?.required&&function r_(c,f,a){const g=c.firstUpdated;c.firstUpdated=function(b){if(a&&a.required&&Tt(this[f])){const x=a.requiredMessage||function($="warning",le,Se){const Pe=Se.toLocaleLowerCase();return`${en($)}: ${le} is required to use ${Pe} component. Set the JS Property or HTML Attribute.\n\n`+(yr()?`Angular: <${Pe} [${le}]="...">\n`:"")+(Yt()?`Vue: <${Pe} :${le}="...">\n`:"")+(xt()?`React: <${function pr(c){return en(function Cr(c){return c.split("-").map((f,a)=>a?f.charAt(0).toUpperCase()+f.slice(1).toLowerCase():f).join("")}(c))}(Pe)} ${nt=le,nt.startsWith("aria")?Rn(nt):nt}={...} />\n`:"")+`HTML: <${Pe} ${Rn(le)}="...">\nJavaScript: document.querySelector('${Pe}').${le} = '...';\n\n`;var nt}(a.required,f,this.tagName);if("error"===a.required)throw Error(x);Xn.warn(x,this)}g&&g.call(this,b)}}(f,a,c),Wd(np(a,c))(f,a))}function Fl(c){return(f,a)=>{const g=np(a,c);return g&&(g.reflect=!!c?.reflect&&c.reflect,g.reflect&&!c?.attribute&&(g.attribute="_"+Rn(a))),Wd(g)(f,a)}}var Ho,c,I0=Hn`@keyframes fadeInAndOut{0%,to{opacity:0}75%{opacity:1}}:host{--color:currentColor;display:inline-block;height:var(--cds-global-space-7,calc(16 * 1rem / var(--cds-global-base,20)));width:var(--cds-global-space-7,calc(16 * 1rem / var(--cds-global-base,20)));min-height:var(--cds-global-space-7,calc(16 * 1rem / var(--cds-global-base,20)));min-width:var(--cds-global-space-7,calc(16 * 1rem / var(--cds-global-base,20)));margin:0;vertical-align:middle;fill:var(--color);color:var(--color);contain:strict;cursor:inherit}svg{display:block}:host([size*=xs]){height:var(--cds-global-space-5,calc(8 * 1rem / var(--cds-global-base,20)));width:var(--cds-global-space-5,calc(8 * 1rem / var(--cds-global-base,20)));min-height:var(--cds-global-space-5,calc(8 * 1rem / var(--cds-global-base,20)));min-width:var(--cds-global-space-5,calc(8 * 1rem / var(--cds-global-base,20)))}:host([size*=sm]){height:var(--cds-global-space-7,calc(16 * 1rem / var(--cds-global-base,20)));width:var(--cds-global-space-7,calc(16 * 1rem / var(--cds-global-base,20)));min-height:var(--cds-global-space-7,calc(16 * 1rem / var(--cds-global-base,20)));min-width:var(--cds-global-space-7,calc(16 * 1rem / var(--cds-global-base,20)))}:host([size*=md]){height:var(--cds-global-space-9,calc(24 * 1rem / var(--cds-global-base,20)));width:var(--cds-global-space-9,calc(24 * 1rem / var(--cds-global-base,20)));min-height:var(--cds-global-space-9,calc(24 * 1rem / var(--cds-global-base,20)));min-width:var(--cds-global-space-9,calc(24 * 1rem / var(--cds-global-base,20)))}:host([size*=lg]){height:var(--cds-global-space-11,calc(36 * 1rem / var(--cds-global-base,20)));width:var(--cds-global-space-11,calc(36 * 1rem / var(--cds-global-base,20)));min-height:var(--cds-global-space-11,calc(36 * 1rem / var(--cds-global-base,20)));min-width:var(--cds-global-space-11,calc(36 * 1rem / var(--cds-global-base,20)))}:host([size*=xl]){height:var(--cds-global-space-12,calc(48 * 1rem / var(--cds-global-base,20)));width:var(--cds-global-space-12,calc(48 * 1rem / var(--cds-global-base,20)));min-height:var(--cds-global-space-12,calc(48 * 1rem / var(--cds-global-base,20)));min-width:var(--cds-global-space-12,calc(48 * 1rem / var(--cds-global-base,20)))}:host([size*=xxl]){height:calc(var(--cds-global-space-13,calc(64 * 1rem / var(--cds-global-base,20))) - var(--cds-global-space-5,calc(8 * 1rem / var(--cds-global-base,20))));width:calc(var(--cds-global-space-13,calc(64 * 1rem / var(--cds-global-base,20))) - var(--cds-global-space-5,calc(8 * 1rem / var(--cds-global-base,20))));min-height:calc(var(--cds-global-space-13,calc(64 * 1rem / var(--cds-global-base,20))) - var(--cds-global-space-5,calc(8 * 1rem / var(--cds-global-base,20))));min-width:calc(var(--cds-global-space-13,calc(64 * 1rem / var(--cds-global-base,20))) - var(--cds-global-space-5,calc(8 * 1rem / var(--cds-global-base,20))))}:host([size*=fit]){height:auto;width:auto;contain:layout}:host([status=success]){--color:var(--cds-alias-status-success, var(--cds-global-color-green-700, #42810e))}:host([status=danger]){--color:var(--cds-alias-status-danger, var(--cds-global-color-red-700, #e02200))}:host([status=warning]){--color:var(--cds-alias-status-warning-dark, var(--cds-global-color-ochre-800, #a36500))}:host([status=info]){--color:var(--cds-alias-status-info, var(--cds-global-color-blue-700, #0079ad))}:host([inverse]){--color:var(--cds-global-color-construction-200, #cbd4d8)}:host([direction=up]){transform:rotate(0)}:host([direction=down]){transform:rotate(180deg)}:host([direction=right]){transform:rotate(90deg)}:host([direction=left]){transform:rotate(270deg)}:host([flip=horizontal]){transform:scale(-1) rotateX(180deg)}:host([flip=vertical]){transform:scale(-1) rotateY(180deg)}.alert,.badge{fill:var(--badge-color,var(--cds-alias-status-danger,var(--cds-global-color-red-700,#e02200)))}:host([badge=success]){--badge-color:var(--cds-alias-status-success, var(--cds-global-color-green-700, #42810e))}:host([badge=danger]){--badge-color:var(--cds-alias-status-danger, var(--cds-global-color-red-700, #e02200))}:host([badge*=warning]){--badge-color:var(--cds-alias-status-warning-dark, var(--cds-global-color-ochre-800, #a36500))}:host([badge=inherit]){--badge-color:currentColor}:host([badge=info]){--badge-color:var(--cds-alias-status-info, var(--cds-global-color-blue-700, #0079ad))}:host([badge=inherit-triangle]){--badge-color:currentColor}:host([badge][inverse]){--badge-color:var(--cds-alias-status-danger, var(--cds-global-color-red-700, #e02200))}:host([badge=success][inverse]){--badge-color:var(--cds-alias-status-success, var(--cds-global-color-green-700, #42810e))}:host([badge*=warning][inverse]){--badge-color:var(--cds-alias-status-warning-dark, var(--cds-global-color-ochre-800, #a36500))}:host([badge*=inherit][inverse]){--badge-color:currentColor}:host([badge=info][inverse]){--badge-color:var(--cds-alias-status-info, var(--cds-global-color-blue-700, #0079ad))}.cds-internal-dot-1{animation:fadeInAndOut 1.8s ease-in 0s infinite}.cds-internal-dot-2{animation:fadeInAndOut 1.8s ease-out .422s infinite}.cds-internal-dot-3{animation:fadeInAndOut 1.8s ease-out .675s infinite}@media (prefers-reduced-motion){.cds-internal-dot-1,.cds-internal-dot-2,.cds-internal-dot-3{animation:none}}`;function op(c,f){let a="";switch(function xu(c){switch(!0){case Tt(c):return Ho.NilSizeValue;case function ip(c){return["xxs","xs","sm","md","lg","xl","xxl"].indexOf(c)>-1}(c):return Ho.ValidSizeString;case function Ct(c){return zt(c)&&!Ze(c.trim())&&+c==+c}(c):return Ho.ValidNumericString;default:return Ho.BadSizeValue}}(function sp(c){return Tt(c)?"":function ke(c,f,a=""){const g=c.split(" "),b=""===a?g.filter(x=>x!==f):g.map(x=>x===f?a:x);return b.length>0?b.join(" "):""}(c,"fit")}(f))){case Ho.ValidNumericString:return a=Eu(parseInt(f)),void function Zd(c,...f){f.forEach(([a,g])=>{c.style[a]=g})}(c,...function s_(c,f){return!mt(c)&&c.indexOf("fit")>-1?[["width","auto"],["height","auto"],["min-width",f],["min-height",f]]:[["width",f],["height",f],["min-width",f],["min-height",f]]}(f,a));case Ho.ValidSizeString:case Ho.NilSizeValue:return void function Sc(c,...f){f.forEach(a=>{c.style[a]=""})}(c,"width","height","min-width","min-height");default:return}}function ap(c){return c.badge&&("inherit-triangle"===c.badge||"warning-triangle"===c.badge)}(c=Ho||(Ho={})).BadSizeValue="bad-value",c.ValidSizeString="value-is-string",c.ValidNumericString="value-is-numeric",c.NilSizeValue="value-is-nil";class lo extends aa{constructor(){super(...arguments),this._shape="unknown",this.solid=!1,this.inverse=!1}static get styles(){return[Du,I0]}get shape(){return this._shape}set shape(f){if(function gn(c,f){return!Tt(c)&&jn(c,f)}(f,this._shape)){const a=this._shape;this._shape=f,this.requestUpdate("shape",a)}}get size(){return this._size}set size(f){if(function sn(c,f){return function Ft(c){return ae(String,c)||mt(c)}(c)&&jn(c,f)}(f,this._size)){const a=this._size;this._size=f,op(this,f),this.requestUpdate("size",a)}}updated(f){if(f.has("innerOffset")&&this.innerOffset>0){const a=Eu(-1*this.innerOffset),g=`calc(100% + ${Eu(2*this.innerOffset)})`;this.svg.style.width=g,this.svg.style.height=g,this.svg.style.margin=`${a} 0 0 ${a}`}}firstUpdated(f){if(super.firstUpdated(f),this.isConnected){let a="unknown";this.subscription=on.stateUpdates.subscribe(g=>{"iconRegistry"===g.key&&Et.registry[this.shape]&&a!==this.shape&&(a=this.shape,this.requestUpdate("shape"))})}}disconnectedCallback(){super.disconnectedCallback(),this.subscription?.unsubscribe()}render(){return zt(Et.registry[this.shape])?ii``:Cc``}}(0,hn.gn)([Wn({type:String})],lo.prototype,"shape",null),(0,hn.gn)([Wn({type:String})],lo.prototype,"size",null),(0,hn.gn)([Wn({type:String})],lo.prototype,"direction",void 0),(0,hn.gn)([Wn({type:String})],lo.prototype,"flip",void 0),(0,hn.gn)([Wn({type:Boolean})],lo.prototype,"solid",void 0),(0,hn.gn)([Wn({type:String})],lo.prototype,"status",void 0),(0,hn.gn)([Wn({type:Boolean})],lo.prototype,"inverse",void 0),(0,hn.gn)([Wn({type:String})],lo.prototype,"badge",void 0),(0,hn.gn)([Fl({type:Number})],lo.prototype,"innerOffset",void 0),(0,hn.gn)([function i_(c,f){return(({finisher:c,descriptor:f})=>(a,g)=>{var b;if(void 0===g){const x=null!==(b=a.originalKey)&&void 0!==b?b:a.key,$=null!=f?{kind:"method",placement:"prototype",key:x,descriptor:f(a.key)}:{...a,key:x};return null!=c&&($.finisher=function(le){c(le,x)}),$}{const x=a.constructor;void 0!==f&&Object.defineProperty(a,g,f(g)),c?.(x,g)}})({descriptor:a=>{const g={get(){var b,x;return null!==(x=null===(b=this.renderRoot)||void 0===b?void 0:b.querySelector(c))&&void 0!==x?x:null},enumerable:!0,configurable:!0};if(f){const b="symbol"==typeof a?Symbol():"__"+a;g.get=function(){var x,$;return void 0===this[b]&&(this[b]=null!==($=null===(x=this.renderRoot)||void 0===x?void 0:x.querySelector(c))&&void 0!==$?$:null),this[b]}}return g}})}("svg")],lo.prototype,"svg",void 0),gs("cds-icon",lo);class Qd{constructor(f){this.host=f,this.host.addController(this)}hostConnected(){var f=this;return(0,hr.Z)(function*(){yield f.host.updateComplete,f.host.addEventListener("keydown",a=>f.emulateActive(a)),f.host.addEventListener("mousedown",a=>f.emulateActive(a)),f.host.addEventListener("keyup",()=>f.emulateInactive()),f.host.addEventListener("blur",()=>f.emulateInactive()),f.host.addEventListener("mouseup",()=>f.emulateInactive())})()}emulateActive(f){this.host.disabled||this.host?.setAttribute("cds-active",""),"Space"===f.code&&f.target===this.host&&f.preventDefault()}emulateInactive(){this.host.removeAttribute("cds-active")}}class F0{constructor(f){this.host=f,this.host.addController(this)}hostConnected(){(this.host.hasAttribute("aria-controls")||this.host.ariaControls)&&(this.host.ariaHasPopup="true",this.host.ariaExpanded="false")}}class k0{constructor(f){this.host=f,this.host.addController(this)}hostUpdated(){null!==this.host.disabled&&(this.host.ariaDisabled=this.host.disabled),this.host.readonly&&(this.host.ariaDisabled=null)}}class N0{constructor(f){this.host=f,this.host.addController(this)}hostUpdated(){null!=this.host.pressed&&(this.host.ariaPressed=this.host.pressed?"true":"false"),this.host.readonly&&(this.host.ariaPressed=null)}}class L0{constructor(f){this.host=f,this.host.addController(this)}hostConnected(){this.host.tabIndex=0}hostUpdated(){this.host.role=this.host.readonly?null:"button",this.host.tabIndex=this.host.disabled?-1:0,this.host.readonly&&this.host.removeAttribute("tabindex")}}class cp{constructor(f){this.host=f,this.host.addController(this)}get currentAnchor(){return"A"===this.host.parentElement?.tagName?this.host.parentElement:null}hostConnected(){this.setAnchor()}hostUpdated(){this.setAnchor()}setAnchor(){this.currentAnchor&&this.currentAnchor!==this.previousAnchor&&(this.previousAnchor=this.currentAnchor,this.host.readonly=!0,this.currentAnchor.style.lineHeight="0",this.currentAnchor.style.textDecoration="none")}}const Dc=c=>c??Tr;function Jd(c){c.preventDefault(),c.stopPropagation()}const Kd=new Map([["arrow-left","ArrowLeft"],["arrow-right","ArrowRight"],["arrow-up","ArrowUp"],["arrow-down","ArrowDown"],["tab","Tab"],["enter","Enter"],["escape","Escape"],["space"," "],["home","Home"],["end","End"]]);var co;!function(c){c.ArrowUp="ArrowUp",c.ArrowDown="ArrowDown",c.ArrowLeft="ArrowLeft",c.ArrowRight="ArrowRight",c.End="End",c.Home="Home",c.PageUp="PageUp",c.PageDown="PageDown"}(co||(co={}));class gp{constructor(f){this.host=f,this.triggerNativeButtonBehaviorHandler=this.triggerNativeButtonBehavior.bind(this),this.emulateKeyBoardEventBehaviorHandler=this.emulateKeyBoardEventBehavior.bind(this),this.host.addController(this)}hostUpdated(){this.setButtonType(),this.setupNativeButtonBehavior()}setButtonType(){!this.host.type&&this.host.closest("form")&&(this.host.type="submit")}setupNativeButtonBehavior(){this.host.readonly||this.host.disabled?(this.host.removeEventListener("click",this.triggerNativeButtonBehaviorHandler),this.host.removeEventListener("keyup",this.emulateKeyBoardEventBehaviorHandler)):(this.host.addEventListener("click",this.triggerNativeButtonBehaviorHandler),this.host.addEventListener("keyup",this.emulateKeyBoardEventBehaviorHandler))}emulateKeyBoardEventBehavior(f){!function d_(c,f,a){c.filter(g=>function eh(c,f){return class up{static get keycodes(){return Li(Kd)}static add(f,a){Kd.set(f,a)}static has(f){return Kd.has(f)}static getCode(f,a=this.keycodes){return function Xd(c,f){return f.get(c)||""}(f,a)}}.getCode(f)===c.key}(f,g)).length>0&&a()}(["enter","space"],f,()=>{"submit"===this.host.type?this.triggerNativeButtonBehavior(f):this.host.click(),Jd(f)})}triggerNativeButtonBehavior(f){if(this.host.disabled)Jd(f);else if(!f.defaultPrevented){const a=function pp(c,f,a){const g=document.createElement("div");f.appendChild(g),si(c,f,{renderBefore:g,...a});const b=g.previousSibling;return g.remove(),b}(ii``,this.host);a?.dispatchEvent(new MouseEvent("click",{relatedTarget:this.host,composed:!0})),a?.remove()}}}class mp{constructor(f){this.host=f,this.host.addController(this)}hostUpdated(){null!=this.host.expanded&&(this.host.ariaExpanded=this.host.expanded?"true":"false"),this.host.readonly&&(this.host.ariaExpanded=null)}}let uo=class extends aa{constructor(){super(...arguments),this._disabled=!1}get disabled(){return this._disabled}set disabled(c){const f=this._disabled;this._disabled=c,this.requestUpdate("disabled",f)}};(0,hn.gn)([Wn({type:Boolean})],uo.prototype,"pressed",void 0),(0,hn.gn)([Wn({type:Boolean})],uo.prototype,"expanded",void 0),(0,hn.gn)([Wn({type:Boolean})],uo.prototype,"readonly",void 0),(0,hn.gn)([Wn({type:String})],uo.prototype,"type",void 0),(0,hn.gn)([Wn({type:String})],uo.prototype,"name",void 0),(0,hn.gn)([Wn({type:String})],uo.prototype,"value",void 0),(0,hn.gn)([Wn({type:Boolean})],uo.prototype,"disabled",null),(0,hn.gn)([Wn({type:String})],uo.prototype,"popup",void 0),uo=(0,hn.gn)([function o_(){return c=>c.addInitializer(f=>new Qd(f))}(),function R0(){return c=>c.addInitializer(f=>new L0(f))}(),function P0(){return c=>c.addInitializer(f=>new N0(f))}(),function m_(){return c=>c.addInitializer(f=>new mp(f))}(),function qd(){return c=>c.addInitializer(f=>new k0(f))}(),function O0(){return c=>c.addInitializer(f=>new F0(f))}(),function g_(){return c=>c.addInitializer(f=>new gp(f))}(),function a_(){return c=>c.addInitializer(f=>new cp(f))}()],uo);const Mu={actions:{sort:"Sort",expand:"Expand",close:"Close",resize:"Resize",filter:"Filter"},alert:{closeButtonAriaLabel:"Close",loading:"Loading",info:"Info",success:"Success",warning:"Warning",danger:"Error"},dropdown:{open:"Open"},file:{browse:"browse",files:"files",removeFile:"remove file"},modal:{closeButtonAriaLabel:"Close modal",contentStart:"Beginning of modal content",contentBox:"Scrollable modal body",contentEnd:"End of modal content"},navigation:{navigationElement:"navigation",navigationLabel:"navigation menu",navigationAbridgedText:"View abridged menu",navigationUnabridgedText:"View unabridged menu"},overlay:{closeButtonAriaLabel:"Close dialog",contentStart:"Beginning of dialog content",contentEnd:"End of dialog content"},popup:{closeButtonAriaLabel:"Close popup",contentStart:"Beginning of popup content",contentEnd:"End of popup content"},password:{showButtonAriaLabel:"Show password",hideButtonAriaLabel:"Hide password"},progress:{loading:"Loading",looping:"Loading"},treeview:{loading:"Loading"},grid:{resizeColumn:"Resize Column",closeDetails:"Close Details",noData:"No Results Found",rowDetailStart:"Start of row details",rowDetailEnd:"End of row details",footerEnd:"End of grid rows",action:"Action",dropTarget:"Drop Item",pagination:{label:"grid pagination",firstPage:"go to first page",previousPage:"go to previous page",nextPage:"go to next page",lastPage:"go to last page",pageSize:"rows per page",page:"page"}}};class ca{static get keys(){return 0===Object.keys(on.state.i18nRegistry).length&&(on.state.i18nRegistry=Te(Mu,on.state.i18nRegistry)),Te(Mu,on.state.i18nRegistry)}static findKey(f){const a=ca.keys;return Object.keys(a).find(g=>Ti(a[g],f))}static get(f){return f&&ca.keys[f]||{}}static reset(){on.state.i18nRegistry=Te({},Mu)}static hydrate(f,a){return JSON.parse(function wt(c,f,a){return c.replace(/\$\{.+?\}/g,g=>function ze(c,f,a=`\${${c}}`){return c.split(".").reduce((g,b)=>{try{const x=g[b];switch(!0){case null===x:case!1===x:case""===x:case 0===x:return x;default:return x||a}}catch{return a}},f)}(g.substr(2,g.length-3).trim(),f,a))}(JSON.stringify(f),a))}static localize(f){on.state.i18nRegistry=Te(Mu,on.state.i18nRegistry,f)}}var __=Hn`:host{--icon-width:var(--cds-global-space-7, calc(16 * 1rem / var(--cds-global-base, 20)));--icon-height:var(--cds-global-space-7, calc(16 * 1rem / var(--cds-global-base, 20)));--width:var(--icon-width);--height:var(--icon-width);--cursor:pointer;--color:var(--cds-global-typography-color-300, var(--cds-global-color-construction-800, #2d4048));--font-size:var(--cds-global-typography-font-size-3, calc(13 * 1rem / var(--cds-global-base, 20)));--background:transparent;--padding:0;--outline:var(--cds-alias-object-interaction-outline, Highlight solid 2px);--outline-offset:calc(var(--cds-alias-object-interaction-outline-offset, 1px) * -1);pointer-events:none;display:inline-block;outline:0!important}:host([role=button]){pointer-events:initial;cursor:var(--cursor)!important}:host([status=active]){--color:var(--cds-alias-status-info, var(--cds-global-color-blue-700, #0079ad))}::slotted([shape=close]),::slotted([shape=info-circle]),::slotted([shape=times]),:host([shape=close]),:host([shape=info-circle]){--icon-width:var(--cds-global-space-8, calc(18 * 1rem / var(--cds-global-base, 20)));--icon-height:var(--cds-global-space-8, calc(18 * 1rem / var(--cds-global-base, 20)))}:host(:hover){--color:var(--cds-alias-object-interaction-color-hover, var(--cds-global-color-construction-1000, #1b2b32))}:host(:active){--color:var(--cds-alias-object-interaction-color-active, var(--cds-global-color-construction-1000, #1b2b32))}:host(:active) .private-host{transform:translateY(calc(var(--cds-global-space-1,calc(1 * 1rem / var(--cds-global-base,20)))/ 2))}:host([disabled]){--color:var(--cds-alias-object-interaction-color-disabled, var(--cds-global-color-construction-300, #aeb8bc))}.private-host{--icon-color:var(--color);background:var(--background);padding:var(--padding);color:var(--color);font-size:var(--font-size);display:flex;justify-content:center;align-items:center;min-width:var(--width);min-height:var(--height)}::slotted(cds-icon),cds-icon{width:var(--icon-width);height:var(--icon-height);pointer-events:none}::slotted(cds-icon:not([status])),cds-icon{--color:var(--icon-color)}:host([disabled]:active){pointer-events:none!important}.private-host::after{content:"";position:absolute;left:calc(-1*var(--width) - 1);top:calc(-1*var(--height) - 1);width:var(--cds-alias-object-interaction-touch-target,calc(36 * 1rem / var(--cds-global-base,20)));height:var(--cds-alias-object-interaction-touch-target,calc(36 * 1rem / var(--cds-global-base,20)))}:host([disabled]) .private-host::after{outline:0!important}:host(:focus) .private-host::after{outline:var(--outline);outline-offset:var(--outline-offset)}@media (-webkit-min-device-pixel-ratio:0){:host(:focus) .private-host::after{outline-color:-webkit-focus-ring-color}}`;class ho extends uo{constructor(){super(...arguments),this.i18n=ca.keys.actions,this.cdsButtonAction=!0}render(){return ii`

`}updated(f){super.updated(f),this.ariaLabel||this.readonly||Xn.warn("A aria-label is required for interactive cds-button-action type",this),f.has("readonly")&&(this.ariaHidden=this.readonly&&!this.hasAttribute("aria-label")?"true":null)}}ho.styles=[Du,__],(0,hn.gn)([Wn({type:String})],ho.prototype,"shape",void 0),(0,hn.gn)([Wn({type:String,reflect:!0})],ho.prototype,"action",void 0),(0,hn.gn)([Wn({type:String})],ho.prototype,"iconSize",void 0),(0,hn.gn)([function th(){return(c,f)=>{const a=c.connectedCallback,g=c.disconnectedCallback;c.connectedCallback=function(){c.__i18nSub=on.stateUpdates.subscribe(x=>{"i18nRegistry"===x.key&&this.requestUpdate(f)}),a&&a.apply(this)},c.disconnectedCallback=function(){c.__i18nSub.unsubscribe(),g&&g.apply(this)};const b={get(){const x=Te(ca.keys[this.__i18nKey],this.__i18n||{});return ca.hydrate(x,this)},set(x){const $=function v_(c,f){if(Tt(c)){let a={};if(f.hasAttribute("cds-i18n")){const g=f.getAttribute("cds-i18n")+"";if(Tt(g))a={};else try{a=JSON.parse(g)}catch{Xn.warn("Clarity i18n: Invalid JSON passed to cds-i18n"),a={}}}return a}return c}(x,this),le=function vp(c,f,a,g){return Tt(c)?Ti(a,g)?{update:!1}:{update:!0,values:a}:c===f?{update:!1,values:{}}:{update:!0,key:c,values:{}}}(ca.findKey($)||"",this.__i18nKey,$,this.__i18n);void 0!==le.key&&(this.__i18nKey=le.key+""),void 0!==le.values&&(this.__i18n={...le.values}),!0===le.update&&this.requestUpdate(),this.requestUpdate(f)},enumerable:!0,configurable:!0};return void 0!==f?function(x,$,le){const Se=Object.defineProperty($,le,x);return Wn({type:Object,attribute:"cds-i18n"})(Se,le)}(b,c,f):function(x,$){const le={kind:"method",placement:"prototype",key:$.key,descriptor:x};return Wn({type:Object})(le)}(b,c)}}()],ho.prototype,"i18n",void 0),(0,hn.gn)([Fl({type:Boolean,reflect:!0,attribute:"cds-button-action"})],ho.prototype,"cdsButtonAction",void 0);class _p extends ho{constructor(){super(...arguments),this.shape="close"}connectedCallback(){super.connectedCallback(),this.ariaLabel=this.ariaLabel?this.ariaLabel:this.i18n.close}}(0,hn.gn)([Wn({type:String})],_p.prototype,"shape",void 0),gs("cds-internal-close-button",_p),Et.addIcons(Lr),Et.addAliases(["times",["close"]]);const Dt=["*"];function F_(c,f){1&c&&l._UZ(0,"label")}const Pp=[[["","clrCheckbox",""],["","clrToggle",""]],[["label"]]],k_=["[clrCheckbox],[clrToggle]","label"];function P_(c,f){1&c&&l._UZ(0,"label")}function Np(c,f){1&c&&l.Hsn(0,2,["*ngIf","showHelper"])}function ch(c,f){1&c&&l._UZ(0,"cds-icon",5)}function Pu(c,f){1&c&&l._UZ(0,"cds-icon",6)}function uh(c,f){1&c&&l.Hsn(0,3,["*ngIf","showInvalid"])}function al(c,f){1&c&&l.Hsn(0,4,["*ngIf","showValid"])}const N_=[[["label"]],[["clr-checkbox-wrapper"],["clr-toggle-wrapper"]],[["clr-control-helper"]],[["clr-control-error"]],[["clr-control-success"]]],R_=["label","clr-checkbox-wrapper,clr-toggle-wrapper","clr-control-helper","clr-control-error","clr-control-success"];function J0(c,f){1&c&&l._UZ(0,"label")}function K0(c,f){1&c&&l._UZ(0,"cds-icon",5)}function X0(c,f){1&c&&l._UZ(0,"cds-icon",6)}function Vp(c,f){1&c&&l.Hsn(0,2,["*ngIf","showHelper"])}function $_(c,f){1&c&&l.Hsn(0,3,["*ngIf","showInvalid"])}function G_(c,f){1&c&&l.Hsn(0,4,["*ngIf","showValid"])}const Y_=[[["label"]],[["","clrInput",""]],[["clr-control-helper"]],[["clr-control-error"]],[["clr-control-success"]]],Z_=["label","[clrInput]","clr-control-helper","clr-control-error","clr-control-success"];function mh(c,f){1&c&&l._UZ(0,"label")}const Up=[[["","clrRadio",""]],[["label"]]],$p=["[clrRadio]","label"];function Zp(c,f){1&c&&l._UZ(0,"label")}function Wp(c,f){if(1&c&&l._UZ(0,"span",6),2&c){const a=l.oxw();l.Udp("width",a.getRangeProgressFillWidth())}}function ll(c,f){1&c&&l._UZ(0,"cds-icon",7)}function ly(c,f){1&c&&l._UZ(0,"cds-icon",8)}function vh(c,f){1&c&&l.Hsn(0,2,["*ngIf","showHelper"])}function Vu(c,f){1&c&&l.Hsn(0,3,["*ngIf","showInvalid"])}function cy(c,f){1&c&&l.Hsn(0,4,["*ngIf","showValid"])}const _h=[[["label"]],[["","clrRange",""]],[["clr-control-helper"]],[["clr-control-error"]],[["clr-control-success"]]],Bu=["label","[clrRange]","clr-control-helper","clr-control-error","clr-control-success"];function cl(c,f){1&c&&l._UZ(0,"label")}function Qp(c,f){1&c&&l._UZ(0,"cds-icon",5)}function yh(c,f){1&c&&l._UZ(0,"cds-icon",6)}function uy(c,f){1&c&&l.Hsn(0,2,["*ngIf","showHelper"])}function dy(c,f){1&c&&l.Hsn(0,3,["*ngIf","showInvalid"])}function qp(c,f){1&c&&l.Hsn(0,4,["*ngIf","showValid"])}const Pl=[[["label"]],[["","clrSelect",""]],[["clr-control-helper"]],[["clr-control-error"]],[["clr-control-success"]]],hy=["label","[clrSelect]","clr-control-helper","clr-control-error","clr-control-success"],gS=["anchor"];function gy(c,f){if(1&c&&(l.TgZ(0,"div",4)(1,"div",5)(2,"button",6),l._UZ(3,"cds-icon",7),l.qZA()(),l.Hsn(4),l.qZA()),2&c){const a=l.oxw();l.Q6J("id",a.popoverId),l.uIk("aria-label",a.commonStrings.keys.datagridFilterDialogAriaLabel),l.xp6(3),l.uIk("title",a.commonStrings.keys.close)}}const Tc=["input_low"],my=["input"],Nl=["columnPortal"];function Ac(c,f){1&c&&l.Hsn(0)}const vy=["resizeTracker"],mS=["columnHandle"];function Kp(c,f){1&c&&l.GkF(0)}function _y(c,f){if(1&c&&l._UZ(0,"cds-icon",10),2&c){const a=l.oxw(2);l.uIk("direction",a.sortDirection)}}function yy(c,f){if(1&c){const a=l.EpF();l.TgZ(0,"button",7),l.NdJ("click",function(){l.CHM(a);const b=l.oxw();return l.KtG(b.sort())}),l.YNc(1,Kp,1,0,"ng-container",8),l.YNc(2,_y,1,1,"cds-icon",9),l.qZA()}if(2&c){const a=l.oxw(),g=l.MAs(6);l.xp6(1),l.Q6J("ngTemplateOutlet",g),l.xp6(1),l.Q6J("ngIf",a.sortDirection)}}function Cy(c,f){if(1&c){const a=l.EpF();l.TgZ(0,"clr-dg-string-filter",11),l.NdJ("clrFilterValueChange",function(b){l.CHM(a);const x=l.oxw();return l.KtG(x.filterValue=b)}),l.qZA()}if(2&c){const a=l.oxw();l.Q6J("clrFilterPlaceholder",a.filterStringPlaceholder)("clrDgStringFilter",a.registered)("clrFilterValue",a.filterValue)}}function Xp(c,f){if(1&c){const a=l.EpF();l.TgZ(0,"clr-dg-numeric-filter",12),l.NdJ("clrFilterValueChange",function(b){l.CHM(a);const x=l.oxw();return l.KtG(x.filterValue=b)}),l.qZA()}if(2&c){const a=l.oxw();l.Q6J("clrFilterMaxPlaceholder",a.filterNumberMaxPlaceholder)("clrFilterMinPlaceholder",a.filterNumberMinPlaceholder)("clrDgNumericFilter",a.registered)("clrFilterValue",a.filterValue)}}function by(c,f){1&c&&l.Hsn(0,1)}function Ch(c,f){1&c&&l.GkF(0)}function bh(c,f){if(1&c&&(l.TgZ(0,"span",13),l.YNc(1,Ch,1,0,"ng-container",8),l.qZA()),2&c){l.oxw();const a=l.MAs(6);l.xp6(1),l.Q6J("ngTemplateOutlet",a)}}function Sy(c,f){1&c&&l._UZ(0,"clr-dg-column-separator")}const Sh=[[["clr-dg-filter"],["clr-dg-string-filter"],["clr-dg-numeric-filter"]],"*"],Ic=["clr-dg-filter, clr-dg-string-filter, clr-dg-numeric-filter","*"];function Dy(c,f){1&c&&l._UZ(0,"div",4)}function wy(c,f){1&c&&l.Hsn(0,0,["*ngIf","emptyDatagrid"])}function Ey(c,f){if(1&c&&(l.ynx(0),l.TgZ(1,"button",1),l._UZ(2,"cds-icon",2),l.qZA(),l.BQk()),2&c){const a=l.oxw();l.xp6(2),l.uIk("title",a.commonStrings.keys.info)}}const Ty=["cellPortal"];function eg(c,f){1&c&&l.Hsn(0)}const tg=["rowPortal"];function ng(c,f){1&c&&l.Hsn(0)}const Rl=["detailButton"],ua=["stickyCells"],Ay=["scrollableCells"],Iy=["calculatedCells"];function vS(c,f){}function _S(c,f){if(1&c&&(l.TgZ(0,"clr-expandable-animation",7),l.YNc(1,vS,0,0,"ng-template",8),l.qZA()),2&c){const a=l.oxw(2),g=l.MAs(6);l.Q6J("clrExpandTrigger",a.expandAnimationTrigger),l.xp6(1),l.Q6J("ngTemplateOutlet",g)}}function rg(c,f){}function yS(c,f){if(1&c&&l.YNc(0,rg,0,0,"ng-template",8),2&c){l.oxw(2);const a=l.MAs(6);l.Q6J("ngTemplateOutlet",a)}}function ig(c,f){if(1&c){const a=l.EpF();l.TgZ(0,"div",6),l.NdJ("mousedown",function(b){l.CHM(a);const x=l.oxw();return l.KtG(x.clearRanges(b))})("click",function(){l.CHM(a);const b=l.oxw();return l.KtG(b.selectRow(!b.selected))}),l.YNc(1,_S,2,2,"clr-expandable-animation",1),l.YNc(2,yS,1,1,null,2),l.qZA()}if(2&c){const a=l.oxw();l.xp6(1),l.Q6J("ngIf",a.expand.expandable),l.xp6(1),l.Q6J("ngIf",!a.expand.expandable)}}function CS(c,f){}function sg(c,f){if(1&c&&(l.TgZ(0,"clr-expandable-animation",7),l.YNc(1,CS,0,0,"ng-template",8),l.qZA()),2&c){const a=l.oxw(),g=l.MAs(6);l.Q6J("clrExpandTrigger",a.expandAnimationTrigger),l.xp6(1),l.Q6J("ngTemplateOutlet",g)}}function xy(c,f){}function og(c,f){if(1&c&&l.YNc(0,xy,0,0,"ng-template",8),2&c){l.oxw();const a=l.MAs(6);l.Q6J("ngTemplateOutlet",a)}}function My(c,f){1&c&&l.Hsn(0)}const ag=function(c){return{"clr-form-control-disabled":c}};function fo(c,f){if(1&c){const a=l.EpF();l.TgZ(0,"div",19)(1,"div",20)(2,"input",21),l.NdJ("ngModelChange",function(b){l.CHM(a);const x=l.oxw(2);return l.KtG(x.toggle(b))}),l.qZA(),l.TgZ(3,"label",22),l.NdJ("click",function(b){l.CHM(a);const x=l.oxw(2);return l.KtG(x.clearRanges(b))}),l.TgZ(4,"span",23),l._uU(5),l.qZA()()()()}if(2&c){const a=l.oxw(2);l.Q6J("ngClass",l.VKq(8,ag,!a.clrDgSelectable)),l.xp6(2),l.Q6J("ngModel",a.selected)("id",a.checkboxId)("disabled",!a.clrDgSelectable||null),l.uIk("aria-disabled",!a.clrDgSelectable||null)("aria-label",a.clrDgRowAriaLabel),l.xp6(1),l.Q6J("for",a.checkboxId),l.xp6(2),l.Oqu(a.commonStrings.keys.select)}}function Oy(c,f){if(1&c){const a=l.EpF();l.TgZ(0,"div",19)(1,"input",24),l.NdJ("ngModelChange",function(b){l.CHM(a);const x=l.oxw(2);return l.KtG(x.selection.currentSingle=b)}),l.qZA()()}if(2&c){const a=l.oxw(2);l.Q6J("ngClass",l.VKq(9,ag,!a.clrDgSelectable)),l.xp6(1),l.Q6J("id",a.radioId)("name",a.selection.id+"-radio")("value",a.item)("ngModel",a.selection.currentSingle)("checked",a.selection.currentSingle===a.item)("disabled",!a.clrDgSelectable||null),l.uIk("aria-disabled",!a.clrDgSelectable||null)("aria-label",a.clrDgRowAriaLabel)}}function lg(c,f){1&c&&(l.TgZ(0,"div",25),l.Hsn(1,2),l.qZA())}function Fy(c,f){if(1&c){const a=l.EpF();l.TgZ(0,"button",29),l.NdJ("click",function(){l.CHM(a);const b=l.oxw(4);return l.KtG(b.toggleExpand())}),l._UZ(1,"cds-icon",30),l.qZA()}if(2&c){const a=l.oxw(4);l.uIk("aria-expanded",a.expand.expanded)("aria-label",a.expand.expanded?a.clrDgDetailCloseLabel:a.clrDgDetailOpenLabel)("aria-controls",a.expandableId),l.xp6(1),l.uIk("direction",a.expand.expanded?"down":"right")("title",a.expand.expanded?a.commonStrings.keys.collapse:a.commonStrings.keys.expand)}}function ky(c,f){if(1&c&&(l.TgZ(0,"clr-spinner",31),l._uU(1),l.qZA()),2&c){const a=l.oxw(4);l.xp6(1),l.Oqu(a.commonStrings.keys.loading)}}function Py(c,f){if(1&c&&(l.ynx(0),l.YNc(1,Fy,2,5,"button",27),l.YNc(2,ky,2,1,"clr-spinner",28),l.BQk()),2&c){const a=l.oxw(3);l.xp6(1),l.Q6J("ngIf",!a.expand.loading),l.xp6(1),l.Q6J("ngIf",a.expand.loading)}}function Ny(c,f){if(1&c&&(l.TgZ(0,"div",26),l.YNc(1,Py,3,2,"ng-container",2),l.qZA()),2&c){const a=l.oxw(2);l.xp6(1),l.Q6J("ngIf",a.expand.expandable)}}function cg(c,f){if(1&c){const a=l.EpF();l.TgZ(0,"div",32)(1,"button",33,34),l.NdJ("click",function(){l.CHM(a);const b=l.MAs(2),x=l.oxw(2);return l.KtG(x.detailService.toggle(x.item,b))}),l._UZ(3,"cds-icon",35),l.qZA()()}if(2&c){const a=l.oxw(2);l.xp6(1),l.ekj("is-open",a.detailService.isRowOpen(a.item)),l.uIk("aria-label",a.detailService.isRowOpen(a.item)?a.clrDgDetailCloseLabel:a.clrDgDetailOpenLabel)("aria-expanded",a.detailService.isOpen)("aria-controls",a.detailService.id),l.xp6(2),l.uIk("direction",a.detailService.isRowOpen(a.item)?"left":"right")("title",a.detailService.isRowOpen(a.item)?a.commonStrings.keys.close:a.commonStrings.keys.open)}}function Ry(c,f){}function Ly(c,f){if(1&c&&l.YNc(0,Ry,0,0,"ng-template",8),2&c){l.oxw(2);const a=l.MAs(4);l.Q6J("ngTemplateOutlet",a)}}function Vy(c,f){}function Zt(c,f){if(1&c&&l.YNc(0,Vy,0,0,"ng-template",8),2&c){l.oxw(2);const a=l.MAs(4);l.Q6J("ngTemplateOutlet",a)}}const ug=function(c){return{"is-replaced":c}};function dg(c,f){if(1&c&&(l.TgZ(0,"div",9)(1,"div",10),l.ynx(2,null,11),l.YNc(4,fo,6,10,"div",12),l.YNc(5,Oy,2,11,"div",12),l.YNc(6,lg,2,0,"div",13),l.YNc(7,Ny,2,1,"div",14),l.YNc(8,cg,4,7,"div",15),l.BQk(),l.qZA(),l.TgZ(9,"div",16)(10,"div",17),l.Hsn(11,1),l.GkF(12,null,18),l.qZA(),l.YNc(14,Ly,1,1,null,2),l.YNc(15,Zt,1,1,null,2),l.qZA()()),2&c){const a=l.oxw();l.ekj("datagrid-row-detail-open",a.detailService.isRowOpen(a.item)),l.Q6J("id",a.id),l.xp6(4),l.Q6J("ngIf",a.selection.selectionType===a.SELECTION_TYPE.Multi),l.xp6(1),l.Q6J("ngIf",a.selection.selectionType===a.SELECTION_TYPE.Single),l.xp6(1),l.Q6J("ngIf",a.rowActionService.hasActionableRow),l.xp6(1),l.Q6J("ngIf",a.globalExpandable.hasExpandableRow),l.xp6(1),l.Q6J("ngIf",a.detailService.enabled),l.xp6(1),l.Q6J("ngClass",l.VKq(11,ug,a.replaced&&a.expanded)),l.xp6(5),l.Q6J("ngIf",a.replaced&&!a.expand.loading),l.xp6(1),l.Q6J("ngIf",!a.replaced&&!a.expand.loading)}}const hg=[[["clr-dg-row-detail"]],[["clr-dg-cell"]],[["clr-dg-action-overflow"]]],By=["clr-dg-row-detail","clr-dg-cell","clr-dg-action-overflow"],Hy=["scrollableColumns"],fg=["datagridTable"],jy=["projectedDisplayColumns"],pg=["projectedCalculationColumns"],zy=["displayedRows"],Uy=["calculationRows"];function bS(c,f){if(1&c){const a=l.EpF();l.TgZ(0,"div",24),l.NdJ("keydown.space",function(b){l.CHM(a);const x=l.oxw();return x.allSelected=!x.allSelected,l.KtG(b.preventDefault())}),l.TgZ(1,"div",25)(2,"input",26),l.NdJ("ngModelChange",function(b){l.CHM(a);const x=l.oxw();return l.KtG(x.allSelected=b)}),l.qZA(),l.TgZ(3,"label",27)(4,"span",28),l._uU(5),l.qZA()()(),l._UZ(6,"div",29),l.qZA()}if(2&c){const a=l.oxw();l.xp6(2),l.Q6J("id",a.selectAllId)("ngModel",a.allSelected),l.uIk("aria-label",a.commonStrings.keys.selectAll),l.xp6(1),l.Q6J("for",a.selectAllId),l.xp6(2),l.Oqu(a.commonStrings.keys.selectAll)}}function gg(c,f){if(1&c&&(l.TgZ(0,"div",30),l._UZ(1,"div",29),l.qZA()),2&c){const a=l.oxw();l.uIk("aria-label",a.clrDgSingleSelectionAriaLabel)}}function mg(c,f){if(1&c&&(l.TgZ(0,"div",31),l._UZ(1,"div",29),l.qZA()),2&c){const a=l.oxw();l.uIk("aria-label",a.clrDgSingleActionableAriaLabel)}}function ul(c,f){if(1&c&&(l.TgZ(0,"div",32),l._UZ(1,"div",29),l.qZA()),2&c){const a=l.oxw();l.uIk("aria-label",a.clrDetailExpandableAriaLabel)}}function $y(c,f){1&c&&l._UZ(0,"clr-dg-placeholder")}function Dh(c,f){1&c&&(l.TgZ(0,"div",33)(1,"clr-spinner",34),l._uU(2,"Loading"),l.qZA()())}const wh=[[["clr-dg-action-bar"]],[["clr-dg-placeholder"]],[["clr-dg-footer"]],[["","clrIfDetail",""],["clr-dg-detail"]]],Gy=["clr-dg-action-bar","clr-dg-placeholder","clr-dg-footer","[clrIfDetail],clr-dg-detail"],DS=["allSelected"];function wS(c,f){if(1&c&&(l.ynx(0),l.TgZ(1,"h2"),l._uU(2),l.qZA(),l.BQk()),2&c){const a=l.oxw(2);l.xp6(2),l.Oqu(a.commonStrings.keys.showColumns)}}function Yy(c,f){}function vg(c,f){if(1&c){const a=l.EpF();l.TgZ(0,"li")(1,"clr-checkbox-wrapper")(2,"input",14),l.NdJ("ngModelChange",function(b){const $=l.CHM(a).$implicit,le=l.oxw(2);return l.KtG(le.toggleColumnState($,!b))}),l.qZA(),l.TgZ(3,"label"),l.YNc(4,Yy,0,0,"ng-template",15),l.qZA()()()}if(2&c){const a=f.$implicit,g=l.oxw(2);l.xp6(2),l.Q6J("disabled",g.hasOnlyOneVisibleColumn&&!a.hidden)("ngModel",!a.hidden),l.xp6(2),l.Q6J("ngTemplateOutlet",a.titleTemplateRef)}}function ES(c,f){if(1&c){const a=l.EpF();l.TgZ(0,"clr-dg-column-toggle-button",16),l.NdJ("clrAllSelected",function(){l.CHM(a);const b=l.oxw(2);return l.KtG(b.allColumnsSelected())}),l._uU(1),l.qZA()}if(2&c){const a=l.oxw(2);l.xp6(1),l.hij(" ",a.commonStrings.keys.selectAll," ")}}function Zy(c,f){if(1&c&&(l.TgZ(0,"div",2)(1,"div",3)(2,"div",4,5),l._uU(4),l.qZA(),l.YNc(5,wS,3,1,"ng-container",6),l.Hsn(6),l.TgZ(7,"button",7),l._UZ(8,"cds-icon",8),l.TgZ(9,"span",9),l._uU(10),l.qZA()()(),l.TgZ(11,"ul",10),l.YNc(12,vg,5,3,"li",11),l.qZA(),l.TgZ(13,"div",12),l.Hsn(14,1),l.YNc(15,ES,2,1,"clr-dg-column-toggle-button",13),l.qZA()()),2&c){const a=l.oxw();l.Q6J("id",a.popoverId),l.uIk("aria-label",a.commonStrings.keys.showColumnsMenuDescription),l.xp6(4),l.Oqu(a.commonStrings.keys.allColumnsSelected),l.xp6(1),l.Q6J("ngIf",!a.customToggleTitle),l.xp6(2),l.uIk("aria-label",a.commonStrings.keys.close),l.xp6(1),l.uIk("title",a.commonStrings.keys.close),l.xp6(2),l.Oqu(a.commonStrings.keys.close),l.xp6(2),l.Q6J("ngForOf",a.hideableColumnStates)("ngForTrackBy",a.trackByFn),l.xp6(3),l.Q6J("ngIf",!a.customToggleButton)}}const Ll=[[["clr-dg-column-toggle-title"]],[["clr-dg-column-toggle-button"]]],Wy=["clr-dg-column-toggle-title","clr-dg-column-toggle-button"];function Qy(c,f){if(1&c&&(l.ynx(0),l.TgZ(1,"div",1)(2,"clr-checkbox-wrapper",2),l._UZ(3,"input",3),l.TgZ(4,"label"),l._uU(5),l.qZA(),l.TgZ(6,"span",4),l._uU(7),l.qZA()()(),l.BQk()),2&c){const a=l.oxw();l.xp6(5),l.Oqu(a.selection.current.length),l.xp6(2),l.Oqu(a.commonStrings.keys.selectedRows)}}function yg(c,f){1&c&&l._UZ(0,"clr-dg-column-toggle")}function qy(c,f){if(1&c&&(l.ynx(0),l.Hsn(1,1),l.YNc(2,yg,1,0,"clr-dg-column-toggle",0),l.TgZ(3,"div",5),l.Hsn(4,2),l.qZA(),l.BQk()),2&c){const a=l.oxw();l.xp6(2),l.Q6J("ngIf",a.hasHideableColumns&&!a.toggle)}}const Jy=[[["clr-dg-pagination"]],[["clr-dg-column-toggle"]],"*"],Ky=["clr-dg-pagination","clr-dg-column-toggle","*"];function cC(c,f){if(1&c){const a=l.EpF();l.TgZ(0,"button",3),l.NdJ("click",function(){l.CHM(a);const b=l.oxw();return l.KtG(b.openNav(b.responsiveNavCodes.NAV_LEVEL_1))}),l._UZ(1,"span"),l.qZA()}if(2&c){const a=l.oxw();l.uIk("aria-label",a.responsiveNavCommonString)("aria-expanded",1===a.openNavLevel?"true":"false")}}function kh(c,f){if(1&c){const a=l.EpF();l.TgZ(0,"button",4),l.NdJ("click",function(){l.CHM(a);const b=l.oxw();return l.KtG(b.openNav(b.responsiveNavCodes.NAV_LEVEL_2))}),l._UZ(1,"span"),l.qZA()}if(2&c){const a=l.oxw();l.uIk("aria-label",a.responsiveOverflowCommonString)("aria-expanded",2===a.openNavLevel?"true":"false")}}function Ha(c,f){if(1&c){const a=l.EpF();l.TgZ(0,"button",3),l.NdJ("click",function(){l.CHM(a);const b=l.oxw();return l.KtG(b.toggleByButton())}),l._UZ(1,"cds-icon",4),l.qZA()}if(2&c){const a=l.oxw();l.ekj("on-collapse",a.collapsed),l.uIk("aria-expanded",a.ariaExpanded)("aria-label",a.commonStrings.keys.verticalNavToggle),l.xp6(1),l.uIk("direction",a.collapsed?"right":"left")("title",a.collapsed?a.commonStrings.keys.expand:a.commonStrings.keys.collapse)}}function Ph(c,f){if(1&c){const a=l.EpF();l.TgZ(0,"button",5),l.NdJ("click",function(){l.CHM(a);const b=l.oxw();return l.KtG(b.collapsed=!1)}),l.qZA()}if(2&c){const a=l.oxw();l.uIk("aria-label",a.commonStrings.keys.verticalNavToggle)}}const uC=[[["","clrVerticalNavLink",""]],[["","clrVerticalNavIcon",""]],"*",[["","clrIfExpanded",""],["clr-vertical-nav-group-children"]]],Og=["[clrVerticalNavLink]","[clrVerticalNavIcon]","*","[clrIfExpanded], clr-vertical-nav-group-children"],Nh=["clrVerticalNavLink",""],Fg=[[["","clrVerticalNavIcon",""]],"*"],Rh=["[clrVerticalNavIcon]","*"];let jg=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275dir=l.lG2({type:c,selectors:[["clr-icon"]]}),c})(),Jt=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275dir=l.lG2({type:c,selectors:[["cds-icon"]]}),c})(),In=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez]]}),c})();class Yu{}var ai=(()=>(function(c){c[c.DEFAULT=0]="DEFAULT",c[c.LOADING=1]="LOADING",c[c.SUCCESS=2]="SUCCESS",c[c.ERROR=3]="ERROR"}(ai||(ai={})),ai))();let Ci=(()=>{class c{constructor(){this.expandable=0,this._loading=!1,this._expanded=!1,this._expandChange=new Ue.xQ}get loading(){return this._loading}set loading(a){(a=!!a)!==this._loading&&(this._loading=a)}get expanded(){return this._expanded}set expanded(a){(a=!!a)!==this._expanded&&(this._expanded=a,this._expandChange.next(a))}toggle(){this.expanded=!this._expanded}get expandChange(){return this._expandChange.asObservable()}loadingStateChange(a){this.loading=a===ai.LOADING}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})(),CC=0;function Vr(){return"clr-id-"+CC++}const go="0.2s ease-in-out",Uh=((0,Ye.X$)("skipInitialRender",[(0,Ye.eR)(":enter",[])]),(0,Ye.X$)("toggle",[(0,Ye.eR)("void => *",[(0,Ye.oB)({display:"block",height:0}),(0,Ye.jt)(go,(0,Ye.oB)({height:"*"}))])]),(0,Ye.X$)("skipInitialRender",[(0,Ye.eR)(":enter",[])]),(0,Ye.X$)("toggle",[(0,Ye.eR)("void => *",[(0,Ye.oB)({display:"block",height:0}),(0,Ye.jt)(go,(0,Ye.oB)({height:"*"}))]),(0,Ye.eR)("* => void",[(0,Ye.oB)({display:"block"}),(0,Ye.jt)(go,(0,Ye.oB)({height:0,display:"none"}))])]),{open:"Open",close:"Close",show:"Show",hide:"Hide",expand:"Expand",collapse:"Collapse",more:"More",select:"Select",selectAll:"Select All",previous:"Previous",next:"Next",current:"Jump to current",info:"Info",success:"Success",warning:"Warning",danger:"Error",rowActions:"Available actions",pickColumns:"Manage Columns",showColumns:"Show Columns",sortColumn:"Sort Column",firstPage:"First Page",lastPage:"Last Page",nextPage:"Next Page",previousPage:"Previous Page",currentPage:"Current Page",totalPages:"Total Pages",filterItems:"Filter items",minValue:"Min value",maxValue:"Max value",modalContentStart:"Beginning of Modal Content",modalContentEnd:"End of Modal Content",showColumnsMenuDescription:"Show or hide columns menu",allColumnsSelected:"All columns selected",signpostToggle:"Signpost Toggle",signpostClose:"Signpost Close",loading:"Loading",detailPaneStart:"Start of row details",detailPaneEnd:"End of row details",singleSelectionAriaLabel:"Single selection header",singleActionableAriaLabel:"Single actionable header",detailExpandableAriaLabel:"Toggle more row content",datagridFilterAriaLabel:"Toggle {COLUMN} filter",datagridFilterDialogAriaLabel:"Filter dialog",columnSeparatorAriaLabel:"Column resize handle",columnSeparatorDescription:"Use left or right key to resize the column",alertCloseButtonAriaLabel:"Close alert",alertNextAlertAriaLabel:"Next alert message, {CURRENT} of {COUNT}",alertPreviousAlertAriaLabel:"Previous alert message, {CURRENT} of {COUNT}",datepickerDialogLabel:"Choose date",datepickerToggle:"Toggle datepicker",datepickerToggleChooseDateLabel:"Choose date",datepickerToggleChangeDateLabel:"Change date, {SELECTED_DATE}",datepickerPreviousMonth:"Previous month",datepickerCurrentMonth:"Current month",datepickerNextMonth:"Next month",datepickerPreviousDecade:"Previous decade",datepickerNextDecade:"Next decade",datepickerCurrentDecade:"Current decade",datepickerSelectMonthText:"Select month, the current month is {CALENDAR_MONTH}",datepickerSelectYearText:"Select year, the current year is {CALENDAR_YEAR}",datepickerSelectedLabel:"{FULL_DATE} - Selected",stackViewChanged:"Value changed.",responsiveNavToggleOpen:"Navigation menu",responsiveNavToggleClose:"Navigation menu",responsiveNavOverflowOpen:"Navigation overflow menu",responsiveNavOverflowClose:"Navigation overflow menu",verticalNavGroupToggle:"Toggle vertical navigation group",verticalNavToggle:"Toggle vertical navigation",timelineStepNotStarted:"Not started",timelineStepCurrent:"Current",timelineStepSuccess:"Completed",timelineStepError:"Error",timelineStepProcessing:"In progress",comboboxDelete:"Delete selected option",comboboxSearching:'Searching for matches for "{INPUT}"',comboboxSelection:"Selection",comboboxSelected:"Selected",comboboxNoResults:"No results",comboboxOpen:"Show options",datagridExpandableBeginningOf:"Beginning of",datagridExpandableEndOf:"End of",datagridExpandableRowContent:"Expandable row content",datagridExpandableRowsHelperText:"Screen reader table commands may not work for viewing expanded content, please use your screen reader's browse mode to read the content exposed by this button",wizardStepSuccess:"Completed",wizardStepError:"Error",passwordHide:"Hide password",passwordShow:"Show password",selectedRows:"Selected rows"});let an=(()=>{class c{constructor(){this._strings=Uh}localize(a){this._strings={...this._strings,...a}}get keys(){return this._strings}parse(a,g={}){const b=Object.keys(g);let x=a;return b.length&&b.forEach($=>{x=x.replace(`{${$}}`,g[$])}),x}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"}),c})(),jl=(()=>{class c{constructor(){this._chocolate=new Ue.xQ,this.disableChocolateCheck=!1}get chocolate(){return this._chocolate.asObservable()}ngAfterViewChecked(){this.disableChocolateCheck||this._chocolate.next()}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275dir=l.lG2({type:c}),c})(),zl=(()=>{class c{constructor(a,g){this.subscription=g.chocolate.subscribe(()=>{this.latestFlavor!==this.flavor&&(g.disableChocolateCheck=!0,a.detectChanges(),g.disableChocolateCheck=!1)})}ngAfterContentChecked(){this.latestFlavor=this.flavor}ngOnDestroy(){this.subscription.unsubscribe()}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(l.sBO),l.Y36(jl))},c.\u0275dir=l.lG2({type:c}),c})(),Mc=(()=>{class c{constructor(){Et.addIcons($n,rn,Mr)}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez,In]]}),c})(),Xu=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez,In,Mc],Mc]}),c})();var ht=(()=>(function(c){c.ArrowLeft="ArrowLeft",c.ArrowUp="ArrowUp",c.ArrowRight="ArrowRight",c.ArrowDown="ArrowDown",c.Backspace="Backspace",c.Tab="Tab",c.Enter="Enter",c.Escape="Escape",c.Space="Space",c.Spacebar=" ",c.Home="Home",c.End="End"}(ht||(ht={})),ht))(),bs=(()=>(function(c){c.ArrowUp="Up",c.ArrowDown="Down",c.ArrowRight="Right",c.ArrowLeft="Left",c.Space="Spacebar",c.Escape="Esc"}(bs||(bs={})),bs))();function mo(c){return c===ht.ArrowUp||c===bs.ArrowUp?ht.ArrowUp:c===ht.ArrowDown||c===bs.ArrowDown?ht.ArrowDown:c===ht.ArrowRight||c===bs.ArrowRight?ht.ArrowRight:c===ht.ArrowLeft||c===bs.ArrowLeft?ht.ArrowLeft:c===ht.Space||c===bs.Space?ht.Space:c===ht.Escape||c===bs.Escape?ht.Escape:c}let Sn=(()=>{class c{constructor(){this._open=!1,this._openChange=new Ue.xQ,this._openEventChange=new Ue.xQ,this._popoverAligned=new Ue.xQ}get openChange(){return this._openChange.asObservable()}set openEvent(a){this._openEvent=a,this._openEventChange.next(a)}get openEvent(){return this._openEvent}getEventChange(){return this._openEventChange.asObservable()}set open(a){this._open!==(a=!!a)&&(this._open=a,this._openChange.next(a))}get open(){return this._open}get originalEvent(){return this._openEvent}toggleWithEvent(a){(function Fc(c){const f=mo(c.key);(f===ht.ArrowUp||f===ht.ArrowDown||f===ht.ArrowLeft||f===ht.ArrowRight)&&c.preventDefault()})(a),this.openEvent=a,this.open=!this.open}get popoverAligned(){return this._popoverAligned.asObservable()}popoverAlignedEmit(a){this._popoverAligned.next(a)}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})(),ha=(()=>{class c{constructor(a,g,b){this.renderer=a,this.smartOpenService=g,this.document=b,this.outsideClickClose=!0,this.scrollToClose=!0,this.subscriptions=[],this.subscriptions.push(g.openChange.subscribe(x=>{x?(this.addEscapeListener(),this.addClickListener(),this.addScrollListener()):this.removeAllEventListeners()}),g.getEventChange().subscribe(x=>{this.ignoredEvent=x}))}addScrollListener(){this.scrollToClose&&(this.documentScroller=(0,Cn.R)(this.document,"scroll",{capture:!0}),this.scrollSubscription=this.documentScroller.pipe((0,or.h)(this.testForSmartPopoverContentContainer)).subscribe(()=>{this.smartOpenService.open=!1,this.setAnchorFocus()}))}removeScrollListener(){this.documentScroller&&(this.scrollSubscription.unsubscribe(),delete this.documentScroller)}testForSmartPopoverContentContainer(a){let g=a.target;for(;g.classList&&"body"!==g.parentElement.localName;)g=g.parentElement;return!!g.classList&&!g.classList.contains("clr-popover-content")}addClickListener(){this.outsideClickClose&&(this.documentClickListener=this.renderer.listen(this.document,"click",a=>{a===this.ignoredEvent?delete this.ignoredEvent:(this.smartOpenService.open=!1,a.target.focus())}))}removeClickListener(){this.outsideClickClose&&(delete this.ignoredEvent,this.documentClickListener&&(this.documentClickListener(),delete this.documentClickListener))}addEscapeListener(){this.escapeListener=this.renderer.listen(this.document,"keydown.escape",()=>{this.smartOpenService.open=!1,this.setAnchorFocus()})}removeEscapeListener(){this.escapeListener&&(this.escapeListener(),delete this.escapeListener)}set anchorButtonRef(a){this._anchorButtonRef=a}get anchorButtonRef(){return this._anchorButtonRef}set closeButtonRef(a){this._closeButtonRef=a}get closeButtonRef(){return this._closeButtonRef}setCloseFocus(){this._closeButtonRef.nativeElement.focus()}setAnchorFocus(){this.anchorButtonRef.nativeElement.focus()}set contentRef(a){this._contentRef=a}get contentRef(){return this._contentRef}removeAllEventListeners(){this.removeScrollListener(),this.removeClickListener(),this.removeEscapeListener()}ngOnDestroy(){this.subscriptions.forEach(a=>a.unsubscribe()),this.removeAllEventListeners()}}return c.\u0275fac=function(a){return new(a||c)(l.LFG(l.Qsj),l.LFG(Sn),l.LFG(M.K0))},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})(),fa=(()=>{class c{constructor(a,g){a.anchorButtonRef=g}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(ha),l.Y36(l.SBq))},c.\u0275dir=l.lG2({type:c,selectors:[["","clrPopoverAnchor",""]],hostVars:2,hostBindings:function(a,g){2&a&&l.ekj("clr-anchor",!0)}}),c})(),qg=(()=>{class c{constructor(a,g,b){this.elementRef=a,this.smartEventsService=g,this.smartOpenService=b,this.subscriptions=[],this.closeChange=new l.vpe,this.subscriptions.push(b.openChange.pipe((0,or.h)(x=>!x)).subscribe(()=>{this.closeChange.next()}))}handleClick(a){this.smartOpenService.toggleWithEvent(a),this.smartEventsService.setAnchorFocus()}ngAfterViewInit(){this.smartEventsService.closeButtonRef=this.elementRef,this.smartEventsService.setCloseFocus()}ngOnDestroy(){this.subscriptions.forEach(a=>a.unsubscribe())}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(l.SBq),l.Y36(ha),l.Y36(Sn))},c.\u0275dir=l.lG2({type:c,selectors:[["","clrPopoverCloseButton",""]],hostVars:2,hostBindings:function(a,g){1&a&&l.NdJ("click",function(x){return g.handleClick(x)}),2&a&&l.ekj("clr-smart-close-button",!0)},outputs:{closeChange:"clrPopoverOnCloseChange"}}),c})();var li=(()=>(function(c){c[c.VERTICAL=0]="VERTICAL",c[c.HORIZONTAL=1]="HORIZONTAL"}(li||(li={})),li))(),ln=(()=>(function(c){c[c.START=0]="START",c[c.CENTER=.5]="CENTER",c[c.END=1]="END"}(ln||(ln={})),ln))(),Ul=(()=>(function(c){c[c.BOTTOM=0]="BOTTOM",c[c.LEFT=1]="LEFT",c[c.RIGHT=2]="RIGHT",c[c.TOP=3]="TOP"}(Ul||(Ul={})),Ul))();const $a=c=>({...c,side:-1*c.side}),pa=(c,f)=>{const a=c.content+(f?.5:-.5);return a<0||a>1?c:{...c,content:a}};function dl(c,f,a){return g=>f(c(g),a)}function Ni(c,f,a){let g=f.left,b=f.top;switch(c.axis+c.side){case-1:g+=Jg(c,f,a),b-=a.height;break;case 1:g+=Jg(c,f,a),b+=f.height;break;case 0:g-=a.width,b+=ed(c,f,a);break;case 2:g+=f.width,b+=ed(c,f,a)}return{xOffset:g,yOffset:b}}function Jg(c,f,a){let g=0;switch(c.anchor){case ln.START:break;case ln.CENTER:g+=f.width/2;break;case ln.END:g+=f.width}switch(c.content){case ln.START:break;case ln.CENTER:g-=a.width/2;break;case ln.END:g-=a.width}return g}function ed(c,f,a){let g=0;switch(c.anchor){case ln.START:break;case ln.CENTER:g+=f.height/2;break;case ln.END:g+=f.height}switch(c.content){case ln.START:break;case ln.CENTER:g-=a.height/2;break;case ln.END:g-=a.height}return g}let $l=(()=>{class c{constructor(a,g){this.eventService=a,this.platformId=g,this._shouldRealign=new Ue.xQ,this.shouldRealign=this._shouldRealign.asObservable()}realign(){this._shouldRealign.next()}set position(a){this._position=a}get position(){return this._position}alignContent(a){if(!(0,M.NF)(this.platformId))return{xOffset:0,yOffset:0};this.currentAnchorCoords=this.eventService.anchorButtonRef.nativeElement.getBoundingClientRect(),this.currentContentCoords=a.getBoundingClientRect(),this.contentOffsets=Ni(this.position,this.currentAnchorCoords,this.currentContentCoords);const g=function wC(c,f){const a=[],g_bottom=c.yOffset+f.height,g_left=c.xOffset,g_right=c.xOffset+f.width;return c.yOffset>=0||a.push(Ul.TOP),g_left>=0||a.push(Ul.LEFT),g_bottom<=(window.innerHeight||document.documentElement.clientHeight)||a.push(Ul.BOTTOM),g_right<=(window.innerWidth||document.documentElement.clientWidth)||a.push(Ul.RIGHT),a}(this.contentOffsets,this.currentContentCoords),b=g.reduce((x,$)=>x+$,0);return 1===g.length&&this.position.axis===li.VERTICAL?this.handleVerticalAxisOneViolation(b):1===g.length&&this.position.axis===li.HORIZONTAL?this.handleHorizontalAxisOneViolation(b):2===g.length&&this.position.axis===li.VERTICAL?this.handleVerticalAxisTwoViolations(b):2===g.length&&this.position.axis===li.HORIZONTAL&&this.handleHorizontalAxisTwoViolations(b),this.contentOffsets}handleVerticalAxisOneViolation(a){switch(a){case 0:case 3:this.contentOffsets=Ni($a(this.position),this.currentAnchorCoords,this.currentContentCoords);break;case 1:this.contentOffsets=Ni(this.position,this.currentAnchorCoords,this.currentContentCoords),this.contentOffsets.xOffset<0&&(this.contentOffsets.xOffset=10);break;case 2:this.contentOffsets=Ni(pa(this.position,!0),this.currentAnchorCoords,this.currentContentCoords)}}handleVerticalAxisTwoViolations(a){switch(a){case 5:{const g=dl($a,pa,!0);this.contentOffsets=Ni(g(this.position),this.currentAnchorCoords,this.currentContentCoords);break}case 4:{const g=dl($a,pa,!1);this.contentOffsets=Ni(g(this.position),this.currentAnchorCoords,this.currentContentCoords);break}case 3:default:break;case 2:{const g=dl($a,pa,!0);this.contentOffsets=Ni(g(this.position),this.currentAnchorCoords,this.currentContentCoords);break}case 1:{const g=dl($a,pa,!1);this.contentOffsets=Ni(g(this.position),this.currentAnchorCoords,this.currentContentCoords);break}}}handleHorizontalAxisOneViolation(a){switch(a){case 1:case 2:this.contentOffsets=Ni($a(this.position),this.currentAnchorCoords,this.currentContentCoords);break;case 0:this.contentOffsets=Ni(pa(this.position,!0),this.currentAnchorCoords,this.currentContentCoords);break;case 3:this.contentOffsets=Ni(pa(this.position),this.currentAnchorCoords,this.currentContentCoords)}}handleHorizontalAxisTwoViolations(a){switch(a){case 5:case 4:{const g=dl($a,pa,!1);this.contentOffsets=Ni(g(this.position),this.currentAnchorCoords,this.currentContentCoords);break}case 3:default:break;case 2:case 1:{const g=dl($a,pa,!0);this.contentOffsets=Ni(g(this.position),this.currentAnchorCoords,this.currentContentCoords);break}}}}return c.\u0275fac=function(a){return new(a||c)(l.LFG(ha),l.LFG(l.Lbi))},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})(),kc=(()=>{class c{constructor(a,g,b,x,$,le,Se){this.document=a,this.container=g,this.template=b,this.renderer=x,this.smartPositionService=$,this.smartEventsService=le,this.smartOpenService=Se,this.subscriptions=[],this.removeClickListenerFn=null,this.shouldRealign=!1,this.checkCollector=new l.vpe}set open(a){this.smartOpenService.open=!!a}set contentAt(a){this.smartPositionService.position=a}set outsideClickClose(a){this.smartEventsService.outsideClickClose=!!a}set scrollToClose(a){this.smartEventsService.scrollToClose=!!a}ngAfterViewInit(){this.subscriptions.push(this.smartOpenService.openChange.subscribe(a=>{a?this.addContent():this.removeContent()}),this.smartPositionService.shouldRealign.subscribe(()=>{this.shouldRealign=!0,this.view&&this.renderer.setStyle(this.view.rootNodes[0],"opacity","0")}),this.checkCollector.pipe((0,_i.b)(0)).subscribe(()=>{this.alignContent(),this.shouldRealign=!1,this.view&&this.renderer.setStyle(this.view.rootNodes[0],"opacity","1")}))}ngOnDestroy(){this.removeContent(),this.subscriptions.forEach(a=>a.unsubscribe())}removeContent(){!this.view||(this.removeClickListenerFn&&(this.removeClickListenerFn(),this.removeClickListenerFn=null),this.view.rootNodes.forEach(a=>this.renderer.removeChild(this.document.body,a)),this.container.clear(),delete this.view)}addContent(){this.view=this.container.createEmbeddedView(this.template);const[a]=this.view.rootNodes;this.smartEventsService.contentRef=a,this.renderer.addClass(a,"clr-popover-content"),this.renderer.setStyle(a,"top","0px"),this.renderer.setStyle(a,"left","0px"),this.renderer.setStyle(a,"opacity","0"),this.removeClickListenerFn=this.renderer.listen(a,"click",g=>{this.smartOpenService.openEvent=g}),this.view.rootNodes.forEach(g=>{this.renderer.appendChild(this.document.body,g)}),this.shouldRealign=!0}ngAfterContentChecked(){this.smartOpenService.open&&this.view&&this.shouldRealign&&this.checkCollector.emit()}alignContent(){if(!this.view)return;const a=this.smartPositionService.alignContent(this.view.rootNodes[0]);this.renderer.setStyle(this.view.rootNodes[0],"top",`${a.yOffset}px`),this.renderer.setStyle(this.view.rootNodes[0],"left",`${a.xOffset}px`),this.smartOpenService.popoverAlignedEmit(this.view.rootNodes[0])}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(M.K0),l.Y36(l.s_b),l.Y36(l.Rgc),l.Y36(l.Qsj),l.Y36($l),l.Y36(ha),l.Y36(Sn))},c.\u0275dir=l.lG2({type:c,selectors:[["","clrPopoverContent",""]],inputs:{open:["clrPopoverContent","open"],contentAt:["clrPopoverContentAt","contentAt"],outsideClickClose:["clrPopoverContentOutsideClickToClose","outsideClickClose"],scrollToClose:["clrPopoverContentScrollToClose","scrollToClose"]}}),c})(),Pc=(()=>{class c{constructor(a){this.smartOpenService=a,this.subscriptions=[],this.openCloseChange=new l.vpe,this.subscriptions.push(this.smartOpenService.openChange.subscribe(g=>{this.openCloseChange.next(g)}))}handleClick(a){this.smartOpenService.toggleWithEvent(a)}ngOnDestroy(){this.subscriptions.forEach(a=>a.unsubscribe())}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(Sn))},c.\u0275dir=l.lG2({type:c,selectors:[["","clrPopoverOpenCloseButton",""]],hostVars:2,hostBindings:function(a,g){1&a&&l.NdJ("click",function(x){return g.handleClick(x)}),2&a&&l.ekj("clr-smart-open-close",!0)},outputs:{openCloseChange:"clrPopoverOpenCloseChange"}}),c})(),Nc=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[]]}),c})();var qi=(()=>(function(c){c.UP="up",c.DOWN="down",c.LEFT="left",c.RIGHT="right"}(qi||(qi={})),qi))();let ga=(()=>{class c{constructor(a){this.renderer=a,this._unlistenFuncs=[]}get current(){return this._current}reset(a){this._current=a}listenToArrowKeys(a){this._unlistenFuncs.push(this.renderer.listen(a,"keydown.arrowup",()=>!this.move(qi.UP))),this._unlistenFuncs.push(this.renderer.listen(a,"keydown.arrowdown",()=>!this.move(qi.DOWN))),this._unlistenFuncs.push(this.renderer.listen(a,"keydown.arrowleft",()=>!this.move(qi.LEFT))),this._unlistenFuncs.push(this.renderer.listen(a,"keydown.arrowright",()=>!this.move(qi.RIGHT)))}registerContainer(a,g="0"){this.renderer.setAttribute(a,"tabindex",g),this.listenToArrowKeys(a),this._unlistenFuncs.push(this.renderer.listen(a,"keydown.space",()=>!this.activateCurrent())),this._unlistenFuncs.push(this.renderer.listen(a,"keydown.enter",()=>!this.activateCurrent()))}moveTo(a){void 0!==a&&(this.current&&this.current.blur(),a.focus(),this._current=a)}move(a){let g=!1;if(this.current){const b=this.current[a];b&&(function V(c){return!!c&&(c instanceof ro.y||"function"==typeof c.lift&&"function"==typeof c.subscribe)}(b)?b:(0,N.of)(b)).subscribe($=>{$&&(this.moveTo($),g=!0)})}return g}activateCurrent(){return!(!this.current||!this.current.activate||(this.current.activate(),0))}detachListeners(){this._unlistenFuncs.forEach(a=>a())}}return c.\u0275fac=function(a){return new(a||c)(l.LFG(l.Qsj))},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})();new l.FiY,new l.tp0;var bi=(()=>(function(c){c[c.BEFORE=-1]="BEFORE",c[c.AFTER=1]="AFTER"}(bi||(bi={})),bi))();class Ji{}Ji["top-right"]={axis:li.VERTICAL,side:bi.BEFORE,anchor:ln.END,content:ln.END},Ji["top-left"]={axis:li.VERTICAL,side:bi.BEFORE,anchor:ln.START,content:ln.START},Ji["bottom-right"]={axis:li.VERTICAL,side:bi.AFTER,anchor:ln.END,content:ln.END},Ji["bottom-left"]={axis:li.VERTICAL,side:bi.AFTER,anchor:ln.START,content:ln.START},Ji["right-top"]={axis:li.HORIZONTAL,side:bi.AFTER,anchor:ln.CENTER,content:ln.END},Ji["right-bottom"]={axis:li.HORIZONTAL,side:bi.AFTER,anchor:ln.START,content:ln.START},Ji["left-top"]={axis:li.HORIZONTAL,side:bi.BEFORE,anchor:ln.CENTER,content:ln.END},Ji["left-bottom"]={axis:li.HORIZONTAL,side:bi.BEFORE,anchor:ln.START,content:ln.START};class zs{static linkParent(f,a,g){f.forEach(b=>b[g]=a)}static linkVertical(f,a=!0){f.forEach((g,b)=>{b>0&&(g.up=f[b-1]),b1&&(f[0].up=f[f.length-1],f[f.length-1].down=f[0])}}let Br=(()=>{class c{userDefinedWidth(a){a.classList.add("datagrid-cell-width-zero");const g=this.clientRect(a).width;return a.classList.remove("datagrid-cell-width-zero"),g}scrollBarWidth(a){return a.offsetWidth-a.clientWidth}scrollWidth(a){return a.scrollWidth||0}computedHeight(a){return parseInt(getComputedStyle(a).getPropertyValue("height"),10)}clientRect(a){const g=a.getBoundingClientRect();return{top:parseInt(g.top,10),bottom:parseInt(g.bottom,10),left:parseInt(g.left,10),right:parseInt(g.right,10),width:parseInt(g.width,10),height:parseInt(g.height,10)}}minWidth(a){return parseInt(getComputedStyle(a).getPropertyValue("min-width"),10)}focus(a){a.focus()}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})(),hl=(()=>{class c{constructor(a,g){this.element=a,this.domAdapter=g,this.startHeight=0}get expandAnimation(){return{value:this.clrExpandTrigger,params:{startHeight:this.startHeight}}}animationDone(){this.updateStartHeight()}updateStartHeight(){this.startHeight=this.domAdapter.computedHeight(this.element.nativeElement)||0}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(l.SBq),l.Y36(Br))},c.\u0275cmp=l.Xpm({type:c,selectors:[["clr-expandable-animation"]],hostVars:1,hostBindings:function(a,g){1&a&&l.WFA("@expandAnimation.done",function(){return g.animationDone()}),2&a&&l.d8E("@expandAnimation",g.expandAnimation)},inputs:{clrExpandTrigger:"clrExpandTrigger"},features:[l._Bn([Br])],ngContentSelectors:Dt,decls:1,vars:0,template:function(a,g){1&a&&(l.F$t(),l.Hsn(0))},styles:["[_nghost-%COMP%]{display:block;overflow:hidden}"],data:{animation:[(0,Ye.X$)("expandAnimation",[(0,Ye.eR)("true <=> false",[(0,Ye.oB)({height:"{{startHeight}}px"}),(0,Ye.jt)("0.2s ease-in-out",(0,Ye.oB)({height:"*"}))])])]}}),c})(),Ya=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez]]}),c})();new l.OlP("IF_ACTIVE_ID");let Zh=(()=>{class c{constructor(a,g,b){this.toggleService=a,this.template=g,this.container=b,this.openChange=new l.vpe(!1),this.subscription=this.toggleService.openChange.subscribe(x=>{this.updateView(x),this.openChange.emit(x)})}set open(a){this.toggleService.open=a}get open(){return this.toggleService.open}updateView(a){a?this.container.createEmbeddedView(this.template):this.container.clear()}ngOnDestroy(){this.subscription.unsubscribe()}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(Sn),l.Y36(l.Rgc),l.Y36(l.s_b))},c.\u0275dir=l.lG2({type:c,selectors:[["","clrIfOpen",""]],inputs:{open:["clrIfOpen","open"]},outputs:{openChange:"clrIfOpenChange"}}),c})(),Ss=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez]]}),c})();class zo{constructor(f){this.dragPosition=f.dragPosition,this.group=f.group,this.dragDataTransfer=f.dragDataTransfer,this.dropPointPosition=f.dropPointPosition}}var Si=(()=>(function(c){c[c.DRAG_START=0]="DRAG_START",c[c.DRAG_MOVE=1]="DRAG_MOVE",c[c.DRAG_END=2]="DRAG_END",c[c.DRAG_ENTER=3]="DRAG_ENTER",c[c.DRAG_LEAVE=4]="DRAG_LEAVE",c[c.DROP=5]="DROP"}(Si||(Si={})),Si))();let tm=(()=>{class c{constructor(){this.dragStart=new Ue.xQ,this.dragMove=new Ue.xQ,this.dragEnd=new Ue.xQ,this.drop=new Ue.xQ}get dragStarted(){return this.dragStart.asObservable()}get dragMoved(){return this.dragMove.asObservable()}get dragEnded(){return this.dragEnd.asObservable()}get dropped(){return this.drop.asObservable()}broadcast(a){switch(a.type){case Si.DRAG_START:this.dragStart.next(a);break;case Si.DRAG_MOVE:this.dragMove.next(a);break;case Si.DRAG_END:this.dragEnd.next(a);break;case Si.DROP:this.drop.next(a)}}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"}),c})(),Wl=(()=>{class c{constructor(a,g,b){this.ngZone=a,this.renderer=g,this.eventBus=b,this.listeners=[],this.dragStart=new Ue.xQ,this.dragMove=new Ue.xQ,this.dragEnd=new Ue.xQ,this.hasDragStarted=!1,this.dragStartDelay=0}get dragStarted(){return this.dragStart.asObservable()}get dragMoved(){return this.dragMove.asObservable()}get dragEnded(){return this.dragEnd.asObservable()}get dragStartPosition(){return this.initialPosition}attachDragListeners(a){this.draggableEl=a,this.listeners.push(this.customDragEvent(this.draggableEl,"mousedown","mousemove","mouseup")),this.listeners.push(this.customDragEvent(this.draggableEl,"touchstart","touchmove","touchend"))}detachDragListeners(){this.listeners&&this.listeners.map(a=>a()),this.nestedListeners&&this.nestedListeners.map(a=>a()),this.checkDragStartBoundaryListener&&this.checkDragStartBoundaryListener()}getNativeEventObject(a){return Object.prototype.hasOwnProperty.call(a,"changedTouches")?a.changedTouches[0]:a}customDragEvent(a,g,b,x){return this.renderer.listen(a,g,$=>{this.initialPosition={pageX:this.getNativeEventObject($).pageX,pageY:this.getNativeEventObject($).pageY},this.nestedListeners=[],this.ngZone.runOutsideAngular(()=>{this.nestedListeners.push(this.renderer.listen("document","selectstart",le=>{le.preventDefault(),le.stopImmediatePropagation()})),this.checkDragStartBoundary(b),this.dragStartDelayTimeout=setTimeout(()=>{this.checkDragStartBoundaryListener&&this.checkDragStartBoundaryListener(),this.hasDragStarted=!0,this.broadcast($,Si.DRAG_START),this.nestedListeners.push(this.renderer.listen("document",b,le=>{le.stopImmediatePropagation(),this.hasDragStarted&&this.broadcast(le,Si.DRAG_MOVE)}))},this.dragStartDelay)}),this.nestedListeners.push(this.renderer.listen("document",x,le=>{this.hasDragStarted&&(this.hasDragStarted=!1,this.broadcast(le,Si.DRAG_END)),clearTimeout(this.dragStartDelayTimeout),this.nestedListeners.map(Se=>Se()),this.checkDragStartBoundaryListener&&this.checkDragStartBoundaryListener()}))})}checkDragStartBoundary(a){this.checkDragStartBoundaryListener=this.renderer.listen("document",a,g=>{const b=Math.abs(this.getNativeEventObject(g).pageX-this.initialPosition.pageX),x=Math.abs(this.getNativeEventObject(g).pageY-this.initialPosition.pageY);(b>1||x>1)&&(clearTimeout(this.dragStartDelayTimeout),this.checkDragStartBoundaryListener&&this.checkDragStartBoundaryListener())})}broadcast(a,g){const b=this.generateDragEvent(a,g);switch(b.type){case Si.DRAG_START:this.dragStart.next(b);break;case Si.DRAG_MOVE:this.dragMove.next(b);break;case Si.DRAG_END:this.dragEnd.next(b)}b.ghostElement=this.ghostElement,b.dropPointPosition=this.dropPointPosition,this.eventBus.broadcast(b)}generateDragEvent(a,g){const b=this.getNativeEventObject(a);return{type:g,dragPosition:{pageX:b.pageX,pageY:b.pageY,moveX:b.pageX-this.initialPosition.pageX,moveY:b.pageY-this.initialPosition.pageY},group:this.group,dragDataTransfer:this.dragDataTransfer,ghostElement:this.ghostElement}}}return c.\u0275fac=function(a){return new(a||c)(l.LFG(l.R0b),l.LFG(l.Qsj),l.LFG(tm))},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})(),Wh=(()=>{class c{constructor(a){this.domAdapter=a}capture(a,g){this.draggableElClientRect=this.domAdapter.clientRect(a),this.snapshotDragEvent=g}discard(){delete this.draggableElClientRect,delete this.snapshotDragEvent}get hasDraggableState(){return!!this.snapshotDragEvent&&!!this.draggableElClientRect}get clientRect(){return this.draggableElClientRect}get dragEvent(){return this.snapshotDragEvent}}return c.\u0275fac=function(a){return new(a||c)(l.LFG(Br))},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})(),Qh=(()=>{class c{constructor(a,g,b,x,$){if(this.el=a,this.dragEventListener=g,this.draggableSnapshot=b,this.renderer=x,this.ngZone=$,this.subscriptions=[],this.leaveAnimConfig={value:0,params:{top:"0px",left:"0px"}},!this.dragEventListener||!this.draggableSnapshot)throw new Error("The clr-draggable-ghost component can only be used inside of a clrDraggable directive.");this.draggableGhostEl=this.el.nativeElement,this.renderer.addClass(this.draggableGhostEl,"draggable-ghost"),this.dragEventListener.ghostElement=this.draggableGhostEl,this.setDefaultGhostSize(this.draggableGhostEl);const le={top:this.draggableSnapshot.hasDraggableState?this.draggableSnapshot.dragEvent.dragPosition.pageY-this.draggableSnapshot.clientRect.top:0,left:this.draggableSnapshot.hasDraggableState?this.draggableSnapshot.dragEvent.dragPosition.pageX-this.draggableSnapshot.clientRect.left:0};let Se=!1;this.subscriptions.push(this.dragEventListener.dragMoved.subscribe(Pe=>{Se||(this.draggableSnapshot.hasDraggableState?this.animateToOnLeave(`${this.draggableSnapshot.clientRect.top}px`,`${this.draggableSnapshot.clientRect.left}px`):this.animateToOnLeave(`${this.dragEventListener.dragStartPosition.pageY}px`,`${this.dragEventListener.dragStartPosition.pageY}px`),Se=!0);const nt=this.findTopLeftPosition(Pe.dragPosition,le);this.setPositionStyle(this.draggableGhostEl,nt.pageX,nt.pageY),this.dragEventListener.dropPointPosition=this.findDropPointPosition(nt)}))}setDefaultGhostSize(a){this.draggableSnapshot.hasDraggableState&&this.setSizeStyle(a,this.draggableSnapshot.clientRect.width,this.draggableSnapshot.clientRect.height)}animateToOnLeave(a,g){this.ngZone.run(()=>{this.leaveAnimConfig={value:0,params:{top:a,left:g}}})}findTopLeftPosition(a,g){return{pageX:a.pageX-g.left,pageY:a.pageY-g.top}}findDropPointPosition(a){return this.draggableSnapshot.hasDraggableState?{pageX:a.pageX+this.draggableSnapshot.clientRect.width/2,pageY:a.pageY+this.draggableSnapshot.clientRect.height/2}:a}setSizeStyle(a,g,b){this.renderer.setStyle(a,"width",`${g}px`),this.renderer.setStyle(a,"height",`${b}px`)}setPositionStyle(a,g,b){this.renderer.setStyle(a,"left",`${g}px`),this.renderer.setStyle(a,"top",`${b}px`),this.renderer.setStyle(a,"visibility","visible")}ngOnDestroy(){this.subscriptions.forEach(a=>a.unsubscribe())}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(l.SBq),l.Y36(Wl,8),l.Y36(Wh,8),l.Y36(l.Qsj),l.Y36(l.R0b))},c.\u0275cmp=l.Xpm({type:c,selectors:[["clr-draggable-ghost"]],hostVars:1,hostBindings:function(a,g){2&a&&l.d8E("@leaveAnimation",g.leaveAnimConfig)},ngContentSelectors:Dt,decls:1,vars:0,template:function(a,g){1&a&&(l.F$t(),l.Hsn(0))},encapsulation:2,data:{animation:[(0,Ye.X$)("leaveAnimation",[(0,Ye.eR)(":leave",[(0,Ye.oB)({left:"*",top:"*"}),(0,Ye.jt)("0.2s ease-in-out",(0,Ye.oB)({top:"{{top}}",left:"{{left}}"}))])])]}}),c})(),td=(()=>{class c{constructor(a,g,b){if(this.template=a,this.container=g,this.dragEventListener=b,this.subscriptions=[],!this.dragEventListener||!this.container)throw new Error("The *clrIfDragged directive can only be used inside of a clrDraggable directive.");this.subscriptions.push(this.dragEventListener.dragStarted.subscribe(()=>{this.container.createEmbeddedView(this.template)})),this.subscriptions.push(this.dragEventListener.dragEnded.subscribe(()=>{this.container.clear()}))}ngOnDestroy(){this.subscriptions.forEach(a=>a.unsubscribe())}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(l.Rgc),l.Y36(l.s_b,12),l.Y36(Wl,8))},c.\u0275dir=l.lG2({type:c,selectors:[["","clrIfDragged",""]]}),c})(),Hc=(()=>{class c{constructor(a,g){this.dragEventListener=a,this.renderer=g}get defaultHandleEl(){return this._defaultHandleEl}set defaultHandleEl(a){this._defaultHandleEl=a,this._customHandleEl||this.makeElementHandle(this._defaultHandleEl)}makeElementHandle(a){this._defaultHandleEl&&this._defaultHandleEl!==a&&this.renderer.removeClass(this._defaultHandleEl,"drag-handle"),this.dragEventListener.attachDragListeners(a),this.renderer.addClass(a,"drag-handle")}get customHandleEl(){return this._customHandleEl}registerCustomHandle(a){this.dragEventListener.detachDragListeners(),this._customHandleEl=a,this.makeElementHandle(this._customHandleEl)}unregisterCustomHandle(){this.dragEventListener.detachDragListeners(),this.renderer.removeClass(this._customHandleEl,"drag-handle"),delete this._customHandleEl,this._defaultHandleEl&&this.makeElementHandle(this._defaultHandleEl)}}return c.\u0275fac=function(a){return new(a||c)(l.LFG(Wl),l.LFG(l.Qsj))},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})(),nm=(()=>{class c{constructor(a){this.renderer=a}enter(){this.renderer.addClass(document.body,"in-drag")}exit(){this.renderer.removeClass(document.body,"in-drag")}}return c.\u0275fac=function(a){return new(a||c)(l.LFG(l.Qsj))},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})(),jc=(()=>{class c{constructor(a,g,b,x,$,le,Se,Pe){this.el=a,this.dragEventListener=g,this.dragHandleRegistrar=b,this.viewContainerRef=x,this.cfr=$,this.injector=le,this.draggableSnapshot=Se,this.globalDragMode=Pe,this.subscriptions=[],this.dragOn=!1,this.dragStartEmitter=new l.vpe,this.dragMoveEmitter=new l.vpe,this.dragEndEmitter=new l.vpe,this.draggableEl=this.el.nativeElement,this.componentFactory=this.cfr.resolveComponentFactory(Qh)}set dataTransfer(a){this.dragEventListener.dragDataTransfer=a}set group(a){this.dragEventListener.group=a}set dragStartDelay(a){"number"==typeof a?this.dragEventListener.dragStartDelay=a:"string"==typeof a&&(this.dragEventListener.dragStartDelay=parseInt(a,10)||0)}createDefaultGhost(a){this.draggableSnapshot.capture(this.draggableEl,a),this.viewContainerRef.createComponent(this.componentFactory,0,this.injector,[[this.draggableEl.cloneNode(!0)]])}destroyDefaultGhost(){this.viewContainerRef.clear(),this.draggableSnapshot.discard()}ngAfterContentInit(){this.dragHandleRegistrar.defaultHandleEl=this.draggableEl,this.subscriptions.push(this.dragEventListener.dragStarted.subscribe(a=>{this.globalDragMode.enter(),this.dragOn=!0,this.customGhost||this.createDefaultGhost(a),this.dragStartEmitter.emit(new zo(a))})),this.subscriptions.push(this.dragEventListener.dragMoved.subscribe(a=>{this.dragMoveEmitter.emit(new zo(a))})),this.subscriptions.push(this.dragEventListener.dragEnded.subscribe(a=>{this.globalDragMode.exit(),this.dragOn=!1,this.customGhost||this.destroyDefaultGhost(),this.dragEndEmitter.emit(new zo(a))}))}ngOnDestroy(){this.subscriptions.forEach(a=>a.unsubscribe()),this.dragEventListener.detachDragListeners()}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(l.SBq),l.Y36(Wl),l.Y36(Hc),l.Y36(l.s_b),l.Y36(l._Vd),l.Y36(l.zs3),l.Y36(Wh),l.Y36(nm))},c.\u0275dir=l.lG2({type:c,selectors:[["","clrDraggable",""]],contentQueries:function(a,g,b){if(1&a&&l.Suo(b,td,5),2&a){let x;l.iGM(x=l.CRH())&&(g.customGhost=x.first)}},hostVars:4,hostBindings:function(a,g){2&a&&l.ekj("draggable",!0)("being-dragged",g.dragOn)},inputs:{dataTransfer:["clrDraggable","dataTransfer"],group:["clrGroup","group"],dragStartDelay:["clrDragStartDelay","dragStartDelay"]},outputs:{dragStartEmitter:"clrDragStart",dragMoveEmitter:"clrDragMove",dragEndEmitter:"clrDragEnd"},features:[l._Bn([Wl,Hc,Wh,nm,Br])]}),c})(),zc=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez]]}),c})();const Jh={provide:new l.OlP("FOCUS_ON_VIEW_INIT"),useValue:!0};let Za=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({providers:[Jh],imports:[[M.ez]]}),c})(),sm=(()=>{class c{constructor(){this._previousFocusTraps=[]}get current(){return this._current}set current(a){this._previousFocusTraps.push(this._current),this._current=a}get nbFocusTrappers(){return this._previousFocusTraps.length}activatePreviousTrapper(){this._current=this._previousFocusTraps.pop()}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"}),c})(),Uo=(()=>{class c{constructor(a,g,b,x,$){this.el=a,this.injector=g,this.focusTrapsTracker=b,this.renderer=x,this.platformId=$,this.localFocusEscaped=!1,this._config={strict:!0},this.document=this.injector.get(M.K0),this.focusTrapsTracker.current=this}set config(a){this._config=Object.assign(this._config,""===a?{}:a)}onFocusIn(a){const g=this.el.nativeElement;this.focusTrapsTracker.current!==this||!(0,M.NF)(this.platformId)||this.localFocusEscaped||g.contains(a.target)||(a.target===this.topReboundEl&&g.contains(a.relatedTarget)?(this.focusLastFocusable(),this.focusTrapElIfOutside()):a.target===this.bottomReboundEl&&g.contains(a.relatedTarget)?(this.focusFirstFocusable(),this.focusTrapElIfOutside()):this._config.strict?this.el.nativeElement.focus():this.localFocusEscaped=!0)}createFocusableOffScreenEl(){const a=this.document.createElement("span");return this.renderer.setAttribute(a,"tabindex","0"),this.renderer.addClass(a,"offscreen-focus-rebounder"),a}addReboundEls(){if((0,M.NF)(this.platformId)){this.topReboundEl=this.createFocusableOffScreenEl(),this.bottomReboundEl=this.createFocusableOffScreenEl();const a=this.el.nativeElement;this.renderer.insertBefore(a.parentElement,this.topReboundEl,a),a.nextSibling?this.renderer.insertBefore(a.parentNode,this.bottomReboundEl,a.nextSibling):this.renderer.appendChild(a.parentNode,this.bottomReboundEl)}}removeReboundEls(){(0,M.NF)(this.platformId)&&this.topReboundEl&&this.bottomReboundEl&&(this.parentElement.removeChild(this.topReboundEl),this.parentElement.removeChild(this.bottomReboundEl),delete this.topReboundEl,delete this.bottomReboundEl)}setPreviousFocus(){this.previousActiveElement&&this.previousActiveElement.focus&&this.previousActiveElement.focus()}ngOnInit(){(0,M.NF)(this.platformId)&&(this.renderer.setAttribute(this.el.nativeElement,"tabindex","-1"),this.el.nativeElement.focus())}ngAfterViewInit(){(0,M.NF)(this.platformId)&&(this.previousActiveElement=this.document.activeElement,this.parentElement=this.el.nativeElement.parentElement),this.addReboundEls()}get potentiallyFocusableEls(){return[...this.el.nativeElement.querySelectorAll('[href]:not([tabindex="-1"]), button:not([disabled]):not([tabindex="-1"]), input:not([disabled]):not([tabindex="-1"]), select:not([disabled]):not([tabindex="-1"]), textarea:not([disabled]):not([tabindex="-1"]), [contenteditable="true"]:not([tabindex="-1"]), [tabindex]:not([tabindex="-1"]) ')]}focusFirstFocusable(){for(let a=0;a=0&&(this.lastFocusableEl=this.focusElement(this.potentiallyFocusableEls[a]),!this.lastFocusableEl);a--);}focusTrapElIfOutside(){this.el.nativeElement.contains(document.activeElement)||this.el.nativeElement.focus()}focusElement(a){return a&&a.focus&&(a.focus(),document.activeElement===a)?a:null}ngOnDestroy(){this.removeReboundEls(),this.setPreviousFocus(),this.focusTrapsTracker.activatePreviousTrapper()}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(l.SBq),l.Y36(l.zs3),l.Y36(sm),l.Y36(l.Qsj),l.Y36(l.Lbi))},c.\u0275dir=l.lG2({type:c,selectors:[["","clrFocusTrap",""]],hostBindings:function(a,g){1&a&&l.NdJ("focusin",function(x){return g.onFocusIn(x)},!1,l.evT)},inputs:{config:["clrFocusTrap","config"]}}),c})(),$c=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez]]}),c})(),am=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez]]}),c})(),rd=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez,In,Nc]]}),c})(),hm=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez]]}),c})(),fm=(()=>{class c{constructor(){Et.addIcons(Aa)}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[hm,rd]}),c})(),pm=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275cmp=l.Xpm({type:c,selectors:[["ng-component"]],decls:0,vars:0,template:function(a,g){},encapsulation:2}),c})(),Gc=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({}),c})(),gm=0,Gs=(()=>{class c{constructor(){this._id="clr-form-control-"+ ++gm,this._idChange=new Gn.X(this._id)}get id(){return this._id}set id(a){this._id=a,this._idChange.next(a)}get idChange(){return this._idChange.asObservable()}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})(),NC=0,Ql=(()=>{class c{constructor(){this._id="clr-form-container-"+ ++NC,this._idChange=new Gn.X(this._id)}get id(){return this._id}set id(a){this._id=a,this._idChange.next(a)}get idChange(){return this._idChange.asObservable()}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})();let Xh=(()=>{class c{constructor(a,g){this.controlIdService=a,this.containerIdService=g,this.controlIdSuffix="abstract"}get id(){return this.containerIdService?`${this.containerIdService.id}-${this.controlIdSuffix}`:this.controlIdService?`${this.controlIdService.id}-${this.controlIdSuffix}`:null}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(Gs,8),l.Y36(Ql,8))},c.\u0275dir=l.lG2({type:c}),c})(),Hr=(()=>{class c extends Xh{constructor(a,g){super(a,g),this.controlIdService=a,this.containerIdService=g,this.controlIdSuffix="error"}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(Gs,8),l.Y36(Ql,8))},c.\u0275cmp=l.Xpm({type:c,selectors:[["clr-control-error"]],hostVars:3,hostBindings:function(a,g){2&a&&(l.uIk("id",g.id),l.ekj("clr-subtext",!0))},features:[l.qOj],ngContentSelectors:Dt,decls:1,vars:0,template:function(a,g){1&a&&(l.F$t(),l.Hsn(0))},encapsulation:2}),c})(),ef=(()=>{class c extends Xh{constructor(a,g){super(a,g),this.controlIdService=a,this.containerIdService=g,this.controlIdSuffix="helper"}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(Gs,8),l.Y36(Ql,8))},c.\u0275cmp=l.Xpm({type:c,selectors:[["clr-control-helper"]],hostVars:3,hostBindings:function(a,g){2&a&&(l.uIk("id",g.id),l.ekj("clr-subtext",!0))},features:[l.qOj],ngContentSelectors:Dt,decls:1,vars:0,template:function(a,g){1&a&&(l.F$t(),l.Hsn(0))},encapsulation:2}),c})(),Ds=(()=>{class c{constructor(){this._controlChanges=new Ue.xQ,this._helpers=new Ue.xQ}get controlChanges(){return this._controlChanges.asObservable()}setControl(a){this._controlChanges.next(a)}get helpersChange(){return this._helpers.asObservable()}setHelpers(a){this._helpers.next(a)}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})();var Di=(()=>(function(c){c.NONE="NONE",c.VALID="VALID",c.INVALID="INVALID"}(Di||(Di={})),Di))();let Ys=(()=>{class c{constructor(a){this.ngControlService=a,this.subscriptions=[],this._statusChanges=new Gn.X(Di.NONE),this.subscriptions.push(this.ngControlService.controlChanges.subscribe(g=>{g&&(this.control=g,this.subscriptions.push(this.control.statusChanges.subscribe(()=>{this.triggerStatusChange()})))}))}get statusChanges(){return this._statusChanges.asObservable()}triggerStatusChange(){if(this.control){const a=Di[this.control.status];this._statusChanges.next(["VALID","INVALID"].includes(a)?a:Di.NONE)}}ngOnDestroy(){this.subscriptions.forEach(a=>a.unsubscribe())}}return c.\u0275fac=function(a){return new(a||c)(l.LFG(Ds))},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})();var ma=(()=>(function(c){c.VERTICAL="vertical",c.HORIZONTAL="horizontal",c.COMPACT="compact"}(ma||(ma={})),ma))();let yo=(()=>{class c{constructor(){this.minLabelSize=1,this.maxLabelSize=12,this.layout=ma.HORIZONTAL,this.layoutValues=Object.keys(ma).map(a=>ma[a]),this._labelSize=2}set labelSize(a){this.labelSizeIsValid(a)&&(this._labelSize=a)}get labelSize(){return this._labelSize}isVertical(){return this.layout===ma.VERTICAL}isHorizontal(){return this.layout===ma.HORIZONTAL}isCompact(){return this.layout===ma.COMPACT}get layoutClass(){return`clr-form-${this.layout}`}isValid(a){return this.layoutValues.indexOf(a)>-1}labelSizeIsValid(a){return Number.isInteger(a)&&a>=this.minLabelSize&&a<=this.maxLabelSize}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})(),ci=(()=>{class c{constructor(a,g,b,x,$){this.controlIdService=a,this.layoutService=g,this.ngControlService=b,this.renderer=x,this.el=$,this.subscriptions=[],this.enableGrid=!0}get labelText(){return this.el.nativeElement&&this.el.nativeElement.textContent}ngOnInit(){(this.controlIdService||this.ngControlService)&&this.renderer.addClass(this.el.nativeElement,"clr-control-label"),this.enableGrid&&this.layoutService&&!this.layoutService.isVertical()&&this.el.nativeElement&&this.el.nativeElement.className.indexOf("clr-col")<0&&(this.renderer.addClass(this.el.nativeElement,"clr-col-12"),this.renderer.addClass(this.el.nativeElement,`clr-col-md-${this.layoutService.labelSize}`)),this.controlIdService&&!this.forAttr&&this.subscriptions.push(this.controlIdService.idChange.subscribe(a=>this.forAttr=a))}disableGrid(){this.enableGrid=!1}ngOnDestroy(){this.subscriptions.forEach(a=>a.unsubscribe())}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(Gs,8),l.Y36(yo,8),l.Y36(Ds,8),l.Y36(l.Qsj),l.Y36(l.SBq))},c.\u0275dir=l.lG2({type:c,selectors:[["label"]],hostVars:1,hostBindings:function(a,g){2&a&&l.uIk("for",g.forAttr)},inputs:{forAttr:["for","forAttr"]}}),c})(),ql=(()=>{class c extends Xh{constructor(a,g){super(a,g),this.controlIdService=a,this.containerIdService=g,this.controlIdSuffix="success"}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(Gs,8),l.Y36(Ql,8))},c.\u0275cmp=l.Xpm({type:c,selectors:[["clr-control-success"]],hostVars:3,hostBindings:function(a,g){2&a&&(l.uIk("id",g.id),l.ekj("clr-subtext",!0))},features:[l.qOj],ngContentSelectors:Dt,decls:1,vars:0,template:function(a,g){1&a&&(l.F$t(),l.Hsn(0))},encapsulation:2}),c})(),Zs=(()=>{class c{constructor(a){this.layoutService=a,this.className=""}controlClass(a=Di.NONE,g=!1,b=""){const x=[this.className,b];switch(a){case Di.VALID:x.push("clr-success");break;case Di.INVALID:x.push("clr-error")}return g&&this.layoutService&&-1===this.className.indexOf("clr-col")&&x.push(`clr-col-md-${this.layoutService.maxLabelSize-this.layoutService.labelSize} clr-col-12`),x.join(" ").trim()}initControlClass(a,g){g&&g.className&&(this.className=g.className,g.className.split(" ").forEach(x=>{x.startsWith("clr-col")&&a.removeClass(g,x)}))}}return c.\u0275fac=function(a){return new(a||c)(l.LFG(yo,8))},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})(),Yc=(()=>{class c{constructor(a,g,b,x){this.ifControlStateService=a,this.layoutService=g,this.controlClassService=b,this.ngControlService=x,this.subscriptions=[],this._dynamic=!1,this.subscriptions.push(this.ifControlStateService.statusChanges.subscribe($=>{this.state=$,this.updateHelpers()})),this.subscriptions.push(this.ngControlService.controlChanges.subscribe($=>{this.control=$}))}get showHelper(){return!!this.controlHelperComponent&&(!!this.controlHelperComponent&&(!this.touched||this.state===Di.NONE)||!this.controlSuccessComponent&&this.state===Di.VALID||!this.controlErrorComponent&&this.state===Di.INVALID)}get showValid(){return this.touched&&this.state===Di.VALID&&!!this.controlSuccessComponent}get showInvalid(){return this.touched&&this.state===Di.INVALID&&!!this.controlErrorComponent}ngAfterContentInit(){this.updateHelpers()}ngOnDestroy(){this.subscriptions.forEach(a=>a.unsubscribe())}controlClass(){return this.controlClassService.controlClass(!this.controlSuccessComponent&&this.state===Di.VALID||!this.touched?Di.NONE:this.state,this.addGrid())}addGrid(){return this.layoutService&&!this.layoutService.isVertical()}updateHelpers(){this.ngControlService&&this.ngControlService.setHelpers({show:this.showInvalid||this.showHelper||this.showValid,showInvalid:this.showInvalid,showHelper:this.showHelper,showValid:this.showValid})}get touched(){return this.control?.touched}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(Ys),l.Y36(yo,8),l.Y36(Zs),l.Y36(Ds))},c.\u0275dir=l.lG2({type:c,contentQueries:function(a,g,b){if(1&a&&(l.Suo(b,ci,5),l.Suo(b,ql,5),l.Suo(b,Hr,5),l.Suo(b,ef,5)),2&a){let x;l.iGM(x=l.CRH())&&(g.label=x.first),l.iGM(x=l.CRH())&&(g.controlSuccessComponent=x.first),l.iGM(x=l.CRH())&&(g.controlErrorComponent=x.first),l.iGM(x=l.CRH())&&(g.controlHelperComponent=x.first)}}}),c})();class tf{constructor(f,a,g=0){if(this.injector=a.injector,!this.injector.get(f,null)){const b=this.injector.get(l._Vd),x=this.injector.get(l.SBq);a.createComponent(b.resolveComponentFactory(pm));const $=b.resolveComponentFactory(f),le=[];le[g]=[x.nativeElement];const Se=a.createComponent($,void 0,void 0,le);a.remove(0),Se.instance._dynamic=!0,this.injector=Se.injector}}get(f,a){return this.injector.get(f,a)}}let Zc=(()=>{class c{constructor(){this._touched=new Ue.xQ}get touchedChange(){return this._touched.asObservable()}markAsTouched(){this._touched.next()}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})(),Wa=(()=>{class c{constructor(a,g,b,x,$,le){this.vcr=a,this.wrapperType=g,this.ngControl=x,this.subscriptions=[],this.index=0,this.renderer=$,this.el=le;try{this.ngControlService=b.get(Ds),this.ifControlStateService=b.get(Ys),this.controlClassService=b.get(Zs),this.markControlService=b.get(Zc)}catch{}this.controlClassService&&this.controlClassService.initControlClass($,le.nativeElement),this.markControlService&&this.subscriptions.push(this.markControlService.touchedChange.subscribe(()=>{this.markAsTouched()})),this.ngControlService&&this.subscriptions.push(this.ngControlService.helpersChange.subscribe(Se=>{this.setAriaDescribedBy(Se)}))}get id(){return this._id}set id(a){this._id=a,this.controlIdService&&(this.controlIdService.id=a)}triggerValidation(){this.ifControlStateService&&this.ifControlStateService.triggerStatusChange()}markAsTouched(){this.ngControl.control.markAsTouched(),this.ngControl.control.updateValueAndValidity()}getProviderFromContainer(a,g){try{return this._containerInjector.get(a,g)}catch{return g}}ngOnInit(){this._containerInjector=new tf(this.wrapperType,this.vcr,this.index),this.controlIdService=this._containerInjector.get(Gs);try{this.containerIdService=this._containerInjector.get(Ql)}catch{}this._id?this.controlIdService.id=this._id:this._id=this.controlIdService.id,this.ngControlService&&this.ngControlService.setControl(this.ngControl)}ngOnDestroy(){this.subscriptions.forEach(a=>a.unsubscribe())}setAriaDescribedBy(a){if(a.show){const g=this.getAriaDescribedById(a);if(null!==g)return void this.renderer.setAttribute(this.el.nativeElement,"aria-describedby",g)}this.renderer.removeAttribute(this.el.nativeElement,"aria-describedby")}getAriaDescribedById(a){let g="helper";return a.showInvalid?g="error":a.showValid&&(g="success"),this.containerIdService?this.containerIdService.id.concat("-",g):this.controlIdService?this.controlIdService.id.concat("-",g):null}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(l.s_b),l.Y36(l.DyG),l.Y36(l.zs3),l.Y36(ot.a5),l.Y36(l.Qsj),l.Y36(l.SBq))},c.\u0275dir=l.lG2({type:c,hostVars:1,hostBindings:function(a,g){1&a&&l.NdJ("blur",function(){return g.triggerValidation()}),2&a&&l.Ikx("id",g.id)},inputs:{id:"id"}}),c})(),BC=(()=>{class c{constructor(a,g){this.layoutService=a,this.markControlService=g}set labelSize(a){const g=parseInt(a,10)||2;this.layoutService.labelSize=g}markAsTouched(){this.markControlService.markAsTouched()}onFormSubmit(){this.markAsTouched()}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(yo),l.Y36(Zc))},c.\u0275dir=l.lG2({type:c,selectors:[["","clrForm",""]],contentQueries:function(a,g,b){if(1&a&&l.Suo(b,ci,5),2&a){let x;l.iGM(x=l.CRH())&&(g.labels=x)}},hostVars:6,hostBindings:function(a,g){1&a&&l.NdJ("submit",function(){return g.onFormSubmit()}),2&a&&l.ekj("clr-form",!0)("clr-form-horizontal",g.layoutService.isHorizontal())("clr-form-compact",g.layoutService.isCompact())},inputs:{labelSize:["clrLabelSize","labelSize"]},features:[l._Bn([yo,Zc])]}),c})(),Co=(()=>{class c{constructor(a){this.layoutService=a}ngOnInit(){this.layout&&this.layoutService.isValid(this.layout)&&(this.layoutService.layout=this.layout)}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(yo))},c.\u0275dir=l.lG2({type:c,selectors:[["","clrForm","","clrLayout",""]],inputs:{layout:["clrLayout","layout"]}}),c})(),jr=(()=>{class c{constructor(){Et.addIcons(rn,Mr)}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez,In]]}),c})();const id=new l.OlP("IS_TOGGLE"),zC={provide:id,useFactory:function jC(){return new Gn.X(!1)}};let sd=(()=>{class c{constructor(a){this._dynamic=!1,this.toggle=!1,this.subscriptions=[],this.subscriptions.push(a.subscribe(g=>{this.toggle=g}))}ngOnInit(){this.label&&this.label.disableGrid()}ngOnDestroy(){this.subscriptions.forEach(a=>a.unsubscribe())}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(id))},c.\u0275cmp=l.Xpm({type:c,selectors:[["clr-checkbox-wrapper"],["clr-toggle-wrapper"]],contentQueries:function(a,g,b){if(1&a&&l.Suo(b,ci,7),2&a){let x;l.iGM(x=l.CRH())&&(g.label=x.first)}},hostVars:4,hostBindings:function(a,g){2&a&&l.ekj("clr-checkbox-wrapper",!g.toggle)("clr-toggle-wrapper",g.toggle)},features:[l._Bn([Gs,zC])],ngContentSelectors:k_,decls:3,vars:1,consts:[[4,"ngIf"]],template:function(a,g){1&a&&(l.F$t(Pp),l.Hsn(0),l.Hsn(1,1),l.YNc(2,F_,1,0,"label",0)),2&a&&(l.xp6(2),l.Q6J("ngIf",!g.label))},dependencies:[M.O5,ci],encapsulation:2}),c})(),od=(()=>{class c extends Wa{constructor(a,g,b,x,$,le){super(a,sd,g,b,x,$),this.toggle=le}ngOnInit(){super.ngOnInit();const a=this.getProviderFromContainer(id,null);a&&null!==this.toggle&&a.next(!0)}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(l.s_b),l.Y36(l.zs3),l.Y36(ot.a5,10),l.Y36(l.Qsj),l.Y36(l.SBq),l.$8M("clrToggle"))},c.\u0275dir=l.lG2({type:c,selectors:[["","clrCheckbox",""],["","clrToggle",""]],features:[l.qOj]}),c})(),nf=(()=>{class c extends Yc{constructor(a,g,b,x){super(x,a,g,b),this.layoutService=a,this.controlClassService=g,this.ngControlService=b,this.ifControlStateService=x,this.inline=!1}set clrInline(a){this.inline="string"==typeof a?"false"!==a:!!a}get clrInline(){return this.inline}ngAfterContentInit(){this.setAriaRoles()}setAriaRoles(){this.role=this.checkboxes.length?"group":null}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(yo,8),l.Y36(Zs),l.Y36(Ds),l.Y36(Ys))},c.\u0275cmp=l.Xpm({type:c,selectors:[["clr-checkbox-container"],["clr-toggle-container"]],contentQueries:function(a,g,b){if(1&a&&l.Suo(b,od,5),2&a){let x;l.iGM(x=l.CRH())&&(g.checkboxes=x)}},hostVars:7,hostBindings:function(a,g){2&a&&(l.uIk("role",g.role),l.ekj("clr-form-control",!0)("clr-form-control-disabled",null==g.control?null:g.control.disabled)("clr-row",g.addGrid()))},inputs:{clrInline:"clrInline"},features:[l._Bn([Ys,Ds,Zs,Ql]),l.qOj],ngContentSelectors:R_,decls:10,vars:9,consts:[[4,"ngIf"],[1,"clr-control-container",3,"ngClass"],[1,"clr-subtext-wrapper"],["class","clr-validate-icon","shape","exclamation-circle","status","danger","aria-hidden","true",4,"ngIf"],["class","clr-validate-icon","shape","check-circle","status","success","aria-hidden","true",4,"ngIf"],["shape","exclamation-circle","status","danger","aria-hidden","true",1,"clr-validate-icon"],["shape","check-circle","status","success","aria-hidden","true",1,"clr-validate-icon"]],template:function(a,g){1&a&&(l.F$t(N_),l.Hsn(0),l.YNc(1,P_,1,0,"label",0),l.TgZ(2,"div",1),l.Hsn(3,1),l.TgZ(4,"div",2),l.YNc(5,Np,1,0,"ng-content",0),l.YNc(6,ch,1,0,"cds-icon",3),l.YNc(7,Pu,1,0,"cds-icon",4),l.YNc(8,uh,1,0,"ng-content",0),l.YNc(9,al,1,0,"ng-content",0),l.qZA()()),2&a&&(l.xp6(1),l.Q6J("ngIf",!g.label&&g.addGrid()),l.xp6(1),l.ekj("clr-control-inline",g.clrInline),l.Q6J("ngClass",g.controlClass()),l.xp6(3),l.Q6J("ngIf",g.showHelper),l.xp6(1),l.Q6J("ngIf",g.showInvalid),l.xp6(1),l.Q6J("ngIf",g.showValid),l.xp6(1),l.Q6J("ngIf",g.showInvalid),l.xp6(1),l.Q6J("ngIf",g.showValid))},dependencies:[M.O5,ci,M.mk,Jt],encapsulation:2}),c})(),Wc=(()=>{class c{constructor(){Et.addIcons(rn,Mr)}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez,In,jr,Gc],jr]}),c})();function Ws(c){return null!==c&&("string"==typeof c?c.length>=0:"boolean"==typeof c&&c)}let Jl=(()=>{class c{get spinnerClass(){return!0}get inlineClass(){return this._inline}set clrInline(a){this._inline=Ws(a)}get inverseClass(){return this._inverse}set clrInverse(a){this._inverse=Ws(a)}get smallClass(){return this._small}set clrSmall(a){this._small=Ws(a)}get mediumClass(){return!this._small&&this._medium}set clrMedium(a){this._medium=Ws(a)}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275cmp=l.Xpm({type:c,selectors:[["clr-spinner"]],hostVars:11,hostBindings:function(a,g){2&a&&(l.uIk("aria-busy",!0),l.ekj("spinner",g.spinnerClass)("spinner-inline",g.inlineClass)("spinner-inverse",g.inverseClass)("spinner-sm",g.smallClass)("spinner-md",g.mediumClass))},inputs:{clrInline:"clrInline",clrInverse:"clrInverse",clrSmall:"clrSmall",clrMedium:"clrMedium"},ngContentSelectors:Dt,decls:1,vars:0,template:function(a,g){1&a&&(l.F$t(),l.Hsn(0))},encapsulation:2}),c})(),Kl=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez]]}),c})(),qc=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez]]}),c})();const ya=new l.OlP("POPOVER_HOST_ANCHOR");class Jc{}function rf(c){return[c,{provide:Jc,useExisting:c}]}class Cm extends class ym{containsItem(f){return this.model===f}select(f){this.model=f}unselect(f){this.containsItem(f)&&(this.model=null)}isEmpty(){return!this.model}pop(){const f=this.model;return this.model=null,f}toString(f){return this.model?f&&this.model[f]?this.model[f]:this.model.toString():""}}{constructor(){super(...arguments),this._focusChanged=new Gn.X(null)}get focusChanged(){return this._focusChanged.asObservable()}select(f){this.model!==f&&(this.model=f,this._focusChanged.next(f))}}let YC=(()=>{class c{constructor(){this.loading=!1,this._currentInput="",this._inputChanged=new Gn.X(""),this.inputChanged=this._inputChanged.asObservable(),this._selectionChanged=new Zr(1)}get currentInput(){return this._currentInput}set currentInput(a){""===a&&!this.multiselectable&&this.setSelectionValue(null),this._currentInput=a,this._inputChanged.next(a)}get selectionChanged(){return this._selectionChanged.asObservable()}select(a){null==a||this.selectionModel.containsItem(a)||(this.selectionModel.select(a),this._selectionChanged.next(this.selectionModel))}toggle(a){null!=a&&(this.selectionModel.containsItem(a)?this.selectionModel.unselect(a):this.selectionModel.select(a),this._selectionChanged.next(this.selectionModel))}unselect(a){null==a||!this.selectionModel.containsItem(a)||(this.selectionModel.unselect(a),this._selectionChanged.next(this.selectionModel))}get multiselectable(){return this.selectionModel instanceof class _m{containsItem(f){return!!this.model&&this.model.includes(f)}select(f){this.addItem(f)}unselect(f){this.removeItem(f)}isEmpty(){return!(this.model&&this.model.length>0)}pop(){let f;return this.model&&this.model.length>0&&(f=this.model[this.model.length-1],this.removeItem(f)),f}toString(f,a=-1){let g="";return this.model&&(a>-1?this.model[a]&&(g+=f&&this.model[a][f]?this.model[a][f]:this.model[a].toString()):this.model.forEach(b=>{g+=f&&b[f]?b[f]:b.toString(),g+=" "})),g.trim()}addItem(f){this.containsItem(f)||(this.model=this.model||[],this.model.push(f))}removeItem(f){if(null==this.model)return;const a=this.model.indexOf(f);a>-1&&this.model.splice(a,1),0===this.model.length&&(this.model=null)}}}setSelectionValue(a){!this.selectionModel||this.selectionModel.model===a||!this.selectionModel.model&&!a||(this.selectionModel.model=a,this._selectionChanged.next(this.selectionModel))}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})();rf((()=>{class c{constructor(a,g,b,x){this.toggleService=g,this.selectionService=b,this.platformId=x,this.pseudoFocus=new Cm,this.optionData=[],this.handleFocusSubscription(),this.renderer=a.createRenderer(null,null)}handleFocusSubscription(){this.toggleService.openChange.subscribe(a=>{a||(this.pseudoFocus.model=null)})}get trigger(){return this._trigger}set trigger(a){this._trigger=a,this.addFocusOnBlurListener(a)}get listbox(){return this._listbox}set listbox(a){this._listbox=a,this.addFocusOnBlurListener(a)}get textInput(){return this._textInput}set textInput(a){this._textInput=a,this.renderer.listen(a,"keydown",g=>!this.handleTextInput(g)),this.addFocusOnBlurListener(a)}moveFocusTo(a){let g=this.optionData.findIndex(b=>b.equals(this.pseudoFocus.model));a===qi.UP?-1===g||0===g?g=this.optionData.length-1:g--:a===qi.DOWN&&(-1===g||g===this.optionData.length-1?g=0:g++),this.pseudoFocus.select(this.optionData[g]),this.scrollIntoSelectedModel()}openAndMoveTo(a){this.toggleService.open?this.moveFocusTo(a):(this.toggleService.openChange.pipe((0,Oo.q)(1)).subscribe(g=>{g&&this.moveFocusTo(a)}),this.toggleService.open=!0)}handleTextInput(a){let g=!1;const b=mo(a.key);if(a)switch(b){case ht.Enter:this.toggleService.open&&this.pseudoFocus.model&&(this.selectionService.multiselectable?this.selectionService.toggle(this.pseudoFocus.model.value):this.selectionService.select(this.pseudoFocus.model.value),g=!0);break;case ht.Space:this.toggleService.open||(this.toggleService.open=!0,g=!0);break;case ht.ArrowUp:this.preventViewportScrolling(a),this.openAndMoveTo(qi.UP),g=!0;break;case ht.ArrowDown:this.preventViewportScrolling(a),this.openAndMoveTo(qi.DOWN),g=!0;break;default:a.key!==ht.Tab&&(!this.selectionService.multiselectable||a.key!==ht.Backspace)&&a.key!==ht.Escape&&!this.toggleService.open&&(this.toggleService.open=!0)}return g}scrollIntoSelectedModel(a="smooth"){this.pseudoFocus.model&&this.pseudoFocus.model.el&&this.pseudoFocus.model.el.scrollIntoView({behavior:a,block:"center",inline:"nearest"})}preventViewportScrolling(a){a.preventDefault(),a.stopImmediatePropagation()}focusInput(){this.textInput&&(0,M.NF)(this.platformId)&&this.textInput.focus()}addFocusOnBlurListener(a){(0,M.NF)(this.platformId)&&this.renderer.listen(a,"blur",g=>{this.focusOutOfComponent(g)&&(this.toggleService.open=!1,this.componentCdRef&&this.componentCdRef.detectChanges())})}focusOutOfComponent(a){const g=a.relatedTarget||document.activeElement;return!(this.textInput.contains(g)||this.trigger.contains(g)||this.listbox.contains(g))}focusFirstActive(){if(this.optionData.length>0)if(this.selectionService.selectionModel.isEmpty())this.pseudoFocus.select(this.optionData[0]);else{let a;a=this.selectionService.multiselectable?this.selectionService.selectionModel.model[0]:this.selectionService.selectionModel.model;const g=this.optionData.find(b=>b.value===a);this.pseudoFocus.select(g||this.optionData[0]),this.scrollIntoSelectedModel("auto")}}addOptionValues(a){this.optionData=a}}return c.\u0275fac=function(a){return new(a||c)(l.LFG(l.FYo),l.LFG(Sn),l.LFG(YC),l.LFG(l.Lbi))},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})());let ZC=(()=>{class c{constructor(){Et.addIcons(rn,Mr,$n,xs)}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez,ot.u5,In,qc,jr,Ss,Nc,Kl],jr,Ss]}),c})(),bm=(()=>{class c extends Yc{}return c.\u0275fac=function(){let f;return function(g){return(f||(f=l.n5z(c)))(g||c)}}(),c.\u0275cmp=l.Xpm({type:c,selectors:[["clr-input-container"]],hostVars:6,hostBindings:function(a,g){2&a&&l.ekj("clr-form-control",!0)("clr-form-control-disabled",null==g.control?null:g.control.disabled)("clr-row",g.addGrid())},features:[l._Bn([Ys,Ds,Gs,Zs]),l.qOj],ngContentSelectors:Z_,decls:10,vars:7,consts:[[4,"ngIf"],[1,"clr-control-container",3,"ngClass"],[1,"clr-input-wrapper"],["class","clr-validate-icon","shape","exclamation-circle","status","danger","aria-hidden","true",4,"ngIf"],["class","clr-validate-icon","shape","check-circle","status","success","aria-hidden","true",4,"ngIf"],["shape","exclamation-circle","status","danger","aria-hidden","true",1,"clr-validate-icon"],["shape","check-circle","status","success","aria-hidden","true",1,"clr-validate-icon"]],template:function(a,g){1&a&&(l.F$t(Y_),l.Hsn(0),l.YNc(1,J0,1,0,"label",0),l.TgZ(2,"div",1)(3,"div",2),l.Hsn(4,1),l.YNc(5,K0,1,0,"cds-icon",3),l.YNc(6,X0,1,0,"cds-icon",4),l.qZA(),l.YNc(7,Vp,1,0,"ng-content",0),l.YNc(8,$_,1,0,"ng-content",0),l.YNc(9,G_,1,0,"ng-content",0),l.qZA()),2&a&&(l.xp6(1),l.Q6J("ngIf",!g.label&&g.addGrid()),l.xp6(1),l.Q6J("ngClass",g.controlClass()),l.xp6(3),l.Q6J("ngIf",g.showInvalid),l.xp6(1),l.Q6J("ngIf",g.showValid),l.xp6(1),l.Q6J("ngIf",g.showHelper),l.xp6(1),l.Q6J("ngIf",g.showInvalid),l.xp6(1),l.Q6J("ngIf",g.showValid))},dependencies:[M.O5,ci,M.mk,Jt],encapsulation:2}),c})(),WC=(()=>{class c extends Wa{constructor(a,g,b,x,$){super(a,bm,g,b,x,$),this.index=1}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(l.s_b),l.Y36(l.zs3),l.Y36(ot.a5,10),l.Y36(l.Qsj),l.Y36(l.SBq))},c.\u0275dir=l.lG2({type:c,selectors:[["","clrInput",""]],hostVars:2,hostBindings:function(a,g){2&a&&l.ekj("clr-input",!0)},features:[l.qOj]}),c})(),Sm=(()=>{class c{constructor(){Et.addIcons(rn,Mr)}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez,ot.u5,In,jr],jr]}),c})(),Dm=(()=>{class c{constructor(){Et.addIcons(rn,Mr)}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez,Sm,In]]}),c})(),ru=(()=>{class c{constructor(){Et.addIcons(rn,Mr,$n,Io,Ms)}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez,Gc,Ss,Nc,In,$c,jr]]}),c})();new l.OlP(void 0);let Nm=(()=>{class c{constructor(){Et.addIcons(Os,ei,rn,Mr)}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez,ot.u5,In,jr],jr]}),c})(),Rm=(()=>{class c{constructor(){this._dynamic=!1}ngOnInit(){this.label&&this.label.disableGrid()}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275cmp=l.Xpm({type:c,selectors:[["clr-radio-wrapper"]],contentQueries:function(a,g,b){if(1&a&&l.Suo(b,ci,7),2&a){let x;l.iGM(x=l.CRH())&&(g.label=x.first)}},hostVars:2,hostBindings:function(a,g){2&a&&l.ekj("clr-radio-wrapper",!0)},features:[l._Bn([Gs])],ngContentSelectors:$p,decls:3,vars:1,consts:[[4,"ngIf"]],template:function(a,g){1&a&&(l.F$t(Up),l.Hsn(0),l.Hsn(1,1),l.YNc(2,mh,1,0,"label",0)),2&a&&(l.xp6(2),l.Q6J("ngIf",!g.label))},dependencies:[M.O5,ci],encapsulation:2}),c})(),ob=(()=>{class c extends Wa{constructor(a,g,b,x,$){super(a,Rm,g,b,x,$)}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(l.s_b),l.Y36(l.zs3),l.Y36(ot.a5,10),l.Y36(l.Qsj),l.Y36(l.SBq))},c.\u0275dir=l.lG2({type:c,selectors:[["","clrRadio",""]],features:[l.qOj]}),c})(),lb=(()=>{class c{constructor(){Et.addIcons(rn,Mr)}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez,jr,Gc,In],jr]}),c})(),Lm=(()=>{class c extends Yc{constructor(a,g,b,x,$,le){super(le,a,g,b),this.renderer=x,this.idService=$,this.ifControlStateService=le,this._hasProgress=!1}set hasProgress(a){const g=!!a;g!==this._hasProgress&&(this._hasProgress=g)}get hasProgress(){return this._hasProgress}getRangeProgressFillWidth(){const a=this.renderer.selectRootElement("[clrRange]#"+this.idService.id),b=+a.min;let x=+a.max;return 0===b&&0===x&&(x=100),100*((this.control&&void 0!==this.control.value?this.control.value:(b+x)/2)-b)/(x-b)*a.offsetWidth/100+"px"}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(yo,8),l.Y36(Zs),l.Y36(Ds),l.Y36(l.Qsj),l.Y36(Gs),l.Y36(Ys))},c.\u0275cmp=l.Xpm({type:c,selectors:[["clr-range-container"]],hostVars:6,hostBindings:function(a,g){2&a&&l.ekj("clr-form-control",!0)("clr-form-control-disabled",null==g.control?null:g.control.disabled)("clr-row",g.addGrid())},inputs:{hasProgress:["clrRangeHasProgress","hasProgress"]},features:[l._Bn([Ys,Ds,Gs,Zs]),l.qOj],ngContentSelectors:Bu,decls:11,vars:10,consts:[[4,"ngIf"],[1,"clr-control-container",3,"ngClass"],[1,"clr-range-wrapper"],["class","fill-input",3,"width",4,"ngIf"],["class","clr-validate-icon","shape","exclamation-circle","status","danger","aria-hidden","true",4,"ngIf"],["class","clr-validate-icon","shape","check-circle","status","success","aria-hidden","true",4,"ngIf"],[1,"fill-input"],["shape","exclamation-circle","status","danger","aria-hidden","true",1,"clr-validate-icon"],["shape","check-circle","status","success","aria-hidden","true",1,"clr-validate-icon"]],template:function(a,g){1&a&&(l.F$t(_h),l.Hsn(0),l.YNc(1,Zp,1,0,"label",0),l.TgZ(2,"div",1)(3,"div",2),l.Hsn(4,1),l.YNc(5,Wp,1,2,"span",3),l.YNc(6,ll,1,0,"cds-icon",4),l.YNc(7,ly,1,0,"cds-icon",5),l.qZA(),l.YNc(8,vh,1,0,"ng-content",0),l.YNc(9,Vu,1,0,"ng-content",0),l.YNc(10,cy,1,0,"ng-content",0),l.qZA()),2&a&&(l.xp6(1),l.Q6J("ngIf",!g.label&&g.addGrid()),l.xp6(1),l.Q6J("ngClass",g.controlClass()),l.xp6(1),l.ekj("progress-fill",g.hasProgress),l.xp6(2),l.Q6J("ngIf",g.hasProgress),l.xp6(1),l.Q6J("ngIf",g.showInvalid),l.xp6(1),l.Q6J("ngIf",g.showValid),l.xp6(1),l.Q6J("ngIf",g.showHelper),l.xp6(1),l.Q6J("ngIf",g.showInvalid),l.xp6(1),l.Q6J("ngIf",g.showValid))},dependencies:[M.O5,ci,M.mk,Jt],encapsulation:2}),c})(),pD=(()=>{class c extends Wa{constructor(a,g,b,x,$){super(a,Lm,g,b,x,$)}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(l.s_b),l.Y36(l.zs3),l.Y36(ot.a5,10),l.Y36(l.Qsj),l.Y36(l.SBq))},c.\u0275dir=l.lG2({type:c,selectors:[["","clrRange",""]],hostVars:2,hostBindings:function(a,g){2&a&&l.ekj("clr-range",!0)},features:[l.qOj]}),c})(),gD=(()=>{class c{constructor(){Et.addIcons(rn,Mr)}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez,jr,Gc,In],jr]}),c})(),cb=(()=>{class c extends Yc{constructor(a,g,b,x){super(x,a,g,b),this.layoutService=a,this.controlClassService=g,this.ngControlService=b,this.ifControlStateService=x,this.multi=!1}ngOnInit(){this.subscriptions.push(this.ngControlService.controlChanges.subscribe(a=>{a&&(this.multi=a.valueAccessor instanceof ot.K7,this.control=a)}))}wrapperClass(){return this.multi?"clr-multiselect-wrapper":"clr-select-wrapper"}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(yo,8),l.Y36(Zs),l.Y36(Ds),l.Y36(Ys))},c.\u0275cmp=l.Xpm({type:c,selectors:[["clr-select-container"]],contentQueries:function(a,g,b){if(1&a&&l.Suo(b,ot.K7,5),2&a){let x;l.iGM(x=l.CRH())&&(g.multiple=x.first)}},hostVars:6,hostBindings:function(a,g){2&a&&l.ekj("clr-form-control",!0)("clr-form-control-disabled",null==g.control?null:g.control.disabled)("clr-row",g.addGrid())},features:[l._Bn([Ys,Ds,Gs,Zs]),l.qOj],ngContentSelectors:hy,decls:10,vars:8,consts:[[4,"ngIf"],[1,"clr-control-container",3,"ngClass"],[3,"ngClass"],["class","clr-validate-icon","shape","exclamation-circle","status","danger","aria-hidden","true",4,"ngIf"],["class","clr-validate-icon","shape","check-circle","status","success","aria-hidden","true",4,"ngIf"],["shape","exclamation-circle","status","danger","aria-hidden","true",1,"clr-validate-icon"],["shape","check-circle","status","success","aria-hidden","true",1,"clr-validate-icon"]],template:function(a,g){1&a&&(l.F$t(Pl),l.Hsn(0),l.YNc(1,cl,1,0,"label",0),l.TgZ(2,"div",1)(3,"div",2),l.Hsn(4,1),l.YNc(5,Qp,1,0,"cds-icon",3),l.YNc(6,yh,1,0,"cds-icon",4),l.qZA(),l.YNc(7,uy,1,0,"ng-content",0),l.YNc(8,dy,1,0,"ng-content",0),l.YNc(9,qp,1,0,"ng-content",0),l.qZA()),2&a&&(l.xp6(1),l.Q6J("ngIf",!g.label&&g.addGrid()),l.xp6(1),l.Q6J("ngClass",g.controlClass()),l.xp6(1),l.Q6J("ngClass",g.wrapperClass()),l.xp6(2),l.Q6J("ngIf",g.showInvalid),l.xp6(1),l.Q6J("ngIf",g.showValid),l.xp6(1),l.Q6J("ngIf",g.showHelper),l.xp6(1),l.Q6J("ngIf",g.showInvalid),l.xp6(1),l.Q6J("ngIf",g.showValid))},dependencies:[M.O5,ci,M.mk,Jt],encapsulation:2}),c})(),mD=(()=>{class c extends Wa{constructor(a,g,b,x,$){super(a,cb,g,b,x,$),this.index=1}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(l.s_b),l.Y36(l.zs3),l.Y36(ot.a5,10),l.Y36(l.Qsj),l.Y36(l.SBq))},c.\u0275dir=l.lG2({type:c,selectors:[["","clrSelect",""]],hostVars:2,hostBindings:function(a,g){2&a&&l.ekj("clr-select",!0)},features:[l.qOj]}),c})(),Vm=(()=>{class c{constructor(){Et.addIcons(rn,Mr)}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez,ot.u5,In,jr],jr]}),c})(),ub=(()=>{class c{constructor(){Et.addIcons(rn,Mr)}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez,ot.u5,In,jr],jr]}),c})(),hf=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez],jr,Wc,ZC,ru,Sm,Nm,lb,Vm,ub,gD,Dm]}),c})(),rc=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez]]}),c})(),db=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez]]}),c})();class fd{}let su=(()=>{class c{constructor(){this._change=new Ue.xQ,this.nbChanges=0}get change(){return this._change.asObservable()}changeStart(){this.nbChanges++}changeDone(){0==--this.nbChanges&&this._change.next()}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})(),Sa=(()=>{class c{constructor(a){this.stateDebouncer=a,this.preventEmit=!1,this.activated=!1,this._size=0,this._change=new Ue.xQ,this._sizeChange=new Ue.xQ,this._current=1}get size(){return this._size}set size(a){const g=this._size;a!==g&&(this.preventEmit||this.stateDebouncer.changeStart(),this._size=a,this._current=0===a?1:Math.floor(g/a*(this._current-1))+1,this.preventEmit||(this._change.next(this._current),this._sizeChange.next(this._size),this.stateDebouncer.changeDone())),this.preventEmit=!1}get totalItems(){return this._totalItems||0}set totalItems(a){this._totalItems=a,this.current>this.last&&(this.current=this.last)}get last(){return this._last?this._last:this.size>0&&this.totalItems?Math.ceil(this.totalItems/this.size):1}set last(a){this._last=a}get change(){return this._change.asObservable()}get sizeChange(){return this._sizeChange.asObservable()}get current(){return this._current}set current(a){a!==this._current&&(this.stateDebouncer.changeStart(),this._current=a,this._change.next(a),this.stateDebouncer.changeDone())}previous(){this.current>1&&this.current--}next(){this.current{class c{constructor(a,g){this._page=a,this.stateDebouncer=g,this._change=new Ue.xQ,this._all=[]}get change(){return this._change.asObservable()}hasActiveFilters(){for(const{filter:a}of this._all)if(a&&a.isActive())return!0;return!1}getActiveFilters(){const a=[];for(const{filter:g}of this._all)g&&g.isActive()&&a.push(g);return a}add(a){const g=a.changes.subscribe(()=>this.resetPageAndEmitFilterChange([a]));let b=!1;const x=new pd(a,()=>{if(b)return;g.unsubscribe();const $=this._all.findIndex(le=>le.filter===a);$>=0&&this._all.splice($,1),a.isActive()&&this.resetPageAndEmitFilterChange([]),b=!0});return this._all.push(x),a.isActive()&&this.resetPageAndEmitFilterChange([a]),x}accepts(a){for(const{filter:g}of this._all)if(g&&g.isActive()&&!g.accepts(a))return!1;return!0}resetPageAndEmitFilterChange(a){this.stateDebouncer.changeStart(),this._page.current=1,this._change.next(a),this.stateDebouncer.changeDone()}}return c.\u0275fac=function(a){return new(a||c)(l.LFG(Sa),l.LFG(su))},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})();class pd{constructor(f,a){this.filter=f,this.unregister=a}}let Qa=(()=>{class c{constructor(a){this.filters=a}get filter(){return this.registered&&this.registered.filter}setFilter(a){this.deleteFilter(),a instanceof pd?this.registered=a:a&&(this.registered=this.filters.add(a))}deleteFilter(){this.registered&&(this.registered.unregister(),delete this.registered)}ngOnDestroy(){this.deleteFilter()}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(Da))},c.\u0275dir=l.lG2({type:c}),c})(),ou=(()=>{class c extends Qa{constructor(a,g,b,x,$){super(a),this.commonStrings=g,this.smartToggleService=b,this.platformId=x,this.elementRef=$,this.subs=[],this.ariaExpanded=!1,this.popoverId=Vr(),this.smartPosition={axis:li.VERTICAL,side:bi.AFTER,anchor:ln.END,content:ln.END},this._open=!1,this.openChange=new l.vpe(!1),this.subs.push(b.openChange.subscribe(le=>{this.open=le,this.ariaExpanded=le}))}get open(){return this._open}set open(a){this.open!==(a=!!a)&&(this.smartToggleService.open=a,this.openChange.emit(a),!a&&(0,M.NF)(this.platformId)&&this.anchor.nativeElement.focus(),this._open=a)}set customFilter(a){this.setFilter(a)}get active(){return!!this.filter&&this.filter.isActive()}ngOnChanges(){this.setToggleButtonAriaLabel()}ngOnDestroy(){super.ngOnDestroy(),this.subs.forEach(a=>a.unsubscribe())}setToggleButtonAriaLabel(){const b=this.elementRef.nativeElement?.closest("clr-dg-column")?.querySelector(".datagrid-column-title")?.textContent.trim().toLocaleLowerCase();this.toggleButtonAriaLabel=this.commonStrings.parse(this.commonStrings.keys.datagridFilterAriaLabel,{COLUMN:b||""})}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(Da),l.Y36(an),l.Y36(Sn),l.Y36(l.Lbi),l.Y36(l.SBq))},c.\u0275cmp=l.Xpm({type:c,selectors:[["clr-dg-filter"]],viewQuery:function(a,g){if(1&a&&l.Gf(gS,5,l.SBq),2&a){let b;l.iGM(b=l.CRH())&&(g.anchor=b.first)}},inputs:{open:["clrDgFilterOpen","open"],customFilter:["clrDgFilter","customFilter"]},outputs:{openChange:"clrDgFilterOpenChange"},features:[l._Bn([{provide:fd,useExisting:c}]),l.qOj,l.TTD],ngContentSelectors:Dt,decls:4,vars:13,consts:[["type","button","clrPopoverAnchor","","clrPopoverOpenCloseButton","",1,"datagrid-filter-toggle"],["anchor",""],["solid",""],["class","datagrid-filter","clrFocusTrap","","role","dialog",3,"id",4,"clrPopoverContent","clrPopoverContentAt","clrPopoverContentOutsideClickToClose","clrPopoverContentScrollToClose"],["clrFocusTrap","","role","dialog",1,"datagrid-filter",3,"id"],[1,"datagrid-filter-close-wrapper"],["type","button","clrPopoverCloseButton","",1,"close"],["shape","window-close"]],template:function(a,g){1&a&&(l.F$t(),l.TgZ(0,"button",0,1),l._UZ(2,"cds-icon",2),l.qZA(),l.YNc(3,gy,5,3,"div",3)),2&a&&(l.ekj("datagrid-filter-open",g.open)("datagrid-filtered",g.active),l.uIk("aria-label",g.toggleButtonAriaLabel)("aria-expanded",g.ariaExpanded)("aria-controls",g.popoverId),l.xp6(2),l.uIk("status",g.active?"info":null)("shape",g.active?"filter-grid-circle":"filter-grid"),l.xp6(1),l.Q6J("clrPopoverContent",g.open)("clrPopoverContentAt",g.smartPosition)("clrPopoverContentOutsideClickToClose",!0)("clrPopoverContentScrollToClose",!0))},dependencies:[fa,Pc,Jt,kc,Uo,qg],encapsulation:2}),c})();class gd{constructor(f){this.prop=f,f.indexOf(".")>=0&&(this.splitProp=f.split("."))}getPropValue(f){if(this.splitProp){let a=f;for(const g of this.splitProp){if(null===a||typeof a>"u"||typeof a[g]>"u")return;a=a[g]}return a}return f[this.prop]}}class md{constructor(f,a=!1){this.prop=f,this.exact=a,this.nestedProp=new gd(f)}accepts(f,a,g){const b=this.nestedProp.getPropValue(f);return!(void 0===b||null!==a&&("number"!=typeof b||bg))}}class qa{constructor(f){this.filterFn=f,this._changes=new Ue.xQ,this._low=null,this._high=null}get changes(){return this._changes.asObservable()}get value(){return[this._low,this._high]}set value(f){const a=f[0],g=f[1];(a!==this._low||g!==this._high)&&(this._low=a,this._high=g,this._changes.next([this._low,this._high]))}get low(){return this._low}set low(f){f!==this._low&&(this._low=f,this._changes.next([this._low,this._high]))}get high(){return this._high}set high(f){f!==this._high&&(this._high=f,this._changes.next([this._low,this._high]))}isActive(){return null!==this._low||null!==this.high}accepts(f){return this.filterFn.accepts(f,this._low,this._high)}get state(){return this.filterFn instanceof md?{property:this.filterFn.prop,low:this._low,high:this._high}:this}equals(f){return f instanceof qa&&(f.filterFn instanceof md?this.filterFn instanceof md&&f.filterFn.prop===this.filterFn.prop&&f.low===this._low&&f.high===this._high:f===this)}}let Bm=(()=>{class c extends Qa{constructor(a,g,b,x,$){super(a),this.domAdapter=g,this.commonStrings=b,this.popoverToggleService=x,this.ngZone=$,this.subscriptions=[],this.open=!1,this.filterValueChange=new l.vpe}ngOnDestroy(){super.ngOnDestroy(),this.subscriptions.forEach(a=>{a.unsubscribe()})}get maxPlaceholderValue(){return this.maxPlaceholder||this.commonStrings.keys.maxValue}get minPlaceholderValue(){return this.minPlaceholder||this.commonStrings.keys.minValue}set customNumericFilter(a){this.setFilter(a instanceof pd?a:new qa(a)),this.initFilterValues&&(this.value=this.initFilterValues,delete this.initFilterValues)}ngAfterViewInit(){this.subscriptions.push(this.popoverToggleService.openChange.subscribe(a=>{this.open=a,this.ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this.domAdapter.focus(this.input.nativeElement)})})}))}get value(){return[this.filter.low,this.filter.high]}set value(a){this.filter&&Array.isArray(a)?a&&(a[0]!==this.filter.low||a[1]!==this.filter.high)&&(this.filter.low="number"==typeof a[0]?a[0]:null,this.filter.high="number"==typeof a[1]?a[1]:null,this.filterValueChange.emit(a)):this.initFilterValues=a}get low(){return"number"==typeof this.filter.low&&isFinite(this.filter.low)?this.filter.low:null}set low(a){"number"==typeof a&&a!==this.filter.low?(this.filter.low=a,this.filterValueChange.emit([this.filter.low,this.filter.high])):"number"!=typeof a&&(this.filter.low=null,this.filterValueChange.emit([this.filter.low,this.filter.high]))}get high(){return"number"==typeof this.filter.high&&isFinite(this.filter.high)?this.filter.high:null}set high(a){"number"==typeof a&&a!==this.filter.high?(this.filter.high=a,this.filterValueChange.emit([this.filter.low,this.filter.high])):"number"!=typeof a&&(this.filter.high=null,this.filterValueChange.emit([this.filter.low,this.filter.high]))}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(Da),l.Y36(Br),l.Y36(an),l.Y36(Sn),l.Y36(l.R0b))},c.\u0275cmp=l.Xpm({type:c,selectors:[["clr-dg-numeric-filter"]],viewQuery:function(a,g){if(1&a&&(l.Gf(Tc,5),l.Gf(ou,5)),2&a){let b;l.iGM(b=l.CRH())&&(g.input=b.first),l.iGM(b=l.CRH())&&(g.filterContainer=b.first)}},inputs:{maxPlaceholder:["clrFilterMaxPlaceholder","maxPlaceholder"],minPlaceholder:["clrFilterMinPlaceholder","minPlaceholder"],customNumericFilter:["clrDgNumericFilter","customNumericFilter"],value:["clrFilterValue","value"]},outputs:{filterValueChange:"clrFilterValueChange"},features:[l._Bn([{provide:fd,useExisting:c}]),l.qOj],decls:6,vars:8,consts:[[3,"clrDgFilter","clrDgFilterOpen","clrDgFilterOpenChange"],["type","number","autocomplete","off","name","low",1,"datagrid-numeric-filter-input",3,"ngModel","placeholder","ngModelChange"],["input_low",""],[1,"datagrid-filter-input-spacer"],["type","number","autocomplete","off","name","high",1,"datagrid-numeric-filter-input",3,"ngModel","placeholder","ngModelChange"],["input_high",""]],template:function(a,g){1&a&&(l.TgZ(0,"clr-dg-filter",0),l.NdJ("clrDgFilterOpenChange",function(x){return g.open=x}),l.TgZ(1,"input",1,2),l.NdJ("ngModelChange",function(x){return g.low=x}),l.qZA(),l._UZ(3,"span",3),l.TgZ(4,"input",4,5),l.NdJ("ngModelChange",function(x){return g.high=x}),l.qZA()()),2&a&&(l.Q6J("clrDgFilter",g.registered)("clrDgFilterOpen",g.open),l.xp6(1),l.Q6J("ngModel",g.low)("placeholder",g.minPlaceholderValue),l.uIk("aria-label",g.minPlaceholderValue),l.xp6(3),l.Q6J("ngModel",g.high)("placeholder",g.maxPlaceholderValue),l.uIk("aria-label",g.maxPlaceholderValue))},dependencies:[ou,ot.wV,ot.Fj,ot.JJ,ot.On],encapsulation:2}),c})();class au{constructor(f,a=!1){this.prop=f,this.exact=a,this.nestedProp=new gd(f)}accepts(f,a){const g=this.nestedProp.getPropValue(f);return!(typeof g>"u")&&(this.exact?(""+g).toLowerCase()===a:(""+g).toLowerCase().indexOf(a)>=0)}}class pl{constructor(f){this.filterFn=f,this._changes=new Ue.xQ,this._lowerCaseValue="",this._rawValue=""}get changes(){return this._changes.asObservable()}get lowerCaseValue(){return this._lowerCaseValue}get value(){return this._rawValue}set value(f){f||(f=""),f!==this._rawValue&&(this._rawValue=f,this._lowerCaseValue=f.toLowerCase().trim(),this._changes.next(f))}isActive(){return!!this.value}accepts(f){return this.filterFn.accepts(f,this.lowerCaseValue)}get state(){return this.filterFn instanceof au?{property:this.filterFn.prop,value:this.value}:this}equals(f){return f instanceof pl&&(f.filterFn instanceof au?this.filterFn instanceof au&&f.filterFn.prop===this.filterFn.prop&&f.value===this.value:f===this)}}let vd=(()=>{class c extends Qa{constructor(a,g,b,x,$){super(a),this.domAdapter=g,this.commonStrings=b,this.smartToggleService=x,this.ngZone=$,this.subs=[],this.open=!1,this.filterValueChange=new l.vpe}get placeholderValue(){return this.placeholder||this.commonStrings.keys.filterItems}set customStringFilter(a){this.setFilter(a instanceof pd?a:new pl(a)),this.initFilterValue&&(this.value=this.initFilterValue,delete this.initFilterValue)}ngAfterViewInit(){this.subs.push(this.smartToggleService.openChange.subscribe(a=>{this.open=a,this.ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this.domAdapter.focus(this.input.nativeElement)})})}))}ngOnDestroy(){super.ngOnDestroy(),this.subs.forEach(a=>a.unsubscribe())}get value(){return this.filter.value}set value(a){this.filter&&"string"==typeof a?(a||(a=""),a!==this.filter.value&&(this.filter.value=a,this.filterValueChange.emit(a))):this.initFilterValue=a}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(Da),l.Y36(Br),l.Y36(an),l.Y36(Sn),l.Y36(l.R0b))},c.\u0275cmp=l.Xpm({type:c,selectors:[["clr-dg-string-filter"]],viewQuery:function(a,g){if(1&a&&(l.Gf(my,5),l.Gf(ou,5)),2&a){let b;l.iGM(b=l.CRH())&&(g.input=b.first),l.iGM(b=l.CRH())&&(g.filterContainer=b.first)}},inputs:{placeholder:["clrFilterPlaceholder","placeholder"],customStringFilter:["clrDgStringFilter","customStringFilter"],value:["clrFilterValue","value"]},outputs:{filterValueChange:"clrFilterValueChange"},features:[l._Bn([{provide:fd,useExisting:c}]),l.qOj],decls:3,vars:5,consts:[[3,"clrDgFilter","clrDgFilterOpen","clrDgFilterOpenChange"],["type","text","autocomplete","off","name","search",1,"clr-input",3,"ngModel","placeholder","ngModelChange"],["input",""]],template:function(a,g){1&a&&(l.TgZ(0,"clr-dg-filter",0),l.NdJ("clrDgFilterOpenChange",function(x){return g.open=x}),l.TgZ(1,"input",1,2),l.NdJ("ngModelChange",function(x){return g.value=x}),l.qZA()()),2&a&&(l.Q6J("clrDgFilter",g.registered)("clrDgFilterOpen",g.open),l.xp6(1),l.Q6J("ngModel",g.value)("placeholder",g.placeholderValue),l.uIk("aria-label",g.placeholderValue))},dependencies:[ou,ot.Fj,ot.JJ,ot.On],encapsulation:2}),c})(),_d=(()=>{class c extends jl{}return c.\u0275fac=function(){let f;return function(g){return(f||(f=l.n5z(c)))(g||c)}}(),c.\u0275dir=l.lG2({type:c,selectors:[["clr-datagrid"]],features:[l.qOj]}),c})(),gl=(()=>{class c{constructor(){this.actionableCount=0}register(){this.actionableCount++}unregister(){this.actionableCount--}get hasActionableRow(){return this.actionableCount>0}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})(),ff=(()=>{class c extends zl{constructor(a,g,b){if(!g)throw new Error("clr-dg-row should only be used inside of a clr-datagrid");super(a,g),this.rowActions=b}get flavor(){return this.rowActions.hasActionableRow}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(l.sBO),l.Y36(_d,8),l.Y36(gl))},c.\u0275dir=l.lG2({type:c,selectors:[["clr-datagrid"],["clr-dg-row"]],features:[l.qOj]}),c})(),Do=(()=>{class c{constructor(){this.toggleState=!1,this._state=new Gn.X(this.toggleState),this._enabled=!1}get enabled(){return this._enabled}set enabled(a){this._enabled=a}get stateChange(){return this._state.asObservable()}close(){this.toggleState=!1,this._state.next(this.toggleState),this.button&&(this.button.focus(),this.button=null)}open(a,g){this.cache=a,this.button=g,this.toggleState=!0,this._state.next(this.toggleState)}toggle(a,g){this.isRowOpen(a)||!a?this.close():this.open(a,g)}get state(){return this.cache}isRowOpen(a){return!(!this.toggleState||this.cache!==a)}get isOpen(){return!0===this.toggleState}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})(),ic=(()=>{class c{constructor(a){this.detailService=a,this.expandableCount=0}register(){this.expandableCount++}unregister(){this.expandableCount--}get hasExpandableRow(){return!this.detailService.enabled&&this.expandableCount>0}}return c.\u0275fac=function(a){return new(a||c)(l.LFG(Do))},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})(),Hm=(()=>{class c extends zl{constructor(a,g,b){if(!g)throw new Error("clr-dg-row should only be used inside of a clr-datagrid");super(a,g),this.expandableCount=b}get flavor(){return this.expandableCount.hasExpandableRow}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(l.sBO),l.Y36(_d,8),l.Y36(ic))},c.\u0275dir=l.lG2({type:c,selectors:[["clr-datagrid"],["clr-dg-row"]],features:[l.qOj]}),c})();class sc{constructor(f){this.prop=f,this.nestedProp=new gd(f)}compare(f,a){let g=this.nestedProp.getPropValue(f),b=this.nestedProp.getPropValue(a);return"string"==typeof g&&(g=g.toLowerCase()),"string"==typeof b&&(b=b.toLowerCase()),typeof g>"u"||null===g?typeof b>"u"||null===b?0:1:typeof b>"u"||null===b||gb?1:0}}var wi=(()=>(function(c){c[c.UNSORTED=0]="UNSORTED",c[c.ASC=1]="ASC",c[c.DESC=-1]="DESC"}(wi||(wi={})),wi))();let yd=(()=>{class c{constructor(){this._dynamic=!1}ngAfterViewInit(){this.columnView=this.templateRef.createEmbeddedView(null)}ngOnDestroy(){this.columnView.destroy()}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275cmp=l.Xpm({type:c,selectors:[["dg-wrapped-column"]],viewQuery:function(a,g){if(1&a&&l.Gf(Nl,5),2&a){let b;l.iGM(b=l.CRH())&&(g.templateRef=b.first)}},ngContentSelectors:Dt,decls:2,vars:0,consts:[["columnPortal",""]],template:function(a,g){1&a&&(l.F$t(),l.YNc(0,Ac,1,0,"ng-template",null,0,l.W1O))},encapsulation:2}),c})(),Cd=(()=>{class c{constructor(a){this.stateDebouncer=a,this._reverse=!1,this._change=new Ue.xQ}get comparator(){return this._comparator}set comparator(a){this.stateDebouncer.changeStart(),this._comparator=a,this.emitChange(),this.stateDebouncer.changeDone()}get reverse(){return this._reverse}set reverse(a){this.stateDebouncer.changeStart(),this._reverse=a,this.emitChange(),this.stateDebouncer.changeDone()}emitChange(){this._change.next(this)}get change(){return this._change.asObservable()}toggle(a,g){this.stateDebouncer.changeStart(),this.comparator===a?this._reverse=typeof g<"u"&&g||!this._reverse:(this._comparator=a,this._reverse=typeof g<"u"&&g),this.emitChange(),this.stateDebouncer.changeDone()}clear(){this.comparator=null}compare(a,g){return(this.reverse?-1:1)*this.comparator.compare(a,g)}}return c.\u0275fac=function(a){return new(a||c)(l.LFG(su))},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})();var Es=(()=>(function(c){c[c.ALIGN_COLUMNS=0]="ALIGN_COLUMNS",c[c.CALCULATE_MODE_ON=1]="CALCULATE_MODE_ON",c[c.CALCULATE_MODE_OFF=2]="CALCULATE_MODE_OFF",c[c.CLEAR_WIDTHS=3]="CLEAR_WIDTHS",c[c.COMPUTE_COLUMN_WIDTHS=4]="COMPUTE_COLUMN_WIDTHS"}(Es||(Es={})),Es))();let ml=(()=>{class c{constructor(){this._renderStep=new Ue.xQ,this.alreadySized=!1}get renderStep(){return this._renderStep.asObservable()}filterRenderSteps(a){return this.renderStep.pipe((0,or.h)(g=>a===g))}resize(){this._renderStep.next(Es.CALCULATE_MODE_ON),this.alreadySized&&this._renderStep.next(Es.CLEAR_WIDTHS),this._renderStep.next(Es.COMPUTE_COLUMN_WIDTHS),this._renderStep.next(Es.ALIGN_COLUMNS),this.alreadySized=!0,this._renderStep.next(Es.CALCULATE_MODE_OFF)}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})(),pf=(()=>{class c{constructor(a,g,b){this.el=a,this.domAdapter=g,this.organizer=b,this._resizedBy=0}get resizedBy(){return this._resizedBy}get minColumnWidth(){return this.domAdapter.minWidth(this.el.nativeElement)||96}get maxResizeRange(){return this.widthBeforeResize-this.minColumnWidth}startResize(){this._resizedBy=0,this.isWithinMaxResizeRange=!0,this.widthBeforeResize=this.domAdapter.clientRect(this.el.nativeElement).width}endResize(){this.organizer.resize()}get widthAfterResize(){return this.widthBeforeResize+this._resizedBy}calculateResize(a){a<-this.maxResizeRange?(this._resizedBy=-this.maxResizeRange,this.isWithinMaxResizeRange=!1):(this._resizedBy=a,this.isWithinMaxResizeRange=!0)}}return c.\u0275fac=function(a){return new(a||c)(l.LFG(l.SBq),l.LFG(Br),l.LFG(ml))},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})(),gf=(()=>{class c{constructor(a){this.platformId=a}get tableRef(){return this._tableRef}set tableRef(a){this._tableRef=a}set table(a){(0,M.NF)(this.platformId)&&a.nativeElement&&(this.tableRef=a.nativeElement.querySelector(".datagrid-table"))}getColumnDragHeight(){return this.tableRef?`${this.tableRef.clientHeight}px`:null}}return c.\u0275fac=function(a){return new(a||c)(l.LFG(l.Lbi))},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})(),zm=(()=>{class c{constructor(a,g,b,x,$,le){this.columnResizerService=a,this.renderer=g,this.ngZone=b,this.tableSizeService=x,this.commonString=$,this.document=le,this.columnSeparatorId=Vr(),this.resizeStartedOnKeyDown=!1,this.unlisteners=[]}get resizeTrackerEl(){return this.resizeTrackerRef.nativeElement}get columnHandleEl(){return this.columnHandleRef.nativeElement}ngAfterViewInit(){this.ngZone.runOutsideAngular(()=>{this.unlisteners.push(this.renderer.listen(this.columnHandleEl,"keydown",a=>{this.showTrackerOnFirstKeyDown(a),this.moveTrackerOnKeyDown(a)})),this.unlisteners.push(this.renderer.listen(this.columnHandleEl,"keyup",a=>{this.hideTrackerOnKeyUp(a)}))})}get descriptionId(){return`${this.columnSeparatorId}-aria-describedby`}showTracker(){this.columnResizerService.startResize();const a=this.tableSizeService.getColumnDragHeight();this.renderer.setStyle(this.resizeTrackerEl,"height",a),this.renderer.setStyle(this.resizeTrackerEl,"display","block")}moveTracker(a){this.columnResizerService.calculateResize(a),this.renderer.setStyle(this.resizeTrackerEl,"transform",`translateX(${this.columnResizerService.resizedBy}px)`),this.renderer.setStyle(this.document.body,"cursor","col-resize"),this.redFlagTracker()}hideTracker(){this.columnResizerService.endResize(),this.renderer.setStyle(this.resizeTrackerEl,"display","none"),this.renderer.setStyle(this.resizeTrackerEl,"transform","translateX(0px)"),this.renderer.setStyle(this.document.body,"cursor","auto")}showTrackerOnFirstKeyDown(a){!this.resizeStartedOnKeyDown&&(this.isArrowLeftKeyEvent(a)||this.isArrowRightKeyEvent(a))&&(this.resizeStartedOnKeyDown=!0,this.renderer.addClass(this.resizeTrackerEl,"on-arrow-key-resize"),this.showTracker())}moveTrackerOnKeyDown(a){this.isArrowLeftKeyEvent(a)?this.moveTracker(this.columnResizerService.resizedBy-12):this.isArrowRightKeyEvent(a)&&this.moveTracker(this.columnResizerService.resizedBy+12)}hideTrackerOnKeyUp(a){this.resizeStartedOnKeyDown&&(this.isArrowLeftKeyEvent(a)||this.isArrowRightKeyEvent(a))&&(this.resizeStartedOnKeyDown=!1,this.renderer.removeClass(this.resizeTrackerEl,"on-arrow-key-resize"),this.hideTracker(),this.columnHandleEl.focus())}redFlagTracker(){this.isWithinMaxResizeRange!==this.columnResizerService.isWithinMaxResizeRange&&(this.isWithinMaxResizeRange=this.columnResizerService.isWithinMaxResizeRange,this.isWithinMaxResizeRange?this.renderer.removeClass(this.resizeTrackerEl,"exceeded-max"):this.renderer.addClass(this.resizeTrackerEl,"exceeded-max"))}isArrowLeftKeyEvent(a){return mo(a.key)===ht.ArrowLeft}isArrowRightKeyEvent(a){return mo(a.key)===ht.ArrowRight}ngOnDestroy(){this.unlisteners.forEach(a=>a())}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(pf),l.Y36(l.Qsj),l.Y36(l.R0b),l.Y36(gf),l.Y36(an),l.Y36(M.K0))},c.\u0275cmp=l.Xpm({type:c,selectors:[["clr-dg-column-separator"]],viewQuery:function(a,g){if(1&a&&(l.Gf(vy,5),l.Gf(mS,5)),2&a){let b;l.iGM(b=l.CRH())&&(g.resizeTrackerRef=b.first),l.iGM(b=l.CRH())&&(g.columnHandleRef=b.first)}},hostVars:2,hostBindings:function(a,g){2&a&&l.ekj("datagrid-column-separator",!0)},decls:6,vars:5,consts:[["type","button","clrDraggable","",1,"datagrid-column-handle",3,"clrGroup","clrDragStart","clrDragMove","clrDragEnd"],["columnHandle",""],[1,"clr-sr-only"],[1,"datagrid-column-resize-tracker"],["resizeTracker",""]],template:function(a,g){1&a&&(l.TgZ(0,"button",0,1),l.NdJ("clrDragStart",function(){return g.showTracker()})("clrDragMove",function(x){return g.moveTracker(x.dragPosition.moveX)})("clrDragEnd",function(){return g.hideTracker()}),l.qZA(),l.TgZ(2,"span",2),l._uU(3),l.qZA(),l._UZ(4,"div",3,4)),2&a&&(l.Q6J("clrGroup",g.columnSeparatorId),l.uIk("aria-label",g.commonString.keys.columnSeparatorAriaLabel)("aria-describedby",g.descriptionId),l.xp6(2),l.uIk("id",g.descriptionId),l.xp6(1),l.hij(" ",g.commonString.keys.columnSeparatorDescription," "))},dependencies:[jc],encapsulation:2}),c})(),bd=(()=>{class c extends Qa{constructor(a,g,b,x,$){super(g),this._sort=a,this.vcr=b,this.detailService=x,this.changeDetectorRef=$,this.showSeparator=!0,this.subscriptions=[],this._colType="string",this._sorted=!1,this.sortedChange=new l.vpe,this._sortOrder=wi.UNSORTED,this.sortOrderChange=new l.vpe,this.customFilter=!1,this.filterValueChange=new l.vpe,this.subscriptions.push(this.listenForSortingChanges()),this.subscriptions.push(this.listenForDetailPaneChanges())}ngOnDestroy(){super.ngOnDestroy(),this.subscriptions.forEach(a=>a.unsubscribe())}listenForDetailPaneChanges(){return this.detailService.stateChange.subscribe(a=>{this.showSeparator!==!a&&(this.showSeparator=!a,this.changeDetectorRef.markForCheck())})}listenForSortingChanges(){return this._sort.change.subscribe(a=>{this.changeDetectorRef.markForCheck(),this.sortOrder!==wi.UNSORTED&&a.comparator!==this._sortBy&&(this._sortOrder=wi.UNSORTED,this.sortOrderChange.emit(this._sortOrder),this.sortIcon=null,this._sortDirection=null),this.sorted&&a.comparator!==this._sortBy&&(this._sorted=!1,this.sortedChange.emit(!1))})}get colType(){return this._colType}set colType(a){this._colType=a}get field(){return this._field}set field(a){"string"==typeof a&&(this._field=a,this._sortBy||(this._sortBy=new sc(a)))}setupDefaultFilter(a,g){"number"===g?this.setFilter(new qa(new md(a))):"string"===g&&this.setFilter(new pl(new au(a))),this.filter&&this.initFilterValue&&(this.updateFilterValue=this.initFilterValue,delete this.initFilterValue)}ngOnChanges(a){a.colType&&a.colType.currentValue&&a.colType.currentValue!==a.colType.previousValue&&!this.customFilter&&!this.filter&&this.colType&&this.field&&this.setupDefaultFilter(this.field,this.colType),a.field&&a.field.currentValue&&a.field.currentValue!==a.field.previousValue&&!this.customFilter&&this.colType&&this.setupDefaultFilter(this.field,this.colType)}get sortBy(){return this._sortBy}set sortBy(a){"string"==typeof a?this._sortBy=new sc(a):a?this._sortBy=a:this.field?this._sortBy=new sc(this.field):delete this._sortBy}get sortable(){return!!this._sortBy}get sorted(){return this._sorted}set sorted(a){!a&&this.sorted?(this._sorted=!1,this._sort.clear()):a&&!this.sorted&&this.sort()}get sortOrder(){return this._sortOrder}set sortOrder(a){if(!(typeof a>"u")&&this._sortOrder!==a)switch(a){default:case wi.UNSORTED:this._sort.clear();break;case wi.ASC:this.sort(!1);break;case wi.DESC:this.sort(!0)}}get ariaSort(){switch(this._sortOrder){default:case wi.UNSORTED:return"none";case wi.ASC:return"ascending";case wi.DESC:return"descending"}}get sortDirection(){return this._sortDirection}sort(a){!this.sortable||(this._sort.toggle(this._sortBy,a),this._sortOrder=this._sort.reverse?wi.DESC:wi.ASC,this._sortDirection=this._sortOrder===wi.DESC?"down":"up",this.sortIcon=this._sortOrder===wi.DESC?"arrow down":"arrow",this.sortOrderChange.emit(this._sortOrder),this._sorted=!0,this.sortedChange.emit(!0))}set projectedFilter(a){a&&(this.deleteFilter(),this.customFilter=!0)}set updateFilterValue(a){this.filter?this.filter instanceof pl?((!a||"string"!=typeof a)&&(a=""),a!==this.filter.value&&(this.filter.value=a)):this.filter instanceof qa&&((!a||!(a instanceof Array))&&(a=[null,null]),2===a.length&&(a[0]!==this.filter.value[0]||a[1]!==this.filter.value[1])&&(this.filter.value=a)):this.initFilterValue=a}get filterValue(){return this.filter instanceof pl||this.filter instanceof qa?this.filter.value:null}set filterValue(a){(this.filter instanceof pl||this.filter instanceof qa)&&(this.updateFilterValue=a,this.filterValueChange.emit(this.filter.value))}ngOnInit(){this.wrappedInjector=new tf(yd,this.vcr)}get _view(){return this.wrappedInjector.get(yd,this.vcr).columnView}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(Cd),l.Y36(Da),l.Y36(l.s_b),l.Y36(Do),l.Y36(l.sBO))},c.\u0275cmp=l.Xpm({type:c,selectors:[["clr-dg-column"]],contentQueries:function(a,g,b){if(1&a&&l.Suo(b,fd,5),2&a){let x;l.iGM(x=l.CRH())&&(g.projectedFilter=x.first)}},hostAttrs:["role","columnheader"],hostVars:3,hostBindings:function(a,g){2&a&&(l.uIk("aria-sort",g.ariaSort),l.ekj("datagrid-column",!0))},inputs:{colType:["clrDgColType","colType"],field:["clrDgField","field"],sortBy:["clrDgSortBy","sortBy"],sorted:["clrDgSorted","sorted"],sortOrder:["clrDgSortOrder","sortOrder"],filterStringPlaceholder:["clrFilterStringPlaceholder","filterStringPlaceholder"],filterNumberMaxPlaceholder:["clrFilterNumberMaxPlaceholder","filterNumberMaxPlaceholder"],filterNumberMinPlaceholder:["clrFilterNumberMinPlaceholder","filterNumberMinPlaceholder"],updateFilterValue:["clrFilterValue","updateFilterValue"]},outputs:{sortedChange:"clrDgSortedChange",sortOrderChange:"clrDgSortOrderChange",filterValueChange:"clrFilterValueChange"},features:[l._Bn([$l,ha,Sn]),l.qOj,l.TTD],ngContentSelectors:Ic,decls:9,vars:5,consts:[[1,"datagrid-column-flex"],["class","datagrid-column-title","type","button",3,"click",4,"ngIf"],[3,"clrFilterPlaceholder","clrDgStringFilter","clrFilterValue","clrFilterValueChange",4,"ngIf"],[3,"clrFilterMaxPlaceholder","clrFilterMinPlaceholder","clrDgNumericFilter","clrFilterValue","clrFilterValueChange",4,"ngIf"],["columnTitle",""],["class","datagrid-column-title",4,"ngIf"],[4,"ngIf"],["type","button",1,"datagrid-column-title",3,"click"],[4,"ngTemplateOutlet"],["shape","arrow","aria-hidden","true","class","sort-icon",4,"ngIf"],["shape","arrow","aria-hidden","true",1,"sort-icon"],[3,"clrFilterPlaceholder","clrDgStringFilter","clrFilterValue","clrFilterValueChange"],[3,"clrFilterMaxPlaceholder","clrFilterMinPlaceholder","clrDgNumericFilter","clrFilterValue","clrFilterValueChange"],[1,"datagrid-column-title"]],template:function(a,g){1&a&&(l.F$t(Sh),l.TgZ(0,"div",0),l.YNc(1,yy,3,2,"button",1),l.Hsn(2),l.YNc(3,Cy,1,3,"clr-dg-string-filter",2),l.YNc(4,Xp,1,4,"clr-dg-numeric-filter",3),l.YNc(5,by,1,0,"ng-template",null,4,l.W1O),l.YNc(7,bh,2,1,"span",5),l.YNc(8,Sy,1,0,"clr-dg-column-separator",6),l.qZA()),2&a&&(l.xp6(1),l.Q6J("ngIf",g.sortable),l.xp6(2),l.Q6J("ngIf",g.field&&!g.customFilter&&"string"==g.colType),l.xp6(1),l.Q6J("ngIf",g.field&&!g.customFilter&&"number"==g.colType),l.xp6(3),l.Q6J("ngIf",!g.sortable),l.xp6(1),l.Q6J("ngIf",g.showSeparator))},dependencies:[vd,Bm,zm,M.O5,M.tP,Jt],encapsulation:2,changeDetection:0}),c})(),wa=(()=>{class c{constructor(a,g,b){this._filters=a,this._sort=g,this._page=b,this.loading=!1,this.iteratorTrackBy=(x,$)=>$,this._smart=!1,this._displayed=[],this._change=new Ue.xQ,this._allChanges=new Ue.xQ}destroy(){this._filtersSub&&this._filtersSub.unsubscribe(),this._sortSub&&this._sortSub.unsubscribe(),this._pageSub&&this._pageSub.unsubscribe()}get smart(){return this._smart}smartenUp(){this._smart=!0,this._filtersSub=this._filters.change.subscribe(()=>this._filterItems()),this._sortSub=this._sort.change.subscribe(()=>{this._sort.comparator?this._sortItems():this._filterItems()}),this._pageSub=this._page.change.subscribe(()=>this._changePage())}get all(){return this._all}set all(a){this._all=a,this.emitAllChanges(a),this.smart?this._filterItems():(this._displayed=a,this.emitChange())}refresh(){this.smart&&this._filterItems()}canTrackBy(){return!!this.datagridTrackBy||Array.isArray(this.all)}trackBy(a,g){if(this.datagridTrackBy)return this.datagridTrackBy(a);if(Array.isArray(this.all))return g=g??this.all.indexOf(a),this.iteratorTrackBy(g,a);throw new Error("improper call to Items#trackBy")}get displayed(){return this._displayed}emitChange(){this._change.next(this.displayed)}get change(){return this._change.asObservable()}emitAllChanges(a){this._allChanges.next(a)}get allChanges(){return this._allChanges.asObservable()}get uninitialized(){return!this._all}_filterItems(){this.uninitialized||(this._filtered=this._filters.hasActiveFilters()?this._all.filter(a=>this._filters.accepts(a)):this._all.slice(),this._page.totalItems=this._filtered.length,this._sortItems())}_sortItems(){this.uninitialized||(this._sort.comparator&&this._filtered.sort((a,g)=>this._sort.compare(a,g)),this._changePage())}_changePage(){this.uninitialized||this._page.activated&&0===this._page.size||(this._displayed=this._page.size>0?this._filtered.slice(this._page.firstItem,this._page.lastItem+1):this._filtered,this.emitChange())}}return c.\u0275fac=function(a){return new(a||c)(l.LFG(Da),l.LFG(Cd),l.LFG(Sa))},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})(),Um=(()=>{class c{constructor(a,g,b,x){this.template=a,this.differs=g,this.items=b,this.vcr=x,this.differ=null,this.subscriptions=[],b.smartenUp(),this.iterableProxy=new M.sg(this.vcr,this.template,this.differs),this.subscriptions.push(b.change.subscribe($=>{this.iterableProxy.ngForOf=$,this.iterableProxy.ngDoCheck()}))}set rawItems(a){this._rawItems=a||[]}set trackBy(a){this.items.iteratorTrackBy=a,this.iterableProxy.ngForTrackBy=a}static ngTemplateContextGuard(a,g){return!0}ngDoCheck(){this.differ||(this.differ=this.differs.find(this._rawItems).create(this.iterableProxy.ngForTrackBy)),this.differ&&this.differ.diff(this._rawItems)&&(this.items.all=this._rawItems)}ngOnDestroy(){this.subscriptions.forEach(a=>a.unsubscribe())}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(l.Rgc),l.Y36(l.ZZ4),l.Y36(wa),l.Y36(l.s_b))},c.\u0275dir=l.lG2({type:c,selectors:[["","clrDgItems","","clrDgItemsOf",""]],inputs:{rawItems:["clrDgItemsOf","rawItems"],trackBy:["clrDgItemsTrackBy","trackBy"]}}),c})(),mf=(()=>{class c{constructor(a){this.items=a}get emptyDatagrid(){return!(this.items.loading||this.items.displayed&&0!==this.items.displayed.length)}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(wa))},c.\u0275cmp=l.Xpm({type:c,selectors:[["clr-dg-placeholder"]],hostVars:2,hostBindings:function(a,g){2&a&&l.ekj("datagrid-placeholder-container",!0)},ngContentSelectors:Dt,decls:4,vars:4,consts:[["role","row",1,"datagrid-placeholder"],["class","datagrid-placeholder-image",4,"ngIf"],["role","gridcell",1,"datagrid-placeholder-content"],[4,"ngIf"],[1,"datagrid-placeholder-image"]],template:function(a,g){1&a&&(l.F$t(),l.TgZ(0,"div",0),l.YNc(1,Dy,1,0,"div",1),l.TgZ(2,"span",2),l.YNc(3,wy,1,0,"ng-content",3),l.qZA()()),2&a&&(l.ekj("datagrid-empty",g.emptyDatagrid),l.xp6(1),l.Q6J("ngIf",g.emptyDatagrid),l.xp6(2),l.Q6J("ngIf",g.emptyDatagrid))},dependencies:[M.O5],encapsulation:2}),c})(),Sd=(()=>{class c{set triggerEl(a){this._triggerEl=a}focusTrigger(){this._triggerEl&&this._triggerEl.focus()}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})(),vf=(()=>{class c{constructor(){this._id=new Ue.xQ}setId(a){this._id.next(a)}get id(){return this._id.asObservable()}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})(),_f=(()=>{class c{constructor(a,g,b,x,$,le,Se){this.toggleService=a,this.el=g,this.commonStrings=b,this.signpostIdService=x,this.signpostFocusManager=$,this.platformId=Se,this.subscriptions=[],this.document=le}ngOnInit(){this.signpostFocusManager.triggerEl=this.el.nativeElement,this.subscriptions.push(this.toggleService.openChange.subscribe(a=>{this.ariaExpanded=a;const g=this.isOpen;this.isOpen=a,!this.isOpen&&g&&this.focusOnClose()}),this.signpostIdService.id.subscribe(a=>this.ariaControl=a)),this.addDefaultAriaLabel(this.el.nativeElement)}addDefaultAriaLabel(a){a.hasAttribute("aria-label")||a.setAttribute("aria-label",this.commonStrings.keys.signpostToggle)}focusOnClose(){!(0,M.NF)(this.platformId)||!this.isOpen&&this.document.activeElement===this.document.body&&this.signpostFocusManager.focusTrigger()}ngOnDestroy(){this.subscriptions.forEach(a=>a.unsubscribe())}onSignpostTriggerClick(a){this.toggleService.toggleWithEvent(a)}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(Sn),l.Y36(l.SBq),l.Y36(an),l.Y36(vf),l.Y36(Sd),l.Y36(M.K0),l.Y36(l.Lbi))},c.\u0275dir=l.lG2({type:c,selectors:[["","clrSignpostTrigger",""]],hostAttrs:[1,"signpost-trigger"],hostVars:4,hostBindings:function(a,g){1&a&&l.NdJ("click",function(x){return g.onSignpostTriggerClick(x)}),2&a&&(l.uIk("aria-expanded",g.ariaExpanded)("aria-controls",g.ariaControl),l.ekj("active",g.isOpen))}}),c})(),yf=(()=>{class c{constructor(a){this.commonStrings=a,this.useCustomTrigger=!1}set customTrigger(a){this.useCustomTrigger=!!a}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(an))},c.\u0275cmp=l.Xpm({type:c,selectors:[["clr-signpost"]],contentQueries:function(a,g,b){if(1&a&&l.Suo(b,_f,5),2&a){let x;l.iGM(x=l.CRH())&&(g.customTrigger=x.first)}},hostVars:2,hostBindings:function(a,g){2&a&&l.ekj("signpost",!0)},features:[l._Bn([Sn,Sd,{provide:ya,useExisting:l.SBq},vf])],ngContentSelectors:Dt,decls:2,vars:1,consts:[[4,"ngIf"],["type","button","clrSignpostTrigger","",1,"signpost-action","btn","btn-small","btn-link"],["shape","info-circle"]],template:function(a,g){1&a&&(l.F$t(),l.YNc(0,Ey,3,1,"ng-container",0),l.Hsn(1)),2&a&&l.Q6J("ngIf",!g.useCustomTrigger)},dependencies:[M.O5,_f,Jt],encapsulation:2}),c})(),lu=(()=>{class c{constructor(){this._dynamic=!1}ngAfterViewInit(){this.cellView=this.templateRef.createEmbeddedView(null)}ngOnDestroy(){this.cellView.destroy()}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275cmp=l.Xpm({type:c,selectors:[["dg-wrapped-cell"]],viewQuery:function(a,g){if(1&a&&l.Gf(Ty,5),2&a){let b;l.iGM(b=l.CRH())&&(g.templateRef=b.first)}},ngContentSelectors:Dt,decls:2,vars:0,consts:[["cellPortal",""]],template:function(a,g){1&a&&(l.F$t(),l.YNc(0,eg,1,0,"ng-template",null,0,l.W1O))},encapsulation:2}),c})(),oc=(()=>{class c{constructor(a){this.vcr=a}ngOnInit(){this.wrappedInjector=new tf(lu,this.vcr)}get _view(){return this.wrappedInjector.get(lu,this.vcr).cellView}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(l.s_b))},c.\u0275cmp=l.Xpm({type:c,selectors:[["clr-dg-cell"]],contentQueries:function(a,g,b){if(1&a&&l.Suo(b,yf,4),2&a){let x;l.iGM(x=l.CRH())&&(g.signpost=x)}},hostAttrs:["role","gridcell"],hostVars:4,hostBindings:function(a,g){2&a&&l.ekj("datagrid-cell",!0)("datagrid-signpost-trigger",g.signpost.length>0)},ngContentSelectors:Dt,decls:1,vars:0,template:function(a,g){1&a&&(l.F$t(),l.Hsn(0))},encapsulation:2}),c})(),Cf=0,vl=(()=>{class c extends Ci{constructor(){super(),this.expandableId="",this._replace=new Gn.X(!1),this._animate=new Ue.xQ,Cf++,this.expandableId="clr-dg-expandable-row-"+Cf}get expanded(){return this._expanded}set expanded(a){(a=!!a)!==this._expanded&&(this._expanded=a,this._animate.next(),this._expandChange.next(a))}loadingStateChange(a){super.loadingStateChange(a),a!==ai.LOADING&&this._animate.next()}get replace(){return this._replace.asObservable()}setReplace(a){this._replace.next(a)}get animate(){return this._animate.asObservable()}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})();var Ja=(()=>(function(c){c[c.DISPLAY=0]="DISPLAY",c[c.CALCULATE=1]="CALCULATE"}(Ja||(Ja={})),Ja))(),_n=(()=>(function(c){c[c.None=0]="None",c[c.Single=1]="Single",c[c.Multi=2]="Multi"}(_n||(_n={})),_n))();let cu=(()=>{class c{constructor(){this._dynamic=!1}ngAfterViewInit(){this.rowView=this.templateRef.createEmbeddedView(null)}ngOnDestroy(){this.rowView.destroy()}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275cmp=l.Xpm({type:c,selectors:[["dg-wrapped-row"]],viewQuery:function(a,g){if(1&a&&l.Gf(tg,5),2&a){let b;l.iGM(b=l.CRH())&&(g.templateRef=b.first)}},ngContentSelectors:Dt,decls:2,vars:0,consts:[["rowPortal",""]],template:function(a,g){1&a&&(l.F$t(),l.YNc(0,ng,1,0,"ng-template",null,0,l.W1O))},encapsulation:2}),c})(),fb=0,_l=(()=>{class c{constructor(a,g){this._items=a,this._filters=g,this.preserveSelection=!1,this.prevSelectionRefs=[],this.lockedRefs=[],this._selectionType=_n.None,this.rowSelectionMode=!1,this.subscriptions=[],this.shiftPressed=!1,this.valueCollector=new Ue.xQ,this._change=new Ue.xQ,this.id="clr-dg-selection"+fb++,this.subscriptions.push(this._filters.change.subscribe(()=>{!this._selectable||this.preserveSelection||this.clearSelection()})),this.subscriptions.push(this._items.allChanges.subscribe(b=>{const x=[];switch(this.selectionType){case _n.None:break;case _n.Single:{let $,le=!1;this.currentSingle&&!this.prevSingleSelectionRef&&this._items.canTrackBy()&&(this.prevSingleSelectionRef=this._items.trackBy(this.currentSingle)),b.forEach((Se,Pe)=>{const nt=this._items.trackBy(Se,Pe);this.prevSingleSelectionRef===nt&&($=Se,le=!0),this.lockedRefs.indexOf(nt)>-1&&x.push(nt)}),this._items.smart&&!$&&(le=!0),setTimeout(()=>{le&&(this.currentSingle=$)},0);break}case _n.Multi:{let $=this.current.slice(),le=!1;this.current.length>0&&this.prevSelectionRefs.length!==this.current.length&&this._items.canTrackBy()&&(this.prevSelectionRefs=[],this.current.forEach(Se=>{this.prevSelectionRefs.push(this._items.trackBy(Se))})),b.forEach((Se,Pe)=>{const nt=this._items.trackBy(Se,Pe);this.lockedRefs.indexOf(nt)>-1&&x.push(nt)}),$.length>0&&(b.forEach((Se,Pe)=>{const nt=this._items.trackBy(Se,Pe),Pt=this.prevSelectionRefs.indexOf(nt);Pt>-1&&($[Pt]=Se,le=!0)}),this._items.smart&&($=$.filter(Se=>b.indexOf(Se)>-1),this.current.length!==$.length&&(le=!0)),setTimeout(()=>{le&&(this.current=$)},0));break}}this.lockedRefs=x})),this.subscriptions.push(this.valueCollector.pipe((0,_i.b)(0)).subscribe(()=>this.emitChange()))}clearSelection(){this._current=[],this.prevSelectionRefs=[],this.prevSingleSelectionRef=null,this._currentSingle=null,this.emitChange()}get selectionType(){return this._selectionType}set selectionType(a){a!==this.selectionType&&(this._selectionType=a,a===_n.None?delete this.current:this.updateCurrent([],!1))}get _selectable(){return this._selectionType===_n.Multi||this._selectionType===_n.Single}destroy(){this.subscriptions.forEach(a=>a.unsubscribe())}get currentSingle(){return this._currentSingle}set currentSingle(a){a!==this._currentSingle&&(this._currentSingle=a,this._items.canTrackBy()&&a&&(this.prevSingleSelectionRef=this._items.trackBy(a)),this.emitChange())}get current(){return this._current}set current(a){this.updateCurrent(a,!0)}updateCurrent(a,g){this._current=a,g&&this.valueCollector.next(a)}emitChange(){this._selectionType===_n.Single?this._change.next(this.currentSingle):this._selectionType===_n.Multi&&this._change.next(this.current)}get change(){return this._change.asObservable()}isSelected(a){return this._selectionType===_n.Single?this.currentSingle===a:this._selectionType===_n.Multi&&this.current.indexOf(a)>=0}selectItem(a){this.current=this.current.concat(a),this._items.canTrackBy()&&this.prevSelectionRefs.push(this._items.trackBy(a))}deselectItem(a){if(this.current=this.current.slice(0,a).concat(this.current.slice(a+1)),ab!==g[0])}}setSelected(a,g){const b=this.current?this.current.indexOf(a):-1;switch(this._selectionType){case _n.None:case _n.Single:break;case _n.Multi:b>=0&&!g?this.deselectItem(b):b<0&&g&&this.selectItem(a)}}isAllSelected(){if(this._selectionType!==_n.Multi||!this._items.displayed)return!1;const a=this._items.displayed.filter(x=>!1===this.isLocked(x));return!(a.length<1)&&a.filter(x=>this.current.indexOf(x)>-1).length===a.length}canItBeLocked(){return this._selectionType!==_n.None&&this._items.canTrackBy()}lockItem(a,g){if(this.canItBeLocked()){const b=this._items.trackBy(a);!0===g?this.lockedRefs.push(b):this.lockedRefs=this.lockedRefs.filter(x=>b!==x)}}isLocked(a){if(this.canItBeLocked()){const g=this._items.trackBy(a);return this.lockedRefs.indexOf(g)>-1}return!1}toggleAll(){this._selectionType===_n.None||this._selectionType===_n.Single||(this.isAllSelected()?this._items.displayed.forEach(a=>{const g=this.current.indexOf(a);g>-1&&!1===this.isLocked(a)&&this.deselectItem(g)}):this._items.displayed.forEach(a=>{this.current.indexOf(a)<0&&!1===this.isLocked(a)&&this.selectItem(a)}))}}return c.\u0275fac=function(a){return new(a||c)(l.LFG(wa),l.LFG(Da))},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})(),Ka=(()=>{class c{constructor(a){this.subscriptions=[],this._view=new Gn.X(Ja.DISPLAY),this.subscriptions.push(a.filterRenderSteps(Es.CALCULATE_MODE_ON).subscribe(()=>this._view.next(Ja.CALCULATE))),this.subscriptions.push(a.filterRenderSteps(Es.CALCULATE_MODE_OFF).subscribe(()=>this._view.next(Ja.DISPLAY)))}get view(){return this._view.asObservable()}ngOnDestroy(){this.subscriptions.forEach(a=>a.unsubscribe())}}return c.\u0275fac=function(a){return new(a||c)(l.LFG(ml))},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})(),Dd=(()=>{class c{constructor(a){this.selection=a}onSelectionCellClick(a){this.selection.rowSelectionMode||"LABEL"!==a.target.tagName&&"INPUT"!==a.target.tagName&&a.target.querySelector("input").click()}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(_l))},c.\u0275dir=l.lG2({type:c,selectors:[["",8,"datagrid-select"]],hostBindings:function(a,g){1&a&&l.NdJ("click",function(x){return g.onSelectionCellClick(x)})}}),c})(),wd=0,$m=(()=>{class c{constructor(a,g,b,x,$,le,Se,Pe,nt,Pt,Nt,yn){this.selection=a,this.rowActionService=g,this.globalExpandable=b,this.expand=x,this.detailService=$,this.displayMode=le,this.vcr=Se,this.renderer=Pe,this.el=nt,this.commonStrings=Pt,this.items=Nt,this.document=yn,this.SELECTION_TYPE=_n,this.expandAnimationTrigger=!1,this._selected=!1,this._selectable=!0,this.selectedChanged=new l.vpe(!1),this.expandedChange=new l.vpe(!1),this._detailOpenLabel="",this._detailCloseLabel="",this._rowAriaLabel="",this.subscriptions=[],this.displayCells=!1,wd++,this.id="clr-dg-row"+wd,this.radioId="clr-dg-row-rd"+wd,this.checkboxId="clr-dg-row-cb"+wd,this.expandableId=x.expandableId,this.subscriptions.push((0,Ns.aj)(this.expand.replace,this.expand.expandChange).subscribe(([fr,qr])=>{fr&&qr?(this.replaced=!0,this.renderer.addClass(this.el.nativeElement,"datagrid-row-replaced")):(this.replaced=!1,this.renderer.removeClass(this.el.nativeElement,"datagrid-row-replaced"))}))}set item(a){this._item=a,this.clrDgSelectable=this._selectable}get item(){return this._item}clearRanges(a){a.shiftKey&&(this.document.getSelection().removeAllRanges(),-1!==window.navigator.userAgent.indexOf("Firefox")&&(a.preventDefault(),this.toggle(!0)))}get selected(){return this.selection.selectionType===_n.None?this._selected:this.selection.isSelected(this.item)}set selected(a){this.selection.selectionType===_n.None?this._selected=a:(a&&this.selection.selectionType===_n.Multi?this.rangeSelect():this.selection.rangeStart=null,this.selection.setSelected(this.item,a))}set clrDgSelectable(a){this.item&&this.selection.lockItem(this.item,"false"===a||!1===a),this._selectable=a}get clrDgSelectable(){return!this.selection.isLocked(this.item)}toggle(a=!this.selected){a!==this.selected&&(this.selected=a,this.selectedChanged.emit(a))}selectRow(a=!this.selected){this.selection.selectionType===this.SELECTION_TYPE.Single?this.selection.currentSingle=this.item:this.toggle(a)}get expanded(){return this.expand.expanded}set expanded(a){this.expand.expanded=a}toggleExpand(){this.expand.expandable&&(this.expandAnimation.updateStartHeight(),this.expanded=!this.expanded,this.expandedChange.emit(this.expanded))}set clrDgDetailOpenLabel(a){this._detailOpenLabel=a}get clrDgDetailOpenLabel(){return this._detailOpenLabel?this._detailOpenLabel:this.commonStrings.keys.open}set clrDgDetailCloseLabel(a){this._detailCloseLabel=a}get clrDgDetailCloseLabel(){return this._detailCloseLabel?this._detailCloseLabel:this.commonStrings.keys.close}set clrDgRowAriaLabel(a){this._rowAriaLabel=a}get clrDgRowAriaLabel(){return this._rowAriaLabel?this._rowAriaLabel:this.commonStrings.keys.select}ngAfterContentInit(){this.dgCells.changes.subscribe(()=>{this.dgCells.forEach(a=>{a._view.destroyed||this._scrollableCells.insert(a._view)})})}ngAfterViewInit(){this.subscriptions.push(this.displayMode.view.subscribe(a=>{for(let g=this._scrollableCells.length;g>0;g--)this._scrollableCells.detach();for(let g=this._calculatedCells.length;g>0;g--)this._calculatedCells.detach();a===Ja.CALCULATE?(this.displayCells=!1,this.dgCells.forEach(g=>{g._view.destroyed||this._calculatedCells.insert(g._view)})):(this.displayCells=!0,this.dgCells.forEach(g=>{g._view.destroyed||this._scrollableCells.insert(g._view)}))}),this.expand.animate.subscribe(()=>{this.expandAnimationTrigger=!this.expandAnimationTrigger}))}rangeSelect(){const a=this.items.displayed;if(!a)return;const g=a.indexOf(this.selection.rangeStart);if(this.selection.rangeStart&&this.selection.current.includes(this.selection.rangeStart)&&this.selection.shiftPressed&&-1!==g){const b=a.indexOf(this.item),x=new Set(this.selection.current.concat(a.slice(Math.min(g,b),Math.max(g,b)+1)));this.selection.clearSelection(),this.selection.current.push(...x)}else this.selection.rangeStart=this.item}ngOnDestroy(){this.subscriptions.forEach(a=>a.unsubscribe())}ngOnInit(){this.wrappedInjector=new tf(cu,this.vcr),this.selection.lockItem(this.item,!1===this.clrDgSelectable)}get _view(){return this.wrappedInjector.get(cu,this.vcr).rowView}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(_l),l.Y36(gl),l.Y36(ic),l.Y36(vl),l.Y36(Do),l.Y36(Ka),l.Y36(l.s_b),l.Y36(l.Qsj),l.Y36(l.SBq),l.Y36(an),l.Y36(wa),l.Y36(M.K0))},c.\u0275cmp=l.Xpm({type:c,selectors:[["clr-dg-row"]],contentQueries:function(a,g,b){if(1&a&&l.Suo(b,oc,4),2&a){let x;l.iGM(x=l.CRH())&&(g.dgCells=x)}},viewQuery:function(a,g){if(1&a&&(l.Gf(hl,5),l.Gf(Rl,5),l.Gf(ua,5,l.s_b),l.Gf(Ay,5,l.s_b),l.Gf(Iy,5,l.s_b)),2&a){let b;l.iGM(b=l.CRH())&&(g.expandAnimation=b.first),l.iGM(b=l.CRH())&&(g.detailButton=b.first),l.iGM(b=l.CRH())&&(g._stickyCells=b.first),l.iGM(b=l.CRH())&&(g._scrollableCells=b.first),l.iGM(b=l.CRH())&&(g._calculatedCells=b.first)}},hostAttrs:["role","rowgroup"],hostVars:5,hostBindings:function(a,g){2&a&&(l.uIk("aria-owns",g.id),l.ekj("datagrid-row",!0)("datagrid-selected",g.selected))},inputs:{item:["clrDgItem","item"],selected:["clrDgSelected","selected"],clrDgSelectable:"clrDgSelectable",expanded:["clrDgExpanded","expanded"],clrDgDetailOpenLabel:"clrDgDetailOpenLabel",clrDgDetailCloseLabel:"clrDgDetailCloseLabel",clrDgRowAriaLabel:"clrDgRowAriaLabel"},outputs:{selectedChanged:"clrDgSelectedChange",expandedChange:"clrDgExpandedChange"},features:[l._Bn([vl,{provide:Ci,useExisting:vl},{provide:Yu,useExisting:vl}])],ngContentSelectors:By,decls:9,vars:3,consts:[["class","datagrid-row-clickable",3,"mousedown","click",4,"ngIf"],[3,"clrExpandTrigger",4,"ngIf"],[4,"ngIf"],["detail",""],["rowContent",""],["calculatedCells",""],[1,"datagrid-row-clickable",3,"mousedown","click"],[3,"clrExpandTrigger"],[3,"ngTemplateOutlet"],["role","row",1,"datagrid-row-master","datagrid-row-flex",3,"id"],[1,"datagrid-row-sticky"],["stickyCells",""],["class","datagrid-select datagrid-fixed-column datagrid-cell","role","gridcell",3,"ngClass",4,"ngIf"],["class","datagrid-row-actions datagrid-fixed-column datagrid-cell","role","gridcell",4,"ngIf"],["class","datagrid-expandable-caret datagrid-fixed-column datagrid-cell","role","gridcell",4,"ngIf"],["class","datagrid-detail-caret datagrid-fixed-column datagrid-cell",4,"ngIf"],[1,"datagrid-row-scrollable",3,"ngClass"],[1,"datagrid-scrolling-cells"],["scrollableCells",""],["role","gridcell",1,"datagrid-select","datagrid-fixed-column","datagrid-cell",3,"ngClass"],[1,"clr-checkbox-wrapper"],["type","checkbox",3,"ngModel","id","disabled","ngModelChange"],[1,"clr-control-label","clr-col-null",3,"for","click"],[1,"clr-sr-only"],["type","radio","clrRadio","",3,"id","name","value","ngModel","checked","disabled","ngModelChange"],["role","gridcell",1,"datagrid-row-actions","datagrid-fixed-column","datagrid-cell"],["role","gridcell",1,"datagrid-expandable-caret","datagrid-fixed-column","datagrid-cell"],["type","button","class","datagrid-expandable-caret-button",3,"click",4,"ngIf"],["clrSmall","",4,"ngIf"],["type","button",1,"datagrid-expandable-caret-button",3,"click"],["shape","angle",1,"datagrid-expandable-caret-icon"],["clrSmall",""],[1,"datagrid-detail-caret","datagrid-fixed-column","datagrid-cell"],["type","button","aria-haspopup","dialog",1,"datagrid-detail-caret-button",3,"click"],["detailButton",""],["shape","angle-double",1,"datagrid-detail-caret-icon"]],template:function(a,g){1&a&&(l.F$t(hg),l.YNc(0,ig,3,2,"div",0),l.YNc(1,sg,2,2,"clr-expandable-animation",1),l.YNc(2,og,1,1,null,2),l.YNc(3,My,1,0,"ng-template",null,3,l.W1O),l.YNc(5,dg,16,13,"ng-template",null,4,l.W1O),l.GkF(7,null,5)),2&a&&(l.Q6J("ngIf",g.selection.rowSelectionMode),l.xp6(1),l.Q6J("ngIf",!g.selection.rowSelectionMode&&g.expand.expandable),l.xp6(1),l.Q6J("ngIf",!g.selection.rowSelectionMode&&!g.expand.expandable))},dependencies:[hl,Jl,M.O5,M.tP,Dd,M.mk,ot.Wl,ot.JJ,ot.On,ci,ot._,ot.Fj,ob,Jt],encapsulation:2}),c})();var ui=(()=>(function(c){c[c.WIDTH=0]="WIDTH",c[c.HIDDEN=1]="HIDDEN"}(ui||(ui={})),ui))();const Ed=Object.keys(ui).map(c=>ui[c]).filter(c=>c===parseInt(c,10));let Ea=(()=>{class c{constructor(){this.columns=[],this._cache=[]}cache(){this._cache=this.columns.map(a=>{const g={...a.value};return delete g.changes,g})}hasCache(){return!!this._cache.length}resetToLastCache(){this._cache.forEach((a,g)=>{this.columns[g].next({...a,changes:Ed})}),this._cache=[]}get columnStates(){return this.columns.map(a=>a.value)}get hasHideableColumns(){return this.columnStates.filter(a=>a.hideable).length>0}emitStateChangeAt(a,g){!this.columns[a]||this.emitStateChange(this.columns[a],g)}emitStateChange(a,g){a.next({...a.value,...g})}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})(),Td=(()=>{class c{constructor(a,g,b,x){this.filters=a,this.sort=g,this.page=b,this.debouncer=x,this.change=this.debouncer.change.pipe((0,mn.U)(()=>this.state))}get state(){const a={};this.page.size>0&&(a.page={from:this.page.firstItem,to:this.page.lastItem,size:this.page.size,current:this.page.current}),this.sort.comparator&&(a.sort=this.sort.comparator instanceof sc?{by:this.sort.comparator.prop,reverse:this.sort.reverse}:{by:this.sort.comparator,reverse:this.sort.reverse});const g=this.filters.getActiveFilters();if(g.length>0){a.filters=[];for(const b of g)a.filters.push(b.state?b.state:b)}return a}}return c.\u0275fac=function(a){return new(a||c)(l.LFG(Da),l.LFG(Cd),l.LFG(Sa),l.LFG(su))},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})(),bf=(()=>{class c{constructor(a){this.zone=a,this.listenersAdded=!1,this.destroy$=new Ue.xQ,this.config={keyGridRows:"[role=row]:not(.datagrid-placeholder)",keyGridCells:"[role=gridcell]:not(.datagrid-hidden-column):not(.datagrid-placeholder-content), [role=columnheader]:not(.datagrid-hidden-column):not(.datagrid-placeholder-content), .datagrid-detail-caret",keyGrid:"[role=grid]"}}get grid(){return this.host?.querySelector(this.config.keyGrid)}get rows(){return this.host?.querySelectorAll(this.config.keyGridRows)}get cells(){return this.host?.querySelectorAll(this.config.keyGridCells)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}addListeners(){this.listenersAdded||(this.zone.runOutsideAngular(()=>{(0,Cn.R)(this.grid,"mousedown").pipe((0,$i.R)(this.destroy$)).subscribe(a=>{if(1===a.buttons&&!a.ctrlKey){const g=this.cells?Array.from(this.cells).find(b=>b===a.target||b===a.target.closest(this.config.keyGridCells)):null;g&&this.setActiveCell(g)}}),(0,Cn.R)(this.grid,"keydown").pipe((0,$i.R)(this.destroy$)).subscribe(a=>{if((!a.target.classList.contains("drag-handle")||"ArrowLeft"!==a.code&&"ArrowRight"!==a.code)&&("ArrowUp"===a.code||"ArrowDown"===a.code||"ArrowLeft"===a.code||"ArrowRight"===a.code||"End"===a.code||"Home"===a.code||"PageUp"===a.code||"PageDown"===a.code)){const{x:g,y:b}=this.getNextItemCoordinate(a),x=this.rows?Array.from(this.rows[b].querySelectorAll(this.config.keyGridCells))[g]:null;x&&this.setActiveCell(x),a.preventDefault()}})}),this.listenersAdded=!0)}initializeKeyGrid(a){this.host=a,this.addListeners(),this.resetKeyGrid()}resetKeyGrid(){this.cells?.forEach(g=>g.setAttribute("tabindex","-1")),(this.cells?this.cells[0]:null)?.setAttribute("tabindex","0")}setActiveCell(a){const g=this.cells?Array.from(this.cells).find($=>"0"===$.getAttribute("tabindex")):null;g&&g.setAttribute("tabindex","-1"),a.setAttribute("tabindex","0");const b=function pb(c){const f=["a[href]","area[href]","input:not([disabled])","button:not([disabled])","select:not([disabled])","textarea:not([disabled])","iframe","object","embed","*[tabindex]","*[contenteditable=true]","[role=button]:not([disabled])"].join(",");return Array.from(c.querySelectorAll(f))}(a);("columnheader"!==a.getAttribute("role")&&b[0]?b[0]:a).focus()}getNextItemCoordinate(a){let g=this.cells?Array.from(this.cells).find(yn=>"0"===yn.getAttribute("tabindex")):null;"Tab"===a.code&&(g=document.activeElement);const b=this.rows&&g?Array.from(this.rows).find(yn=>yn.contains(g)):null,x=this.rows?this.rows.length-1:0,$=this.cells?this.cells.length/this.rows.length-1:0;let le=b&&g?Array.from(b.querySelectorAll(this.config.keyGridCells)).indexOf(g):0,Se=b&&g&&this.rows?Array.from(this.rows).indexOf(b):0;const Pe=this.host.dir,nt="rtl"===Pe?"ArrowRight":"ArrowLeft",Pt="rtl"===Pe?"ArrowLeft":"ArrowRight",Nt=Math.floor(this.host?.querySelector(".datagrid").clientHeight/this.rows[0].clientHeight)-1||0;return"ArrowUp"===a.code&&0!==Se?Se-=1:"ArrowDown"===a.code&&Se0?Se-Nt:0:"PageDown"===a.code&&(Se=Se+Nt{class c{constructor(a,g,b,x,$,le,Se,Pe,nt,Pt,Nt,yn,fr,qr,zD,UD){this.organizer=a,this.items=g,this.expandableRows=b,this.selection=x,this.rowActionService=$,this.stateProvider=le,this.displayMode=Se,this.renderer=Pe,this.detailService=nt,this.document=Pt,this.el=Nt,this.page=yn,this.commonStrings=fr,this.columnsService=qr,this.keyNavigation=zD,this.zone=UD,this.SELECTION_TYPE=_n,this.refresh=new l.vpe(!1),this.selectedChanged=new l.vpe(!1),this.singleSelectedChanged=new l.vpe(!1),this.clrDgSingleSelectionAriaLabel=this.commonStrings.keys.singleSelectionAriaLabel,this.clrDgSingleActionableAriaLabel=this.commonStrings.keys.singleActionableAriaLabel,this.clrDetailExpandableAriaLabel=this.commonStrings.keys.detailExpandableAriaLabel,this.clrDgDisablePageFocus=!1,this._subscriptions=[];const l0=Vr();this.selectAllId="clr-dg-select-all-"+l0,this.detailService.id=l0}get loading(){return this.items.loading}set loading(a){this.items.loading=a}dataChanged(){this.items.refresh()}set selected(a){this.selection.selectionType=a?_n.Multi:_n.None,this.selection.updateCurrent(a,!1)}set singleSelected(a){this.selection.selectionType=_n.Single,a?this.selection.currentSingle=a:this.selection.currentSingle&&(this.selection.currentSingle=null)}set clrDgPreserveSelection(a){this.selection.preserveSelection=a}set rowSelectionMode(a){this.selection.rowSelectionMode=a}set trackBy(a){this.items.datagridTrackBy=a}get allSelected(){return this.selection.isAllSelected()}set allSelected(a){this.selection.toggleAll()}ngAfterContentInit(){this.items.smart||(this.items.all=this.rows.map(a=>a.item)),this._subscriptions.push(this.rows.changes.subscribe(()=>{this.items.smart||(this.items.all=this.rows.map(a=>a.item));for(let a=this._displayedRows.length-1;a>=0;a--)this._displayedRows.get(a).destroyed&&this._displayedRows.remove(a);if(this.rows.forEach(a=>{this._displayedRows.insert(a._view)}),this.detailService.state&&this.detailService.isOpen){const a=this.items.canTrackBy()?this.rows.find(g=>this.items.trackBy(g.item)===this.items.trackBy(this.detailService.state)):void 0;a?this.detailService.open(a.item,a.detailButton.nativeElement):this.detailService.close()}}))}ngAfterViewInit(){this.keyNavigation.initializeKeyGrid(this.el.nativeElement),this.refresh.emit(this.stateProvider.state),this._subscriptions.push(this.stateProvider.change.subscribe(a=>this.refresh.emit(a)),this.selection.change.subscribe(a=>{this.selection.selectionType===_n.Single?this.singleSelectedChanged.emit(a):this.selection.selectionType===_n.Multi&&this.selectedChanged.emit(a)}),this.page.change.subscribe(()=>{this.keyNavigation.resetKeyGrid(),this.clrDgDisablePageFocus||this.datagridTable.nativeElement.focus()}),(0,Ns.aj)(this.columnsService.columns).subscribe(()=>this.keyNavigation?.resetKeyGrid()),this.displayMode.view.subscribe(a=>{for(let g=this._projectedDisplayColumns.length;g>0;g--)this._projectedDisplayColumns.detach();for(let g=this._projectedCalculationColumns.length;g>0;g--)this._projectedCalculationColumns.detach();for(let g=this._calculationRows.length;g>0;g--)this._calculationRows.detach();for(let g=this._displayedRows.length;g>0;g--)this._displayedRows.detach();a===Ja.DISPLAY?(this.renderer.removeClass(this.el.nativeElement,"datagrid-calculate-mode"),this.columns.forEach(g=>{this._projectedDisplayColumns.insert(g._view)}),this.rows.forEach(g=>{this._displayedRows.insert(g._view)})):(this.renderer.addClass(this.el.nativeElement,"datagrid-calculate-mode"),this.columns.forEach(g=>{this._projectedCalculationColumns.insert(g._view)}),this.rows.forEach(g=>{this._calculationRows.insert(g._view)}))})),this.zone.runOutsideAngular(()=>{this._subscriptions.push((0,Cn.R)(this.document.body,"keydown").subscribe(a=>{"Shift"===a.key&&(this.selection.shiftPressed=!0)}),(0,Cn.R)(this.document.body,"keyup").subscribe(a=>{"Shift"===a.key&&(this.selection.shiftPressed=!1)}))})}ngOnDestroy(){this._subscriptions.forEach(a=>a.unsubscribe())}resize(){this.organizer.resize()}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(ml),l.Y36(wa),l.Y36(ic),l.Y36(_l),l.Y36(gl),l.Y36(Td),l.Y36(Ka),l.Y36(l.Qsj),l.Y36(Do),l.Y36(M.K0),l.Y36(l.SBq),l.Y36(Sa),l.Y36(an),l.Y36(Ea),l.Y36(bf),l.Y36(l.R0b))},c.\u0275cmp=l.Xpm({type:c,selectors:[["clr-datagrid"]],contentQueries:function(a,g,b){if(1&a&&(l.Suo(b,Um,5),l.Suo(b,mf,5),l.Suo(b,bd,4),l.Suo(b,$m,4)),2&a){let x;l.iGM(x=l.CRH())&&(g.iterator=x.first),l.iGM(x=l.CRH())&&(g.placeholder=x.first),l.iGM(x=l.CRH())&&(g.columns=x),l.iGM(x=l.CRH())&&(g.rows=x)}},viewQuery:function(a,g){if(1&a&&(l.Gf(Hy,5,l.s_b),l.Gf(fg,5,l.SBq),l.Gf(jy,5,l.s_b),l.Gf(pg,5,l.s_b),l.Gf(zy,5,l.s_b),l.Gf(Uy,5,l.s_b)),2&a){let b;l.iGM(b=l.CRH())&&(g.scrollableColumns=b.first),l.iGM(b=l.CRH())&&(g.datagridTable=b.first),l.iGM(b=l.CRH())&&(g._projectedDisplayColumns=b.first),l.iGM(b=l.CRH())&&(g._projectedCalculationColumns=b.first),l.iGM(b=l.CRH())&&(g._displayedRows=b.first),l.iGM(b=l.CRH())&&(g._calculationRows=b.first)}},hostVars:4,hostBindings:function(a,g){2&a&&l.ekj("datagrid-host",!0)("datagrid-detail-open",g.detailService.isOpen)},inputs:{loading:["clrDgLoading","loading"],selected:["clrDgSelected","selected"],singleSelected:["clrDgSingleSelected","singleSelected"],clrDgSingleSelectionAriaLabel:"clrDgSingleSelectionAriaLabel",clrDgSingleActionableAriaLabel:"clrDgSingleActionableAriaLabel",clrDetailExpandableAriaLabel:"clrDetailExpandableAriaLabel",clrDgDisablePageFocus:"clrDgDisablePageFocus",clrDgPreserveSelection:"clrDgPreserveSelection",rowSelectionMode:["clrDgRowSelection","rowSelectionMode"],trackBy:["clrDgItemsTrackBy","trackBy"]},outputs:{refresh:"clrDgRefresh",selectedChanged:"clrDgSelectedChange",singleSelectedChanged:"clrDgSingleSelectedChange"},features:[l._Bn([_l,Cd,Da,Sa,wa,ml,gl,ic,su,Do,Td,gf,Ea,Ka,bf])],ngContentSelectors:Gy,decls:32,vars:7,consts:[[1,"datagrid-outer-wrapper"],[1,"datagrid-inner-wrapper"],[1,"datagrid"],["datagrid",""],[1,"datagrid-table-wrapper"],["role","grid","tabindex","-1",1,"datagrid-table"],["datagridTable",""],["role","rowgroup",1,"datagrid-header"],["role","row",1,"datagrid-row"],[1,"datagrid-row-master","datagrid-row-flex"],[1,"datagrid-row-sticky"],["role","columnheader","class","datagrid-column datagrid-select datagrid-fixed-column",3,"keydown.space",4,"ngIf"],["role","columnheader","class","datagrid-column datagrid-select datagrid-fixed-column",4,"ngIf"],["role","columnheader","class","datagrid-column datagrid-row-actions datagrid-fixed-column",4,"ngIf"],["role","columnheader","class","datagrid-column datagrid-expandable-caret datagrid-fixed-column",4,"ngIf"],[1,"datagrid-row-scrollable"],["projectedDisplayColumns",""],["displayedRows",""],[4,"ngIf"],["class","datagrid-spinner",4,"ngIf"],[1,"datagrid-calculation-table"],[1,"datagrid-calculation-header"],["projectedCalculationColumns",""],["calculationRows",""],["role","columnheader",1,"datagrid-column","datagrid-select","datagrid-fixed-column",3,"keydown.space"],[1,"clr-checkbox-wrapper"],["type","checkbox","tabindex","-1",3,"id","ngModel","ngModelChange"],[1,"clr-control-label","clr-col-null",3,"for"],[1,"clr-sr-only"],[1,"datagrid-column-separator"],["role","columnheader",1,"datagrid-column","datagrid-select","datagrid-fixed-column"],["role","columnheader",1,"datagrid-column","datagrid-row-actions","datagrid-fixed-column"],["role","columnheader",1,"datagrid-column","datagrid-expandable-caret","datagrid-fixed-column"],[1,"datagrid-spinner"],["clrMedium",""]],template:function(a,g){1&a&&(l.F$t(wh),l.Hsn(0),l.TgZ(1,"div",0)(2,"div",1)(3,"div",2,3)(5,"div",4)(6,"div",5,6)(8,"div",7)(9,"div",8)(10,"div",9)(11,"div",10),l.YNc(12,bS,7,5,"div",11),l.YNc(13,gg,2,1,"div",12),l.YNc(14,mg,2,1,"div",13),l.YNc(15,ul,2,1,"div",14),l.qZA(),l.TgZ(16,"div",15),l.GkF(17,null,16),l.qZA()()()(),l.GkF(19,null,17),l.Hsn(21,1),l.YNc(22,$y,1,0,"clr-dg-placeholder",18),l.qZA()()(),l.Hsn(23,2),l.YNc(24,Dh,3,0,"div",19),l.qZA(),l.Hsn(25,3),l.qZA(),l.TgZ(26,"div",20)(27,"div",21),l.GkF(28,null,22),l.qZA(),l.GkF(30,null,23),l.qZA()),2&a&&(l.xp6(3),l.uIk("aria-hidden",!!g.detailService.isOpen||null),l.xp6(9),l.Q6J("ngIf",g.selection.selectionType===g.SELECTION_TYPE.Multi),l.xp6(1),l.Q6J("ngIf",g.selection.selectionType===g.SELECTION_TYPE.Single),l.xp6(1),l.Q6J("ngIf",g.rowActionService.hasActionableRow),l.xp6(1),l.Q6J("ngIf",g.expandableRows.hasExpandableRow||g.detailService.enabled),l.xp6(7),l.Q6J("ngIf",!g.placeholder),l.xp6(2),l.Q6J("ngIf",g.loading))},dependencies:[mf,Jl,M.O5,Dd,ot.Wl,ot.JJ,ot.On,ci],encapsulation:2}),c})(),Id=(()=>{class c{constructor(a){this.columnsService=a,this.allSelected=new l.vpe}get clrAllSelected(){return this.allSelected.asObservable()}hideableColumns(){return this.columnsService.columns.filter(a=>a.value.hideable)}get allHideablesVisible(){return 0===this.hideableColumns().filter(a=>a.value.hidden).length}selectAll(){this.hideableColumns().forEach(a=>this.columnsService.emitStateChange(a,{hidden:!1,changes:[ui.HIDDEN]})),this.allSelected.next(!0)}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(Ea))},c.\u0275cmp=l.Xpm({type:c,selectors:[["clr-dg-column-toggle-button"]],outputs:{clrAllSelected:"clrAllSelected"},ngContentSelectors:Dt,decls:2,vars:1,consts:[["type","button",1,"btn","btn-sm","btn-link","switch-button",3,"disabled","click"]],template:function(a,g){1&a&&(l.F$t(),l.TgZ(0,"button",0),l.NdJ("click",function(){return g.selectAll()}),l.Hsn(1),l.qZA()),2&a&&l.Q6J("disabled",g.allHideablesVisible)},encapsulation:2}),c})(),Wm=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275cmp=l.Xpm({type:c,selectors:[["clr-dg-column-toggle-title"]],ngContentSelectors:Dt,decls:1,vars:0,template:function(a,g){1&a&&(l.F$t(),l.Hsn(0))},encapsulation:2}),c})();const Qm=c=>c;let qm=(()=>{class c{constructor(a){this._items=a}set trackBy(a){a!==Qm&&this._items&&(this._items.iteratorTrackBy=a)}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(wa,8))},c.\u0275dir=l.lG2({type:c,selectors:[["","ngForTrackBy",""]],inputs:{trackBy:["ngForTrackBy","trackBy"]}}),c})(),Sf=(()=>{class c{constructor(a,g,b){this.commonStrings=a,this.columnsService=g,this.popoverId=Vr(),this.smartPosition={axis:li.VERTICAL,side:bi.BEFORE,anchor:ln.START,content:ln.START},this.trackByFn=Qm,this.subscription=b.openChange.subscribe(x=>this.openState=x)}get allColumnsVisible(){return this._allColumnsVisible}set allColumnsVisible(a){this._allColumnsVisible=a}ngOnDestroy(){this.subscription.unsubscribe()}get hideableColumnStates(){return this.columnsService.columns.filter(g=>g.value.hideable).map(g=>g.value)}get hasOnlyOneVisibleColumn(){return this.columnsService.columns.length-this.hideableColumnStates.length==0&&1===this.hideableColumnStates.filter(g=>!g.hidden).length}toggleColumnState(a,g){const b=this.columnsService.columns.filter(x=>x.value===a)[0];this.columnsService.emitStateChange(b,{hidden:g,changes:[ui.HIDDEN]})}toggleSwitchPanel(){this.openState=!this.openState}allColumnsSelected(){this.allSelectedElement.nativeElement.focus()}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(an),l.Y36(Ea),l.Y36(Sn))},c.\u0275cmp=l.Xpm({type:c,selectors:[["clr-dg-column-toggle"]],contentQueries:function(a,g,b){if(1&a&&(l.Suo(b,Wm,5),l.Suo(b,Id,5)),2&a){let x;l.iGM(x=l.CRH())&&(g.customToggleTitle=x.first),l.iGM(x=l.CRH())&&(g.customToggleButton=x.first)}},viewQuery:function(a,g){if(1&a&&l.Gf(DS,5,l.SBq),2&a){let b;l.iGM(b=l.CRH())&&(g.allSelectedElement=b.first)}},hostVars:4,hostBindings:function(a,g){2&a&&l.ekj("column-switch-wrapper",!0)("active",g.openState)},features:[l._Bn([ha,$l,Sn])],ngContentSelectors:Wy,decls:3,vars:8,consts:[["role","button","type","button","clrPopoverAnchor","","clrPopoverOpenCloseButton","",1,"btn","btn-sm","column-toggle--action"],["class","column-switch","role","dialog","clrFocusTrap","",3,"id",4,"clrPopoverContent","clrPopoverContentAt","clrPopoverContentOutsideClickToClose","clrPopoverContentScrollToClose"],["role","dialog","clrFocusTrap","",1,"column-switch",3,"id"],[1,"switch-header"],["tabindex","-1",1,"clr-sr-only"],["allSelected",""],[4,"ngIf"],["clrPopoverCloseButton","","type","button",1,"btn","btn-sm","btn-link","toggle-switch-close-button"],["shape","window-close","aria-hidden","true"],[1,"clr-sr-only"],[1,"switch-content","list-unstyled"],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"switch-footer"],[3,"clrAllSelected",4,"ngIf"],["clrCheckbox","","type","checkbox",3,"disabled","ngModel","ngModelChange"],[3,"ngTemplateOutlet"],[3,"clrAllSelected"]],template:function(a,g){1&a&&(l.F$t(Ll),l.TgZ(0,"button",0),l._uU(1),l.qZA(),l.YNc(2,Zy,16,10,"div",1)),2&a&&(l.uIk("aria-controls",g.popoverId)("aria-owns",g.popoverId)("aria-expanded",g.openState),l.xp6(1),l.hij(" ",g.commonStrings.keys.pickColumns," "),l.xp6(1),l.Q6J("clrPopoverContent",g.openState)("clrPopoverContentAt",g.smartPosition)("clrPopoverContentOutsideClickToClose",!0)("clrPopoverContentScrollToClose",!0))},dependencies:[sd,Id,fa,Pc,kc,Uo,M.O5,qg,Jt,M.sg,qm,ot.Wl,od,ot.JJ,ot.On,ci,M.tP],encapsulation:2}),c})(),Km=(()=>{class c{constructor(a,g,b,x){this.selection=a,this.detailService=g,this.columnsService=b,this.commonStrings=x,this.SELECTION_TYPE=_n}get hasHideableColumns(){return this.columnsService.hasHideableColumns}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(_l),l.Y36(Do),l.Y36(Ea),l.Y36(an))},c.\u0275cmp=l.Xpm({type:c,selectors:[["clr-dg-footer"]],contentQueries:function(a,g,b){if(1&a&&l.Suo(b,Sf,5),2&a){let x;l.iGM(x=l.CRH())&&(g.toggle=x.first)}},hostVars:2,hostBindings:function(a,g){2&a&&l.ekj("datagrid-footer",!0)},ngContentSelectors:Ky,decls:3,vars:2,consts:[[4,"ngIf"],[1,"clr-form-control-disabled"],[1,"datagrid-footer-select"],["clrCheckbox","","type","checkbox","checked","checked","disabled",""],[1,"clr-sr-only"],[1,"datagrid-footer-description"]],template:function(a,g){1&a&&(l.F$t(Jy),l.YNc(0,Qy,8,2,"ng-container",0),l.YNc(1,qy,5,1,"ng-container",0),l.Hsn(2)),2&a&&(l.Q6J("ngIf",g.selection.selectionType===g.SELECTION_TYPE.Multi&&g.selection.current.length>0),l.xp6(1),l.Q6J("ngIf",!g.detailService.isOpen))},dependencies:[sd,Sf,M.O5,od,ci],encapsulation:2}),c})();const Xm=new l.OlP("COLUMN_STATE"),mb={provide:Xm,useFactory:function bD(){return new Gn.X({changes:[]})}},ac="datagrid-fixed-width",xd="datagrid-hidden-column";let Ef=(()=>{class c{constructor(a,g,b){this.el=a,this.renderer=g,this.subscriptions=[],this.subscriptions.push(b.filterRenderSteps(Es.CLEAR_WIDTHS).subscribe(()=>this.clearWidth()))}set columnState(a){this.stateSubscription&&this.stateSubscription.unsubscribe(),this.runAllChanges=Ed,this.stateSubscription=a.subscribe(g=>this.stateChanges(g))}ngOnDestroy(){this.subscriptions.forEach(a=>a.unsubscribe()),this.stateSubscription&&this.stateSubscription.unsubscribe()}stateChanges(a){this.runAllChanges&&(a.changes=this.runAllChanges,delete this.runAllChanges),a.changes&&a.changes.length&&a.changes.forEach(g=>{switch(g){case ui.WIDTH:this.setWidth(a);break;case ui.HIDDEN:this.setHidden(a)}})}clearWidth(){this.renderer.removeClass(this.el.nativeElement,ac),this.renderer.setStyle(this.el.nativeElement,"width",null)}setWidth(a){a.strictWidth?this.renderer.addClass(this.el.nativeElement,ac):this.renderer.removeClass(this.el.nativeElement,ac),this.renderer.setStyle(this.el.nativeElement,"width",a.width+"px")}setHidden(a){a.hidden?this.renderer.addClass(this.el.nativeElement,xd):this.renderer.removeClass(this.el.nativeElement,xd)}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(l.SBq),l.Y36(l.Qsj),l.Y36(ml))},c.\u0275dir=l.lG2({type:c,selectors:[["clr-dg-cell"]]}),c})(),Tf=(()=>{class c{constructor(a,g,b,x,$,le,Se){this.el=a,this.renderer=g,this.organizer=b,this.domAdapter=x,this.columnResizerService=$,this.columnsService=le,this.columnState=Se,this.resizeEmitter=new l.vpe,this.widthSet=!1,this.autoSet=!1,this.subscriptions=[],this.subscriptions.push(this.organizer.filterRenderSteps(Es.CLEAR_WIDTHS).subscribe(()=>this.clearWidth())),this.subscriptions.push(Se.subscribe(Pe=>this.stateChanges(Pe)))}ngOnDestroy(){this.subscriptions.forEach(a=>a.unsubscribe())}stateChanges(a){a.changes&&a.changes.length&&a.changes.forEach(g=>{switch(g){case ui.WIDTH:this.setWidth(a);break;case ui.HIDDEN:this.setHidden(a)}})}clearWidth(){this.widthSet&&!this.columnResizerService.resizedBy&&this.renderer.setStyle(this.el.nativeElement,"width",null),this.autoSet&&this.renderer.removeClass(this.el.nativeElement,ac)}detectStrictWidth(){return this.columnResizerService.resizedBy?this.columnResizerService.widthAfterResize:this.autoSet?0:this.domAdapter.userDefinedWidth(this.el.nativeElement)}computeWidth(a){let g=a;return g||(g=this.domAdapter.scrollWidth(this.el.nativeElement)),g}getColumnWidthState(){const a=this.detectStrictWidth();return{width:this.computeWidth(a),strictWidth:a}}setColumnState(a){this.columnsService.columns[a]=this.columnState}setWidth(a){a.strictWidth?(this.columnResizerService.resizedBy&&(this.resizeEmitter.emit(a.width),this.renderer.setStyle(this.el.nativeElement,"width",a.width+"px"),this.widthSet=!1),this.renderer.addClass(this.el.nativeElement,ac),this.autoSet=!1):(this.renderer.removeClass(this.el.nativeElement,ac),this.renderer.setStyle(this.el.nativeElement,"width",a.width+"px"),this.widthSet=!0,this.autoSet=!0)}setHidden(a){a.hidden?this.renderer.addClass(this.el.nativeElement,xd):this.renderer.removeClass(this.el.nativeElement,xd)}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(l.SBq),l.Y36(l.Qsj),l.Y36(ml),l.Y36(Br),l.Y36(pf),l.Y36(Ea),l.Y36(Xm))},c.\u0275dir=l.lG2({type:c,selectors:[["clr-dg-column"]],outputs:{resizeEmitter:"clrDgColumnResize"},features:[l._Bn([pf,mb])]}),c})(),uu=(()=>{class c{userDefinedWidth(a){return 0}scrollBarWidth(a){return 0}scrollWidth(a){return 0}computedHeight(a){return 0}clientRect(a){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}minWidth(a){return 0}focus(a){}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})(),Md=(()=>{class c{constructor(a){this.columnsService=a,this.subscriptions=[]}ngAfterContentInit(){this.setColumnState(),this.subscriptions.push(this.cells.changes.subscribe(()=>{this.setColumnState()}))}ngOnDestroy(){this.subscriptions.forEach(a=>a.unsubscribe())}setColumnState(){this.cells.length===this.columnsService.columns.length&&this.cells.forEach((a,g)=>{this.columnsService.columns[g]&&(a.columnState=this.columnsService.columns[g])})}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(Ea))},c.\u0275dir=l.lG2({type:c,selectors:[["clr-dg-row"],["clr-dg-row-detail"]],contentQueries:function(a,g,b){if(1&a&&l.Suo(b,Ef,4),2&a){let x;l.iGM(x=l.CRH())&&(g.cells=x)}}}),c})();const tv=c=>(0,M.NF)(c)?new Br:new uu;let Af=(()=>{class c{constructor(a,g,b,x,$,le,Se,Pe,nt,Pt){this.organizer=a,this.items=g,this.page=b,this.domAdapter=x,this.el=$,this.renderer=le,this.detailService=Se,this.tableSizeService=Pe,this.columnsService=nt,this.ngZone=Pt,this._heightSet=!1,this.subscriptions=[],this.columnsSizesStable=!1,this.shouldStabilizeColumns=!0,this.subscriptions.push(this.organizer.filterRenderSteps(Es.COMPUTE_COLUMN_WIDTHS).subscribe(()=>this.computeHeadersWidth())),this.subscriptions.push(this.page.sizeChange.subscribe(()=>{this._heightSet&&this.resetDatagridHeight()})),this.subscriptions.push(this.detailService.stateChange.subscribe(Nt=>this.toggleDetailPane(Nt))),this.subscriptions.push(this.items.change.subscribe(()=>this.shouldStabilizeColumns=!0))}ngAfterContentInit(){this.setupColumns(),this.subscriptions.push(this.headers.changes.subscribe(()=>{this.setupColumns(),this.columnsSizesStable=!1,this.stabilizeColumns()}))}ngAfterViewInit(){this.tableSizeService.table=this.el}ngAfterViewChecked(){this.shouldStabilizeColumns&&this.stabilizeColumns(),this.shouldComputeHeight()&&this.ngZone.runOutsideAngular(()=>{setTimeout(()=>{this.computeDatagridHeight()})})}setupColumns(){this.headers.forEach((a,g)=>a.setColumnState(g)),this.columnsService.columns.splice(this.headers.length),this.rows.forEach(a=>a.setColumnState())}shouldComputeHeight(){return!this._heightSet&&this.page.size>0&&this.items.displayed.length===this.page.size}toggleDetailPane(a){this.headers&&(a&&!this.columnsService.hasCache()?(this.columnsService.cache(),this.headers.forEach((g,b)=>{b>0&&this.columnsService.emitStateChangeAt(b,{changes:[ui.HIDDEN],hidden:a})})):a||this.columnsService.resetToLastCache())}computeDatagridHeight(){const a=this.domAdapter.clientRect(this.el.nativeElement).height;this.renderer.setStyle(this.el.nativeElement,"height",a+"px"),this._heightSet=!0}resetDatagridHeight(){this.renderer.setStyle(this.el.nativeElement,"height",""),this._heightSet=!1}ngOnDestroy(){this.subscriptions.forEach(a=>a.unsubscribe())}computeHeadersWidth(){const a=this.headers.length;let g=!0;this.headers.forEach((b,x)=>{const $={changes:[ui.WIDTH],...b.getColumnWidthState()};$.strictWidth||(g=!1),a===x+1&&g&&($.strictWidth=0),this.columnsService.emitStateChangeAt(x,$)})}stabilizeColumns(){this.shouldStabilizeColumns=!1,!this.columnsSizesStable&&this.items.displayed.length>0&&(this.organizer.resize(),this.columnsSizesStable=!0)}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(ml),l.Y36(wa),l.Y36(Sa),l.Y36(Br),l.Y36(l.SBq),l.Y36(l.Qsj),l.Y36(Do),l.Y36(gf),l.Y36(Ea),l.Y36(l.R0b))},c.\u0275dir=l.lG2({type:c,selectors:[["clr-datagrid"]],contentQueries:function(a,g,b){if(1&a&&(l.Suo(b,Tf,4),l.Suo(b,Md,5)),2&a){let x;l.iGM(x=l.CRH())&&(g.headers=x),l.iGM(x=l.CRH())&&(g.rows=x)}},features:[l._Bn([{provide:Br,useFactory:tv,deps:[l.Lbi]}])]}),c})(),nv=(()=>{class c{constructor(){Et.addIcons(Ks,$r,xs,gi,Lr,Or,to,Ko,ns)}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez,In,hf,ot.u5,Ya,Ss,db,rc,zc,Kl,Nc,qc,$c,Za]]}),c})(),If=(()=>{class c{constructor(){Et.addIcons($n)}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez,ot.u5,In,rc]]}),c})();new l.FiY,new l.tp0;let xD=(()=>{class c{constructor(){Et.addIcons($n)}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez,In,Ya]]}),c})(),kf=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[nv,If,xD]}),c})();function Pd(c,f,a){return ro.y.create(g=>{f(g);const b=c.subscribe(g);return()=>{b.unsubscribe(),a&&a(g)}})}let Nd=(()=>{class c{constructor(a,g,b,x,$){this.renderer=a,this.parent=g,this.toggleService=b,this.focusService=x,this.platformId=$,this.id=Vr(),this._unlistenFuncs=[],this.focusBackOnTrigger=!1,this.resetChildren(),this.moveToFirstItemWhenOpen(),this.parent||this.handleRootFocus()}moveToFirstItemWhenOpen(){const a=this.toggleService.openChange.subscribe(g=>{g&&this.toggleService.originalEvent&&setTimeout(()=>{this.focusService.moveTo(this),this.focusService.move(this.parent?qi.RIGHT:qi.DOWN)})});this._unlistenFuncs.push(()=>a.unsubscribe())}handleRootFocus(){const a=this.toggleService.openChange.subscribe(g=>{g||(this.focusService.reset(this),this.focusBackOnTrigger&&this.focus()),this.focusBackOnTrigger=g});this._unlistenFuncs.push(()=>a.unsubscribe())}get trigger(){return this._trigger}set trigger(a){this._trigger=a,this.parent?this._unlistenFuncs.push(this.renderer.listen(a,"keydown.arrowright",g=>this.toggleService.toggleWithEvent(g))):(this._unlistenFuncs.push(this.renderer.listen(a,"keydown.arrowup",g=>this.toggleService.toggleWithEvent(g))),this._unlistenFuncs.push(this.renderer.listen(a,"keydown.arrowdown",g=>this.toggleService.toggleWithEvent(g))),this.focusService.listenToArrowKeys(a))}get container(){return this._container}set container(a){this._container=a,this._unlistenFuncs.push(this.renderer.listen(a,"keydown.tab",g=>this.toggleService.toggleWithEvent(g))),this.parent?this._unlistenFuncs.push(this.renderer.listen(a,"keydown.escape",g=>{this.focusService.move(qi.LEFT),g.stopPropagation()})):(this.focusService.registerContainer(a),this._unlistenFuncs.push(this.renderer.listen(a,"keydown.escape",g=>this.toggleService.toggleWithEvent(g))),this._unlistenFuncs.push(this.renderer.listen(a,"blur",g=>{this.children.pipe((0,Oo.q)(1)).subscribe(x=>x.forEach($=>$.blur()));const b=g.relatedTarget||document.activeElement;b&&(0,M.NF)(this.platformId)&&(a.contains(b)||b===this.trigger)||(this.focusBackOnTrigger=!1,this.toggleService.open=!1)})))}focus(){this.trigger&&(0,M.NF)(this.platformId)&&this.trigger.focus()}blur(){this.trigger&&(0,M.NF)(this.platformId)&&this.trigger.blur()}activate(){(0,M.NF)(this.platformId)&&this.trigger.click()}openAndGetChildren(){return Pd(this.children,()=>this.toggleService.open=!0)}closeAndGetThis(){return Pd((0,N.of)(this),()=>this.toggleService.open=!1)}resetChildren(){this.children=new Zr(1),this.parent?this.right=this.openAndGetChildren().pipe((0,mn.U)(a=>a[0])):(this.down=this.openAndGetChildren().pipe((0,mn.U)(a=>a[0])),this.up=this.openAndGetChildren().pipe((0,mn.U)(a=>a[a.length-1])))}addChildren(a){zs.linkVertical(a),this.parent&&zs.linkParent(a,this.closeAndGetThis(),qi.LEFT),this.children.next(a)}ngOnDestroy(){this._unlistenFuncs.forEach(a=>a()),this.focusService.detachListeners()}}return c.\u0275fac=function(a){return new(a||c)(l.LFG(l.Qsj),l.LFG(c,12),l.LFG(Sn),l.LFG(ga),l.LFG(l.Lbi))},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})();rf(Nd);new l.FiY,new l.tp0;var He=(()=>(function(c){c[c.RIGHT_CENTER=0]="RIGHT_CENTER",c[c.RIGHT_TOP=1]="RIGHT_TOP",c[c.RIGHT_BOTTOM=2]="RIGHT_BOTTOM",c[c.TOP_CENTER=3]="TOP_CENTER",c[c.TOP_RIGHT=4]="TOP_RIGHT",c[c.TOP_LEFT=5]="TOP_LEFT",c[c.BOTTOM_CENTER=6]="BOTTOM_CENTER",c[c.BOTTOM_RIGHT=7]="BOTTOM_RIGHT",c[c.BOTTOM_LEFT=8]="BOTTOM_LEFT",c[c.LEFT_CENTER=9]="LEFT_CENTER",c[c.LEFT_TOP=10]="LEFT_TOP",c[c.LEFT_BOTTOM=11]="LEFT_BOTTOM"}(He||(He={})),He))();const Lf="absolute";class fv{constructor(f){this.element=f,this.scrollableElements=[],this.boundOnScrollListener=this.emitScrollEvent.bind(this),f.style.position=Lf,f.style.top=0,f.style.bottom="auto",f.style.left=0,f.style.right="auto"}anchor(f,a,g,{offsetX:b=0,offsetY:x=0,useAnchorParent:$=!1}={}){this.addScrollEventListeners(f),$&&(f=f.parentNode),f.style.position="static";const le=f.getBoundingClientRect(),Se=this.element.getBoundingClientRect();let Pe=le.left-Se.left+b,nt=le.top-Se.top+x;switch(a){case He.LEFT_TOP:case He.TOP_LEFT:break;case He.TOP_CENTER:Pe+=le.width/2;break;case He.TOP_RIGHT:case He.RIGHT_TOP:Pe+=le.width;break;case He.LEFT_BOTTOM:case He.BOTTOM_LEFT:nt+=le.height;break;case He.BOTTOM_CENTER:nt+=le.height,Pe+=le.width/2;break;case He.BOTTOM_RIGHT:case He.RIGHT_BOTTOM:nt+=le.height,Pe+=le.width;break;case He.LEFT_CENTER:nt+=le.height/2;break;case He.RIGHT_CENTER:nt+=le.height/2,Pe+=le.width}switch(g){case He.LEFT_TOP:case He.TOP_LEFT:break;case He.TOP_CENTER:Pe-=Se.width/2;break;case He.TOP_RIGHT:case He.RIGHT_TOP:Pe-=Se.width;break;case He.LEFT_BOTTOM:case He.BOTTOM_LEFT:nt-=Se.height;break;case He.BOTTOM_CENTER:nt-=Se.height,Pe-=Se.width/2;break;case He.BOTTOM_RIGHT:case He.RIGHT_BOTTOM:nt-=Se.height,Pe-=Se.width;break;case He.LEFT_CENTER:nt-=Se.height/2;break;case He.RIGHT_CENTER:nt-=Se.height/2,Pe-=Se.width}const Pt=getComputedStyle(this.element),Nt=parseInt(Pt.marginLeft,10),yn=parseInt(Pt.marginRight,10),fr=parseInt(Pt.marginTop,10),qr=parseInt(Pt.marginBottom,10);switch(a){case He.LEFT_TOP:case He.TOP_LEFT:case He.TOP_RIGHT:case He.RIGHT_TOP:(g===He.BOTTOM_RIGHT||g===He.RIGHT_BOTTOM)&&(nt-=qr,Pe-=yn),(g===He.BOTTOM_LEFT||g===He.LEFT_BOTTOM)&&(nt-=fr,Pe+=Nt),(g===He.TOP_LEFT||g===He.LEFT_TOP)&&(nt+=fr,Pe+=Nt),(g===He.TOP_RIGHT||g===He.RIGHT_TOP)&&(nt+=fr,Pe-=yn);break;case He.LEFT_BOTTOM:case He.BOTTOM_LEFT:case He.BOTTOM_RIGHT:case He.RIGHT_BOTTOM:(g===He.BOTTOM_LEFT||g===He.LEFT_BOTTOM)&&(nt-=qr,Pe+=Nt),(g===He.BOTTOM_RIGHT||g===He.RIGHT_BOTTOM)&&(nt-=qr,Pe-=yn),(g===He.TOP_LEFT||g===He.LEFT_TOP)&&(nt+=fr,Pe+=Nt),(g===He.TOP_RIGHT||g===He.RIGHT_TOP)&&(nt+=fr,Pe-=yn);break;case He.TOP_CENTER:nt-=qr,Pe+=Nt,Pe-=yn;break;case He.BOTTOM_CENTER:nt+=fr,Pe+=Nt,Pe-=yn;break;case He.LEFT_CENTER:nt+=fr,nt-=qr,Pe-=yn;break;case He.RIGHT_CENTER:nt+=fr,nt-=qr,Pe+=Nt}return this.element.style.transform=`translateX(${Math.round(Pe)}px) translateY(${Math.round(nt)}px)`,this._scroll.asObservable()}release(){this.element.style.transform="",this.removeScrollEventListeners()}isPositioned(f){const a=getComputedStyle(f).position;return"relative"===a||a===Lf||"fixed"===a}emitScrollEvent(){this._scroll.next()}addScrollEventListeners(f){this._scroll=new Ue.xQ;const a=f;let g=f;for(;g&&g!==document&&(this.scrolls(g)&&(g.addEventListener("scroll",this.boundOnScrollListener),this.scrollableElements.push(g)),g===a||!this.isPositioned(g));)g=g.parentNode}removeScrollEventListeners(){for(const f of this.scrollableElements)f.removeEventListener("scroll",this.boundOnScrollListener);this.scrollableElements.length=0,this._scroll&&(this._scroll.complete(),delete this._scroll)}scrolls(f){const a=getComputedStyle(f);return"scroll"===a.overflowX||"auto"===a.overflowX||"scroll"===a.overflowY||"auto"===a.overflowY}}let Bf=(()=>{class c{constructor(a,g){this.parentHost=g,this.updateAnchor=!1,this.popoverOptions={},this.closeOnOutsideClick=!1,this.documentESCListener=null,this.closeOnOutsideClickCallback=b=>{this.anchorElem.contains(b.target)||(this.toggleService.open=!1)},this.el=a.get(l.SBq),this.toggleService=a.get(Sn),this.renderer=a.get(l.Qsj),this.ngZone=a.get(l.R0b),this.ref=a.get(l.sBO),this.anchorElem=g.nativeElement,this.popoverInstance=new fv(this.el.nativeElement),this.subscription=this.toggleService.openChange.subscribe(b=>{b?(this.anchor(),this.attachESCListener()):(this.release(),this.detachESCListener())}),this.toggleService.open&&(this.anchor(),this.attachESCListener())}anchor(){this.updateAnchor=!0}release(){this.detachOutsideClickListener(),this.popoverInstance.release()}ngAfterViewChecked(){this.updateAnchor&&(this.updateAnchor=!1,this.popoverInstance.anchor(this.anchorElem,this.anchorPoint,this.popoverPoint,this.popoverOptions).subscribe(()=>{this.toggleService.open=!1}),this.attachOutsideClickListener())}ngOnDestroy(){this.release(),this.detachESCListener(),this.subscription.unsubscribe()}get isOffScreen(){return!this.toggleService.open}attachESCListener(){this.popoverOptions.ignoreGlobalESCListener||this.ngZone.runOutsideAngular(()=>{this.documentESCListener=this.renderer.listen("document","keydown",a=>{a&&a.key&&mo(a.key)===ht.Escape&&this.ngZone.run(()=>{this.toggleService.open=!1,this.ref.markForCheck()})})})}detachESCListener(){this.documentESCListener&&(this.documentESCListener(),this.documentESCListener=null)}attachOutsideClickListener(){this.closeOnOutsideClick&&this.toggleService.open&&document&&document.addEventListener&&document.addEventListener("click",this.closeOnOutsideClickCallback,!0)}detachOutsideClickListener(){this.closeOnOutsideClick&&document&&document.removeEventListener&&document.removeEventListener("click",this.closeOnOutsideClickCallback,!0)}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(l.zs3),l.Y36(l.SBq,4))},c.\u0275dir=l.lG2({type:c,hostVars:2,hostBindings:function(a,g){2&a&&l.ekj("is-off-screen",g.isOffScreen)}}),c})(),Xa=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez],Ss,In]}),c})(),zf=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275dir=l.lG2({type:c,selectors:[["",8,"alert-text"]]}),c})(),mv=(()=>{class c{constructor(){Et.addIcons(Mr,ji,rn,is,xs)}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez,In,Xa]]}),c})(),vv=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[mv]}),c})(),Dn=(()=>{class c{}return c.NAV_LEVEL_1=1,c.NAV_LEVEL_2=2,c.NAV_CLOSE_ALL="NAV_CLOSE_ALL",c.NAV_OPEN="NAV_OPEN",c.NAV_CLOSE="NAV_CLOSE",c.NAV_TOGGLE="NAV_TOGGLE",c.NAV_CLASS_HAMBURGER_MENU="open-hamburger-menu",c.NAV_CLASS_OVERFLOW_MENU="open-overflow-menu",c.NAV_CLASS_TRIGGER_1="header-hamburger-trigger",c.NAV_CLASS_TRIGGER_2="header-overflow-trigger",c.NAV_CLASS_LEVEL_1="clr-nav-level-1",c.NAV_CLASS_LEVEL_2="clr-nav-level-2",c})();class _v{constructor(f,a){this._controlCode=f,this._navLevel=a}get controlCode(){return this._controlCode}get navLevel(){return this._navLevel}}let Rd=(()=>{class c{constructor(){this.responsiveNavList=[],this.registerNavSubject=new Zr,this.controlNavSubject=new Ue.xQ,this.closeAllNavs()}get registeredNavs(){return this.registerNavSubject.asObservable()}get navControl(){return this.controlNavSubject.asObservable()}registerNav(a){!a||this.isNavRegistered(a)||(this.responsiveNavList.push(a),this.registerNavSubject.next(this.responsiveNavList))}isNavRegistered(a){return this.responsiveNavList.indexOf(a)>-1&&(console.error("Multiple clr-nav-level "+a+" attributes found. Please make sure that only one exists"),!0)}unregisterNav(a){const g=this.responsiveNavList.indexOf(a);g>-1&&(this.responsiveNavList.splice(g,1),this.registerNavSubject.next(this.responsiveNavList))}sendControlMessage(a,g){const b=new _v(a,g);this.controlNavSubject.next(b)}closeAllNavs(){const a=new _v(Dn.NAV_CLOSE_ALL,-999);this.controlNavSubject.next(a)}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"}),c})(),Ld=(()=>{class c{constructor(a,g){this.elRef=a,this.responsiveNavService=g}ngOnInit(){this._classList=this.elRef.nativeElement.classList,this._subscription=this.responsiveNavService.navControl.subscribe({next:a=>{this.processMessage(a)}})}processMessage(a){let g=Dn.NAV_CLASS_HAMBURGER_MENU;a.controlCode===Dn.NAV_CLOSE_ALL?(this._classList.remove(Dn.NAV_CLASS_HAMBURGER_MENU),this._classList.remove(Dn.NAV_CLASS_OVERFLOW_MENU)):a.navLevel===Dn.NAV_LEVEL_1?this.controlNav(a.controlCode,g):a.navLevel===Dn.NAV_LEVEL_2&&(g=Dn.NAV_CLASS_OVERFLOW_MENU,this.controlNav(a.controlCode,g))}controlNav(a,g){a===Dn.NAV_OPEN?this._classList.add(g):a===Dn.NAV_CLOSE?this._classList.remove(g):a===Dn.NAV_TOGGLE&&this._classList.toggle(g)}ngOnDestroy(){this._subscription.unsubscribe()}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(l.SBq),l.Y36(Rd))},c.\u0275dir=l.lG2({type:c,selectors:[["clr-main-container"]],hostVars:2,hostBindings:function(a,g){2&a&&l.ekj("main-container",!0)}}),c})(),yv=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez,In]]}),c})(),du=(()=>{class c extends jl{}return c.\u0275fac=function(){let f;return function(g){return(f||(f=l.n5z(c)))(g||c)}}(),c.\u0275dir=l.lG2({type:c,selectors:[["clr-main-container"]],features:[l.qOj]}),c})(),Fb=(()=>{class c extends zl{constructor(a,g,b){if(!g)throw new Error("clr-header should only be used inside of a clr-main-container");super(a,g),this.responsiveNavService=b}get flavor(){return this.responsiveNavService.responsiveNavList.reduce((a,g)=>a+g,0)}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(l.sBO),l.Y36(du,8),l.Y36(Rd))},c.\u0275dir=l.lG2({type:c,selectors:[["clr-header"]],features:[l.qOj]}),c})(),Uf=(()=>{class c{constructor(a,g){this.responsiveNavService=a,this.commonStrings=g,this.isNavLevel1OnPage=!1,this.isNavLevel2OnPage=!1,this.openNavLevel=null,this.responsiveNavCodes=Dn,this._subscription=this.responsiveNavService.registeredNavs.subscribe({next:b=>{this.initializeNavTriggers(b)}}),this._subscription.add(this.responsiveNavService.navControl.pipe((0,or.h)(({controlCode:b})=>b===Dn.NAV_CLOSE||b===Dn.NAV_CLOSE_ALL)).subscribe(()=>{this.openNavLevel=null}))}get responsiveNavCommonString(){const a=this.commonStrings.keys;return this.openNavLevel!==this.responsiveNavCodes.NAV_LEVEL_1?a.responsiveNavToggleOpen:a.responsiveNavToggleClose}get responsiveOverflowCommonString(){const a=this.commonStrings.keys;return this.openNavLevel!==this.responsiveNavCodes.NAV_LEVEL_2?a.responsiveNavOverflowOpen:a.responsiveNavOverflowClose}resetNavTriggers(){this.isNavLevel1OnPage=!1,this.isNavLevel2OnPage=!1}initializeNavTriggers(a){this.resetNavTriggers(),a.length>2?console.error("More than 2 Nav Levels detected."):a.forEach(g=>{g===Dn.NAV_LEVEL_1?this.isNavLevel1OnPage=!0:g===Dn.NAV_LEVEL_2&&(this.isNavLevel2OnPage=!0)})}closeOpenNav(){this.responsiveNavService.closeAllNavs()}toggleNav(a){this.openNavLevel!==a?this.openNav(a):this.responsiveNavService.sendControlMessage(Dn.NAV_CLOSE,a)}openNav(a){this.openNavLevel=a,this.responsiveNavService.sendControlMessage(Dn.NAV_OPEN,a)}ngOnDestroy(){this._subscription.unsubscribe()}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(Rd),l.Y36(an))},c.\u0275cmp=l.Xpm({type:c,selectors:[["clr-header"]],hostVars:2,hostBindings:function(a,g){2&a&&l.ekj("header",!0)},ngContentSelectors:Dt,decls:4,vars:2,consts:[["type","button","class","header-hamburger-trigger",3,"click",4,"ngIf"],["type","button","class","header-overflow-trigger",3,"click",4,"ngIf"],[1,"header-backdrop",3,"click"],["type","button",1,"header-hamburger-trigger",3,"click"],["type","button",1,"header-overflow-trigger",3,"click"]],template:function(a,g){1&a&&(l.F$t(),l.YNc(0,cC,2,2,"button",0),l.Hsn(1),l.YNc(2,kh,2,2,"button",1),l.TgZ(3,"div",2),l.NdJ("click",function(){return g.closeOpenNav()}),l.qZA()),2&a&&(l.Q6J("ngIf",g.isNavLevel1OnPage),l.xp6(2),l.Q6J("ngIf",g.isNavLevel2OnPage))},dependencies:[M.O5],encapsulation:2}),c})();function bl(c){const f=c.createElement("span");return f.setAttribute("tabindex","0"),f.classList.add("offscreen-focus-rebounder"),f}let Rb=(()=>{class c extends class FD{constructor(f,a,g,b){this.renderer=f,this.active=!1,(0,M.NF)(g)&&(this._document=a.get(M.K0)),b.focusTrapId||(b.focusTrapId=function di(c="_"){return`${c}${Math.random().toString(36).substr(2,9)}`}()),this.focusTrapElement=b}enableFocusTrap(){const f=this.focusTrapElement,a=f.querySelector("[cds-first-focus]"),g=this._document.activeElement;if(Ro.getCurrent()===f)throw new Error("Focus trap is already enabled for this instance.");this.firstFocusElement=a||this.focusTrapElement,function Pb(c,f){if(f&&!f.topReboundElement&&!f.bottomReboundElement){f.topReboundElement=bl(c),f.bottomReboundElement=bl(c);const a=f.parentElement,g=f.nextSibling;a&&(a.insertBefore(f.topReboundElement,f),g?a.insertBefore(f.bottomReboundElement,g):a.appendChild(f.bottomReboundElement))}}(this._document,f),function O(c){switch(c.tagName.toLowerCase()){case"input":return"hidden"!==c.getAttribute("type")&&!c.hasAttribute("disabled")&&!c.hasAttribute("readonly");case"button":case"select":case"textarea":return!c.hasAttribute("disabled");case"iframe":case"embed":case"object":return!0;case"a":case"area":return c.hasAttribute("href");case"audio":case"video":return c.hasAttribute("controls");default:return c.hasAttribute("tabindex")||"true"===c.getAttribute("contenteditable")||"button"===c.getAttribute("role")&&!c.hasAttribute("disabled")}}(f)||f.setAttribute("tabindex","-1"),g&&function K(c){return!!c&&c instanceof HTMLElement}(g)&&(this.previousFocus=g),Ro.setCurrent(f);const b=setTimeout(()=>{this.firstFocusElement.focus(),clearTimeout(b)},10);this.onFocusInEvent=this.onFocusIn.bind(this),this.unlisten=this.renderer.listen(this._document,"focusin",this.onFocusInEvent),this.active=!0}removeFocusTrap(){this.unlisten&&this.unlisten(),function bv(c){if(c){const f=c.parentElement;if(f){const a=c.topReboundElement,g=c.bottomReboundElement;a&&f.removeChild(a),g&&f.removeChild(g)}delete c.topReboundElement,delete c.bottomReboundElement}}(this.focusTrapElement),this.renderer.removeAttribute(this.focusTrapElement,"tabindex"),Ro.activatePreviousCurrent(),this.active=!1,this.previousFocus&&this.previousFocus.focus()}onFocusIn(f){!function kb(c,f,a){const g=Ro.getCurrent()===f,b=function Cv(c,f){return c===f.topReboundElement||c===f.bottomReboundElement||!(f.contains(c)||null!==f&&f.contains(c))}(c,f);g&&b?(a=a||f).focus():c.focus()}(f.composedPath()[0],this.focusTrapElement,this.firstFocusElement)}}{constructor(a,g,b,x,$){super(x,$,a,b.nativeElement),this.responsiveNavService=g,this.elementRef=b,this._isOpen=!1,(0,M.NF)(a)&&(this._document=$.get(M.K0)),this._subscription=g.navControl.pipe((0,or.h)(le=>le.navLevel===this.level),(0,or.h)(({controlCode:le})=>le===Dn.NAV_OPEN&&!this.isOpen||le===Dn.NAV_CLOSE&&this.isOpen)).subscribe(({controlCode:le})=>{le!==Dn.NAV_OPEN?this.close():this.open()}),this._subscription.add(g.navControl.pipe((0,or.h)(({controlCode:le})=>le===Dn.NAV_CLOSE_ALL)).subscribe(()=>this.close()))}ngOnInit(){this.closeButtonAriaLabel||(this.closeButtonAriaLabel=this._level===Dn.NAV_LEVEL_1?Uh.responsiveNavToggleClose:Uh.responsiveNavOverflowClose),this.level===Dn.NAV_LEVEL_1||this.level===Dn.NAV_LEVEL_2?(this.responsiveNavService.registerNav(this.level),this.addNavClass(this.level)):console.error("Nav Level can only be 1 or 2")}ngAfterViewInit(){const a=((c,f)=>{const a=this._document.createElement("cds-internal-close-button");return a.setAttribute("icon-size","32"),a.setAttribute("aria-label",f),a.setAttribute("aria-hidden","true"),a.setAttribute("type","button"),a.setAttribute("hidden","true"),a.className="clr-nav-close",a})(0,this.closeButtonAriaLabel);this.renderer.listen(a,"click",this.close.bind(this)),this.renderer.insertBefore(this.elementRef.nativeElement,a,this.elementRef.nativeElement.firstChild),this._document.body.clientWidth<992&&this.close()}addNavClass(a){const g=this.elementRef.nativeElement.classList;a===Dn.NAV_LEVEL_1?g.add(Dn.NAV_CLASS_LEVEL_1):a===Dn.NAV_LEVEL_2&&g.add(Dn.NAV_CLASS_LEVEL_2)}get level(){return this._level}get responsiveNavCodes(){return Dn}get isOpen(){return this._isOpen}onResize(a){a.target.innerWidth<992&&this.isOpen?this.close():this.showNavigation()}open(){this._isOpen=!0,this.showNavigation(),this.enableFocusTrap(),this.showCloseButton(),this.responsiveNavService.sendControlMessage(Dn.NAV_OPEN,this.level)}close(){this._isOpen=!1,this.hideNavigation(),this.removeFocusTrap(),this.hideCloseButton(),this.responsiveNavService.sendControlMessage(Dn.NAV_CLOSE,this.level)}onMouseClick(a){let g=a;const b=this.elementRef.nativeElement;for(;g;){if(g===b)return;if(g.classList.contains("nav-link")&&this._document.body.clientWidth<992)return void this.close();g=g.parentNode}}hideNavigation(){this.renderer.setAttribute(this.elementRef.nativeElement,"aria-hidden","true"),this.renderer.setAttribute(this.elementRef.nativeElement,"hidden","true")}showNavigation(){this.renderer.setAttribute(this.elementRef.nativeElement,"aria-hidden","false"),this.renderer.removeAttribute(this.elementRef.nativeElement,"hidden")}hideCloseButton(){this.renderer.setAttribute(this.elementRef.nativeElement,"aria-hidden","true"),this.renderer.setAttribute(this.elementRef.nativeElement.querySelector(".clr-nav-close"),"hidden","true")}showCloseButton(){this.renderer.setAttribute(this.elementRef.nativeElement.querySelector(".clr-nav-close"),"aria-hidden","false"),this.renderer.removeAttribute(this.elementRef.nativeElement.querySelector(".clr-nav-close"),"hidden")}ngOnDestroy(){this.responsiveNavService.unregisterNav(this.level),this._subscription.unsubscribe()}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(l.Lbi),l.Y36(Rd),l.Y36(l.SBq),l.Y36(l.Qsj),l.Y36(l.zs3))},c.\u0275dir=l.lG2({type:c,selectors:[["","clr-nav-level",""]],hostBindings:function(a,g){1&a&&l.NdJ("resize",function(x){return g.onResize(x)},!1,l.Jf7)("click",function(x){return g.onMouseClick(x.target)})},inputs:{_level:["clr-nav-level","_level"],closeButtonAriaLabel:["closeAriaLabel","closeButtonAriaLabel"]},features:[l.qOj]}),c})(),Lb=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez,In,Xa]]}),c})(),wv=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez]]}),c})();new l.OlP("TABS_ID");let PD=(()=>{class c{constructor(){Et.addIcons(Aa)}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez,Ss,In,wv,qc],Ss]}),c})(),kv=(()=>{class c{constructor(){this.navGroupCount=0}registerNavGroup(){this.navGroupCount++}unregisterNavGroup(){this.navGroupCount--}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})(),Pv=(()=>{class c{constructor(){this._icons=0}get hasIcons(){return this._icons>0}registerIcon(){this._icons++}unregisterIcon(){this._icons--}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})(),Nv=(()=>{class c{constructor(){this._animateOnCollapsed=new Ue.xQ,this._collapsedChanged=new Ue.xQ,this._collapsed=!1,this._collapsible=!1}get animateOnCollapsed(){return this._animateOnCollapsed.asObservable()}get collapsedChanged(){return this._collapsedChanged.asObservable()}get collapsed(){return this._collapsed}set collapsed(a){a=!!a,this.collapsible&&this._collapsed!==a&&this.updateCollapseBehavior(a)}get collapsible(){return this._collapsible}set collapsible(a){this._collapsible!==(a=!!a)&&(!a&&this.collapsed&&this.updateCollapseBehavior(!1),this._collapsible=a)}updateCollapseBehavior(a){this._animateOnCollapsed.next(a),this._collapsed=a,this._collapsedChanged.next(a)}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})(),zb=(()=>{class c{constructor(a,g,b,x){this._navService=a,this._navIconService=g,this._navGroupRegistrationService=b,this.commonStrings=x,this._collapsedChanged=new l.vpe(!0),this._sub=this._navService.collapsedChanged.subscribe($=>{this._collapsedChanged.emit($)})}get collapsible(){return this._navService.collapsible}set collapsible(a){this._navService.collapsible=a}get collapsed(){return this._navService.collapsed}set collapsed(a){this._navService.collapsed=a}get hasNavGroups(){return this._navGroupRegistrationService.navGroupCount>0}get hasIcons(){return this._navIconService.hasIcons}get ariaExpanded(){return this.collapsible?this.collapsed?"false":"true":null}toggleByButton(){this.collapsed=!this.collapsed}ngOnDestroy(){this._sub.unsubscribe()}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(Nv),l.Y36(Pv),l.Y36(kv),l.Y36(an))},c.\u0275cmp=l.Xpm({type:c,selectors:[["clr-vertical-nav"]],hostAttrs:[1,"clr-vertical-nav"],hostVars:6,hostBindings:function(a,g){2&a&&l.ekj("is-collapsed",g.collapsed)("has-nav-groups",g.hasNavGroups)("has-icons",g.hasIcons)},inputs:{collapsible:["clrVerticalNavCollapsible","collapsible"],collapsed:["clrVerticalNavCollapsed","collapsed"]},outputs:{_collapsedChanged:"clrVerticalNavCollapsedChange"},features:[l._Bn([Nv,Pv,kv])],ngContentSelectors:Dt,decls:4,vars:2,consts:[["type","button","class","nav-trigger",3,"on-collapse","click",4,"ngIf"],[1,"nav-content"],["class","nav-btn","aria-hidden","true","tabindex","-1",3,"click",4,"ngIf"],["type","button",1,"nav-trigger",3,"click"],["shape","angle-double",1,"nav-trigger-icon"],["aria-hidden","true","tabindex","-1",1,"nav-btn",3,"click"]],template:function(a,g){1&a&&(l.F$t(),l.YNc(0,Ha,2,6,"button",0),l.TgZ(1,"div",1),l.Hsn(2),l.YNc(3,Ph,1,1,"button",2),l.qZA()),2&a&&(l.Q6J("ngIf",g.collapsible),l.xp6(3),l.Q6J("ngIf",g.collapsible&&g.collapsed))},dependencies:[M.O5,Jt],encapsulation:2}),c})(),Rv=(()=>{class c{constructor(){this._expandChange=new Ue.xQ}get expandChange(){return this._expandChange.asObservable()}expand(){this._expandChange.next(!0)}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})();const Hd="expanded",qs="collapsed";let Ub=(()=>{class c{constructor(a,g,b,x,$){this._itemExpand=a,this._navGroupRegistrationService=g,this._navGroupService=b,this._navService=x,this.commonStrings=$,this.wasExpanded=!1,this.groupLabel=this.commonStrings.keys.verticalNavGroupToggle,this.expandedChange=new l.vpe(!0),this._subscriptions=[],this._expandAnimationState=qs,this._navGroupRegistrationService.registerNavGroup(),this._subscriptions.push(this._itemExpand.expandChange.subscribe(le=>{le&&this.expandAnimationState===qs?(this._navService.collapsed&&(this._navService.collapsed=!1),this.expandAnimationState=Hd):!le&&this.expandAnimationState===Hd&&(this.expandAnimationState=qs)})),this._subscriptions.push(this._navService.animateOnCollapsed.subscribe(le=>{le&&this.expanded?(this.wasExpanded=!0,this.expandAnimationState=qs):!le&&this.wasExpanded&&(this.expandGroup(),this.wasExpanded=!1)})),this._subscriptions.push(this._navGroupService.expandChange.subscribe(le=>{le&&!this.expanded&&this.expandGroup()}))}get expanded(){return this._itemExpand.expanded}set expanded(a){this._itemExpand.expanded!==a&&(this._itemExpand.expanded=a,this.expandedChange.emit(a))}set userExpandedInput(a){this.expanded!==(a=!!a)&&this.toggleExpand()}expandGroup(){this.expanded=!0,this.expandAnimationState=Hd}collapseGroup(){this.expandAnimationState=qs}expandAnimationDone(a){a.toState===qs&&(this.expanded=!1)}get expandAnimationState(){return this._expandAnimationState}set expandAnimationState(a){a!==this._expandAnimationState&&(this._expandAnimationState=a)}toggleExpand(){this.expanded?this.collapseGroup():(this._navService.collapsed&&(this._navService.collapsed=!1),this.expandGroup())}ngAfterContentInit(){this._navService.collapsed&&this.expanded&&(this.wasExpanded=!0,this.expandAnimationState=qs)}ngOnDestroy(){this._subscriptions.forEach(a=>a.unsubscribe()),this._navGroupRegistrationService.unregisterNavGroup()}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(Ci),l.Y36(kv),l.Y36(Rv),l.Y36(Nv),l.Y36(an))},c.\u0275cmp=l.Xpm({type:c,selectors:[["clr-vertical-nav-group"]],hostAttrs:[1,"nav-group"],hostVars:2,hostBindings:function(a,g){2&a&&l.ekj("is-expanded",g.expanded)},inputs:{groupLabel:["clrVerticalNavGroupLabel","groupLabel"],userExpandedInput:["clrVerticalNavGroupExpanded","userExpandedInput"]},outputs:{expandedChange:"clrVerticalNavGroupExpandedChange"},features:[l._Bn([Ci,Rv])],ngContentSelectors:Og,decls:9,vars:5,consts:[[1,"nav-group-content"],["type","button",1,"nav-group-trigger",3,"click"],[1,"nav-group-text"],["shape","angle",1,"nav-group-trigger-icon"],[1,"nav-group-children"]],template:function(a,g){1&a&&(l.F$t(uC),l.TgZ(0,"div",0),l.Hsn(1),l.TgZ(2,"button",1),l.NdJ("click",function(){return g.toggleExpand()}),l.Hsn(3,1),l.TgZ(4,"div",2),l.Hsn(5,2),l.qZA(),l._UZ(6,"cds-icon",3),l.qZA()(),l.TgZ(7,"div",4),l.NdJ("@clrExpand.done",function(x){return g.expandAnimationDone(x)}),l.Hsn(8,3),l.qZA()),2&a&&(l.xp6(2),l.uIk("aria-expanded",g.expanded)("aria-label",g.groupLabel),l.xp6(4),l.uIk("direction",g.expanded?"down":"right")("title",g.expanded?g.commonStrings.keys.collapse:g.commonStrings.keys.expand),l.xp6(1),l.Q6J("@clrExpand",g.expandAnimationState))},dependencies:[Jt],encapsulation:2,data:{animation:[(0,Ye.X$)("clrExpand",[(0,Ye.SB)(Hd,(0,Ye.oB)({height:"*"})),(0,Ye.SB)(qs,(0,Ye.oB)({height:0,visibility:"hidden"})),(0,Ye.eR)(`${Hd} <=> ${qs}`,(0,Ye.jt)("0.2s ease-in-out"))])]}}),c})(),Gf=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275cmp=l.Xpm({type:c,selectors:[["clr-vertical-nav-group-children"]],ngContentSelectors:Dt,decls:1,vars:0,template:function(a,g){1&a&&(l.F$t(),l.Hsn(0))},encapsulation:2}),c})(),fu=(()=>{class c{constructor(a){this._verticalNavIconService=a,this._verticalNavIconService.registerIcon()}ngOnDestroy(){this._verticalNavIconService.unregisterIcon()}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(Pv))},c.\u0275dir=l.lG2({type:c,selectors:[["","clrVerticalNavIcon",""]],hostAttrs:[1,"nav-icon"]}),c})(),Yf=(()=>{class c{constructor(a,g,b){this.destroy$=new Ue.xQ,b&&(0,Cn.R)(a.nativeElement,"click").pipe((0,$i.R)(this.destroy$)).subscribe(()=>{b.expand(),g.markForCheck()})}ngOnDestroy(){this.destroy$.next()}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(l.SBq),l.Y36(l.sBO),l.Y36(Rv,8))},c.\u0275cmp=l.Xpm({type:c,selectors:[["","clrVerticalNavLink",""]],hostAttrs:[1,"nav-link"],attrs:Nh,ngContentSelectors:Rh,decls:3,vars:0,consts:[[1,"nav-text"]],template:function(a,g){1&a&&(l.F$t(Fg),l.Hsn(0),l.TgZ(1,"span",0),l.Hsn(2,1),l.qZA())},encapsulation:2}),c})(),ND=(()=>{class c{constructor(){Et.addIcons($n,to)}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez,In,Ss,Za],Ss,In,Za]}),c})(),Zf=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[yv,Lb,PD,ND]}),c})(),Vv=(()=>{class c{constructor(){Et.addIcons(xs)}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez,In,$c,Za],In,Za]}),c})();const Gb={"top-left":{anchorPoint:He.TOP_CENTER,popoverPoint:He.BOTTOM_RIGHT,offsetY:-10,offsetX:0},"top-middle":{anchorPoint:He.TOP_CENTER,popoverPoint:He.BOTTOM_CENTER,offsetY:-10,offsetX:0},"top-right":{anchorPoint:He.TOP_CENTER,popoverPoint:He.BOTTOM_LEFT,offsetY:-10,offsetX:0},"right-top":{anchorPoint:He.RIGHT_CENTER,popoverPoint:He.LEFT_BOTTOM,offsetY:2,offsetX:14},"right-middle":{anchorPoint:He.RIGHT_CENTER,popoverPoint:He.LEFT_CENTER,offsetY:6,offsetX:14},"right-bottom":{anchorPoint:He.RIGHT_CENTER,popoverPoint:He.LEFT_TOP,offsetY:-1,offsetX:14},"bottom-right":{anchorPoint:He.BOTTOM_CENTER,popoverPoint:He.TOP_LEFT,offsetY:9,offsetX:-1},"bottom-middle":{anchorPoint:He.BOTTOM_CENTER,popoverPoint:He.TOP_CENTER,offsetY:9,offsetX:12},"bottom-left":{anchorPoint:He.BOTTOM_CENTER,popoverPoint:He.TOP_RIGHT,offsetY:9,offsetX:0},"left-bottom":{anchorPoint:He.LEFT_CENTER,popoverPoint:He.RIGHT_TOP,offsetY:0,offsetX:-14},"left-middle":{anchorPoint:He.LEFT_CENTER,popoverPoint:He.RIGHT_CENTER,offsetY:4,offsetX:-14},"left-top":{anchorPoint:He.LEFT_CENTER,popoverPoint:He.RIGHT_BOTTOM,offsetY:0,offsetX:-14},default:{anchorPoint:He.RIGHT_CENTER,popoverPoint:He.LEFT_CENTER,offsetY:6,offsetX:14}},Yb=["top-left","top-middle","top-right","right-top","right-middle","right-bottom","bottom-right","bottom-middle","bottom-left","left-bottom","left-middle","left-top"];let pu=(()=>{class c extends Bf{constructor(a,g,b,x,$,le,Se){if(super(a,g),this.commonStrings=b,this.signpostIdService=x,this.signpostFocusManager=$,this.platformId=le,this.signpostContentId=Vr(),!g)throw new Error("clr-signpost-content should only be used inside of a clr-signpost");this.position="right-middle",this.closeOnOutsideClick=!0,this.signpostIdService.setId(this.signpostContentId),this.document=Se}close(){this.toggleService.open=!1}get position(){return this._position}set position(a){this.renderer.removeClass(this.el.nativeElement,this.position),this._position=a&&Yb.indexOf(a)>-1?a:"right-middle",this.renderer.addClass(this.el.nativeElement,this.position);const g=Gb[this.position];this.anchorPoint=g.anchorPoint,this.popoverPoint=g.popoverPoint,this.popoverOptions.offsetY=g.offsetY,this.popoverOptions.offsetX=g.offsetX}ngOnDestroy(){super.ngOnDestroy(),(0,M.NF)(this.platformId)&&this.el.nativeElement.contains(this.document.activeElement)&&this.signpostFocusManager.focusTrigger()}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(l.zs3),l.Y36(ya,8),l.Y36(an),l.Y36(vf),l.Y36(Sd),l.Y36(l.Lbi),l.Y36(M.K0))},c.\u0275cmp=l.Xpm({type:c,selectors:[["clr-signpost-content"]],hostVars:3,hostBindings:function(a,g){2&a&&(l.Ikx("id",g.signpostContentId),l.ekj("signpost-content",!0))},inputs:{position:["clrPosition","position"]},features:[l.qOj],ngContentSelectors:Dt,decls:7,vars:3,consts:[[1,"signpost-wrap"],[1,"popover-pointer"],[1,"signpost-content-header"],["type","button",1,"signpost-action","close",3,"click"],["shape","window-close"],[1,"signpost-content-body"]],template:function(a,g){1&a&&(l.F$t(),l.TgZ(0,"div",0),l._UZ(1,"div",1),l.TgZ(2,"div",2)(3,"button",3),l.NdJ("click",function(){return g.close()}),l._UZ(4,"cds-icon",4),l.qZA()(),l.TgZ(5,"div",5),l.Hsn(6),l.qZA()()),2&a&&(l.xp6(3),l.uIk("aria-label",g.commonStrings.keys.signpostClose)("aria-controls",g.signpostContentId),l.xp6(1),l.uIk("title",g.commonStrings.keys.close))},dependencies:[Jt],encapsulation:2}),c})(),LD=(()=>{class c{constructor(){Et.addIcons(xs,ji)}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez,In,Za],Ss]}),c})(),Jb=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez],Ss,In]}),c})(),Jf=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[Xa,LD,Jb]}),c})(),Kb=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez]]}),c})(),n0=(()=>{class c{constructor(){Et.addIcons(Xo,zi,Ui,ss)}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez,In,Kl],In,Kl]}),c})(),Jv=(()=>{class c{constructor(){Et.addIcons(Ui)}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez,Vv,mv]]}),c})(),Kv=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[vv,kf,In,Vv,Ya,Ss,$c,Za,am,fm,hf,Zf,Jf,Jv,zc,Xu,Kl,Kb,Nc,n0]}),c})()},4697:(et,Ee,j)=>{function l(M){this.wrapped=M}j.d(Ee,{Z:()=>l})},8239:(et,Ee,j)=>{function l(ce,pe,de,J,he,X,ae){try{var q=ce[X](ae),ee=q.value}catch(se){return void de(se)}q.done?pe(ee):Promise.resolve(ee).then(J,he)}function M(ce){return function(){var pe=this,de=arguments;return new Promise(function(J,he){var X=ce.apply(pe,de);function ae(ee){l(X,J,he,ae,q,"next",ee)}function q(ee){l(X,J,he,ae,q,"throw",ee)}ae(void 0)})}}j.d(Ee,{Z:()=>M})},8817:(et,Ee,j)=>{j.d(Ee,{Z:()=>ce});var l=j(4697);function M(pe){var de,J;function X(q,ee){try{var se=pe[q](ee),ye=se.value,xe=ye instanceof l.Z;Promise.resolve(xe?ye.wrapped:ye).then(function(ge){xe?X("return"===q?"return":"next",ge):ae(se.done?"return":"normal",ge)},function(ge){X("throw",ge)})}catch(ge){ae("throw",ge)}}function ae(q,ee){switch(q){case"return":de.resolve({value:ee,done:!0});break;case"throw":de.reject(ee);break;default:de.resolve({value:ee,done:!1})}(de=de.next)?X(de.key,de.arg):J=null}this._invoke=function he(q,ee){return new Promise(function(se,ye){var xe={key:q,arg:ee,resolve:se,reject:ye,next:null};J?J=J.next=xe:(de=J=xe,X(q,ee))})},"function"!=typeof pe.return&&(this.return=void 0)}function ce(pe){return function(){return new M(pe.apply(this,arguments))}}M.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},M.prototype.next=function(pe){return this._invoke("next",pe)},M.prototype.throw=function(pe){return this._invoke("throw",pe)},M.prototype.return=function(pe){return this._invoke("return",pe)}}},et=>{et(et.s=7306)}]); \ No newline at end of file diff --git a/main.58a2c91e5b044bd9.js b/main.58a2c91e5b044bd9.js new file mode 100644 index 000000000..7f4d433c5 --- /dev/null +++ b/main.58a2c91e5b044bd9.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdemo_maps=self.webpackChunkdemo_maps||[]).push([[179],{6215:(et,Ee,j)=>{j.d(Ee,{X:()=>ce});var l=j(9765),M=j(7971);class ce extends l.xQ{constructor(de){super(),this._value=de}get value(){return this.getValue()}_subscribe(de){const J=super._subscribe(de);return J&&!J.closed&&de.next(this._value),J}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new M.N;return this._value}next(de){super.next(this._value=de)}}},3098:(et,Ee,j)=>{j.d(Ee,{P:()=>de});var l=j(9193),M=j(5917),ce=j(205);class de{constructor(he,X,ae){this.kind=he,this.value=X,this.error=ae,this.hasValue="N"===he}observe(he){switch(this.kind){case"N":return he.next&&he.next(this.value);case"E":return he.error&&he.error(this.error);case"C":return he.complete&&he.complete()}}do(he,X,ae){switch(this.kind){case"N":return he&&he(this.value);case"E":return X&&X(this.error);case"C":return ae&&ae()}}accept(he,X,ae){return he&&"function"==typeof he.next?this.observe(he):this.do(he,X,ae)}toObservable(){switch(this.kind){case"N":return(0,M.of)(this.value);case"E":return(0,ce._)(this.error);case"C":return(0,l.c)()}throw new Error("unexpected notification kind value")}static createNext(he){return typeof he<"u"?new de("N",he):de.undefinedValueNotification}static createError(he){return new de("E",void 0,he)}static createComplete(){return de.completeNotification}}de.completeNotification=new de("C"),de.undefinedValueNotification=new de("N",void 0)},882:(et,Ee,j)=>{j.d(Ee,{y:()=>ae});var l=j(7393),ce=j(9181),pe=j(6490),J=j(6554),he=j(4022),X=j(2494);let ae=(()=>{class ee{constructor(ye){this._isScalar=!1,ye&&(this._subscribe=ye)}lift(ye){const xe=new ee;return xe.source=this,xe.operator=ye,xe}subscribe(ye,xe,ge){const{operator:be}=this,Ce=function de(ee,se,ye){if(ee){if(ee instanceof l.L)return ee;if(ee[ce.b])return ee[ce.b]()}return ee||se||ye?new l.L(ee,se,ye):new l.L(pe.c)}(ye,xe,ge);if(Ce.add(be?be.call(Ce,this.source):this.source||X.v.useDeprecatedSynchronousErrorHandling&&!Ce.syncErrorThrowable?this._subscribe(Ce):this._trySubscribe(Ce)),X.v.useDeprecatedSynchronousErrorHandling&&Ce.syncErrorThrowable&&(Ce.syncErrorThrowable=!1,Ce.syncErrorThrown))throw Ce.syncErrorValue;return Ce}_trySubscribe(ye){try{return this._subscribe(ye)}catch(xe){X.v.useDeprecatedSynchronousErrorHandling&&(ye.syncErrorThrown=!0,ye.syncErrorValue=xe),function M(ee){for(;ee;){const{closed:se,destination:ye,isStopped:xe}=ee;if(se||xe)return!1;ee=ye&&ye instanceof l.L?ye:null}return!0}(ye)?ye.error(xe):console.warn(xe)}}forEach(ye,xe){return new(xe=q(xe))((ge,be)=>{let Ce;Ce=this.subscribe(je=>{try{ye(je)}catch(Rt){be(Rt),Ce&&Ce.unsubscribe()}},be,ge)})}_subscribe(ye){const{source:xe}=this;return xe&&xe.subscribe(ye)}[J.L](){return this}pipe(...ye){return 0===ye.length?this:(0,he.U)(ye)(this)}toPromise(ye){return new(ye=q(ye))((xe,ge)=>{let be;this.subscribe(Ce=>be=Ce,Ce=>ge(Ce),()=>xe(be))})}}return ee.create=se=>new ee(se),ee})();function q(ee){if(ee||(ee=X.v.Promise||Promise),!ee)throw new Error("no Promise impl found");return ee}},6490:(et,Ee,j)=>{j.d(Ee,{c:()=>ce});var l=j(2494),M=j(4449);const ce={closed:!0,next(pe){},error(pe){if(l.v.useDeprecatedSynchronousErrorHandling)throw pe;(0,M.z)(pe)},complete(){}}},9765:(et,Ee,j)=>{j.d(Ee,{Yc:()=>he,xQ:()=>X});var l=j(882),M=j(7393),ce=j(3464),pe=j(7971),de=j(8858),J=j(9181);class he extends M.L{constructor(ee){super(ee),this.destination=ee}}let X=(()=>{class q extends l.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[J.b](){return new he(this)}lift(se){const ye=new ae(this,this);return ye.operator=se,ye}next(se){if(this.closed)throw new pe.N;if(!this.isStopped){const{observers:ye}=this,xe=ye.length,ge=ye.slice();for(let be=0;benew ae(ee,se),q})();class ae extends X{constructor(ee,se){super(),this.destination=ee,this.source=se}next(ee){const{destination:se}=this;se&&se.next&&se.next(ee)}error(ee){const{destination:se}=this;se&&se.error&&this.destination.error(ee)}complete(){const{destination:ee}=this;ee&&ee.complete&&this.destination.complete()}_subscribe(ee){const{source:se}=this;return se?this.source.subscribe(ee):ce.w.EMPTY}}},8858:(et,Ee,j)=>{j.d(Ee,{W:()=>M});var l=j(3464);class M extends l.w{constructor(pe,de){super(),this.subject=pe,this.subscriber=de,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const pe=this.subject,de=pe.observers;if(this.subject=null,!de||0===de.length||pe.isStopped||pe.closed)return;const J=de.indexOf(this.subscriber);-1!==J&&de.splice(J,1)}}},7393:(et,Ee,j)=>{j.d(Ee,{L:()=>he});var l=j(9105),M=j(6490),ce=j(3464),pe=j(9181),de=j(2494),J=j(4449);class he extends ce.w{constructor(q,ee,se){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=M.c;break;case 1:if(!q){this.destination=M.c;break}if("object"==typeof q){q instanceof he?(this.syncErrorThrowable=q.syncErrorThrowable,this.destination=q,q.add(this)):(this.syncErrorThrowable=!0,this.destination=new X(this,q));break}default:this.syncErrorThrowable=!0,this.destination=new X(this,q,ee,se)}}[pe.b](){return this}static create(q,ee,se){const ye=new he(q,ee,se);return ye.syncErrorThrowable=!1,ye}next(q){this.isStopped||this._next(q)}error(q){this.isStopped||(this.isStopped=!0,this._error(q))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(q){this.destination.next(q)}_error(q){this.destination.error(q),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:q}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=q,this}}class X extends he{constructor(q,ee,se,ye){super(),this._parentSubscriber=q;let xe,ge=this;(0,l.m)(ee)?xe=ee:ee&&(xe=ee.next,se=ee.error,ye=ee.complete,ee!==M.c&&(ge=Object.create(ee),(0,l.m)(ge.unsubscribe)&&this.add(ge.unsubscribe.bind(ge)),ge.unsubscribe=this.unsubscribe.bind(this))),this._context=ge,this._next=xe,this._error=se,this._complete=ye}next(q){if(!this.isStopped&&this._next){const{_parentSubscriber:ee}=this;de.v.useDeprecatedSynchronousErrorHandling&&ee.syncErrorThrowable?this.__tryOrSetError(ee,this._next,q)&&this.unsubscribe():this.__tryOrUnsub(this._next,q)}}error(q){if(!this.isStopped){const{_parentSubscriber:ee}=this,{useDeprecatedSynchronousErrorHandling:se}=de.v;if(this._error)se&&ee.syncErrorThrowable?(this.__tryOrSetError(ee,this._error,q),this.unsubscribe()):(this.__tryOrUnsub(this._error,q),this.unsubscribe());else if(ee.syncErrorThrowable)se?(ee.syncErrorValue=q,ee.syncErrorThrown=!0):(0,J.z)(q),this.unsubscribe();else{if(this.unsubscribe(),se)throw q;(0,J.z)(q)}}}complete(){if(!this.isStopped){const{_parentSubscriber:q}=this;if(this._complete){const ee=()=>this._complete.call(this._context);de.v.useDeprecatedSynchronousErrorHandling&&q.syncErrorThrowable?(this.__tryOrSetError(q,ee),this.unsubscribe()):(this.__tryOrUnsub(ee),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(q,ee){try{q.call(this._context,ee)}catch(se){if(this.unsubscribe(),de.v.useDeprecatedSynchronousErrorHandling)throw se;(0,J.z)(se)}}__tryOrSetError(q,ee,se){if(!de.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{ee.call(this._context,se)}catch(ye){return de.v.useDeprecatedSynchronousErrorHandling?(q.syncErrorValue=ye,q.syncErrorThrown=!0,!0):((0,J.z)(ye),!0)}return!1}_unsubscribe(){const{_parentSubscriber:q}=this;this._context=null,this._parentSubscriber=null,q.unsubscribe()}}},3464:(et,Ee,j)=>{j.d(Ee,{w:()=>J});var l=j(9796),M=j(1555),ce=j(9105);const de=(()=>{function X(ae){return Error.call(this),this.message=ae?`${ae.length} errors occurred during unsubscription:\n${ae.map((q,ee)=>`${ee+1}) ${q.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=ae,this}return X.prototype=Object.create(Error.prototype),X})();class J{constructor(ae){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,ae&&(this._ctorUnsubscribe=!0,this._unsubscribe=ae)}unsubscribe(){let ae;if(this.closed)return;let{_parentOrParents:q,_ctorUnsubscribe:ee,_unsubscribe:se,_subscriptions:ye}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,q instanceof J)q.remove(this);else if(null!==q)for(let xe=0;xeae.concat(q instanceof de?q.errors:q),[])}J.EMPTY=((X=new J).closed=!0,X)},2494:(et,Ee,j)=>{j.d(Ee,{v:()=>M});let l=!1;const M={Promise:void 0,set useDeprecatedSynchronousErrorHandling(ce){if(ce){const pe=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+pe.stack)}else l&&console.log("RxJS: Back to a better error behavior. Thank you. <3");l=ce},get useDeprecatedSynchronousErrorHandling(){return l}}},5345:(et,Ee,j)=>{j.d(Ee,{Ds:()=>J,IY:()=>pe,ft:()=>X});var l=j(7393),M=j(882),ce=j(9846);class pe extends l.L{constructor(q){super(),this.parent=q}_next(q){this.parent.notifyNext(q)}_error(q){this.parent.notifyError(q),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class J extends l.L{notifyNext(q){this.destination.next(q)}notifyError(q){this.destination.error(q)}notifyComplete(){this.destination.complete()}}function X(ae,q){if(q.closed)return;if(ae instanceof M.y)return ae.subscribe(q);let ee;try{ee=(0,ce.s)(ae)(q)}catch(se){q.error(se)}return ee}},2441:(et,Ee,j)=>{j.d(Ee,{N:()=>J,c:()=>de});var l=j(9765),M=j(882),ce=j(3464),pe=j(1307);class de extends M.y{constructor(ee,se){super(),this.source=ee,this.subjectFactory=se,this._refCount=0,this._isComplete=!1}_subscribe(ee){return this.getSubject().subscribe(ee)}getSubject(){const ee=this._subject;return(!ee||ee.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let ee=this._connection;return ee||(this._isComplete=!1,ee=this._connection=new ce.w,ee.add(this.source.subscribe(new he(this.getSubject(),this))),ee.closed&&(this._connection=null,ee=ce.w.EMPTY)),ee}refCount(){return(0,pe.x)()(this)}}const J=(()=>{const q=de.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:q._subscribe},_isComplete:{value:q._isComplete,writable:!0},getSubject:{value:q.getSubject},connect:{value:q.connect},refCount:{value:q.refCount}}})();class he extends l.Yc{constructor(ee,se){super(ee),this.connectable=se}_error(ee){this._unsubscribe(),super._error(ee)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const ee=this.connectable;if(ee){this.connectable=null;const se=ee._connection;ee._refCount=0,ee._subject=null,ee._connection=null,se&&se.unsubscribe()}}}},4591:(et,Ee,j)=>{j.d(Ee,{Ms:()=>se,aj:()=>ee});var l=j(4869),M=j(9796),ce=j(7393);class pe extends ce.L{notifyNext(ge,be,Ce,je,Rt){this.destination.next(be)}notifyError(ge,be){this.destination.error(ge)}notifyComplete(ge){this.destination.complete()}}class de extends ce.L{constructor(ge,be,Ce){super(),this.parent=ge,this.outerValue=be,this.outerIndex=Ce,this.index=0}_next(ge){this.parent.notifyNext(this.outerValue,ge,this.outerIndex,this.index++,this)}_error(ge){this.parent.notifyError(ge,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var J=j(9846),he=j(882);function X(xe,ge,be,Ce,je=new de(xe,be,Ce)){if(!je.closed)return ge instanceof he.y?ge.subscribe(je):(0,J.s)(ge)(je)}var ae=j(6693);const q={};function ee(...xe){let ge,be;return(0,l.K)(xe[xe.length-1])&&(be=xe.pop()),"function"==typeof xe[xe.length-1]&&(ge=xe.pop()),1===xe.length&&(0,M.k)(xe[0])&&(xe=xe[0]),(0,ae.n)(xe,be).lift(new se(ge))}class se{constructor(ge){this.resultSelector=ge}call(ge,be){return be.subscribe(new ye(ge,this.resultSelector))}}class ye extends pe{constructor(ge,be){super(ge),this.resultSelector=be,this.active=0,this.values=[],this.observables=[]}_next(ge){this.values.push(q),this.observables.push(ge)}_complete(){const ge=this.observables,be=ge.length;if(0===be)this.destination.complete();else{this.active=be,this.toRespond=be;for(let Ce=0;Ce{j.d(Ee,{z:()=>pe});var l=j(5917),M=j(3282);function pe(...de){return function ce(){return(0,M.J)(1)}()((0,l.of)(...de))}},9193:(et,Ee,j)=>{j.d(Ee,{E:()=>M,c:()=>ce});var l=j(882);const M=new l.y(de=>de.complete());function ce(de){return de?function pe(de){return new l.y(J=>de.schedule(()=>J.complete()))}(de):M}},5758:(et,Ee,j)=>{j.d(Ee,{D:()=>J});var l=j(882),M=j(9796),ce=j(8002),pe=j(1555),de=j(6666);function J(...X){if(1===X.length){const ae=X[0];if((0,M.k)(ae))return he(ae,null);if((0,pe.K)(ae)&&Object.getPrototypeOf(ae)===Object.prototype){const q=Object.keys(ae);return he(q.map(ee=>ae[ee]),q)}}if("function"==typeof X[X.length-1]){const ae=X.pop();return he(X=1===X.length&&(0,M.k)(X[0])?X[0]:X,null).pipe((0,ce.U)(q=>ae(...q)))}return he(X,null)}function he(X,ae){return new l.y(q=>{const ee=X.length;if(0===ee)return void q.complete();const se=new Array(ee);let ye=0,xe=0;for(let ge=0;ge{Ce||(Ce=!0,xe++),se[ge]=je},error:je=>q.error(je),complete:()=>{ye++,(ye===ee||!Ce)&&(xe===ee&&q.next(ae?ae.reduce((je,Rt,tn)=>(je[Rt]=se[tn],je),{}):se),q.complete())}}))}})}},6666:(et,Ee,j)=>{j.d(Ee,{D:()=>ge});var l=j(882),M=j(9846),ce=j(3464),pe=j(6554),he=j(4087),X=j(377),ee=j(4072),se=j(9489);function ge(be,Ce){return Ce?function xe(be,Ce){if(null!=be){if(function q(be){return be&&"function"==typeof be[pe.L]}(be))return function de(be,Ce){return new l.y(je=>{const Rt=new ce.w;return Rt.add(Ce.schedule(()=>{const tn=be[pe.L]();Rt.add(tn.subscribe({next(tt){Rt.add(Ce.schedule(()=>je.next(tt)))},error(tt){Rt.add(Ce.schedule(()=>je.error(tt)))},complete(){Rt.add(Ce.schedule(()=>je.complete()))}}))})),Rt})}(be,Ce);if((0,ee.t)(be))return function J(be,Ce){return new l.y(je=>{const Rt=new ce.w;return Rt.add(Ce.schedule(()=>be.then(tn=>{Rt.add(Ce.schedule(()=>{je.next(tn),Rt.add(Ce.schedule(()=>je.complete()))}))},tn=>{Rt.add(Ce.schedule(()=>je.error(tn)))}))),Rt})}(be,Ce);if((0,se.z)(be))return(0,he.r)(be,Ce);if(function ye(be){return be&&"function"==typeof be[X.hZ]}(be)||"string"==typeof be)return function ae(be,Ce){if(!be)throw new Error("Iterable cannot be null");return new l.y(je=>{const Rt=new ce.w;let tn;return Rt.add(()=>{tn&&"function"==typeof tn.return&&tn.return()}),Rt.add(Ce.schedule(()=>{tn=be[X.hZ](),Rt.add(Ce.schedule(function(){if(je.closed)return;let tt,$e;try{const ft=tn.next();tt=ft.value,$e=ft.done}catch(ft){return void je.error(ft)}$e?je.complete():(je.next(tt),this.schedule())}))})),Rt})}(be,Ce)}throw new TypeError((null!==be&&typeof be||be)+" is not observable")}(be,Ce):be instanceof l.y?be:new l.y((0,M.s)(be))}},6693:(et,Ee,j)=>{j.d(Ee,{n:()=>pe});var l=j(882),M=j(5015),ce=j(4087);function pe(de,J){return J?(0,ce.r)(de,J):new l.y((0,M.V)(de))}},2759:(et,Ee,j)=>{j.d(Ee,{R:()=>J});var l=j(882),M=j(9796),ce=j(9105),pe=j(8002);function J(ee,se,ye,xe){return(0,ce.m)(ye)&&(xe=ye,ye=void 0),xe?J(ee,se,ye).pipe((0,pe.U)(ge=>(0,M.k)(ge)?xe(...ge):xe(ge))):new l.y(ge=>{he(ee,se,function be(Ce){ge.next(arguments.length>1?Array.prototype.slice.call(arguments):Ce)},ge,ye)})}function he(ee,se,ye,xe,ge){let be;if(function q(ee){return ee&&"function"==typeof ee.addEventListener&&"function"==typeof ee.removeEventListener}(ee)){const Ce=ee;ee.addEventListener(se,ye,ge),be=()=>Ce.removeEventListener(se,ye,ge)}else if(function ae(ee){return ee&&"function"==typeof ee.on&&"function"==typeof ee.off}(ee)){const Ce=ee;ee.on(se,ye),be=()=>Ce.off(se,ye)}else if(function X(ee){return ee&&"function"==typeof ee.addListener&&"function"==typeof ee.removeListener}(ee)){const Ce=ee;ee.addListener(se,ye),be=()=>Ce.removeListener(se,ye)}else{if(!ee||!ee.length)throw new TypeError("Invalid event target");for(let Ce=0,je=ee.length;Ce{j.d(Ee,{T:()=>de});var l=j(882),M=j(4869),ce=j(3282),pe=j(6693);function de(...J){let he=Number.POSITIVE_INFINITY,X=null,ae=J[J.length-1];return(0,M.K)(ae)?(X=J.pop(),J.length>1&&"number"==typeof J[J.length-1]&&(he=J.pop())):"number"==typeof ae&&(he=J.pop()),null===X&&1===J.length&&J[0]instanceof l.y?J[0]:(0,ce.J)(he)((0,pe.n)(J,X))}},5917:(et,Ee,j)=>{j.d(Ee,{of:()=>pe});var l=j(4869),M=j(6693),ce=j(4087);function pe(...de){let J=de[de.length-1];return(0,l.K)(J)?(de.pop(),(0,ce.r)(de,J)):(0,M.n)(de)}},205:(et,Ee,j)=>{j.d(Ee,{_:()=>M});var l=j(882);function M(pe,de){return new l.y(de?J=>de.schedule(ce,0,{error:pe,subscriber:J}):J=>J.error(pe))}function ce({error:pe,subscriber:de}){de.error(pe)}},4612:(et,Ee,j)=>{j.d(Ee,{b:()=>M});var l=j(9773);function M(ce,pe){return(0,l.zg)(ce,pe,1)}},4395:(et,Ee,j)=>{j.d(Ee,{b:()=>ce});var l=j(7393),M=j(3637);function ce(he,X=M.P){return ae=>ae.lift(new pe(he,X))}class pe{constructor(X,ae){this.dueTime=X,this.scheduler=ae}call(X,ae){return ae.subscribe(new de(X,this.dueTime,this.scheduler))}}class de extends l.L{constructor(X,ae,q){super(X),this.dueTime=ae,this.scheduler=q,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(X){this.clearDebounce(),this.lastValue=X,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(J,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:X}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(X)}}clearDebounce(){const X=this.debouncedSubscription;null!==X&&(this.remove(X),X.unsubscribe(),this.debouncedSubscription=null)}}function J(he){he.debouncedNext()}},5242:(et,Ee,j)=>{j.d(Ee,{d:()=>M});var l=j(7393);function M(de=null){return J=>J.lift(new ce(de))}class ce{constructor(J){this.defaultValue=J}call(J,he){return he.subscribe(new pe(J,this.defaultValue))}}class pe extends l.L{constructor(J,he){super(J),this.defaultValue=he,this.isEmpty=!0}_next(J){this.isEmpty=!1,this.destination.next(J)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}},7460:(et,Ee,j)=>{j.d(Ee,{g:()=>de});var l=j(3637),ce=j(7393),pe=j(3098);function de(ae,q=l.P){const se=function M(ae){return ae instanceof Date&&!isNaN(+ae)}(ae)?+ae-q.now():Math.abs(ae);return ye=>ye.lift(new J(se,q))}class J{constructor(q,ee){this.delay=q,this.scheduler=ee}call(q,ee){return ee.subscribe(new he(q,this.delay,this.scheduler))}}class he extends ce.L{constructor(q,ee,se){super(q),this.delay=ee,this.scheduler=se,this.queue=[],this.active=!1,this.errored=!1}static dispatch(q){const ee=q.source,se=ee.queue,ye=q.scheduler,xe=q.destination;for(;se.length>0&&se[0].time-ye.now()<=0;)se.shift().notification.observe(xe);if(se.length>0){const ge=Math.max(0,se[0].time-ye.now());this.schedule(q,ge)}else this.unsubscribe(),ee.active=!1}_schedule(q){this.active=!0,this.destination.add(q.schedule(he.dispatch,this.delay,{source:this,destination:this.destination,scheduler:q}))}scheduleNotification(q){if(!0===this.errored)return;const ee=this.scheduler,se=new X(ee.now()+this.delay,q);this.queue.push(se),!1===this.active&&this._schedule(ee)}_next(q){this.scheduleNotification(pe.P.createNext(q))}_error(q){this.errored=!0,this.queue=[],this.destination.error(q),this.unsubscribe()}_complete(){this.scheduleNotification(pe.P.createComplete()),this.unsubscribe()}}class X{constructor(q,ee){this.time=q,this.notification=ee}}},5435:(et,Ee,j)=>{j.d(Ee,{h:()=>M});var l=j(7393);function M(de,J){return function(X){return X.lift(new ce(de,J))}}class ce{constructor(J,he){this.predicate=J,this.thisArg=he}call(J,he){return he.subscribe(new pe(J,this.predicate,this.thisArg))}}class pe extends l.L{constructor(J,he,X){super(J),this.predicate=he,this.thisArg=X,this.count=0}_next(J){let he;try{he=this.predicate.call(this.thisArg,J,this.count++)}catch(X){return void this.destination.error(X)}he&&this.destination.next(J)}}},8049:(et,Ee,j)=>{j.d(Ee,{P:()=>he});var l=j(3410),M=j(5435),ce=j(5257),pe=j(5242),de=j(4635),J=j(4487);function he(X,ae){const q=arguments.length>=2;return ee=>ee.pipe(X?(0,M.h)((se,ye)=>X(se,ye,ee)):J.y,(0,ce.q)(1),q?(0,pe.d)(ae):(0,de.T)(()=>new l.K))}},8002:(et,Ee,j)=>{j.d(Ee,{U:()=>M});var l=j(7393);function M(de,J){return function(X){if("function"!=typeof de)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return X.lift(new ce(de,J))}}class ce{constructor(J,he){this.project=J,this.thisArg=he}call(J,he){return he.subscribe(new pe(J,this.project,this.thisArg))}}class pe extends l.L{constructor(J,he,X){super(J),this.project=he,this.count=0,this.thisArg=X||this}_next(J){let he;try{he=this.project.call(this.thisArg,J,this.count++)}catch(X){return void this.destination.error(X)}this.destination.next(he)}}},3282:(et,Ee,j)=>{j.d(Ee,{J:()=>ce});var l=j(9773),M=j(4487);function ce(pe=Number.POSITIVE_INFINITY){return(0,l.zg)(M.y,pe)}},9773:(et,Ee,j)=>{j.d(Ee,{zg:()=>pe});var l=j(8002),M=j(6666),ce=j(5345);function pe(X,ae,q=Number.POSITIVE_INFINITY){return"function"==typeof ae?ee=>ee.pipe(pe((se,ye)=>(0,M.D)(X(se,ye)).pipe((0,l.U)((xe,ge)=>ae(se,xe,ye,ge))),q)):("number"==typeof ae&&(q=ae),ee=>ee.lift(new de(X,q)))}class de{constructor(ae,q=Number.POSITIVE_INFINITY){this.project=ae,this.concurrent=q}call(ae,q){return q.subscribe(new J(ae,this.project,this.concurrent))}}class J extends ce.Ds{constructor(ae,q,ee=Number.POSITIVE_INFINITY){super(ae),this.project=q,this.concurrent=ee,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(ae){this.active0?this._next(ae.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},1307:(et,Ee,j)=>{j.d(Ee,{x:()=>M});var l=j(7393);function M(){return function(J){return J.lift(new ce(J))}}class ce{constructor(J){this.connectable=J}call(J,he){const{connectable:X}=this;X._refCount++;const ae=new pe(J,X),q=he.subscribe(ae);return ae.closed||(ae.connection=X.connect()),q}}class pe extends l.L{constructor(J,he){super(J),this.connectable=he}_unsubscribe(){const{connectable:J}=this;if(!J)return void(this.connection=null);this.connectable=null;const he=J._refCount;if(he<=0)return void(this.connection=null);if(J._refCount=he-1,he>1)return void(this.connection=null);const{connection:X}=this,ae=J._connection;this.connection=null,ae&&(!X||ae===X)&&ae.unsubscribe()}}},4121:(et,Ee,j)=>{j.d(Ee,{B:()=>he});var l=j(2441);class ce{constructor(ae,q){this.subjectFactory=ae,this.selector=q}call(ae,q){const{selector:ee}=this,se=this.subjectFactory(),ye=ee(se).subscribe(ae);return ye.add(q.subscribe(se)),ye}}var pe=j(1307),de=j(9765);function J(){return new de.xQ}function he(){return X=>(0,pe.x)()(function M(X,ae){return function(ee){let se;if(se="function"==typeof X?X:function(){return X},"function"==typeof ae)return ee.lift(new ce(se,ae));const ye=Object.create(ee,l.N);return ye.source=ee,ye.subjectFactory=se,ye}}(J)(X))}},9761:(et,Ee,j)=>{j.d(Ee,{O:()=>ce});var l=j(6481),M=j(4869);function ce(...pe){const de=pe[pe.length-1];return(0,M.K)(de)?(pe.pop(),J=>(0,l.z)(pe,J,de)):J=>(0,l.z)(pe,J)}},3190:(et,Ee,j)=>{j.d(Ee,{w:()=>pe});var l=j(8002),M=j(6666),ce=j(5345);function pe(he,X){return"function"==typeof X?ae=>ae.pipe(pe((q,ee)=>(0,M.D)(he(q,ee)).pipe((0,l.U)((se,ye)=>X(q,se,ee,ye))))):ae=>ae.lift(new de(he))}class de{constructor(X){this.project=X}call(X,ae){return ae.subscribe(new J(X,this.project))}}class J extends ce.Ds{constructor(X,ae){super(X),this.project=ae,this.index=0}_next(X){let ae;const q=this.index++;try{ae=this.project(X,q)}catch(ee){return void this.destination.error(ee)}this._innerSub(ae)}_innerSub(X){const ae=this.innerSubscription;ae&&ae.unsubscribe();const q=new ce.IY(this),ee=this.destination;ee.add(q),this.innerSubscription=(0,ce.ft)(X,q),this.innerSubscription!==q&&ee.add(this.innerSubscription)}_complete(){const{innerSubscription:X}=this;(!X||X.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(X){this.destination.next(X)}}},5257:(et,Ee,j)=>{j.d(Ee,{q:()=>pe});var l=j(7393),M=j(7108),ce=j(9193);function pe(he){return X=>0===he?(0,ce.c)():X.lift(new de(he))}class de{constructor(X){if(this.total=X,this.total<0)throw new M.W}call(X,ae){return ae.subscribe(new J(X,this.total))}}class J extends l.L{constructor(X,ae){super(X),this.total=ae,this.count=0}_next(X){const ae=this.total,q=++this.count;q<=ae&&(this.destination.next(X),q===ae&&(this.destination.complete(),this.unsubscribe()))}}},6782:(et,Ee,j)=>{j.d(Ee,{R:()=>M});var l=j(5345);function M(de){return J=>J.lift(new ce(de))}class ce{constructor(J){this.notifier=J}call(J,he){const X=new pe(J),ae=(0,l.ft)(this.notifier,new l.IY(X));return ae&&!X.seenValue?(X.add(ae),he.subscribe(X)):X}}class pe extends l.Ds{constructor(J){super(J),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}},6239:(et,Ee,j)=>{j.d(Ee,{b:()=>pe});var l=j(7393);function M(){}var ce=j(9105);function pe(he,X,ae){return function(ee){return ee.lift(new de(he,X,ae))}}class de{constructor(X,ae,q){this.nextOrObserver=X,this.error=ae,this.complete=q}call(X,ae){return ae.subscribe(new J(X,this.nextOrObserver,this.error,this.complete))}}class J extends l.L{constructor(X,ae,q,ee){super(X),this._tapNext=M,this._tapError=M,this._tapComplete=M,this._tapError=q||M,this._tapComplete=ee||M,(0,ce.m)(ae)?(this._context=this,this._tapNext=ae):ae&&(this._context=ae,this._tapNext=ae.next||M,this._tapError=ae.error||M,this._tapComplete=ae.complete||M)}_next(X){try{this._tapNext.call(this._context,X)}catch(ae){return void this.destination.error(ae)}this.destination.next(X)}_error(X){try{this._tapError.call(this._context,X)}catch(ae){return void this.destination.error(ae)}this.destination.error(X)}_complete(){try{this._tapComplete.call(this._context)}catch(X){return void this.destination.error(X)}return this.destination.complete()}}},4635:(et,Ee,j)=>{j.d(Ee,{T:()=>ce});var l=j(3410),M=j(7393);function ce(he=J){return X=>X.lift(new pe(he))}class pe{constructor(X){this.errorFactory=X}call(X,ae){return ae.subscribe(new de(X,this.errorFactory))}}class de extends M.L{constructor(X,ae){super(X),this.errorFactory=ae,this.hasValue=!1}_next(X){this.hasValue=!0,this.destination.next(X)}_complete(){if(this.hasValue)return this.destination.complete();{let X;try{X=this.errorFactory()}catch(ae){X=ae}this.destination.error(X)}}}function J(){return new l.K}},4087:(et,Ee,j)=>{j.d(Ee,{r:()=>ce});var l=j(882),M=j(3464);function ce(pe,de){return new l.y(J=>{const he=new M.w;let X=0;return he.add(de.schedule(function(){X!==pe.length?(J.next(pe[X++]),J.closed||he.add(this.schedule())):J.complete()})),he})}},3989:(et,Ee,j)=>{j.d(Ee,{o:()=>ce});var l=j(3464);class M extends l.w{constructor(de,J){super()}schedule(de,J=0){return this}}class ce extends M{constructor(de,J){super(de,J),this.scheduler=de,this.work=J,this.pending=!1}schedule(de,J=0){if(this.closed)return this;this.state=de;const he=this.id,X=this.scheduler;return null!=he&&(this.id=this.recycleAsyncId(X,he,J)),this.pending=!0,this.delay=J,this.id=this.id||this.requestAsyncId(X,this.id,J),this}requestAsyncId(de,J,he=0){return setInterval(de.flush.bind(de,this),he)}recycleAsyncId(de,J,he=0){if(null!==he&&this.delay===he&&!1===this.pending)return J;clearInterval(J)}execute(de,J){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const he=this._execute(de,J);if(he)return he;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(de,J){let X,he=!1;try{this.work(de)}catch(ae){he=!0,X=!!ae&&ae||new Error(ae)}if(he)return this.unsubscribe(),X}_unsubscribe(){const de=this.id,J=this.scheduler,he=J.actions,X=he.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==X&&he.splice(X,1),null!=de&&(this.id=this.recycleAsyncId(J,de,null)),this.delay=null}}},6493:(et,Ee,j)=>{j.d(Ee,{v:()=>M});let l=(()=>{class ce{constructor(de,J=ce.now){this.SchedulerAction=de,this.now=J}schedule(de,J=0,he){return new this.SchedulerAction(this,de).schedule(he,J)}}return ce.now=()=>Date.now(),ce})();class M extends l{constructor(pe,de=l.now){super(pe,()=>M.delegate&&M.delegate!==this?M.delegate.now():de()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(pe,de=0,J){return M.delegate&&M.delegate!==this?M.delegate.schedule(pe,de,J):super.schedule(pe,de,J)}flush(pe){const{actions:de}=this;if(this.active)return void de.push(pe);let J;this.active=!0;do{if(J=pe.execute(pe.state,pe.delay))break}while(pe=de.shift());if(this.active=!1,J){for(;pe=de.shift();)pe.unsubscribe();throw J}}}},3637:(et,Ee,j)=>{j.d(Ee,{P:()=>pe});var l=j(3989);const pe=new(j(6493).v)(l.o)},377:(et,Ee,j)=>{j.d(Ee,{hZ:()=>M});const M=function l(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},6554:(et,Ee,j)=>{j.d(Ee,{L:()=>l});const l="function"==typeof Symbol&&Symbol.observable||"@@observable"},9181:(et,Ee,j)=>{j.d(Ee,{b:()=>l});const l="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},7108:(et,Ee,j)=>{j.d(Ee,{W:()=>M});const M=(()=>{function ce(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return ce.prototype=Object.create(Error.prototype),ce})()},3410:(et,Ee,j)=>{j.d(Ee,{K:()=>M});const M=(()=>{function ce(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return ce.prototype=Object.create(Error.prototype),ce})()},7971:(et,Ee,j)=>{j.d(Ee,{N:()=>M});const M=(()=>{function ce(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return ce.prototype=Object.create(Error.prototype),ce})()},4449:(et,Ee,j)=>{function l(M){setTimeout(()=>{throw M},0)}j.d(Ee,{z:()=>l})},4487:(et,Ee,j)=>{function l(M){return M}j.d(Ee,{y:()=>l})},9796:(et,Ee,j)=>{j.d(Ee,{k:()=>l});const l=Array.isArray||(M=>M&&"number"==typeof M.length)},9489:(et,Ee,j)=>{j.d(Ee,{z:()=>l});const l=M=>M&&"number"==typeof M.length&&"function"!=typeof M},9105:(et,Ee,j)=>{function l(M){return"function"==typeof M}j.d(Ee,{m:()=>l})},1555:(et,Ee,j)=>{function l(M){return null!==M&&"object"==typeof M}j.d(Ee,{K:()=>l})},4072:(et,Ee,j)=>{function l(M){return!!M&&"function"!=typeof M.subscribe&&"function"==typeof M.then}j.d(Ee,{t:()=>l})},4869:(et,Ee,j)=>{function l(M){return M&&"function"==typeof M.schedule}j.d(Ee,{K:()=>l})},4022:(et,Ee,j)=>{j.d(Ee,{U:()=>ce,z:()=>M});var l=j(4487);function M(...pe){return ce(pe)}function ce(pe){return 0===pe.length?l.y:1===pe.length?pe[0]:function(J){return pe.reduce((he,X)=>X(he),J)}}},9846:(et,Ee,j)=>{j.d(Ee,{s:()=>ee});var l=j(5015),M=j(4449),pe=j(377),J=j(6554),X=j(9489),ae=j(4072),q=j(1555);const ee=se=>{if(se&&"function"==typeof se[J.L])return(se=>ye=>{const xe=se[J.L]();if("function"!=typeof xe.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return xe.subscribe(ye)})(se);if((0,X.z)(se))return(0,l.V)(se);if((0,ae.t)(se))return(se=>ye=>(se.then(xe=>{ye.closed||(ye.next(xe),ye.complete())},xe=>ye.error(xe)).then(null,M.z),ye))(se);if(se&&"function"==typeof se[pe.hZ])return(se=>ye=>{const xe=se[pe.hZ]();for(;;){let ge;try{ge=xe.next()}catch(be){return ye.error(be),ye}if(ge.done){ye.complete();break}if(ye.next(ge.value),ye.closed)break}return"function"==typeof xe.return&&ye.add(()=>{xe.return&&xe.return()}),ye})(se);{const xe=`You provided ${(0,q.K)(se)?"an invalid object":`'${se}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(xe)}}},5015:(et,Ee,j)=>{j.d(Ee,{V:()=>l});const l=M=>ce=>{for(let pe=0,de=M.length;pe{j.d(Ee,{q:()=>de});var l=j(6799),M=j(92),ce=j(8692),pe=j(4537);let de=(()=>{class J{}return J.\u0275fac=function(X){return new(X||J)},J.\u0275mod=pe.oAB({type:J}),J.\u0275inj=pe.cJS({imports:[l.K6A,M.u5,M.UX,ce.ez]}),J})()},6302:(et,Ee,j)=>{j.d(Ee,{c:()=>ce});var l=j(9765),M=j(4537);let ce=(()=>{class pe{constructor(){this.alertSource=new l.xQ,this.alert$=this.alertSource.asObservable()}alert(J){this.alertSource.next(J)}}return pe.\u0275fac=function(J){return new(J||pe)},pe.\u0275prov=M.Yz7({token:pe,factory:pe.\u0275fac,providedIn:"root"}),pe})()},6895:(et,Ee,j)=>{j.d(Ee,{N:()=>ce});var l=j(9765),M=j(4537);let ce=(()=>{class pe{constructor(){this.progressSource=new l.xQ,this.progress$=this.progressSource.asObservable()}progress(J){this.progressSource.next(J)}}return pe.\u0275fac=function(J){return new(J||pe)},pe.\u0275prov=M.Yz7({token:pe,factory:pe.\u0275fac,providedIn:"root"}),pe})()},7306:(et,Ee,j)=>{var l=j(5998),M=j(4537),ce=j(7223);const pe=[{path:"",redirectTo:"examples",pathMatch:"full"},{path:"examples",loadChildren:()=>j.e(384).then(j.bind(j,1384)).then(S=>S.RouteBookmarksModule)},{path:"example-layers",loadChildren:()=>Promise.all([j.e(712),j.e(899),j.e(108),j.e(270),j.e(592),j.e(151)]).then(j.bind(j,5151)).then(S=>S.RouteMapModule),data:{title:"Layers",description:"Example shows how to work with UKIS layers, groups and the layer-service.",img:"assets/route-layers.jpg"}},{path:"example-projection",loadChildren:()=>Promise.all([j.e(712),j.e(899),j.e(592),j.e(546)]).then(j.bind(j,3546)).then(S=>S.RouteMap2Module),data:{title:"Projection",description:"Example shows how to work with projections using ukis-projection-switch from @dlr-eoc/map-tools.",img:"assets/route-projection.jpg"}},{path:"example-events",loadChildren:()=>Promise.all([j.e(712),j.e(899),j.e(592),j.e(523)]).then(j.bind(j,523)).then(S=>S.RouteMap3Module),data:{title:"Events",description:"Example of map and layer events e.g. to show a loading bar or create a grid layer based on zoom.",img:"assets/route-events.jpg"}},{path:"example-custom-layers",loadChildren:()=>Promise.all([j.e(712),j.e(899),j.e(230),j.e(408),j.e(592),j.e(633)]).then(j.bind(j,4633)).then(S=>S.RouteMap4Module),data:{title:"Custom Layers",description:"Example how to use UKIS custom layer e.g. use OpenLayers instances directly, bind events, styles and renderers.",img:"assets/route-custom-layers.jpg"}},{path:"example-owc-layers",loadChildren:()=>Promise.all([j.e(712),j.e(899),j.e(108),j.e(359)]).then(j.bind(j,6359)).then(S=>S.RouteExampleOwcLayersModule),data:{title:"OWS Context layers",description:'Example how to declaratively configure layers in a json structure to save and exchange this state. This is using the "OWS Context GeoJSON format". The example context are sored in projects/shared-assets/owc.',img:"assets/route-ows-context.jpg"}},{path:"example-layout",loadChildren:()=>Promise.all([j.e(712),j.e(899),j.e(537)]).then(j.bind(j,7175)).then(S=>S.RouteMap5Module),data:{title:"Two Vertical-Nav Layout",description:'Example shows how to use "Clarity Vertical Nav" on both sides and a footer. This should not be used when working on smaller screens. See also "Clarity Design System" Responsive navigation.',img:"assets/route-2-nav.jpg"}},{path:"example-layer-style",loadChildren:()=>Promise.all([j.e(712),j.e(899),j.e(514)]).then(j.bind(j,8514)).then(S=>S.RouteMap6Module),data:{title:"Switching Layer-Style",description:'The example shows how styles for "WMS" and "WMTS" are switched dynamically.',img:"assets/route-style-switch.jpg"}},{path:"ol-performance",loadChildren:()=>Promise.all([j.e(712),j.e(899),j.e(189)]).then(j.bind(j,1189)).then(S=>S.RouteMap7Module),data:{title:"Ol-Performance",description:"Example to messure/check performance on layer rendering.",img:"assets/route-performance.jpg"}},{path:"threejs",loadChildren:()=>Promise.all([j.e(712),j.e(899),j.e(230),j.e(592),j.e(861)]).then(j.bind(j,4861)).then(S=>S.RouteExampleThreejsModule),data:{title:"Threejs",description:"This example shows a Threejs map connected to a OpenLayers map e.g. to display a globe and a flat map side by side.",img:"assets/route-threejs.jpg"}},{path:"cesium",loadChildren:()=>Promise.all([j.e(712),j.e(899),j.e(408),j.e(928)]).then(j.bind(j,5928)).then(S=>S.RouteCesiumModule),data:{title:"Cesium",description:"This example shows a cesium map and switch to OpenLayers map",img:"assets/route-cesium.jpg"}},{path:"maplibre",loadChildren:()=>Promise.all([j.e(712),j.e(270),j.e(892)]).then(j.bind(j,4892)).then(S=>S.RouteExampleMaplibreModule),data:{title:"Maplibre",description:"This example shows a maplibre map and how to work with UKIS layers",img:"assets/route-maplibre.jpg"}},{path:"licenses",loadChildren:()=>j.e(68).then(j.bind(j,5068)).then(S=>S.RouteLicensesModule),data:{title:"Licenses",description:'This example renders all used dependencies specified in assets/licenses.json which are created with "license-checker"',img:"assets/route-licenses.jpg"}}];let de=(()=>{class S{}return S.\u0275fac=function(y){return new(y||S)},S.\u0275mod=M.oAB({type:S}),S.\u0275inj=M.cJS({imports:[ce.Bz.forRoot(pe,{useHash:!0,preloadingStrategy:ce.wm,relativeLinkResolution:"legacy"}),ce.Bz]}),S})();typeof window<"u"&&window.hasOwnProperty("ClarityIcons")&&window.ClarityIcons.add({ukis:'\n \n ukis\n \n \n \n \n \n ',dlr:'\n \n dlr\n \n \n ',eoc:'\n \n eoc\n \n \n '});const X=JSON.parse('{"i8":"12.0.0-alpha.2"}').i8;var ae=j(5435),q=j(6302),ee=j(6895),se=j(8692),ye=j(6799);function xe(S,_){if(1&S&&(M.TgZ(0,"span",12),M._uU(1),M.qZA()),2&S){const y=M.oxw();M.xp6(1),M.Oqu(y.version)}}const ge=[[["",8,"header-nav-el"]],"*",[["",8,"header-action-el"]]],be=function(S){return{"short-title":S}},Ce=[".header-nav-el","*",".header-action-el"];let je=(()=>{class S{constructor(){this.title="",this.shortTitle="",this.version=""}ngOnInit(){}}return S.\u0275fac=function(y){return new(y||S)},S.\u0275cmp=M.Xpm({type:S,selectors:[["ukis-header"]],inputs:{title:["ukis-title","title"],shortTitle:["ukis-short-title","shortTitle"],version:["ukis-version","version"]},ngContentSelectors:Ce,decls:17,vars:9,consts:[[1,"header-1"],[1,"branding",3,"ngClass"],["href","https://www.dlr.de","target","_blank","alt","link to dlr"],["shape","dlr","size","48","alt","dlr icon",1,"is-solid"],["href","https://www.dlr.de/eoc/desktopdefault.aspx/tabid-5413/10560_read-21914","target","_blank","alt","link to dlr ukis"],["shape","ukis","size","33","alt","ukis icon",1,"is-solid"],["routerLink","/","routerLinkActive","active",1,"nav-link"],[1,"title",3,"title"],[1,"title","short",3,"title"],["class","version",4,"ngIf"],[1,"header-nav",3,"clr-nav-level"],[1,"header-actions"],[1,"version"]],template:function(y,E){1&y&&(M.F$t(ge),M.TgZ(0,"clr-header",0)(1,"div",1)(2,"a",2),M._UZ(3,"clr-icon",3),M.qZA(),M.TgZ(4,"a",4),M._UZ(5,"clr-icon",5),M.qZA(),M.TgZ(6,"a",6)(7,"span",7),M._uU(8),M.qZA(),M.TgZ(9,"span",8),M._uU(10),M.qZA()(),M.YNc(11,xe,2,1,"span",9),M.qZA(),M.TgZ(12,"div",10),M.Hsn(13),M.qZA(),M.Hsn(14,1),M.TgZ(15,"div",11),M.Hsn(16,2),M.qZA()()),2&y&&(M.xp6(1),M.Q6J("ngClass",M.VKq(7,be,E.shortTitle)),M.xp6(6),M.Q6J("title",E.title),M.xp6(1),M.Oqu(E.title),M.xp6(1),M.Q6J("title",E.title),M.xp6(1),M.Oqu(E.shortTitle),M.xp6(1),M.Q6J("ngIf",E.version),M.xp6(1),M.Q6J("clr-nav-level",1))},dependencies:[se.mk,se.O5,ce.yS,ce.Od,ye.qvL,ye.uUW,ye.saT,ye.toC]}),S})();function Rt(S,_){if(1&S){const y=M.EpF();M.TgZ(0,"button",11),M.NdJ("click",function(){const H=M.CHM(y).$implicit;return M.KtG(H.callback&&H.callback())}),M._uU(1),M.qZA()}if(2&S){const y=_.$implicit;M.xp6(1),M.Oqu(y.title)}}function tn(S,_){if(1&S&&(M.TgZ(0,"div",9),M.YNc(1,Rt,2,1,"button",10),M.qZA()),2&S){const y=M.oxw(2);M.xp6(1),M.Q6J("ngForOf",y.alert.actions)}}function tt(S,_){if(1&S){const y=M.EpF();M.TgZ(0,"button",12),M.NdJ("click",function(){M.CHM(y);const R=M.oxw(2);return M.KtG(R.close())}),M._UZ(1,"clr-icon",13),M.qZA()}}function $e(S,_){if(1&S&&(M.TgZ(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4),M._UZ(4,"clr-icon",5),M.qZA(),M._UZ(5,"div",6),M.YNc(6,tn,2,1,"div",7),M.qZA()(),M.YNc(7,tt,2,0,"button",8),M.qZA()),2&S){const y=M.oxw();M.Q6J("ngClass","alert-"+y.alert.type),M.xp6(5),M.Q6J("innerHTML",y.alert.text,M.oJD),M.xp6(1),M.Q6J("ngIf",y.alert.actions),M.xp6(1),M.Q6J("ngIf",y.alert.closeable)}}let ft=(()=>{class S{constructor(){this.alertChange=new M.vpe}close(){this.alert=null,this.alertChange.emit(this.alert)}}return S.\u0275fac=function(y){return new(y||S)},S.\u0275cmp=M.Xpm({type:S,selectors:[["ukis-global-alert"]],inputs:{alert:"alert"},outputs:{alertChange:"alertChange"},decls:1,vars:1,consts:[["class","alert alert-app-level","role","alert",3,"ngClass",4,"ngIf"],["role","alert",1,"alert","alert-app-level",3,"ngClass"],[1,"alert-items"],[1,"alert-item","static"],[1,"alert-icon-wrapper"],["shape","info-circle",1,"alert-icon"],[1,"alert-text",3,"innerHTML"],["class","alert-actions",4,"ngIf"],["type","button","class","close","aria-label","alert close",3,"click",4,"ngIf"],[1,"alert-actions"],["class","btn alert-action","aria-label","alert action",3,"click",4,"ngFor","ngForOf"],["aria-label","alert action",1,"btn","alert-action",3,"click"],["type","button","aria-label","alert close",1,"close",3,"click"],["aria-hidden","true","shape","close"]],template:function(y,E){1&y&&M.YNc(0,$e,8,4,"div",0),2&y&&M.Q6J("ngIf",E.alert)},dependencies:[se.mk,se.sg,se.O5,ye.I9z,ye.qvL]}),S})();function Ht(S,_){if(1&S&&(M.TgZ(0,"span")(1,"div",1),M._UZ(2,"progress"),M.qZA()()),2&S){const y=M.oxw();M.xp6(1),M.Q6J("ngClass",y.getProgressClass())}}function rr(S,_){if(1&S&&(M.TgZ(0,"span")(1,"div",2),M._UZ(2,"progress",3),M.qZA()()),2&S){const y=M.oxw();M.xp6(1),M.Q6J("ngClass",y.getProgressClass()),M.xp6(1),M.s9C("max",y.progress.max),M.s9C("value",y.progress.value)}}let $t=(()=>{class S{constructor(){this.progressChange=new M.vpe}ngOnInit(){}getProgressClass(){return this.progress?.class?this.progress?.class:""}}return S.\u0275fac=function(y){return new(y||S)},S.\u0275cmp=M.Xpm({type:S,selectors:[["ukis-global-progress"]],inputs:{progress:"progress"},outputs:{progressChange:"progressChange"},decls:2,vars:2,consts:[[4,"ngIf"],[1,"progress","loop",3,"ngClass"],[1,"progress",3,"ngClass"],[3,"max","value"]],template:function(y,E){1&y&&(M.YNc(0,Ht,3,1,"span",0),M.YNc(1,rr,3,3,"span",0)),2&y&&(M.Q6J("ngIf",E.progress&&E.progress.indeterminate),M.xp6(1),M.Q6J("ngIf",E.progress&&!E.progress.indeterminate))},dependencies:[se.mk,se.O5],styles:[".progress[_ngcontent-%COMP%]{height:.5em}"]}),S})();function it(S,_){if(1&S){const y=M.EpF();M.TgZ(0,"ukis-global-alert",5),M.NdJ("alertChange",function(R){M.CHM(y);const H=M.oxw();return M.KtG(H.ui.alert=R)}),M.qZA()}if(2&S){const y=M.oxw();M.Q6J("alert",y.ui.alert)}}function Wt(S,_){if(1&S){const y=M.EpF();M.TgZ(0,"ukis-global-progress",6),M.NdJ("progressChange",function(R){M.CHM(y);const H=M.oxw();return M.KtG(H.ui.progress=R)}),M.qZA()}if(2&S){const y=M.oxw();M.Q6J("progress",y.ui.progress)}}function yt(S,_){if(1&S&&(M.TgZ(0,"a",9),M._uU(1),M.qZA()),2&S){const y=M.oxw().$implicit;M.MGl("routerLink","/",y.path,""),M.xp6(1),M.Oqu(y.data.title)}}function Gt(S,_){if(1&S&&(M.ynx(0,7),M.YNc(1,yt,2,2,"a",8),M.BQk()),2&S){const y=_.$implicit,E=M.oxw();M.xp6(1),M.Q6J("ngIf",E.currentRoute===y.path)}}let st=(()=>{class S{constructor(y,E,R){this.alertService=y,this.progressService=E,this.router=R,this.title="",this.shortTitle="",this.version=X||null,this.ui={alert:null,progress:null},this.subs=[],this.showProgress=H=>{this.ui.progress=H},this.setAlert=H=>{this.ui.alert=H},this.init(),this.routes=this.router.config.filter(H=>H.data)}ngOnInit(){const y=this.router.events.pipe((0,ae.h)(E=>E instanceof ce.m2||E instanceof ce.OD)).subscribe(E=>{const R=new URL(E.url,`${window.location.origin}${window.location.pathname}`);this.currentRoute="/examples"!==R.pathname?R.pathname.slice(1):null});this.subs.push(y)}ngOnDestroy(){this.subs.map(y=>y.unsubscribe())}init(){this.getHtmlMeta(["title","version","description","short-title"]),this.TITLE&&(this.title=this.TITLE),this["SHORT-TITLE"]&&(this.shortTitle=this["SHORT-TITLE"]),this.alertService.alert$.subscribe(y=>{this.setAlert(y)}),this.progressService.progress$.subscribe(y=>{this.showProgress(y)})}getHtmlMeta(y){const E=document.getElementsByTagName("meta");for(let R=0,H=E.length;R{const We=Ve.get("offset"),rt=We==fe,vt=rt&&De||new Map;Ve.forEach((pt,_t)=>{let nn=_t,jt=pt;if("offset"!==_t)switch(nn=_.normalizePropertyName(nn,Y),jt){case _e.k1:jt=R.get(_t);break;case _e.l3:jt=H.get(_t);break;default:jt=_.normalizeStyleValue(_t,nn,jt,Y)}vt.set(nn,jt)}),rt||K.push(vt),De=vt,fe=We}),Y.length)throw function Xi(S){return new M.vHH(3502,!1)}();return K}function nr(S,_,y,E){switch(_){case"start":S.onStart(()=>E(y&&Nn(y,"start",S)));break;case"done":S.onDone(()=>E(y&&Nn(y,"done",S)));break;case"destroy":S.onDestroy(()=>E(y&&Nn(y,"destroy",S)))}}function Nn(S,_,y){const H=pn(S.element,S.triggerName,S.fromState,S.toState,_||S.phaseName,y.totalTime??S.totalTime,!!y.disabled),Y=S._data;return null!=Y&&(H._data=Y),H}function pn(S,_,y,E,R="",H=0,Y){return{element:S,triggerName:_,fromState:y,toState:E,phaseName:R,totalTime:H,disabled:!!Y}}function dt(S,_,y){let E=S.get(_);return E||S.set(_,E=y),E}function Rn(S){const _=S.indexOf(":");return[S.substring(1,_),S.slice(_+1)]}let Cr=(S,_)=>!1,pr=(S,_,y)=>[],Ts=null;function Ai(S){const _=S.parentNode||S.host;return _===Ts?null:_}(It()||typeof Element<"u")&&(yr()?(Ts=(()=>document.documentElement)(),Cr=(S,_)=>{for(;_;){if(_===S)return!0;_=Ai(_)}return!1}):Cr=(S,_)=>S.contains(_),pr=(S,_,y)=>{if(y)return Array.from(S.querySelectorAll(_));const E=S.querySelector(_);return E?[E]:[]});let Tn=null,zn=!1;const re=Cr,te=pr;let me=(()=>{class S{validateStyleProperty(y){return function hi(S){Tn||(Tn=function ir(){return typeof document<"u"?document.body:null}()||{},zn=!!Tn.style&&"WebkitAppearance"in Tn.style);let _=!0;return Tn.style&&!function en(S){return"ebkit"==S.substring(1,6)}(S)&&(_=S in Tn.style,!_&&zn&&(_="Webkit"+S.charAt(0).toUpperCase()+S.slice(1)in Tn.style)),_}(y)}matchesElement(y,E){return!1}containsElement(y,E){return re(y,E)}getParentElement(y){return Ai(y)}query(y,E,R){return te(y,E,R)}computeStyle(y,E,R){return R||""}animate(y,E,R,H,Y,K=[],fe){return new _e.ZN(R,H)}}return S.\u0275fac=function(y){return new(y||S)},S.\u0275prov=M.Yz7({token:S,factory:S.\u0275fac}),S})(),ke=(()=>{class S{}return S.NOOP=new me,S})();const xn="ng-enter",Ur="ng-leave",wt="ng-trigger",Jr=".ng-trigger",Ii="ng-animating",fi=".ng-animating";function Un(S){if("number"==typeof S)return S;const _=S.match(/^(-?[\.\d]+)(m?s)/);return!_||_.length<2?0:Ln(parseFloat(_[1]),_[2])}function Ln(S,_){return"s"===_?1e3*S:S}function Kn(S,_,y){return S.hasOwnProperty("duration")?S:function Kr(S,_,y){let R,H=0,Y="";if("string"==typeof S){const K=S.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===K)return _.push(Le()),{duration:0,delay:0,easing:""};R=Ln(parseFloat(K[1]),K[2]);const fe=K[3];null!=fe&&(H=Ln(parseFloat(fe),K[4]));const De=K[5];De&&(Y=De)}else R=S;if(!y){let K=!1,fe=_.length;R<0&&(_.push(function Ne(){return new M.vHH(3100,!1)}()),K=!0),H<0&&(_.push(function Be(){return new M.vHH(3101,!1)}()),K=!0),K&&_.splice(fe,0,Le())}return{duration:R,delay:H,easing:Y}}(S,_,y)}function cr(S,_={}){return Object.keys(S).forEach(y=>{_[y]=S[y]}),_}function pi(S){const _=new Map;return Object.keys(S).forEach(y=>{_.set(y,S[y])}),_}function xr(S,_=new Map,y){if(y)for(let[E,R]of y)_.set(E,R);for(let[E,R]of S)_.set(E,R);return _}function Rr(S,_,y){return y?_+":"+y+";":""}function gr(S){let _="";for(let y=0;y{const H=on(R);y&&!y.has(R)&&y.set(R,S.style[H]),S.style[H]=E}),It()&&gr(S))}function ur(S,_){S.style&&(_.forEach((y,E)=>{const R=on(E);S.style[R]=""}),It()&&gr(S))}function Xn(S){return Array.isArray(S)?1==S.length?S[0]:(0,_e.vP)(S):S}const Fn=new RegExp("{{\\s*(.+?)\\s*}}","g");function As(S){let _=[];if("string"==typeof S){let y;for(;y=Fn.exec(S);)_.push(y[1]);Fn.lastIndex=0}return _}function Vn(S,_,y){const E=S.toString(),R=E.replace(Fn,(H,Y)=>{let K=_[Y];return null==K&&(y.push(function mt(S){return new M.vHH(3003,!1)}()),K=""),K.toString()});return R==E?S:R}function dr(S){const _=[];let y=S.next();for(;!y.done;)_.push(y.value),y=S.next();return _}const Xr=/-+([a-z0-9])/g;function on(S){return S.replace(Xr,(..._)=>_[1].toUpperCase())}function Js(S){return S.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Et(S,_,y){switch(_.type){case 7:return S.visitTrigger(_,y);case 0:return S.visitState(_,y);case 1:return S.visitTransition(_,y);case 2:return S.visitSequence(_,y);case 3:return S.visitGroup(_,y);case 4:return S.visitAnimate(_,y);case 5:return S.visitKeyframes(_,y);case 6:return S.visitStyle(_,y);case 8:return S.visitReference(_,y);case 9:return S.visitAnimateChild(_,y);case 10:return S.visitAnimateRef(_,y);case 11:return S.visitQuery(_,y);case 12:return S.visitStagger(_,y);default:throw function Tt(S){return new M.vHH(3004,!1)}()}}function es(S,_){return window.getComputedStyle(S)[_]}function xs(S,_){const y=[];return"string"==typeof S?S.split(/\s*,\s*/).forEach(E=>function qo(S,_,y){if(":"==S[0]){const fe=function Io(S,_){switch(S){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(y,E)=>parseFloat(E)>parseFloat(y);case":decrement":return(y,E)=>parseFloat(E) *"}}(S,y);if("function"==typeof fe)return void _.push(fe);S=fe}const E=S.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==E||E.length<4)return y.push(function ze(S){return new M.vHH(3015,!1)}()),_;const R=E[1],H=E[2],Y=E[3];_.push(Ia(R,Y));"<"==H[0]&&!("*"==R&&"*"==Y)&&_.push(Ia(Y,R))}(E,y,_)):y.push(S),y}const xo=new Set(["true","1"]),Ms=new Set(["false","0"]);function Ia(S,_){const y=xo.has(S)||Ms.has(S),E=xo.has(_)||Ms.has(_);return(R,H)=>{let Y="*"==S||S==R,K="*"==_||_==H;return!Y&&y&&"boolean"==typeof R&&(Y=R?xo.has(S):Ms.has(S)),!K&&E&&"boolean"==typeof H&&(K=H?xo.has(_):Ms.has(_)),Y&&K}}const Jo=new RegExp("s*:selfs*,?","g");function ei(S,_,y,E){return new Ks(S).build(_,y,E)}class Ks{constructor(_){this._driver=_}build(_,y,E){const R=new Gr(y);return this._resetContextStyleTimingState(R),Et(this,Xn(_),R)}_resetContextStyleTimingState(_){_.currentQuerySelector="",_.collectedStyles=new Map,_.collectedStyles.set("",new Map),_.currentTime=0}visitTrigger(_,y){let E=y.queryCount=0,R=y.depCount=0;const H=[],Y=[];return"@"==_.name.charAt(0)&&y.errors.push(function Ct(){return new M.vHH(3006,!1)}()),_.definitions.forEach(K=>{if(this._resetContextStyleTimingState(y),0==K.type){const fe=K,De=fe.name;De.toString().split(/\s*,\s*/).forEach(Ve=>{fe.name=Ve,H.push(this.visitState(fe,y))}),fe.name=De}else if(1==K.type){const fe=this.visitTransition(K,y);E+=fe.queryCount,R+=fe.depCount,Y.push(fe)}else y.errors.push(function Ft(){return new M.vHH(3007,!1)}())}),{type:7,name:_.name,states:H,transitions:Y,queryCount:E,depCount:R,options:null}}visitState(_,y){const E=this.visitStyle(_.styles,y),R=_.options&&_.options.params||null;if(E.containsDynamicStyles){const H=new Set,Y=R||{};E.styles.forEach(K=>{K instanceof Map&&K.forEach(fe=>{As(fe).forEach(De=>{Y.hasOwnProperty(De)||H.add(De)})})}),H.size&&(dr(H.values()),y.errors.push(function fn(S,_){return new M.vHH(3008,!1)}()))}return{type:0,name:_.name,style:E,options:R?{params:R}:null}}visitTransition(_,y){y.queryCount=0,y.depCount=0;const E=Et(this,Xn(_.animation),y);return{type:1,matchers:xs(_.expr,y.errors),animation:E,queryCount:y.queryCount,depCount:y.depCount,options:Lr(_.options)}}visitSequence(_,y){return{type:2,steps:_.steps.map(E=>Et(this,E,y)),options:Lr(_.options)}}visitGroup(_,y){const E=y.currentTime;let R=0;const H=_.steps.map(Y=>{y.currentTime=E;const K=Et(this,Y,y);return R=Math.max(R,y.currentTime),K});return y.currentTime=R,{type:3,steps:H,options:Lr(_.options)}}visitAnimate(_,y){const E=function eo(S,_){if(S.hasOwnProperty("duration"))return S;if("number"==typeof S)return xi(Kn(S,_).duration,0,"");const y=S;if(y.split(/\s+/).some(H=>"{"==H.charAt(0)&&"{"==H.charAt(1))){const H=xi(0,0,"");return H.dynamic=!0,H.strValue=y,H}const R=Kn(y,_);return xi(R.duration,R.delay,R.easing)}(_.timings,y.errors);y.currentAnimateTimings=E;let R,H=_.styles?_.styles:(0,_e.oB)({});if(5==H.type)R=this.visitKeyframes(H,y);else{let Y=_.styles,K=!1;if(!Y){K=!0;const De={};E.easing&&(De.easing=E.easing),Y=(0,_e.oB)(De)}y.currentTime+=E.duration+E.delay;const fe=this.visitStyle(Y,y);fe.isEmptyStep=K,R=fe}return y.currentAnimateTimings=null,{type:4,timings:E,style:R,options:null}}visitStyle(_,y){const E=this._makeStyleAst(_,y);return this._validateStyleAst(E,y),E}_makeStyleAst(_,y){const E=[],R=Array.isArray(_.styles)?_.styles:[_.styles];for(let K of R)"string"==typeof K?K===_e.l3?E.push(K):y.errors.push(new M.vHH(3002,!1)):E.push(pi(K));let H=!1,Y=null;return E.forEach(K=>{if(K instanceof Map&&(K.has("easing")&&(Y=K.get("easing"),K.delete("easing")),!H))for(let fe of K.values())if(fe.toString().indexOf("{{")>=0){H=!0;break}}),{type:6,styles:E,easing:Y,offset:_.offset,containsDynamicStyles:H,options:null}}_validateStyleAst(_,y){const E=y.currentAnimateTimings;let R=y.currentTime,H=y.currentTime;E&&H>0&&(H-=E.duration+E.delay),_.styles.forEach(Y=>{"string"!=typeof Y&&Y.forEach((K,fe)=>{const De=y.collectedStyles.get(y.currentQuerySelector),Ve=De.get(fe);let We=!0;Ve&&(H!=R&&H>=Ve.startTime&&R<=Ve.endTime&&(y.errors.push(function Ir(S,_,y,E,R){return new M.vHH(3010,!1)}()),We=!1),H=Ve.startTime),We&&De.set(fe,{startTime:H,endTime:R}),y.options&&function br(S,_,y){const E=_.params||{},R=As(S);R.length&&R.forEach(H=>{E.hasOwnProperty(H)||y.push(function Ze(S){return new M.vHH(3001,!1)}())})}(K,y.options,y.errors)})})}visitKeyframes(_,y){const E={type:5,styles:[],options:null};if(!y.currentAnimateTimings)return y.errors.push(function jn(){return new M.vHH(3011,!1)}()),E;let H=0;const Y=[];let K=!1,fe=!1,De=0;const Ve=_.steps.map(jt=>{const er=this._makeStyleAst(jt,y);let Bn=null!=er.offset?er.offset:function gi(S){if("string"==typeof S)return null;let _=null;if(Array.isArray(S))S.forEach(y=>{if(y instanceof Map&&y.has("offset")){const E=y;_=parseFloat(E.get("offset")),E.delete("offset")}});else if(S instanceof Map&&S.has("offset")){const y=S;_=parseFloat(y.get("offset")),y.delete("offset")}return _}(er.styles),Yn=0;return null!=Bn&&(H++,Yn=er.offset=Bn),fe=fe||Yn<0||Yn>1,K=K||Yn0&&H{const Bn=rt>0?er==vt?1:rt*er:Y[er],Yn=Bn*nn;y.currentTime=pt+_t.delay+Yn,_t.duration=Yn,this._validateStyleAst(jt,y),jt.offset=Bn,E.styles.push(jt)}),E}visitReference(_,y){return{type:8,animation:Et(this,Xn(_.animation),y),options:Lr(_.options)}}visitAnimateChild(_,y){return y.depCount++,{type:9,options:Lr(_.options)}}visitAnimateRef(_,y){return{type:10,animation:this.visitReference(_.animation,y),options:Lr(_.options)}}visitQuery(_,y){const E=y.currentQuerySelector,R=_.options||{};y.queryCount++,y.currentQuery=_;const[H,Y]=function Xs(S){const _=!!S.split(/\s*,\s*/).find(y=>":self"==y);return _&&(S=S.replace(Jo,"")),S=S.replace(/@\*/g,Jr).replace(/@\w+/g,y=>Jr+"-"+y.slice(1)).replace(/:animating/g,fi),[S,_]}(_.selector);y.currentQuerySelector=E.length?E+" "+H:H,dt(y.collectedStyles,y.currentQuerySelector,new Map);const K=Et(this,Xn(_.animation),y);return y.currentQuery=null,y.currentQuerySelector=E,{type:11,selector:H,limit:R.limit||0,optional:!!R.optional,includeSelf:Y,animation:K,originalSelector:_.selector,options:Lr(_.options)}}visitStagger(_,y){y.currentQuery||y.errors.push(function di(){return new M.vHH(3013,!1)}());const E="full"===_.timings?{duration:0,delay:0,easing:"full"}:Kn(_.timings,y.errors,!0);return{type:12,animation:Et(this,Xn(_.animation),y),timings:E,options:null}}}class Gr{constructor(_){this.errors=_,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Lr(S){return S?(S=cr(S)).params&&(S.params=function $r(S){return S?cr(S):null}(S.params)):S={},S}function xi(S,_,y){return{duration:S,delay:_,easing:y}}function Or(S,_,y,E,R,H,Y=null,K=!1){return{type:1,element:S,keyframes:_,preStyleProps:y,postStyleProps:E,duration:R,delay:H,totalTime:R+H,easing:Y,subTimeline:K}}class Fs{constructor(){this._map=new Map}get(_){return this._map.get(_)||[]}append(_,y){let E=this._map.get(_);E||this._map.set(_,E=[]),E.push(...y)}has(_){return this._map.has(_)}clear(){this._map.clear()}}const Ko=new RegExp(":enter","g"),ns=new RegExp(":leave","g");function rs(S,_,y,E,R,H=new Map,Y=new Map,K,fe,De=[]){return(new ji).buildKeyframes(S,_,y,E,R,H,Y,K,fe,De)}class ji{buildKeyframes(_,y,E,R,H,Y,K,fe,De,Ve=[]){De=De||new Fs;const We=new is(_,y,De,R,H,Ve,[]);We.options=fe;const rt=fe.delay?Un(fe.delay):0;We.currentTimeline.delayNextStep(rt),We.currentTimeline.setStyles([Y],null,We.errors,fe),Et(this,E,We);const vt=We.timelines.filter(pt=>pt.containsAnimation());if(vt.length&&K.size){let pt;for(let _t=vt.length-1;_t>=0;_t--){const nn=vt[_t];if(nn.element===y){pt=nn;break}}pt&&!pt.allowOnlyTimelineStyles()&&pt.setStyles([K],null,We.errors,fe)}return vt.length?vt.map(pt=>pt.buildKeyframes()):[Or(y,[],[],[],0,rt,"",!1)]}visitTrigger(_,y){}visitState(_,y){}visitTransition(_,y){}visitAnimateChild(_,y){const E=y.subInstructions.get(y.element);if(E){const R=y.createSubContext(_.options),H=y.currentTimeline.currentTime,Y=this._visitSubInstructions(E,R,R.options);H!=Y&&y.transformIntoNewTimeline(Y)}y.previousNode=_}visitAnimateRef(_,y){const E=y.createSubContext(_.options);E.transformIntoNewTimeline(),this._applyAnimationRefDelays([_.options,_.animation.options],y,E),this.visitReference(_.animation,E),y.transformIntoNewTimeline(E.currentTimeline.currentTime),y.previousNode=_}_applyAnimationRefDelays(_,y,E){for(const R of _){const H=R?.delay;if(H){const Y="number"==typeof H?H:Un(Vn(H,R?.params??{},y.errors));E.delayNextStep(Y)}}}_visitSubInstructions(_,y,E){let H=y.currentTimeline.currentTime;const Y=null!=E.duration?Un(E.duration):null,K=null!=E.delay?Un(E.delay):null;return 0!==Y&&_.forEach(fe=>{const De=y.appendInstructionToTimeline(fe,Y,K);H=Math.max(H,De.duration+De.delay)}),H}visitReference(_,y){y.updateOptions(_.options,!0),Et(this,_.animation,y),y.previousNode=_}visitSequence(_,y){const E=y.subContextCount;let R=y;const H=_.options;if(H&&(H.params||H.delay)&&(R=y.createSubContext(H),R.transformIntoNewTimeline(),null!=H.delay)){6==R.previousNode.type&&(R.currentTimeline.snapshotCurrentStyles(),R.previousNode=mi);const Y=Un(H.delay);R.delayNextStep(Y)}_.steps.length&&(_.steps.forEach(Y=>Et(this,Y,R)),R.currentTimeline.applyStylesToKeyframe(),R.subContextCount>E&&R.transformIntoNewTimeline()),y.previousNode=_}visitGroup(_,y){const E=[];let R=y.currentTimeline.currentTime;const H=_.options&&_.options.delay?Un(_.options.delay):0;_.steps.forEach(Y=>{const K=y.createSubContext(_.options);H&&K.delayNextStep(H),Et(this,Y,K),R=Math.max(R,K.currentTimeline.currentTime),E.push(K.currentTimeline)}),E.forEach(Y=>y.currentTimeline.mergeTimelineCollectedStyles(Y)),y.transformIntoNewTimeline(R),y.previousNode=_}_visitTiming(_,y){if(_.dynamic){const E=_.strValue;return Kn(y.params?Vn(E,y.params,y.errors):E,y.errors)}return{duration:_.duration,delay:_.delay,easing:_.easing}}visitAnimate(_,y){const E=y.currentAnimateTimings=this._visitTiming(_.timings,y),R=y.currentTimeline;E.delay&&(y.incrementTime(E.delay),R.snapshotCurrentStyles());const H=_.style;5==H.type?this.visitKeyframes(H,y):(y.incrementTime(E.duration),this.visitStyle(H,y),R.applyStylesToKeyframe()),y.currentAnimateTimings=null,y.previousNode=_}visitStyle(_,y){const E=y.currentTimeline,R=y.currentAnimateTimings;!R&&E.hasCurrentStyleProperties()&&E.forwardFrame();const H=R&&R.easing||_.easing;_.isEmptyStep?E.applyEmptyStep(H):E.setStyles(_.styles,H,y.errors,y.options),y.previousNode=_}visitKeyframes(_,y){const E=y.currentAnimateTimings,R=y.currentTimeline.duration,H=E.duration,K=y.createSubContext().currentTimeline;K.easing=E.easing,_.styles.forEach(fe=>{K.forwardTime((fe.offset||0)*H),K.setStyles(fe.styles,fe.easing,y.errors,y.options),K.applyStylesToKeyframe()}),y.currentTimeline.mergeTimelineCollectedStyles(K),y.transformIntoNewTimeline(R+H),y.previousNode=_}visitQuery(_,y){const E=y.currentTimeline.currentTime,R=_.options||{},H=R.delay?Un(R.delay):0;H&&(6===y.previousNode.type||0==E&&y.currentTimeline.hasCurrentStyleProperties())&&(y.currentTimeline.snapshotCurrentStyles(),y.previousNode=mi);let Y=E;const K=y.invokeQuery(_.selector,_.originalSelector,_.limit,_.includeSelf,!!R.optional,y.errors);y.currentQueryTotal=K.length;let fe=null;K.forEach((De,Ve)=>{y.currentQueryIndex=Ve;const We=y.createSubContext(_.options,De);H&&We.delayNextStep(H),De===y.element&&(fe=We.currentTimeline),Et(this,_.animation,We),We.currentTimeline.applyStylesToKeyframe(),Y=Math.max(Y,We.currentTimeline.currentTime)}),y.currentQueryIndex=0,y.currentQueryTotal=0,y.transformIntoNewTimeline(Y),fe&&(y.currentTimeline.mergeTimelineCollectedStyles(fe),y.currentTimeline.snapshotCurrentStyles()),y.previousNode=_}visitStagger(_,y){const E=y.parentContext,R=y.currentTimeline,H=_.timings,Y=Math.abs(H.duration),K=Y*(y.currentQueryTotal-1);let fe=Y*y.currentQueryIndex;switch(H.duration<0?"reverse":H.easing){case"reverse":fe=K-fe;break;case"full":fe=E.currentStaggerTime}const Ve=y.currentTimeline;fe&&Ve.delayNextStep(fe);const We=Ve.currentTime;Et(this,_.animation,y),y.previousNode=_,E.currentStaggerTime=R.currentTime-We+(R.startTime-E.currentTimeline.startTime)}}const mi={};class is{constructor(_,y,E,R,H,Y,K,fe){this._driver=_,this.element=y,this.subInstructions=E,this._enterClassName=R,this._leaveClassName=H,this.errors=Y,this.timelines=K,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=mi,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=fe||new An(this._driver,y,0),K.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(_,y){if(!_)return;const E=_;let R=this.options;null!=E.duration&&(R.duration=Un(E.duration)),null!=E.delay&&(R.delay=Un(E.delay));const H=E.params;if(H){let Y=R.params;Y||(Y=this.options.params={}),Object.keys(H).forEach(K=>{(!y||!Y.hasOwnProperty(K))&&(Y[K]=Vn(H[K],Y,this.errors))})}}_copyOptions(){const _={};if(this.options){const y=this.options.params;if(y){const E=_.params={};Object.keys(y).forEach(R=>{E[R]=y[R]})}}return _}createSubContext(_=null,y,E){const R=y||this.element,H=new is(this._driver,R,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(R,E||0));return H.previousNode=this.previousNode,H.currentAnimateTimings=this.currentAnimateTimings,H.options=this._copyOptions(),H.updateOptions(_),H.currentQueryIndex=this.currentQueryIndex,H.currentQueryTotal=this.currentQueryTotal,H.parentContext=this,this.subContextCount++,H}transformIntoNewTimeline(_){return this.previousNode=mi,this.currentTimeline=this.currentTimeline.fork(this.element,_),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(_,y,E){const R={duration:y??_.duration,delay:this.currentTimeline.currentTime+(E??0)+_.delay,easing:""},H=new Xo(this._driver,_.element,_.keyframes,_.preStyleProps,_.postStyleProps,R,_.stretchStartingKeyframe);return this.timelines.push(H),R}incrementTime(_){this.currentTimeline.forwardTime(this.currentTimeline.duration+_)}delayNextStep(_){_>0&&this.currentTimeline.delayNextStep(_)}invokeQuery(_,y,E,R,H,Y){let K=[];if(R&&K.push(this.element),_.length>0){_=(_=_.replace(Ko,"."+this._enterClassName)).replace(ns,"."+this._leaveClassName);let De=this._driver.query(this.element,_,1!=E);0!==E&&(De=E<0?De.slice(De.length+E,De.length):De.slice(0,E)),K.push(...De)}return!H&&0==K.length&&Y.push(function Ti(S){return new M.vHH(3014,!1)}()),K}}class An{constructor(_,y,E,R){this._driver=_,this.element=y,this.startTime=E,this._elementTimelineStylesLookup=R,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(y),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(y,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(_){const y=1===this._keyframes.size&&this._pendingStyles.size;this.duration||y?(this.forwardTime(this.currentTime+_),y&&this.snapshotCurrentStyles()):this.startTime+=_}fork(_,y){return this.applyStylesToKeyframe(),new An(this._driver,_,y||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(_){this.applyStylesToKeyframe(),this.duration=_,this._loadKeyframe()}_updateStyle(_,y){this._localTimelineStyles.set(_,y),this._globalTimelineStyles.set(_,y),this._styleSummary.set(_,{time:this.currentTime,value:y})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(_){_&&this._previousKeyframe.set("easing",_);for(let[y,E]of this._globalTimelineStyles)this._backFill.set(y,E||_e.l3),this._currentKeyframe.set(y,_e.l3);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(_,y,E,R){y&&this._previousKeyframe.set("easing",y);const H=R&&R.params||{},Y=function zi(S,_){const y=new Map;let E;return S.forEach(R=>{if("*"===R){E=E||_.keys();for(let H of E)y.set(H,_e.l3)}else xr(R,y)}),y}(_,this._globalTimelineStyles);for(let[K,fe]of Y){const De=Vn(fe,H,E);this._pendingStyles.set(K,De),this._localTimelineStyles.has(K)||this._backFill.set(K,this._globalTimelineStyles.get(K)??_e.l3),this._updateStyle(K,De)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((_,y)=>{this._currentKeyframe.set(y,_)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((_,y)=>{this._currentKeyframe.has(y)||this._currentKeyframe.set(y,_)}))}snapshotCurrentStyles(){for(let[_,y]of this._localTimelineStyles)this._pendingStyles.set(_,y),this._updateStyle(_,y)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const _=[];for(let y in this._currentKeyframe)_.push(y);return _}mergeTimelineCollectedStyles(_){_._styleSummary.forEach((y,E)=>{const R=this._styleSummary.get(E);(!R||y.time>R.time)&&this._updateStyle(E,y.value)})}buildKeyframes(){this.applyStylesToKeyframe();const _=new Set,y=new Set,E=1===this._keyframes.size&&0===this.duration;let R=[];this._keyframes.forEach((K,fe)=>{const De=xr(K,new Map,this._backFill);De.forEach((Ve,We)=>{Ve===_e.k1?_.add(We):Ve===_e.l3&&y.add(We)}),E||De.set("offset",fe/this.duration),R.push(De)});const H=_.size?dr(_.values()):[],Y=y.size?dr(y.values()):[];if(E){const K=R[0],fe=new Map(K);K.set("offset",0),fe.set("offset",1),R=[K,fe]}return Or(this.element,R,H,Y,this.duration,this.startTime,this.easing,!1)}}class Xo extends An{constructor(_,y,E,R,H,Y,K=!1){super(_,y,Y.delay),this.keyframes=E,this.preStyleProps=R,this.postStyleProps=H,this._stretchStartingKeyframe=K,this.timings={duration:Y.duration,delay:Y.delay,easing:Y.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let _=this.keyframes,{delay:y,duration:E,easing:R}=this.timings;if(this._stretchStartingKeyframe&&y){const H=[],Y=E+y,K=y/Y,fe=xr(_[0]);fe.set("offset",0),H.push(fe);const De=xr(_[0]);De.set("offset",ks(K)),H.push(De);const Ve=_.length-1;for(let We=1;We<=Ve;We++){let rt=xr(_[We]);const vt=rt.get("offset");rt.set("offset",ks((y+vt*E)/Y)),H.push(rt)}E=Y,y=0,R="",_=H}return Or(this.element,_,this.preStyleProps,this.postStyleProps,E,y,R,!0)}}function ks(S,_=3){const y=Math.pow(10,_-1);return Math.round(S*y)/y}class Ui{}const ss=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class mn extends Ui{normalizePropertyName(_,y){return on(_)}normalizeStyleValue(_,y,E,R){let H="";const Y=E.toString().trim();if(ss.has(y)&&0!==E&&"0"!==E)if("number"==typeof E)H="px";else{const K=E.match(/^[+-]?[\d\.]+([a-z]*)$/);K&&0==K[1].length&&R.push(function zt(S,_){return new M.vHH(3005,!1)}())}return Y+H}}function os(S,_,y,E,R,H,Y,K,fe,De,Ve,We,rt){return{type:0,element:S,triggerName:_,isRemovalTransition:R,fromState:y,fromStyles:H,toState:E,toStyles:Y,timelines:K,queriedElements:fe,preStyleProps:De,postStyleProps:Ve,totalTime:We,errors:rt}}const kr={};class Ps{constructor(_,y,E){this._triggerName=_,this.ast=y,this._stateStyles=E}match(_,y,E,R){return function Mi(S,_,y,E,R){return S.some(H=>H(_,y,E,R))}(this.ast.matchers,_,y,E,R)}buildStyles(_,y,E){let R=this._stateStyles.get("*");return void 0!==_&&(R=this._stateStyles.get(_?.toString())||R),R?R.buildStyles(y,E):new Map}build(_,y,E,R,H,Y,K,fe,De,Ve){const We=[],rt=this.ast.options&&this.ast.options.params||kr,pt=this.buildStyles(E,K&&K.params||kr,We),_t=fe&&fe.params||kr,nn=this.buildStyles(R,_t,We),jt=new Set,er=new Map,Bn=new Map,Yn="void"===R,Ls={params:as(_t,rt),delay:this.ast.options?.delay},ni=Ve?[]:rs(_,y,this.ast.animation,H,Y,pt,nn,Ls,De,We);let Pr=0;if(ni.forEach(Zi=>{Pr=Math.max(Zi.duration+Zi.delay,Pr)}),We.length)return os(y,this._triggerName,E,R,Yn,pt,nn,[],[],er,Bn,Pr,We);ni.forEach(Zi=>{const fs=Zi.element,Ro=dt(er,fs,new Set);Zi.preStyleProps.forEach(gs=>Ro.add(gs));const ps=dt(Bn,fs,new Set);Zi.postStyleProps.forEach(gs=>ps.add(gs)),fs!==y&&jt.add(fs)});const Vs=dr(jt.values());return os(y,this._triggerName,E,R,Yn,pt,nn,ni,Vs,er,Bn,Pr)}}function as(S,_){const y=cr(_);for(const E in S)S.hasOwnProperty(E)&&null!=S[E]&&(y[E]=S[E]);return y}class At{constructor(_,y,E){this.styles=_,this.defaultParams=y,this.normalizer=E}buildStyles(_,y){const E=new Map,R=cr(this.defaultParams);return Object.keys(_).forEach(H=>{const Y=_[H];null!==Y&&(R[H]=Y)}),this.styles.styles.forEach(H=>{"string"!=typeof H&&H.forEach((Y,K)=>{Y&&(Y=Vn(Y,R,y));const fe=this.normalizer.normalizePropertyName(K,y);Y=this.normalizer.normalizeStyleValue(K,fe,Y,y),E.set(fe,Y)})}),E}}class Dl{constructor(_,y,E){this.name=_,this.ast=y,this._normalizer=E,this.transitionFactories=[],this.states=new Map,y.states.forEach(R=>{this.states.set(R.name,new At(R.style,R.options&&R.options.params||{},E))}),_i(this.states,"true","1"),_i(this.states,"false","0"),y.transitions.forEach(R=>{this.transitionFactories.push(new Ps(_,R,this.states))}),this.fallbackTransition=function or(S,_,y){return new Ps(S,{type:1,animation:{type:2,steps:[],options:null},matchers:[(Y,K)=>!0],options:null,queryCount:0,depCount:0},_)}(_,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(_,y,E,R){return this.transitionFactories.find(Y=>Y.match(_,y,E,R))||null}matchStyles(_,y,E){return this.fallbackTransition.buildStyles(_,y,E)}}function _i(S,_,y){S.has(_)?S.has(y)||S.set(y,S.get(_)):S.has(y)&&S.set(_,S.get(y))}const $i=new Fs;class Mo{constructor(_,y,E){this.bodyNode=_,this._driver=y,this._normalizer=E,this._animations=new Map,this._playersById=new Map,this.players=[]}register(_,y){const E=[],H=ei(this._driver,y,E,[]);if(E.length)throw function En(S){return new M.vHH(3503,!1)}();this._animations.set(_,H)}_buildPlayer(_,y,E){const R=_.element,H=Yt(0,this._normalizer,0,_.keyframes,y,E);return this._driver.animate(R,H,_.duration,_.delay,_.easing,[],!0)}create(_,y,E={}){const R=[],H=this._animations.get(_);let Y;const K=new Map;if(H?(Y=rs(this._driver,y,H,xn,Ur,new Map,new Map,E,$i,R),Y.forEach(Ve=>{const We=dt(K,Ve.element,new Map);Ve.postStyleProps.forEach(rt=>We.set(rt,null))})):(R.push(function Oe(){return new M.vHH(3300,!1)}()),Y=[]),R.length)throw function oe(S){return new M.vHH(3504,!1)}();K.forEach((Ve,We)=>{Ve.forEach((rt,vt)=>{Ve.set(vt,this._driver.computeStyle(We,vt,_e.l3))})});const De=xt(Y.map(Ve=>{const We=K.get(Ve.element);return this._buildPlayer(Ve,new Map,We)}));return this._playersById.set(_,De),De.onDestroy(()=>this.destroy(_)),this.players.push(De),De}destroy(_){const y=this._getPlayer(_);y.destroy(),this._playersById.delete(_);const E=this.players.indexOf(y);E>=0&&this.players.splice(E,1)}_getPlayer(_){const y=this._playersById.get(_);if(!y)throw function ne(S){return new M.vHH(3301,!1)}();return y}listen(_,y,E,R){const H=pn(y,"","","");return nr(this._getPlayer(_),E,H,R),()=>{}}command(_,y,E,R){if("register"==E)return void this.register(_,R[0]);if("create"==E)return void this.create(_,y,R[0]||{});const H=this._getPlayer(_);switch(E){case"play":H.play();break;case"pause":H.pause();break;case"reset":H.reset();break;case"restart":H.restart();break;case"finish":H.finish();break;case"init":H.init();break;case"setPosition":H.setPosition(parseFloat(R[0]));break;case"destroy":this.destroy(_)}}}const Oo="ng-animate-queued",Fe="ng-animate-disabled",Cn=[],V={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},N={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},P="__ng_removed";class G{constructor(_,y=""){this.namespaceId=y;const E=_&&_.hasOwnProperty("value");if(this.value=function cs(S){return S??null}(E?_.value:_),E){const H=cr(_);delete H.value,this.options=H}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(_){const y=_.params;if(y){const E=this.options.params;Object.keys(y).forEach(R=>{null==E[R]&&(E[R]=y[R])})}}}const we="void",ct=new G(we);class Qt{constructor(_,y,E){this.id=_,this.hostElement=y,this._engine=E,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+_,Zr(y,this._hostClassName)}listen(_,y,E,R){if(!this._triggers.has(y))throw function Ie(S,_){return new M.vHH(3302,!1)}();if(null==E||0==E.length)throw function Te(S){return new M.vHH(3303,!1)}();if(!function Gi(S){return"start"==S||"done"==S}(E))throw function lt(S,_){return new M.vHH(3400,!1)}();const H=dt(this._elementListeners,_,[]),Y={name:y,phase:E,callback:R};H.push(Y);const K=dt(this._engine.statesByElement,_,new Map);return K.has(y)||(Zr(_,wt),Zr(_,wt+"-"+y),K.set(y,ct)),()=>{this._engine.afterFlush(()=>{const fe=H.indexOf(Y);fe>=0&&H.splice(fe,1),this._triggers.has(y)||K.delete(y)})}}register(_,y){return!this._triggers.has(_)&&(this._triggers.set(_,y),!0)}_getTrigger(_){const y=this._triggers.get(_);if(!y)throw function kt(S){return new M.vHH(3401,!1)}();return y}trigger(_,y,E,R=!0){const H=this._getTrigger(y),Y=new Yr(this.id,y,_);let K=this._engine.statesByElement.get(_);K||(Zr(_,wt),Zr(_,wt+"-"+y),this._engine.statesByElement.set(_,K=new Map));let fe=K.get(y);const De=new G(E,this.id);if(!(E&&E.hasOwnProperty("value"))&&fe&&De.absorbOptions(fe.options),K.set(y,De),fe||(fe=ct),De.value!==we&&fe.value===De.value){if(!function ds(S,_){const y=Object.keys(S),E=Object.keys(_);if(y.length!=E.length)return!1;for(let R=0;R{ur(_,nn),mr(_,jt)})}return}const rt=dt(this._engine.playersByElement,_,[]);rt.forEach(_t=>{_t.namespaceId==this.id&&_t.triggerName==y&&_t.queued&&_t.destroy()});let vt=H.matchTransition(fe.value,De.value,_,De.params),pt=!1;if(!vt){if(!R)return;vt=H.fallbackTransition,pt=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:_,triggerName:y,transition:vt,fromState:fe,toState:De,player:Y,isFallbackTransition:pt}),pt||(Zr(_,Oo),Y.onStart(()=>{us(_,Oo)})),Y.onDone(()=>{let _t=this.players.indexOf(Y);_t>=0&&this.players.splice(_t,1);const nn=this._engine.playersByElement.get(_);if(nn){let jt=nn.indexOf(Y);jt>=0&&nn.splice(jt,1)}}),this.players.push(Y),rt.push(Y),Y}deregister(_){this._triggers.delete(_),this._engine.statesByElement.forEach(y=>y.delete(_)),this._elementListeners.forEach((y,E)=>{this._elementListeners.set(E,y.filter(R=>R.name!=_))})}clearElementCache(_){this._engine.statesByElement.delete(_),this._elementListeners.delete(_);const y=this._engine.playersByElement.get(_);y&&(y.forEach(E=>E.destroy()),this._engine.playersByElement.delete(_))}_signalRemovalForInnerTriggers(_,y){const E=this._engine.driver.query(_,Jr,!0);E.forEach(R=>{if(R[P])return;const H=this._engine.fetchNamespacesByElement(R);H.size?H.forEach(Y=>Y.triggerLeaveAnimation(R,y,!1,!0)):this.clearElementCache(R)}),this._engine.afterFlushAnimationsDone(()=>E.forEach(R=>this.clearElementCache(R)))}triggerLeaveAnimation(_,y,E,R){const H=this._engine.statesByElement.get(_),Y=new Map;if(H){const K=[];if(H.forEach((fe,De)=>{if(Y.set(De,fe.value),this._triggers.has(De)){const Ve=this.trigger(_,De,we,R);Ve&&K.push(Ve)}}),K.length)return this._engine.markElementAsRemoved(this.id,_,!0,y,Y),E&&xt(K).onDone(()=>this._engine.processLeaveNode(_)),!0}return!1}prepareLeaveAnimationListeners(_){const y=this._elementListeners.get(_),E=this._engine.statesByElement.get(_);if(y&&E){const R=new Set;y.forEach(H=>{const Y=H.name;if(R.has(Y))return;R.add(Y);const fe=this._triggers.get(Y).fallbackTransition,De=E.get(Y)||ct,Ve=new G(we),We=new Yr(this.id,Y,_);this._engine.totalQueuedPlayers++,this._queue.push({element:_,triggerName:Y,transition:fe,fromState:De,toState:Ve,player:We,isFallbackTransition:!0})})}}removeNode(_,y){const E=this._engine;if(_.childElementCount&&this._signalRemovalForInnerTriggers(_,y),this.triggerLeaveAnimation(_,y,!0))return;let R=!1;if(E.totalAnimations){const H=E.players.length?E.playersByQueriedElement.get(_):[];if(H&&H.length)R=!0;else{let Y=_;for(;Y=Y.parentNode;)if(E.statesByElement.get(Y)){R=!0;break}}}if(this.prepareLeaveAnimationListeners(_),R)E.markElementAsRemoved(this.id,_,!1,y);else{const H=_[P];(!H||H===V)&&(E.afterFlush(()=>this.clearElementCache(_)),E.destroyInnerAnimations(_),E._onRemovalComplete(_,y))}}insertNode(_,y){Zr(_,this._hostClassName)}drainQueuedTransitions(_){const y=[];return this._queue.forEach(E=>{const R=E.player;if(R.destroyed)return;const H=E.element,Y=this._elementListeners.get(H);Y&&Y.forEach(K=>{if(K.name==E.triggerName){const fe=pn(H,E.triggerName,E.fromState.value,E.toState.value);fe._data=_,nr(E.player,K.phase,fe,K.callback)}}),R.markedForDestroy?this._engine.afterFlush(()=>{R.destroy()}):y.push(E)}),this._queue=[],y.sort((E,R)=>{const H=E.transition.ast.depCount,Y=R.transition.ast.depCount;return 0==H||0==Y?H-Y:this._engine.driver.containsElement(E.element,R.element)?1:-1})}destroy(_){this.players.forEach(y=>y.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,_)}elementContainsData(_){let y=!1;return this._elementListeners.has(_)&&(y=!0),y=!!this._queue.find(E=>E.element===_)||y,y}}class ls{constructor(_,y,E){this.bodyNode=_,this.driver=y,this._normalizer=E,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(R,H)=>{}}_onRemovalComplete(_,y){this.onRemovalComplete(_,y)}get queuedPlayers(){const _=[];return this._namespaceList.forEach(y=>{y.players.forEach(E=>{E.queued&&_.push(E)})}),_}createNamespace(_,y){const E=new Qt(_,y,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,y)?this._balanceNamespaceList(E,y):(this.newHostElements.set(y,E),this.collectEnterElement(y)),this._namespaceLookup[_]=E}_balanceNamespaceList(_,y){const E=this._namespaceList,R=this.namespacesByHostElement;if(E.length-1>=0){let Y=!1,K=this.driver.getParentElement(y);for(;K;){const fe=R.get(K);if(fe){const De=E.indexOf(fe);E.splice(De+1,0,_),Y=!0;break}K=this.driver.getParentElement(K)}Y||E.unshift(_)}else E.push(_);return R.set(y,_),_}register(_,y){let E=this._namespaceLookup[_];return E||(E=this.createNamespace(_,y)),E}registerTrigger(_,y,E){let R=this._namespaceLookup[_];R&&R.register(y,E)&&this.totalAnimations++}destroy(_,y){if(!_)return;const E=this._fetchNamespace(_);this.afterFlush(()=>{this.namespacesByHostElement.delete(E.hostElement),delete this._namespaceLookup[_];const R=this._namespaceList.indexOf(E);R>=0&&this._namespaceList.splice(R,1)}),this.afterFlushAnimationsDone(()=>E.destroy(y))}_fetchNamespace(_){return this._namespaceLookup[_]}fetchNamespacesByElement(_){const y=new Set,E=this.statesByElement.get(_);if(E)for(let R of E.values())if(R.namespaceId){const H=this._fetchNamespace(R.namespaceId);H&&y.add(H)}return y}trigger(_,y,E,R){if(Fo(y)){const H=this._fetchNamespace(_);if(H)return H.trigger(y,E,R),!0}return!1}insertNode(_,y,E,R){if(!Fo(y))return;const H=y[P];if(H&&H.setForRemoval){H.setForRemoval=!1,H.setForMove=!0;const Y=this.collectedLeaveElements.indexOf(y);Y>=0&&this.collectedLeaveElements.splice(Y,1)}if(_){const Y=this._fetchNamespace(_);Y&&Y.insertNode(y,E)}R&&this.collectEnterElement(y)}collectEnterElement(_){this.collectedEnterElements.push(_)}markElementAsDisabled(_,y){y?this.disabledNodes.has(_)||(this.disabledNodes.add(_),Zr(_,Fe)):this.disabledNodes.has(_)&&(this.disabledNodes.delete(_),us(_,Fe))}removeNode(_,y,E,R){if(Fo(y)){const H=_?this._fetchNamespace(_):null;if(H?H.removeNode(y,R):this.markElementAsRemoved(_,y,!1,R),E){const Y=this.namespacesByHostElement.get(y);Y&&Y.id!==_&&Y.removeNode(y,R)}}else this._onRemovalComplete(y,R)}markElementAsRemoved(_,y,E,R,H){this.collectedLeaveElements.push(y),y[P]={namespaceId:_,setForRemoval:R,hasAnimation:E,removedBeforeQueried:!1,previousTriggersValues:H}}listen(_,y,E,R,H){return Fo(y)?this._fetchNamespace(_).listen(y,E,R,H):()=>{}}_buildInstruction(_,y,E,R,H){return _.transition.build(this.driver,_.element,_.fromState.value,_.toState.value,E,R,_.fromState.options,_.toState.options,y,H)}destroyInnerAnimations(_){let y=this.driver.query(_,Jr,!0);y.forEach(E=>this.destroyActiveAnimationsForElement(E)),0!=this.playersByQueriedElement.size&&(y=this.driver.query(_,fi,!0),y.forEach(E=>this.finishActiveQueriedAnimationOnElement(E)))}destroyActiveAnimationsForElement(_){const y=this.playersByElement.get(_);y&&y.forEach(E=>{E.queued?E.markedForDestroy=!0:E.destroy()})}finishActiveQueriedAnimationOnElement(_){const y=this.playersByQueriedElement.get(_);y&&y.forEach(E=>E.finish())}whenRenderingDone(){return new Promise(_=>{if(this.players.length)return xt(this.players).onDone(()=>_());_()})}processLeaveNode(_){const y=_[P];if(y&&y.setForRemoval){if(_[P]=V,y.namespaceId){this.destroyInnerAnimations(_);const E=this._fetchNamespace(y.namespaceId);E&&E.clearElementCache(_)}this._onRemovalComplete(_,y.setForRemoval)}_.classList?.contains(Fe)&&this.markElementAsDisabled(_,!1),this.driver.query(_,".ng-animate-disabled",!0).forEach(E=>{this.markElementAsDisabled(E,!1)})}flush(_=-1){let y=[];if(this.newHostElements.size&&(this.newHostElements.forEach((E,R)=>this._balanceNamespaceList(E,R)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let E=0;EE()),this._flushFns=[],this._whenQuietFns.length){const E=this._whenQuietFns;this._whenQuietFns=[],y.length?xt(y).onDone(()=>{E.forEach(R=>R())}):E.forEach(R=>R())}}reportError(_){throw function Kt(S){return new M.vHH(3402,!1)}()}_flushAnimations(_,y){const E=new Fs,R=[],H=new Map,Y=[],K=new Map,fe=new Map,De=new Map,Ve=new Set;this.disabledNodes.forEach(ut=>{Ve.add(ut);const bt=this.driver.query(ut,".ng-animate-queued",!0);for(let St=0;St{const St=xn+_t++;pt.set(bt,St),ut.forEach(qt=>Zr(qt,St))});const nn=[],jt=new Set,er=new Set;for(let ut=0;utjt.add(qt)):er.add(bt))}const Bn=new Map,Yn=Oa(rt,Array.from(jt));Yn.forEach((ut,bt)=>{const St=Ur+_t++;Bn.set(bt,St),ut.forEach(qt=>Zr(qt,St))}),_.push(()=>{vt.forEach((ut,bt)=>{const St=pt.get(bt);ut.forEach(qt=>us(qt,St))}),Yn.forEach((ut,bt)=>{const St=Bn.get(bt);ut.forEach(qt=>us(qt,St))}),nn.forEach(ut=>{this.processLeaveNode(ut)})});const Ls=[],ni=[];for(let ut=this._namespaceList.length-1;ut>=0;ut--)this._namespaceList[ut].drainQueuedTransitions(y).forEach(St=>{const qt=St.player,hr=St.element;if(Ls.push(qt),this.collectedEnterElements.length){const Hn=hr[P];if(Hn&&Hn.setForMove){if(Hn.previousTriggersValues&&Hn.previousTriggersValues.has(St.triggerName)){const Qr=Hn.previousTriggersValues.get(St.triggerName),Er=this.statesByElement.get(St.element);if(Er&&Er.has(St.triggerName)){const vs=Er.get(St.triggerName);vs.value=Qr,Er.set(St.triggerName,vs)}}return void qt.destroy()}}const Wr=!We||!this.driver.containsElement(We,hr),wr=Bn.get(hr),Wi=pt.get(hr),On=this._buildInstruction(St,E,Wi,wr,Wr);if(On.errors&&On.errors.length)return void ni.push(On);if(Wr)return qt.onStart(()=>ur(hr,On.fromStyles)),qt.onDestroy(()=>mr(hr,On.toStyles)),void R.push(qt);if(St.isFallbackTransition)return qt.onStart(()=>ur(hr,On.fromStyles)),qt.onDestroy(()=>mr(hr,On.toStyles)),void R.push(qt);const tr=[];On.timelines.forEach(Hn=>{Hn.stretchStartingKeyframe=!0,this.disabledNodes.has(Hn.element)||tr.push(Hn)}),On.timelines=tr,E.append(hr,On.timelines),Y.push({instruction:On,player:qt,element:hr}),On.queriedElements.forEach(Hn=>dt(K,Hn,[]).push(qt)),On.preStyleProps.forEach((Hn,Qr)=>{if(Hn.size){let Er=fe.get(Qr);Er||fe.set(Qr,Er=new Set),Hn.forEach((vs,Oi)=>Er.add(Oi))}}),On.postStyleProps.forEach((Hn,Qr)=>{let Er=De.get(Qr);Er||De.set(Qr,Er=new Set),Hn.forEach((vs,Oi)=>Er.add(Oi))})});if(ni.length){const ut=[];ni.forEach(bt=>{ut.push(function un(S,_){return new M.vHH(3505,!1)}())}),Ls.forEach(bt=>bt.destroy()),this.reportError(ut)}const Pr=new Map,Vs=new Map;Y.forEach(ut=>{const bt=ut.element;E.has(bt)&&(Vs.set(bt,bt),this._beforeAnimationBuild(ut.player.namespaceId,ut.instruction,Pr))}),R.forEach(ut=>{const bt=ut.element;this._getPreviousPlayers(bt,!1,ut.namespaceId,ut.triggerName,null).forEach(qt=>{dt(Pr,bt,[]).push(qt),qt.destroy()})});const Zi=nn.filter(ut=>wl(ut,fe,De)),fs=new Map;nl(fs,this.driver,er,De,_e.l3).forEach(ut=>{wl(ut,fe,De)&&Zi.push(ut)});const ps=new Map;vt.forEach((ut,bt)=>{nl(ps,this.driver,new Set(ut),fe,_e.k1)}),Zi.forEach(ut=>{const bt=fs.get(ut),St=ps.get(ut);fs.set(ut,new Map([...Array.from(bt?.entries()??[]),...Array.from(St?.entries()??[])]))});const gs=[],hn=[],ms={};Y.forEach(ut=>{const{element:bt,player:St,instruction:qt}=ut;if(E.has(bt)){if(Ve.has(bt))return St.onDestroy(()=>mr(bt,qt.toStyles)),St.disabled=!0,St.overrideTotalTime(qt.totalTime),void R.push(St);let hr=ms;if(Vs.size>1){let wr=bt;const Wi=[];for(;wr=wr.parentNode;){const On=Vs.get(wr);if(On){hr=On;break}Wi.push(wr)}Wi.forEach(On=>Vs.set(On,hr))}const Wr=this._buildAnimation(St.namespaceId,qt,Pr,H,ps,fs);if(St.setRealPlayer(Wr),hr===ms)gs.push(St);else{const wr=this.playersByElement.get(hr);wr&&wr.length&&(St.parentPlayer=xt(wr)),R.push(St)}}else ur(bt,qt.fromStyles),St.onDestroy(()=>mr(bt,qt.toStyles)),hn.push(St),Ve.has(bt)&&R.push(St)}),hn.forEach(ut=>{const bt=H.get(ut.element);if(bt&&bt.length){const St=xt(bt);ut.setRealPlayer(St)}}),R.forEach(ut=>{ut.parentPlayer?ut.syncPlayerEvents(ut.parentPlayer):ut.destroy()});for(let ut=0;ut!Wr.destroyed);hr.length?Ns(this,bt,hr):this.processLeaveNode(bt)}return nn.length=0,gs.forEach(ut=>{this.players.push(ut),ut.onDone(()=>{ut.destroy();const bt=this.players.indexOf(ut);this.players.splice(bt,1)}),ut.play()}),gs}elementContainsData(_,y){let E=!1;const R=y[P];return R&&R.setForRemoval&&(E=!0),this.playersByElement.has(y)&&(E=!0),this.playersByQueriedElement.has(y)&&(E=!0),this.statesByElement.has(y)&&(E=!0),this._fetchNamespace(_).elementContainsData(y)||E}afterFlush(_){this._flushFns.push(_)}afterFlushAnimationsDone(_){this._whenQuietFns.push(_)}_getPreviousPlayers(_,y,E,R,H){let Y=[];if(y){const K=this.playersByQueriedElement.get(_);K&&(Y=K)}else{const K=this.playersByElement.get(_);if(K){const fe=!H||H==we;K.forEach(De=>{De.queued||!fe&&De.triggerName!=R||Y.push(De)})}}return(E||R)&&(Y=Y.filter(K=>!(E&&E!=K.namespaceId||R&&R!=K.triggerName))),Y}_beforeAnimationBuild(_,y,E){const H=y.element,Y=y.isRemovalTransition?void 0:_,K=y.isRemovalTransition?void 0:y.triggerName;for(const fe of y.timelines){const De=fe.element,Ve=De!==H,We=dt(E,De,[]);this._getPreviousPlayers(De,Ve,Y,K,y.toState).forEach(vt=>{const pt=vt.getRealPlayer();pt.beforeDestroy&&pt.beforeDestroy(),vt.destroy(),We.push(vt)})}ur(H,y.fromStyles)}_buildAnimation(_,y,E,R,H,Y){const K=y.triggerName,fe=y.element,De=[],Ve=new Set,We=new Set,rt=y.timelines.map(pt=>{const _t=pt.element;Ve.add(_t);const nn=_t[P];if(nn&&nn.removedBeforeQueried)return new _e.ZN(pt.duration,pt.delay);const jt=_t!==fe,er=function Ye(S){const _=[];return ot(S,_),_}((E.get(_t)||Cn).map(Pr=>Pr.getRealPlayer())).filter(Pr=>!!Pr.element&&Pr.element===_t),Bn=H.get(_t),Yn=Y.get(_t),Ls=Yt(0,this._normalizer,0,pt.keyframes,Bn,Yn),ni=this._buildPlayer(pt,Ls,er);if(pt.subTimeline&&R&&We.add(_t),jt){const Pr=new Yr(_,K,_t);Pr.setRealPlayer(ni),De.push(Pr)}return ni});De.forEach(pt=>{dt(this.playersByQueriedElement,pt.element,[]).push(pt),pt.onDone(()=>function Mn(S,_,y){let E=S.get(_);if(E){if(E.length){const R=E.indexOf(y);E.splice(R,1)}0==E.length&&S.delete(_)}return E}(this.playersByQueriedElement,pt.element,pt))}),Ve.forEach(pt=>Zr(pt,Ii));const vt=xt(rt);return vt.onDestroy(()=>{Ve.forEach(pt=>us(pt,Ii)),mr(fe,y.toStyles)}),We.forEach(pt=>{dt(R,pt,[]).push(vt)}),vt}_buildPlayer(_,y,E){return y.length>0?this.driver.animate(_.element,y,_.duration,_.delay,_.easing,E):new _e.ZN(_.duration,_.delay)}}class Yr{constructor(_,y,E){this.namespaceId=_,this.triggerName=y,this.element=E,this._player=new _e.ZN,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(_){this._containsRealPlayer||(this._player=_,this._queuedCallbacks.forEach((y,E)=>{y.forEach(R=>nr(_,E,void 0,R))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(_.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(_){this.totalTime=_}syncPlayerEvents(_){const y=this._player;y.triggerCallback&&_.onStart(()=>y.triggerCallback("start")),_.onDone(()=>this.finish()),_.onDestroy(()=>this.destroy())}_queueEvent(_,y){dt(this._queuedCallbacks,_,[]).push(y)}onDone(_){this.queued&&this._queueEvent("done",_),this._player.onDone(_)}onStart(_){this.queued&&this._queueEvent("start",_),this._player.onStart(_)}onDestroy(_){this.queued&&this._queueEvent("destroy",_),this._player.onDestroy(_)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(_){this.queued||this._player.setPosition(_)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(_){const y=this._player;y.triggerCallback&&y.triggerCallback(_)}}function Fo(S){return S&&1===S.nodeType}function yi(S,_){const y=S.style.display;return S.style.display=_??"none",y}function nl(S,_,y,E,R){const H=[];y.forEach(fe=>H.push(yi(fe)));const Y=[];E.forEach((fe,De)=>{const Ve=new Map;fe.forEach(We=>{const rt=_.computeStyle(De,We,R);Ve.set(We,rt),(!rt||0==rt.length)&&(De[P]=N,Y.push(De))}),S.set(De,Ve)});let K=0;return y.forEach(fe=>yi(fe,H[K++])),Y}function Oa(S,_){const y=new Map;if(S.forEach(K=>y.set(K,[])),0==_.length)return y;const R=new Set(_),H=new Map;function Y(K){if(!K)return 1;let fe=H.get(K);if(fe)return fe;const De=K.parentNode;return fe=y.has(De)?De:R.has(De)?1:Y(De),H.set(K,fe),fe}return _.forEach(K=>{const fe=Y(K);1!==fe&&y.get(fe).push(K)}),y}function Zr(S,_){S.classList?.add(_)}function us(S,_){S.classList?.remove(_)}function Ns(S,_,y){xt(y).onDone(()=>S.processLeaveNode(_))}function ot(S,_){for(let y=0;yR.add(H)):_.set(S,E),y.delete(S),!0}class ta{constructor(_,y,E){this.bodyNode=_,this._driver=y,this._normalizer=E,this._triggerCache={},this.onRemovalComplete=(R,H)=>{},this._transitionEngine=new ls(_,y,E),this._timelineEngine=new Mo(_,y,E),this._transitionEngine.onRemovalComplete=(R,H)=>this.onRemovalComplete(R,H)}registerTrigger(_,y,E,R,H){const Y=_+"-"+R;let K=this._triggerCache[Y];if(!K){const fe=[],Ve=ei(this._driver,H,fe,[]);if(fe.length)throw function Vi(S,_){return new M.vHH(3404,!1)}();K=function Ma(S,_,y){return new Dl(S,_,y)}(R,Ve,this._normalizer),this._triggerCache[Y]=K}this._transitionEngine.registerTrigger(y,R,K)}register(_,y){this._transitionEngine.register(_,y)}destroy(_,y){this._transitionEngine.destroy(_,y)}onInsert(_,y,E,R){this._transitionEngine.insertNode(_,y,E,R)}onRemove(_,y,E,R){this._transitionEngine.removeNode(_,y,R||!1,E)}disableAnimations(_,y){this._transitionEngine.markElementAsDisabled(_,y)}process(_,y,E,R){if("@"==E.charAt(0)){const[H,Y]=Rn(E);this._timelineEngine.command(H,y,Y,R)}else this._transitionEngine.trigger(_,y,E,R)}listen(_,y,E,R,H){if("@"==E.charAt(0)){const[Y,K]=Rn(E);return this._timelineEngine.listen(Y,y,K,H)}return this._transitionEngine.listen(_,y,E,R,H)}flush(_=-1){this._transitionEngine.flush(_)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let Fa=(()=>{class S{constructor(y,E,R){this._element=y,this._startStyles=E,this._endStyles=R,this._state=0;let H=S.initialStylesByElement.get(y);H||S.initialStylesByElement.set(y,H=new Map),this._initialStyles=H}start(){this._state<1&&(this._startStyles&&mr(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(mr(this._element,this._initialStyles),this._endStyles&&(mr(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(S.initialStylesByElement.delete(this._element),this._startStyles&&(ur(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ur(this._element,this._endStyles),this._endStyles=null),mr(this._element,this._initialStyles),this._state=3)}}return S.initialStylesByElement=new WeakMap,S})();function ka(S){let _=null;return S.forEach((y,E)=>{(function El(S){return"display"===S||"position"===S})(E)&&(_=_||new Map,_.set(E,y))}),_}class na{constructor(_,y,E,R){this.element=_,this.keyframes=y,this.options=E,this._specialStyles=R,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=E.duration,this._delay=E.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(_=>_()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const _=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,_,this.options),this._finalKeyframe=_.length?_[_.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(_){const y=[];return _.forEach(E=>{y.push(Object.fromEntries(E))}),y}_triggerWebAnimation(_,y,E){return _.animate(this._convertKeyframesToObject(y),E)}onStart(_){this._originalOnStartFns.push(_),this._onStartFns.push(_)}onDone(_){this._originalOnDoneFns.push(_),this._onDoneFns.push(_)}onDestroy(_){this._onDestroyFns.push(_)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(_=>_()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(_=>_()),this._onDestroyFns=[])}setPosition(_){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=_*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const _=new Map;this.hasStarted()&&this._finalKeyframe.forEach((E,R)=>{"offset"!==R&&_.set(R,this._finished?E:es(this.element,R))}),this.currentSnapshot=_}triggerCallback(_){const y="start"===_?this._onStartFns:this._onDoneFns;y.forEach(E=>E()),y.length=0}}class ra{validateStyleProperty(_){return!0}validateAnimatableStyleProperty(_){return!0}matchesElement(_,y){return!1}containsElement(_,y){return re(_,y)}getParentElement(_){return Ai(_)}query(_,y,E){return te(_,y,E)}computeStyle(_,y,E){return window.getComputedStyle(_)[y]}animate(_,y,E,R,H,Y=[]){const fe={duration:E,delay:R,fill:0==R?"both":"forwards"};H&&(fe.easing=H);const De=new Map,Ve=Y.filter(vt=>vt instanceof na);(function Sr(S,_){return 0===S||0===_})(E,R)&&Ve.forEach(vt=>{vt.currentSnapshot.forEach((pt,_t)=>De.set(_t,pt))});let We=function Eo(S){return S.length?S[0]instanceof Map?S:S.map(_=>pi(_)):[]}(y).map(vt=>xr(vt));We=function To(S,_,y){if(y.size&&_.length){let E=_[0],R=[];if(y.forEach((H,Y)=>{E.has(Y)||R.push(Y),E.set(Y,H)}),R.length)for(let H=1;H<_.length;H++){let Y=_[H];R.forEach(K=>Y.set(K,es(S,K)))}}return _}(_,We,De);const rt=function ko(S,_){let y=null,E=null;return Array.isArray(_)&&_.length?(y=ka(_[0]),_.length>1&&(E=ka(_[_.length-1]))):_ instanceof Map&&(y=ka(_)),y||E?new Fa(S,y,E):null}(_,We);return new na(_,We,fe,rt)}}let Tl=(()=>{class S extends _e._j{constructor(y,E){super(),this._nextAnimationId=0,this._renderer=y.createRenderer(E.body,{id:"0",encapsulation:M.ifc.None,styles:[],data:{animation:[]}})}build(y){const E=this._nextAnimationId.toString();this._nextAnimationId++;const R=Array.isArray(y)?(0,_e.vP)(y):y;return ti(this._renderer,null,E,"register",[R]),new Al(E,this._renderer)}}return S.\u0275fac=function(y){return new(y||S)(M.LFG(M.FYo),M.LFG(se.K0))},S.\u0275prov=M.Yz7({token:S,factory:S.\u0275fac}),S})();class Al extends _e.LC{constructor(_,y){super(),this._id=_,this._renderer=y}create(_,y){return new Dr(this._id,_,y||{},this._renderer)}}class Dr{constructor(_,y,E,R){this.id=_,this.element=y,this._renderer=R,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",E)}_listen(_,y){return this._renderer.listen(this.element,`@@${this.id}:${_}`,y)}_command(_,...y){return ti(this._renderer,this.element,this.id,_,y)}onDone(_){this._listen("done",_)}onStart(_){this._listen("start",_)}onDestroy(_){this._listen("destroy",_)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(_){this._command("setPosition",_)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function ti(S,_,y,E,R){return S.setProperty(_,`@@${y}:${E}`,R)}const Po="@.disabled";let fc=(()=>{class S{constructor(y,E,R){this.delegate=y,this.engine=E,this._zone=R,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),E.onRemovalComplete=(H,Y)=>{const K=Y?.parentNode(H);K&&Y.removeChild(K,H)}}createRenderer(y,E){const H=this.delegate.createRenderer(y,E);if(!(y&&E&&E.data&&E.data.animation)){let Ve=this._rendererCache.get(H);return Ve||(Ve=new Il("",H,this.engine,()=>this._rendererCache.delete(H)),this._rendererCache.set(H,Ve)),Ve}const Y=E.id,K=E.id+"-"+this._currentId;this._currentId++,this.engine.register(K,y);const fe=Ve=>{Array.isArray(Ve)?Ve.forEach(fe):this.engine.registerTrigger(Y,K,y,Ve.name,Ve)};return E.data.animation.forEach(fe),new pc(this,K,H,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(y,E,R){y>=0&&yE(R)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(H=>{const[Y,K]=H;Y(K)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([E,R]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return S.\u0275fac=function(y){return new(y||S)(M.LFG(M.FYo),M.LFG(ta),M.LFG(M.R0b))},S.\u0275prov=M.Yz7({token:S,factory:S.\u0275fac}),S})();class Il{constructor(_,y,E,R){this.namespaceId=_,this.delegate=y,this.engine=E,this._onDestroy=R,this.destroyNode=this.delegate.destroyNode?H=>y.destroyNode(H):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(_,y){return this.delegate.createElement(_,y)}createComment(_){return this.delegate.createComment(_)}createText(_){return this.delegate.createText(_)}appendChild(_,y){this.delegate.appendChild(_,y),this.engine.onInsert(this.namespaceId,y,_,!1)}insertBefore(_,y,E,R=!0){this.delegate.insertBefore(_,y,E),this.engine.onInsert(this.namespaceId,y,_,R)}removeChild(_,y,E){this.engine.onRemove(this.namespaceId,y,this.delegate,E)}selectRootElement(_,y){return this.delegate.selectRootElement(_,y)}parentNode(_){return this.delegate.parentNode(_)}nextSibling(_){return this.delegate.nextSibling(_)}setAttribute(_,y,E,R){this.delegate.setAttribute(_,y,E,R)}removeAttribute(_,y,E){this.delegate.removeAttribute(_,y,E)}addClass(_,y){this.delegate.addClass(_,y)}removeClass(_,y){this.delegate.removeClass(_,y)}setStyle(_,y,E,R){this.delegate.setStyle(_,y,E,R)}removeStyle(_,y,E){this.delegate.removeStyle(_,y,E)}setProperty(_,y,E){"@"==y.charAt(0)&&y==Po?this.disableAnimations(_,!!E):this.delegate.setProperty(_,y,E)}setValue(_,y){this.delegate.setValue(_,y)}listen(_,y,E){return this.delegate.listen(_,y,E)}disableAnimations(_,y){this.engine.disableAnimations(_,y)}}class pc extends Il{constructor(_,y,E,R,H){super(y,E,R,H),this.factory=_,this.namespaceId=y}setProperty(_,y,E){"@"==y.charAt(0)?"."==y.charAt(1)&&y==Po?this.disableAnimations(_,E=void 0===E||!!E):this.engine.process(this.namespaceId,_,y.slice(1),E):this.delegate.setProperty(_,y,E)}listen(_,y,E){if("@"==y.charAt(0)){const R=function gc(S){switch(S){case"body":return document.body;case"document":return document;case"window":return window;default:return S}}(_);let H=y.slice(1),Y="";return"@"!=H.charAt(0)&&([H,Y]=function ia(S){const _=S.indexOf(".");return[S.substring(0,_),S.slice(_+1)]}(H)),this.engine.listen(this.namespaceId,R,H,Y,K=>{this.factory.scheduleListenerCallback(K._data||-1,E,K)})}return this.delegate.listen(_,y,E)}}const Rs=[{provide:_e._j,useClass:Tl},{provide:Ui,useFactory:function io(){return new mn}},{provide:ta,useClass:(()=>{class S extends ta{constructor(y,E,R,H){super(y.body,E,R)}ngOnDestroy(){this.flush()}}return S.\u0275fac=function(y){return new(y||S)(M.LFG(se.K0),M.LFG(ke),M.LFG(Ui),M.LFG(M.z2F))},S.\u0275prov=M.Yz7({token:S,factory:S.\u0275fac}),S})()},{provide:M.FYo,useFactory:function hs(S,_,y){return new fc(S,_,y)},deps:[l.se,ta,M.R0b]}],so=[{provide:ke,useFactory:()=>new ra},{provide:M.QbO,useValue:"BrowserAnimations"},...Rs],oo=[{provide:ke,useClass:me},{provide:M.QbO,useValue:"NoopAnimations"},...Rs];let Yi=(()=>{class S{static withConfig(y){return{ngModule:S,providers:y.disableAnimations?oo:so}}}return S.\u0275fac=function(y){return new(y||S)},S.\u0275mod=M.oAB({type:S}),S.\u0275inj=M.cJS({providers:so,imports:[l.b2]}),S})();var sa=j(5732),rl=j(8808);let Na=(()=>{class S{}return S.\u0275fac=function(y){return new(y||S)},S.\u0275mod=M.oAB({type:S,bootstrap:[st]}),S.\u0275inj=M.cJS({providers:[q.c,ee.N],imports:[l.b2,sa.JF,de,ye.K6A,Ar.u5,Ar.UX,Yi,rl.q]}),S})();(0,M.G48)(),window.CESIUM_BASE_URL="assets/cesium/",l.q6().bootstrapModule(Na).catch(S=>console.error(S))},4762:(et,Ee,j)=>{j.d(Ee,{ZT:()=>M,gn:()=>de,pi:()=>ce});var l=function(_e,Me){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Le,Ne){Le.__proto__=Ne}||function(Le,Ne){for(var Be in Ne)Object.prototype.hasOwnProperty.call(Ne,Be)&&(Le[Be]=Ne[Be])})(_e,Me)};function M(_e,Me){if("function"!=typeof Me&&null!==Me)throw new TypeError("Class extends value "+String(Me)+" is not a constructor or null");function Le(){this.constructor=_e}l(_e,Me),_e.prototype=null===Me?Object.create(Me):(Le.prototype=Me.prototype,new Le)}var ce=function(){return ce=Object.assign||function(Me){for(var Le,Ne=1,Be=arguments.length;Ne=0;Tt--)(mt=_e[Tt])&&(Ze=(Be<3?mt(Ze):Be>3?mt(Me,Le,Ze):mt(Me,Le))||Ze);return Be>3&&Ze&&Object.defineProperty(Me,Le,Ze),Ze}},4091:(et,Ee,j)=>{j.d(Ee,{F4:()=>q,LC:()=>M,SB:()=>ae,X$:()=>pe,ZE:()=>Rt,ZN:()=>je,_j:()=>l,eR:()=>ee,jt:()=>de,k1:()=>tn,l3:()=>ce,oB:()=>X,vP:()=>he});class l{}class M{}const ce="*";function pe(tt,$e){return{type:7,name:tt,definitions:$e,options:{}}}function de(tt,$e=null){return{type:4,styles:$e,timings:tt}}function he(tt,$e=null){return{type:2,steps:tt,options:$e}}function X(tt){return{type:6,styles:tt,offset:null}}function ae(tt,$e,ft){return{type:0,name:tt,styles:$e,options:ft}}function q(tt){return{type:5,steps:tt}}function ee(tt,$e,ft=null){return{type:1,expr:tt,animation:$e,options:ft}}function Ce(tt){Promise.resolve().then(tt)}class je{constructor($e=0,ft=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=$e+ft}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach($e=>$e()),this._onDoneFns=[])}onStart($e){this._originalOnStartFns.push($e),this._onStartFns.push($e)}onDone($e){this._originalOnDoneFns.push($e),this._onDoneFns.push($e)}onDestroy($e){this._onDestroyFns.push($e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Ce(()=>this._onFinish())}_onStart(){this._onStartFns.forEach($e=>$e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach($e=>$e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition($e){this._position=this.totalTime?$e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback($e){const ft="start"==$e?this._onStartFns:this._onDoneFns;ft.forEach(Ht=>Ht()),ft.length=0}}class Rt{constructor($e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=$e;let ft=0,Ht=0,rr=0;const $t=this.players.length;0==$t?Ce(()=>this._onFinish()):this.players.forEach(it=>{it.onDone(()=>{++ft==$t&&this._onFinish()}),it.onDestroy(()=>{++Ht==$t&&this._onDestroy()}),it.onStart(()=>{++rr==$t&&this._onStart()})}),this.totalTime=this.players.reduce((it,Wt)=>Math.max(it,Wt.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach($e=>$e()),this._onDoneFns=[])}init(){this.players.forEach($e=>$e.init())}onStart($e){this._onStartFns.push($e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach($e=>$e()),this._onStartFns=[])}onDone($e){this._onDoneFns.push($e)}onDestroy($e){this._onDestroyFns.push($e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach($e=>$e.play())}pause(){this.players.forEach($e=>$e.pause())}restart(){this.players.forEach($e=>$e.restart())}finish(){this._onFinish(),this.players.forEach($e=>$e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach($e=>$e.destroy()),this._onDestroyFns.forEach($e=>$e()),this._onDestroyFns=[])}reset(){this.players.forEach($e=>$e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition($e){const ft=$e*this.totalTime;this.players.forEach(Ht=>{const rr=Ht.totalTime?Math.min(1,ft/Ht.totalTime):1;Ht.setPosition(rr)})}getPosition(){const $e=this.players.reduce((ft,Ht)=>null===ft||Ht.totalTime>ft.totalTime?Ht:ft,null);return null!=$e?$e.getPosition():0}beforeDestroy(){this.players.forEach($e=>{$e.beforeDestroy&&$e.beforeDestroy()})}triggerCallback($e){const ft="start"==$e?this._onStartFns:this._onDoneFns;ft.forEach(Ht=>Ht()),ft.length=0}}const tn="!"},8692:(et,Ee,j)=>{j.d(Ee,{Do:()=>tn,EM:()=>Xo,HT:()=>de,JF:()=>no,K0:()=>he,Mn:()=>Le,Mx:()=>Eo,NF:()=>rs,Nd:()=>Xs,O5:()=>Fn,Ov:()=>ts,PC:()=>es,RF:()=>Xr,S$:()=>Ce,Tn:()=>yt,UT:()=>Ne,V_:()=>q,Ye:()=>tt,b0:()=>Rt,bD:()=>Hi,ez:()=>to,fb:()=>Ze,mk:()=>dn,n9:()=>on,q:()=>ce,sg:()=>ur,tM:()=>Gt,tP:()=>$n,wS:()=>Tt,w_:()=>J,x:()=>Wt});var l=j(4537);let M=null;function ce(){return M}function de(O){M||(M=O)}class J{}const he=new l.OlP("DocumentToken");let X=(()=>{class O{historyGo(_){throw new Error("Not implemented")}}return O.\u0275fac=function(_){return new(_||O)},O.\u0275prov=l.Yz7({token:O,factory:function(){return function ae(){return(0,l.LFG)(ee)}()},providedIn:"platform"}),O})();const q=new l.OlP("Location Initialized");let ee=(()=>{class O extends X{constructor(_){super(),this._doc=_,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return ce().getBaseHref(this._doc)}onPopState(_){const y=ce().getGlobalEventTarget(this._doc,"window");return y.addEventListener("popstate",_,!1),()=>y.removeEventListener("popstate",_)}onHashChange(_){const y=ce().getGlobalEventTarget(this._doc,"window");return y.addEventListener("hashchange",_,!1),()=>y.removeEventListener("hashchange",_)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(_){this.location.pathname=_}pushState(_,y,E){se()?this._history.pushState(_,y,E):this.location.hash=E}replaceState(_,y,E){se()?this._history.replaceState(_,y,E):this.location.hash=E}forward(){this._history.forward()}back(){this._history.back()}historyGo(_=0){this._history.go(_)}getState(){return this._history.state}}return O.\u0275fac=function(_){return new(_||O)(l.LFG(he))},O.\u0275prov=l.Yz7({token:O,factory:function(){return function ye(){return new ee((0,l.LFG)(he))}()},providedIn:"platform"}),O})();function se(){return!!window.history.pushState}function xe(O,S){if(0==O.length)return S;if(0==S.length)return O;let _=0;return O.endsWith("/")&&_++,S.startsWith("/")&&_++,2==_?O+S.substring(1):1==_?O+S:O+"/"+S}function ge(O){const S=O.match(/#|\?|$/),_=S&&S.index||O.length;return O.slice(0,_-("/"===O[_-1]?1:0))+O.slice(_)}function be(O){return O&&"?"!==O[0]?"?"+O:O}let Ce=(()=>{class O{historyGo(_){throw new Error("Not implemented")}}return O.\u0275fac=function(_){return new(_||O)},O.\u0275prov=l.Yz7({token:O,factory:function(){return(0,l.f3M)(Rt)},providedIn:"root"}),O})();const je=new l.OlP("appBaseHref");let Rt=(()=>{class O extends Ce{constructor(_,y){super(),this._platformLocation=_,this._removeListenerFns=[],this._baseHref=y??this._platformLocation.getBaseHrefFromDOM()??(0,l.f3M)(he).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(_){this._removeListenerFns.push(this._platformLocation.onPopState(_),this._platformLocation.onHashChange(_))}getBaseHref(){return this._baseHref}prepareExternalUrl(_){return xe(this._baseHref,_)}path(_=!1){const y=this._platformLocation.pathname+be(this._platformLocation.search),E=this._platformLocation.hash;return E&&_?`${y}${E}`:y}pushState(_,y,E,R){const H=this.prepareExternalUrl(E+be(R));this._platformLocation.pushState(_,y,H)}replaceState(_,y,E,R){const H=this.prepareExternalUrl(E+be(R));this._platformLocation.replaceState(_,y,H)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(_=0){this._platformLocation.historyGo?.(_)}}return O.\u0275fac=function(_){return new(_||O)(l.LFG(X),l.LFG(je,8))},O.\u0275prov=l.Yz7({token:O,factory:O.\u0275fac,providedIn:"root"}),O})(),tn=(()=>{class O extends Ce{constructor(_,y){super(),this._platformLocation=_,this._baseHref="",this._removeListenerFns=[],null!=y&&(this._baseHref=y)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(_){this._removeListenerFns.push(this._platformLocation.onPopState(_),this._platformLocation.onHashChange(_))}getBaseHref(){return this._baseHref}path(_=!1){let y=this._platformLocation.hash;return null==y&&(y="#"),y.length>0?y.substring(1):y}prepareExternalUrl(_){const y=xe(this._baseHref,_);return y.length>0?"#"+y:y}pushState(_,y,E,R){let H=this.prepareExternalUrl(E+be(R));0==H.length&&(H=this._platformLocation.pathname),this._platformLocation.pushState(_,y,H)}replaceState(_,y,E,R){let H=this.prepareExternalUrl(E+be(R));0==H.length&&(H=this._platformLocation.pathname),this._platformLocation.replaceState(_,y,H)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(_=0){this._platformLocation.historyGo?.(_)}}return O.\u0275fac=function(_){return new(_||O)(l.LFG(X),l.LFG(je,8))},O.\u0275prov=l.Yz7({token:O,factory:O.\u0275fac}),O})(),tt=(()=>{class O{constructor(_){this._subject=new l.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=_;const y=this._locationStrategy.getBaseHref();this._baseHref=ge(Ht(y)),this._locationStrategy.onPopState(E=>{this._subject.emit({url:this.path(!0),pop:!0,state:E.state,type:E.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(_=!1){return this.normalize(this._locationStrategy.path(_))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(_,y=""){return this.path()==this.normalize(_+be(y))}normalize(_){return O.stripTrailingSlash(function ft(O,S){return O&&S.startsWith(O)?S.substring(O.length):S}(this._baseHref,Ht(_)))}prepareExternalUrl(_){return _&&"/"!==_[0]&&(_="/"+_),this._locationStrategy.prepareExternalUrl(_)}go(_,y="",E=null){this._locationStrategy.pushState(E,"",_,y),this._notifyUrlChangeListeners(this.prepareExternalUrl(_+be(y)),E)}replaceState(_,y="",E=null){this._locationStrategy.replaceState(E,"",_,y),this._notifyUrlChangeListeners(this.prepareExternalUrl(_+be(y)),E)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(_=0){this._locationStrategy.historyGo?.(_)}onUrlChange(_){return this._urlChangeListeners.push(_),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(y=>{this._notifyUrlChangeListeners(y.url,y.state)})),()=>{const y=this._urlChangeListeners.indexOf(_);this._urlChangeListeners.splice(y,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(_="",y){this._urlChangeListeners.forEach(E=>E(_,y))}subscribe(_,y,E){return this._subject.subscribe({next:_,error:y,complete:E})}}return O.normalizeQueryParams=be,O.joinWithSlash=xe,O.stripTrailingSlash=ge,O.\u0275fac=function(_){return new(_||O)(l.LFG(Ce))},O.\u0275prov=l.Yz7({token:O,factory:function(){return function $e(){return new tt((0,l.LFG)(Ce))}()},providedIn:"root"}),O})();function Ht(O){return O.replace(/\/index.html$/,"")}var Wt=(()=>((Wt=Wt||{})[Wt.Format=0]="Format",Wt[Wt.Standalone=1]="Standalone",Wt))(),yt=(()=>((yt=yt||{})[yt.Narrow=0]="Narrow",yt[yt.Abbreviated=1]="Abbreviated",yt[yt.Wide=2]="Wide",yt[yt.Short=3]="Short",yt))(),Gt=(()=>((Gt=Gt||{})[Gt.Short=0]="Short",Gt[Gt.Medium=1]="Medium",Gt[Gt.Long=2]="Long",Gt[Gt.Full=3]="Full",Gt))();function Le(O,S,_){const y=(0,l.cg1)(O),R=ze([y[l.wAp.DaysFormat],y[l.wAp.DaysStandalone]],S);return ze(R,_)}function Ne(O,S,_){const y=(0,l.cg1)(O),R=ze([y[l.wAp.MonthsFormat],y[l.wAp.MonthsStandalone]],S);return ze(R,_)}function Ze(O){return(0,l.cg1)(O)[l.wAp.FirstDayOfWeek]}function Tt(O,S){return ze((0,l.cg1)(O)[l.wAp.DateFormat],S)}function ze(O,S){for(let _=S;_>-1;_--)if(typeof O[_]<"u")return O[_];throw new Error("Locale data API: locale data undefined")}function Eo(O,S){S=encodeURIComponent(S);for(const _ of O.split(";")){const y=_.indexOf("="),[E,R]=-1==y?[_,""]:[_.slice(0,y),_.slice(y+1)];if(E.trim()===S)return decodeURIComponent(R)}return null}let dn=(()=>{class O{constructor(_,y,E,R){this._iterableDiffers=_,this._keyValueDiffers=y,this._ngEl=E,this._renderer=R,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(_){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof _?_.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(_){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof _?_.split(/\s+/):_,this._rawClass&&((0,l.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const _=this._iterableDiffer.diff(this._rawClass);_&&this._applyIterableChanges(_)}else if(this._keyValueDiffer){const _=this._keyValueDiffer.diff(this._rawClass);_&&this._applyKeyValueChanges(_)}}_applyKeyValueChanges(_){_.forEachAddedItem(y=>this._toggleClass(y.key,y.currentValue)),_.forEachChangedItem(y=>this._toggleClass(y.key,y.currentValue)),_.forEachRemovedItem(y=>{y.previousValue&&this._toggleClass(y.key,!1)})}_applyIterableChanges(_){_.forEachAddedItem(y=>{if("string"!=typeof y.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,l.AaK)(y.item)}`);this._toggleClass(y.item,!0)}),_.forEachRemovedItem(y=>this._toggleClass(y.item,!1))}_applyClasses(_){_&&(Array.isArray(_)||_ instanceof Set?_.forEach(y=>this._toggleClass(y,!0)):Object.keys(_).forEach(y=>this._toggleClass(y,!!_[y])))}_removeClasses(_){_&&(Array.isArray(_)||_ instanceof Set?_.forEach(y=>this._toggleClass(y,!1)):Object.keys(_).forEach(y=>this._toggleClass(y,!1)))}_toggleClass(_,y){(_=_.trim())&&_.split(/\s+/g).forEach(E=>{y?this._renderer.addClass(this._ngEl.nativeElement,E):this._renderer.removeClass(this._ngEl.nativeElement,E)})}}return O.\u0275fac=function(_){return new(_||O)(l.Y36(l.ZZ4),l.Y36(l.aQg),l.Y36(l.SBq),l.Y36(l.Qsj))},O.\u0275dir=l.lG2({type:O,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),O})();class mr{constructor(S,_,y,E){this.$implicit=S,this.ngForOf=_,this.index=y,this.count=E}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let ur=(()=>{class O{constructor(_,y,E){this._viewContainer=_,this._template=y,this._differs=E,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(_){this._ngForOf=_,this._ngForOfDirty=!0}set ngForTrackBy(_){this._trackByFn=_}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(_){_&&(this._template=_)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const _=this._ngForOf;!this._differ&&_&&(this._differ=this._differs.find(_).create(this.ngForTrackBy))}if(this._differ){const _=this._differ.diff(this._ngForOf);_&&this._applyChanges(_)}}_applyChanges(_){const y=this._viewContainer;_.forEachOperation((E,R,H)=>{if(null==E.previousIndex)y.createEmbeddedView(this._template,new mr(E.item,this._ngForOf,-1,-1),null===H?void 0:H);else if(null==H)y.remove(null===R?void 0:R);else if(null!==R){const Y=y.get(R);y.move(Y,H),Xn(Y,E)}});for(let E=0,R=y.length;E{Xn(y.get(E.currentIndex),E)})}static ngTemplateContextGuard(_,y){return!0}}return O.\u0275fac=function(_){return new(_||O)(l.Y36(l.s_b),l.Y36(l.Rgc),l.Y36(l.ZZ4))},O.\u0275dir=l.lG2({type:O,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),O})();function Xn(O,S){O.context.$implicit=S.item}let Fn=(()=>{class O{constructor(_,y){this._viewContainer=_,this._context=new As,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=y}set ngIf(_){this._context.$implicit=this._context.ngIf=_,this._updateView()}set ngIfThen(_){Vn("ngIfThen",_),this._thenTemplateRef=_,this._thenViewRef=null,this._updateView()}set ngIfElse(_){Vn("ngIfElse",_),this._elseTemplateRef=_,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(_,y){return!0}}return O.\u0275fac=function(_){return new(_||O)(l.Y36(l.s_b),l.Y36(l.Rgc))},O.\u0275dir=l.lG2({type:O,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),O})();class As{constructor(){this.$implicit=null,this.ngIf=null}}function Vn(O,S){if(S&&!S.createEmbeddedView)throw new Error(`${O} must be a TemplateRef, but received '${(0,l.AaK)(S)}'.`)}class dr{constructor(S,_){this._viewContainerRef=S,this._templateRef=_,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(S){S&&!this._created?this.create():!S&&this._created&&this.destroy()}}let Xr=(()=>{class O{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(_){this._ngSwitch=_,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(_){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(_)}_matchCase(_){const y=_==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||y,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),y}_updateDefaultCases(_){if(this._defaultViews&&_!==this._defaultUsed){this._defaultUsed=_;for(let y=0;y{class O{constructor(_,y,E){this.ngSwitch=E,E._addCase(),this._view=new dr(_,y)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return O.\u0275fac=function(_){return new(_||O)(l.Y36(l.s_b),l.Y36(l.Rgc),l.Y36(Xr,9))},O.\u0275dir=l.lG2({type:O,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),O})(),es=(()=>{class O{constructor(_,y,E){this._ngEl=_,this._differs=y,this._renderer=E,this._ngStyle=null,this._differ=null}set ngStyle(_){this._ngStyle=_,!this._differ&&_&&(this._differ=this._differs.find(_).create())}ngDoCheck(){if(this._differ){const _=this._differ.diff(this._ngStyle);_&&this._applyChanges(_)}}_setStyle(_,y){const[E,R]=_.split("."),H=-1===E.indexOf("-")?void 0:l.JOm.DashCase;null!=y?this._renderer.setStyle(this._ngEl.nativeElement,E,R?`${y}${R}`:y,H):this._renderer.removeStyle(this._ngEl.nativeElement,E,H)}_applyChanges(_){_.forEachRemovedItem(y=>this._setStyle(y.key,null)),_.forEachAddedItem(y=>this._setStyle(y.key,y.currentValue)),_.forEachChangedItem(y=>this._setStyle(y.key,y.currentValue))}}return O.\u0275fac=function(_){return new(_||O)(l.Y36(l.SBq),l.Y36(l.aQg),l.Y36(l.Qsj))},O.\u0275dir=l.lG2({type:O,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),O})(),$n=(()=>{class O{constructor(_){this._viewContainerRef=_,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(_){if(_.ngTemplateOutlet||_.ngTemplateOutletInjector){const y=this._viewContainerRef;if(this._viewRef&&y.remove(y.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:E,ngTemplateOutletContext:R,ngTemplateOutletInjector:H}=this;this._viewRef=y.createEmbeddedView(E,R,H?{injector:H}:void 0)}else this._viewRef=null}else this._viewRef&&_.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return O.\u0275fac=function(_){return new(_||O)(l.Y36(l.s_b))},O.\u0275dir=l.lG2({type:O,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[l.TTD]}),O})();class Ao{createSubscription(S,_){return S.subscribe({next:_,error:y=>{throw y}})}dispose(S){S.unsubscribe()}}class Mr{createSubscription(S,_){return S.then(_,y=>{throw y})}dispose(S){}}const tl=new Mr,Aa=new Ao;let ts=(()=>{class O{constructor(_){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=_}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(_){return this._obj?_!==this._obj?(this._dispose(),this.transform(_)):this._latestValue:(_&&this._subscribe(_),this._latestValue)}_subscribe(_){this._obj=_,this._strategy=this._selectStrategy(_),this._subscription=this._strategy.createSubscription(_,y=>this._updateLatestValue(_,y))}_selectStrategy(_){if((0,l.QGY)(_))return tl;if((0,l.F4k)(_))return Aa;throw function rn(O,S){return new l.vHH(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(_,y){_===this._obj&&(this._latestValue=y,this._ref.markForCheck())}}return O.\u0275fac=function(_){return new(_||O)(l.Y36(l.sBO,16))},O.\u0275pipe=l.Yjl({name:"async",type:O,pure:!1,standalone:!0}),O})(),Xs=(()=>{class O{constructor(_){this.differs=_,this.keyValues=[],this.compareFn=$r}transform(_,y=$r){if(!_||!(_ instanceof Map)&&"object"!=typeof _)return null;this.differ||(this.differ=this.differs.find(_).create());const E=this.differ.diff(_),R=y!==this.compareFn;return E&&(this.keyValues=[],E.forEachItem(H=>{this.keyValues.push(function Ks(O,S){return{key:O,value:S}}(H.key,H.currentValue))})),(E||R)&&(this.keyValues.sort(y),this.compareFn=y),this.keyValues}}return O.\u0275fac=function(_){return new(_||O)(l.Y36(l.aQg,16))},O.\u0275pipe=l.Yjl({name:"keyvalue",type:O,pure:!1,standalone:!0}),O})();function $r(O,S){const _=O.key,y=S.key;if(_===y)return 0;if(void 0===_)return 1;if(void 0===y)return-1;if(null===_)return 1;if(null===y)return-1;if("string"==typeof _&&"string"==typeof y)return _{class O{}return O.\u0275fac=function(_){return new(_||O)},O.\u0275mod=l.oAB({type:O}),O.\u0275inj=l.cJS({}),O})();const Hi="browser";function rs(O){return O===Hi}let Xo=(()=>{class O{}return O.\u0275prov=(0,l.Yz7)({token:O,providedIn:"root",factory:()=>new ks((0,l.LFG)(he),window)}),O})();class ks{constructor(S,_){this.document=S,this.window=_,this.offset=()=>[0,0]}setOffset(S){this.offset=Array.isArray(S)?()=>S:S}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(S){this.supportsScrolling()&&this.window.scrollTo(S[0],S[1])}scrollToAnchor(S){if(!this.supportsScrolling())return;const _=function Fr(O,S){const _=O.getElementById(S)||O.getElementsByName(S)[0];if(_)return _;if("function"==typeof O.createTreeWalker&&O.body&&(O.body.createShadowRoot||O.body.attachShadow)){const y=O.createTreeWalker(O.body,NodeFilter.SHOW_ELEMENT);let E=y.currentNode;for(;E;){const R=E.shadowRoot;if(R){const H=R.getElementById(S)||R.querySelector(`[name="${S}"]`);if(H)return H}E=y.nextNode()}}return null}(this.document,S);_&&(this.scrollToElement(_),_.focus())}setHistoryScrollRestoration(S){if(this.supportScrollRestoration()){const _=this.window.history;_&&_.scrollRestoration&&(_.scrollRestoration=S)}}scrollToElement(S){const _=S.getBoundingClientRect(),y=_.left+this.window.pageXOffset,E=_.top+this.window.pageYOffset,R=this.offset();this.window.scrollTo(y-R[0],E-R[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const S=zi(this.window.history)||zi(Object.getPrototypeOf(this.window.history));return!(!S||!S.writable&&!S.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function zi(O){return Object.getOwnPropertyDescriptor(O,"scrollRestoration")}class no{}},5732:(et,Ee,j)=>{j.d(Ee,{JF:()=>Vi,WM:()=>q,eN:()=>_e});var l=j(8692),M=j(4537),ce=j(5917),pe=j(882),de=j(4612),J=j(5435),he=j(8002);class X{}class ae{}class q{constructor(oe){this.normalizedNames=new Map,this.lazyUpdate=null,oe?this.lazyInit="string"==typeof oe?()=>{this.headers=new Map,oe.split("\n").forEach(ne=>{const Ie=ne.indexOf(":");if(Ie>0){const Te=ne.slice(0,Ie),lt=Te.toLowerCase(),kt=ne.slice(Ie+1).trim();this.maybeSetNormalizedName(Te,lt),this.headers.has(lt)?this.headers.get(lt).push(kt):this.headers.set(lt,[kt])}})}:()=>{this.headers=new Map,Object.keys(oe).forEach(ne=>{let Ie=oe[ne];const Te=ne.toLowerCase();"string"==typeof Ie&&(Ie=[Ie]),Ie.length>0&&(this.headers.set(Te,Ie),this.maybeSetNormalizedName(ne,Te))})}:this.headers=new Map}has(oe){return this.init(),this.headers.has(oe.toLowerCase())}get(oe){this.init();const ne=this.headers.get(oe.toLowerCase());return ne&&ne.length>0?ne[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(oe){return this.init(),this.headers.get(oe.toLowerCase())||null}append(oe,ne){return this.clone({name:oe,value:ne,op:"a"})}set(oe,ne){return this.clone({name:oe,value:ne,op:"s"})}delete(oe,ne){return this.clone({name:oe,value:ne,op:"d"})}maybeSetNormalizedName(oe,ne){this.normalizedNames.has(ne)||this.normalizedNames.set(ne,oe)}init(){this.lazyInit&&(this.lazyInit instanceof q?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(oe=>this.applyUpdate(oe)),this.lazyUpdate=null))}copyFrom(oe){oe.init(),Array.from(oe.headers.keys()).forEach(ne=>{this.headers.set(ne,oe.headers.get(ne)),this.normalizedNames.set(ne,oe.normalizedNames.get(ne))})}clone(oe){const ne=new q;return ne.lazyInit=this.lazyInit&&this.lazyInit instanceof q?this.lazyInit:this,ne.lazyUpdate=(this.lazyUpdate||[]).concat([oe]),ne}applyUpdate(oe){const ne=oe.name.toLowerCase();switch(oe.op){case"a":case"s":let Ie=oe.value;if("string"==typeof Ie&&(Ie=[Ie]),0===Ie.length)return;this.maybeSetNormalizedName(oe.name,ne);const Te=("a"===oe.op?this.headers.get(ne):void 0)||[];Te.push(...Ie),this.headers.set(ne,Te);break;case"d":const lt=oe.value;if(lt){let kt=this.headers.get(ne);if(!kt)return;kt=kt.filter(Kt=>-1===lt.indexOf(Kt)),0===kt.length?(this.headers.delete(ne),this.normalizedNames.delete(ne)):this.headers.set(ne,kt)}else this.headers.delete(ne),this.normalizedNames.delete(ne)}}forEach(oe){this.init(),Array.from(this.normalizedNames.keys()).forEach(ne=>oe(this.normalizedNames.get(ne),this.headers.get(ne)))}}class se{encodeKey(oe){return be(oe)}encodeValue(oe){return be(oe)}decodeKey(oe){return decodeURIComponent(oe)}decodeValue(oe){return decodeURIComponent(oe)}}const xe=/%(\d[a-f0-9])/gi,ge={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function be(Oe){return encodeURIComponent(Oe).replace(xe,(oe,ne)=>ge[ne]??oe)}function Ce(Oe){return`${Oe}`}class je{constructor(oe={}){if(this.updates=null,this.cloneFrom=null,this.encoder=oe.encoder||new se,oe.fromString){if(oe.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function ye(Oe,oe){const ne=new Map;return Oe.length>0&&Oe.replace(/^\?/,"").split("&").forEach(Te=>{const lt=Te.indexOf("="),[kt,Kt]=-1==lt?[oe.decodeKey(Te),""]:[oe.decodeKey(Te.slice(0,lt)),oe.decodeValue(Te.slice(lt+1))],qe=ne.get(kt)||[];qe.push(Kt),ne.set(kt,qe)}),ne}(oe.fromString,this.encoder)}else oe.fromObject?(this.map=new Map,Object.keys(oe.fromObject).forEach(ne=>{const Ie=oe.fromObject[ne],Te=Array.isArray(Ie)?Ie.map(Ce):[Ce(Ie)];this.map.set(ne,Te)})):this.map=null}has(oe){return this.init(),this.map.has(oe)}get(oe){this.init();const ne=this.map.get(oe);return ne?ne[0]:null}getAll(oe){return this.init(),this.map.get(oe)||null}keys(){return this.init(),Array.from(this.map.keys())}append(oe,ne){return this.clone({param:oe,value:ne,op:"a"})}appendAll(oe){const ne=[];return Object.keys(oe).forEach(Ie=>{const Te=oe[Ie];Array.isArray(Te)?Te.forEach(lt=>{ne.push({param:Ie,value:lt,op:"a"})}):ne.push({param:Ie,value:Te,op:"a"})}),this.clone(ne)}set(oe,ne){return this.clone({param:oe,value:ne,op:"s"})}delete(oe,ne){return this.clone({param:oe,value:ne,op:"d"})}toString(){return this.init(),this.keys().map(oe=>{const ne=this.encoder.encodeKey(oe);return this.map.get(oe).map(Ie=>ne+"="+this.encoder.encodeValue(Ie)).join("&")}).filter(oe=>""!==oe).join("&")}clone(oe){const ne=new je({encoder:this.encoder});return ne.cloneFrom=this.cloneFrom||this,ne.updates=(this.updates||[]).concat(oe),ne}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(oe=>this.map.set(oe,this.cloneFrom.map.get(oe))),this.updates.forEach(oe=>{switch(oe.op){case"a":case"s":const ne=("a"===oe.op?this.map.get(oe.param):void 0)||[];ne.push(Ce(oe.value)),this.map.set(oe.param,ne);break;case"d":if(void 0===oe.value){this.map.delete(oe.param);break}{let Ie=this.map.get(oe.param)||[];const Te=Ie.indexOf(Ce(oe.value));-1!==Te&&Ie.splice(Te,1),Ie.length>0?this.map.set(oe.param,Ie):this.map.delete(oe.param)}}}),this.cloneFrom=this.updates=null)}}class tn{constructor(){this.map=new Map}set(oe,ne){return this.map.set(oe,ne),this}get(oe){return this.map.has(oe)||this.map.set(oe,oe.defaultValue()),this.map.get(oe)}delete(oe){return this.map.delete(oe),this}has(oe){return this.map.has(oe)}keys(){return this.map.keys()}}function $e(Oe){return typeof ArrayBuffer<"u"&&Oe instanceof ArrayBuffer}function ft(Oe){return typeof Blob<"u"&&Oe instanceof Blob}function Ht(Oe){return typeof FormData<"u"&&Oe instanceof FormData}class $t{constructor(oe,ne,Ie,Te){let lt;if(this.url=ne,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=oe.toUpperCase(),function tt(Oe){switch(Oe){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Te?(this.body=void 0!==Ie?Ie:null,lt=Te):lt=Ie,lt&&(this.reportProgress=!!lt.reportProgress,this.withCredentials=!!lt.withCredentials,lt.responseType&&(this.responseType=lt.responseType),lt.headers&&(this.headers=lt.headers),lt.context&&(this.context=lt.context),lt.params&&(this.params=lt.params)),this.headers||(this.headers=new q),this.context||(this.context=new tn),this.params){const kt=this.params.toString();if(0===kt.length)this.urlWithParams=ne;else{const Kt=ne.indexOf("?");this.urlWithParams=ne+(-1===Kt?"?":Ktyr.set(It,oe.setHeaders[It]),qe)),oe.setParams&&(un=Object.keys(oe.setParams).reduce((yr,It)=>yr.set(It,oe.setParams[It]),un)),new $t(ne,Ie,lt,{params:un,headers:qe,context:Xt,reportProgress:Kt,responseType:Te,withCredentials:kt})}}var it=(()=>((it=it||{})[it.Sent=0]="Sent",it[it.UploadProgress=1]="UploadProgress",it[it.ResponseHeader=2]="ResponseHeader",it[it.DownloadProgress=3]="DownloadProgress",it[it.Response=4]="Response",it[it.User=5]="User",it))();class Wt{constructor(oe,ne=200,Ie="OK"){this.headers=oe.headers||new q,this.status=void 0!==oe.status?oe.status:ne,this.statusText=oe.statusText||Ie,this.url=oe.url||null,this.ok=this.status>=200&&this.status<300}}class yt extends Wt{constructor(oe={}){super(oe),this.type=it.ResponseHeader}clone(oe={}){return new yt({headers:oe.headers||this.headers,status:void 0!==oe.status?oe.status:this.status,statusText:oe.statusText||this.statusText,url:oe.url||this.url||void 0})}}class Gt extends Wt{constructor(oe={}){super(oe),this.type=it.Response,this.body=void 0!==oe.body?oe.body:null}clone(oe={}){return new Gt({body:void 0!==oe.body?oe.body:this.body,headers:oe.headers||this.headers,status:void 0!==oe.status?oe.status:this.status,statusText:oe.statusText||this.statusText,url:oe.url||this.url||void 0})}}class st extends Wt{constructor(oe){super(oe,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${oe.url||"(unknown url)"}`:`Http failure response for ${oe.url||"(unknown url)"}: ${oe.status} ${oe.statusText}`,this.error=oe.error||null}}function Ar(Oe,oe){return{body:oe,headers:Oe.headers,context:Oe.context,observe:Oe.observe,params:Oe.params,reportProgress:Oe.reportProgress,responseType:Oe.responseType,withCredentials:Oe.withCredentials}}let _e=(()=>{class Oe{constructor(ne){this.handler=ne}request(ne,Ie,Te={}){let lt;if(ne instanceof $t)lt=ne;else{let qe,un;qe=Te.headers instanceof q?Te.headers:new q(Te.headers),Te.params&&(un=Te.params instanceof je?Te.params:new je({fromObject:Te.params})),lt=new $t(ne,Ie,void 0!==Te.body?Te.body:null,{headers:qe,context:Te.context,params:un,reportProgress:Te.reportProgress,responseType:Te.responseType||"json",withCredentials:Te.withCredentials})}const kt=(0,ce.of)(lt).pipe((0,de.b)(qe=>this.handler.handle(qe)));if(ne instanceof $t||"events"===Te.observe)return kt;const Kt=kt.pipe((0,J.h)(qe=>qe instanceof Gt));switch(Te.observe||"body"){case"body":switch(lt.responseType){case"arraybuffer":return Kt.pipe((0,he.U)(qe=>{if(null!==qe.body&&!(qe.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return qe.body}));case"blob":return Kt.pipe((0,he.U)(qe=>{if(null!==qe.body&&!(qe.body instanceof Blob))throw new Error("Response is not a Blob.");return qe.body}));case"text":return Kt.pipe((0,he.U)(qe=>{if(null!==qe.body&&"string"!=typeof qe.body)throw new Error("Response is not a string.");return qe.body}));default:return Kt.pipe((0,he.U)(qe=>qe.body))}case"response":return Kt;default:throw new Error(`Unreachable: unhandled observe type ${Te.observe}}`)}}delete(ne,Ie={}){return this.request("DELETE",ne,Ie)}get(ne,Ie={}){return this.request("GET",ne,Ie)}head(ne,Ie={}){return this.request("HEAD",ne,Ie)}jsonp(ne,Ie){return this.request("JSONP",ne,{params:(new je).append(Ie,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(ne,Ie={}){return this.request("OPTIONS",ne,Ie)}patch(ne,Ie,Te={}){return this.request("PATCH",ne,Ar(Te,Ie))}post(ne,Ie,Te={}){return this.request("POST",ne,Ar(Te,Ie))}put(ne,Ie,Te={}){return this.request("PUT",ne,Ar(Te,Ie))}}return Oe.\u0275fac=function(ne){return new(ne||Oe)(M.LFG(X))},Oe.\u0275prov=M.Yz7({token:Oe,factory:Oe.\u0275fac}),Oe})();class Me{constructor(oe,ne){this.next=oe,this.interceptor=ne}handle(oe){return this.interceptor.intercept(oe,this.next)}}const Le=new M.OlP("HTTP_INTERCEPTORS");let Ne=(()=>{class Oe{intercept(ne,Ie){return Ie.handle(ne)}}return Oe.\u0275fac=function(ne){return new(ne||Oe)},Oe.\u0275prov=M.Yz7({token:Oe,factory:Oe.\u0275fac}),Oe})();const qn=/^\)\]\}',?\n/;let jn=(()=>{class Oe{constructor(ne){this.xhrFactory=ne}handle(ne){if("JSONP"===ne.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new pe.y(Ie=>{const Te=this.xhrFactory.build();if(Te.open(ne.method,ne.urlWithParams),ne.withCredentials&&(Te.withCredentials=!0),ne.headers.forEach((xt,Yt)=>Te.setRequestHeader(xt,Yt.join(","))),ne.headers.has("Accept")||Te.setRequestHeader("Accept","application/json, text/plain, */*"),!ne.headers.has("Content-Type")){const xt=ne.detectContentTypeHeader();null!==xt&&Te.setRequestHeader("Content-Type",xt)}if(ne.responseType){const xt=ne.responseType.toLowerCase();Te.responseType="json"!==xt?xt:"text"}const lt=ne.serializeBody();let kt=null;const Kt=()=>{if(null!==kt)return kt;const xt=Te.statusText||"OK",Yt=new q(Te.getAllResponseHeaders()),nr=function Ir(Oe){return"responseURL"in Oe&&Oe.responseURL?Oe.responseURL:/^X-Request-URL:/m.test(Oe.getAllResponseHeaders())?Oe.getResponseHeader("X-Request-URL"):null}(Te)||ne.url;return kt=new yt({headers:Yt,status:Te.status,statusText:xt,url:nr}),kt},qe=()=>{let{headers:xt,status:Yt,statusText:nr,url:Nn}=Kt(),pn=null;204!==Yt&&(pn=typeof Te.response>"u"?Te.responseText:Te.response),0===Yt&&(Yt=pn?200:0);let dt=Yt>=200&&Yt<300;if("json"===ne.responseType&&"string"==typeof pn){const Rn=pn;pn=pn.replace(qn,"");try{pn=""!==pn?JSON.parse(pn):null}catch(Cr){pn=Rn,dt&&(dt=!1,pn={error:Cr,text:pn})}}dt?(Ie.next(new Gt({body:pn,headers:xt,status:Yt,statusText:nr,url:Nn||void 0})),Ie.complete()):Ie.error(new st({error:pn,headers:xt,status:Yt,statusText:nr,url:Nn||void 0}))},un=xt=>{const{url:Yt}=Kt(),nr=new st({error:xt,status:Te.status||0,statusText:Te.statusText||"Unknown Error",url:Yt||void 0});Ie.error(nr)};let Xt=!1;const yr=xt=>{Xt||(Ie.next(Kt()),Xt=!0);let Yt={type:it.DownloadProgress,loaded:xt.loaded};xt.lengthComputable&&(Yt.total=xt.total),"text"===ne.responseType&&!!Te.responseText&&(Yt.partialText=Te.responseText),Ie.next(Yt)},It=xt=>{let Yt={type:it.UploadProgress,loaded:xt.loaded};xt.lengthComputable&&(Yt.total=xt.total),Ie.next(Yt)};return Te.addEventListener("load",qe),Te.addEventListener("error",un),Te.addEventListener("timeout",un),Te.addEventListener("abort",un),ne.reportProgress&&(Te.addEventListener("progress",yr),null!==lt&&Te.upload&&Te.upload.addEventListener("progress",It)),Te.send(lt),Ie.next({type:it.Sent}),()=>{Te.removeEventListener("error",un),Te.removeEventListener("abort",un),Te.removeEventListener("load",qe),Te.removeEventListener("timeout",un),ne.reportProgress&&(Te.removeEventListener("progress",yr),null!==lt&&Te.upload&&Te.upload.removeEventListener("progress",It)),Te.readyState!==Te.DONE&&Te.abort()}})}}return Oe.\u0275fac=function(ne){return new(ne||Oe)(M.LFG(l.JF))},Oe.\u0275prov=M.Yz7({token:Oe,factory:Oe.\u0275fac}),Oe})();const sn=new M.OlP("XSRF_COOKIE_NAME"),gn=new M.OlP("XSRF_HEADER_NAME");class zr{}let di=(()=>{class Oe{constructor(ne,Ie,Te){this.doc=ne,this.platform=Ie,this.cookieName=Te,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const ne=this.doc.cookie||"";return ne!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,l.Mx)(ne,this.cookieName),this.lastCookieString=ne),this.lastToken}}return Oe.\u0275fac=function(ne){return new(ne||Oe)(M.LFG(l.K0),M.LFG(M.Lbi),M.LFG(sn))},Oe.\u0275prov=M.Yz7({token:Oe,factory:Oe.\u0275fac}),Oe})(),Ti=(()=>{class Oe{constructor(ne,Ie){this.tokenService=ne,this.headerName=Ie}intercept(ne,Ie){const Te=ne.url.toLowerCase();if("GET"===ne.method||"HEAD"===ne.method||Te.startsWith("http://")||Te.startsWith("https://"))return Ie.handle(ne);const lt=this.tokenService.getToken();return null!==lt&&!ne.headers.has(this.headerName)&&(ne=ne.clone({headers:ne.headers.set(this.headerName,lt)})),Ie.handle(ne)}}return Oe.\u0275fac=function(ne){return new(ne||Oe)(M.LFG(zr),M.LFG(gn))},Oe.\u0275prov=M.Yz7({token:Oe,factory:Oe.\u0275fac}),Oe})(),ze=(()=>{class Oe{constructor(ne,Ie){this.backend=ne,this.injector=Ie,this.chain=null}handle(ne){if(null===this.chain){const Ie=this.injector.get(Le,[]);this.chain=Ie.reduceRight((Te,lt)=>new Me(Te,lt),this.backend)}return this.chain.handle(ne)}}return Oe.\u0275fac=function(ne){return new(ne||Oe)(M.LFG(ae),M.LFG(M.zs3))},Oe.\u0275prov=M.Yz7({token:Oe,factory:Oe.\u0275fac}),Oe})(),wn=(()=>{class Oe{static disable(){return{ngModule:Oe,providers:[{provide:Ti,useClass:Ne}]}}static withOptions(ne={}){return{ngModule:Oe,providers:[ne.cookieName?{provide:sn,useValue:ne.cookieName}:[],ne.headerName?{provide:gn,useValue:ne.headerName}:[]]}}}return Oe.\u0275fac=function(ne){return new(ne||Oe)},Oe.\u0275mod=M.oAB({type:Oe}),Oe.\u0275inj=M.cJS({providers:[Ti,{provide:Le,useExisting:Ti,multi:!0},{provide:zr,useClass:di},{provide:sn,useValue:"XSRF-TOKEN"},{provide:gn,useValue:"X-XSRF-TOKEN"}]}),Oe})(),Vi=(()=>{class Oe{}return Oe.\u0275fac=function(ne){return new(ne||Oe)},Oe.\u0275mod=M.oAB({type:Oe}),Oe.\u0275inj=M.cJS({providers:[_e,{provide:X,useClass:ze},jn,{provide:ae,useExisting:jn}],imports:[wn.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),Oe})()},4537:(et,Ee,j)=>{j.d(Ee,{$8M:()=>tr,$Z:()=>Dg,AFp:()=>Yf,ALo:()=>rv,AaK:()=>X,AsE:()=>mm,BQk:()=>Uc,CHM:()=>Gn,CRH:()=>dv,CZH:()=>fu,CqO:()=>sm,D6c:()=>ww,DdM:()=>ev,DyG:()=>Ra,EJc:()=>RD,EpF:()=>nd,F$t:()=>cm,F4k:()=>Za,FYo:()=>Kp,FiY:()=>Sc,G48:()=>Pe,Gf:()=>uv,GfV:()=>Xp,GkF:()=>Jh,Gpc:()=>ee,Hsn:()=>FC,Ikx:()=>Kc,JOm:()=>la,Jf7:()=>eg,KtG:()=>ro,LFG:()=>Zn,LMc:()=>Tw,LSH:()=>gh,Lbi:()=>Lv,Lck:()=>wd,MAs:()=>Qh,MGl:()=>rd,MMx:()=>Td,NdJ:()=>Kh,OlP:()=>kn,Oqu:()=>qc,PXZ:()=>Yv,Q6J:()=>td,QGY:()=>im,QP$:()=>hi,QbO:()=>Vv,Qsj:()=>_y,R0b:()=>wo,RDi:()=>G0,Rgc:()=>cc,SBq:()=>Ac,Sil:()=>Wb,Suo:()=>Lf,TTD:()=>gi,TgZ:()=>jc,Tol:()=>HC,Udp:()=>Zc,VKq:()=>wf,W1O:()=>Ib,WFA:()=>Uo,XFs:()=>ze,Xpm:()=>Nn,Xts:()=>mh,Y36:()=>Vl,YKP:()=>Dd,YNc:()=>Wl,Yjl:()=>Bi,Yz7:()=>zt,Z0I:()=>cn,ZZ4:()=>f0,_Bn:()=>_l,_UZ:()=>rm,_Vd:()=>Tc,_c5:()=>Sw,_uU:()=>$C,aQg:()=>p0,c2e:()=>Gb,cJS:()=>Ft,cg1:()=>ld,d8E:()=>Xc,dDg:()=>n0,dqk:()=>Te,eFA:()=>Qv,ekj:()=>Wa,eoX:()=>dc,evT:()=>tg,f3M:()=>tp,g9A:()=>Wf,h0i:()=>Ka,hGG:()=>Dw,hij:()=>ya,iGM:()=>He,ifc:()=>Ie,ip1:()=>Gf,jDz:()=>bf,kL8:()=>lf,lG2:()=>Ai,lcZ:()=>sv,lnq:()=>vm,lqb:()=>cl,lri:()=>e0,n5z:()=>Wr,oAB:()=>Cr,oJD:()=>zp,oxw:()=>am,pYS:()=>ng,qLn:()=>Ic,qOj:()=>Ni,qZA:()=>qh,rWj:()=>t0,s9C:()=>um,sBO:()=>yn,sIi:()=>ga,s_b:()=>kd,soG:()=>pu,tb:()=>Qf,tp0:()=>Tu,uIk:()=>Xg,vHH:()=>ge,vpe:()=>Ei,wAp:()=>Mt,xi3:()=>lc,xp6:()=>ug,ynx:()=>zc,z2F:()=>a,zSh:()=>vh,zs3:()=>ul});var l=j(9765),M=j(3464),ce=j(882),pe=j(6682),de=j(4121);function J(d){for(let h in d)if(d[h]===J)return h;throw Error("Could not find renamed property on target object.")}function he(d,h){for(const p in h)h.hasOwnProperty(p)&&!d.hasOwnProperty(p)&&(d[p]=h[p])}function X(d){if("string"==typeof d)return d;if(Array.isArray(d))return"["+d.map(X).join(", ")+"]";if(null==d)return""+d;if(d.overriddenName)return`${d.overriddenName}`;if(d.name)return`${d.name}`;const h=d.toString();if(null==h)return""+h;const p=h.indexOf("\n");return-1===p?h:h.substring(0,p)}function ae(d,h){return null==d||""===d?null===h?"":h:null==h||""===h?d:d+" "+h}const q=J({__forward_ref__:J});function ee(d){return d.__forward_ref__=ee,d.toString=function(){return X(this())},d}function se(d){return ye(d)?d():d}function ye(d){return"function"==typeof d&&d.hasOwnProperty(q)&&d.__forward_ref__===ee}class ge extends Error{constructor(h,p){super(function be(d,h){return`NG0${Math.abs(d)}${h?": "+h.trim():""}`}(h,p)),this.code=h}}function Ce(d){return"string"==typeof d?d:null==d?"":String(d)}function $e(d,h){throw new ge(-201,!1)}function Ne(d,h){null==d&&function Be(d,h,p,m){throw new Error(`ASSERTION ERROR: ${d}`+(null==m?"":` [Expected=> ${p} ${m} ${h} <=Actual]`))}(h,d,null,"!=")}function zt(d){return{token:d.token,providedIn:d.providedIn||null,factory:d.factory,value:void 0}}function Ft(d){return{providers:d.providers||[],imports:d.imports||[]}}function fn(d){return qn(d,gn)||qn(d,di)}function cn(d){return null!==fn(d)}function qn(d,h){return d.hasOwnProperty(h)?d[h]:null}function sn(d){return d&&(d.hasOwnProperty(zr)||d.hasOwnProperty(Ti))?d[zr]:null}const gn=J({\u0275prov:J}),zr=J({\u0275inj:J}),di=J({ngInjectableDef:J}),Ti=J({ngInjectorDef:J});var ze=(()=>((ze=ze||{})[ze.Default=0]="Default",ze[ze.Host=1]="Host",ze[ze.Self=2]="Self",ze[ze.SkipSelf=4]="SkipSelf",ze[ze.Optional=8]="Optional",ze))();let lr;function wn(d){const h=lr;return lr=d,h}function Vi(d,h,p){const m=fn(d);return m&&"root"==m.providedIn?void 0===m.value?m.value=m.factory():m.value:p&ze.Optional?null:void 0!==h?h:void $e(X(d))}function En(d){return{toString:d}.toString()}var Oe=(()=>((Oe=Oe||{})[Oe.OnPush=0]="OnPush",Oe[Oe.Default=1]="Default",Oe))(),Ie=(()=>{return(d=Ie||(Ie={}))[d.Emulated=0]="Emulated",d[d.None=2]="None",d[d.ShadowDom=3]="ShadowDom",Ie;var d})();const Te=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Kt={},qe=[],un=J({\u0275cmp:J}),Xt=J({\u0275dir:J}),yr=J({\u0275pipe:J}),It=J({\u0275mod:J}),xt=J({\u0275fac:J}),Yt=J({__NG_ELEMENT_ID__:J});let nr=0;function Nn(d){return En(()=>{const p=!0===d.standalone,m={},v={type:d.type,providersResolver:null,decls:d.decls,vars:d.vars,factory:null,template:d.template||null,consts:d.consts||null,ngContentSelectors:d.ngContentSelectors,hostBindings:d.hostBindings||null,hostVars:d.hostVars||0,hostAttrs:d.hostAttrs||null,contentQueries:d.contentQueries||null,declaredInputs:m,inputs:null,outputs:null,exportAs:d.exportAs||null,onPush:d.changeDetection===Oe.OnPush,directiveDefs:null,pipeDefs:null,standalone:p,dependencies:p&&d.dependencies||null,getStandaloneInjector:null,selectors:d.selectors||qe,viewQuery:d.viewQuery||null,features:d.features||null,data:d.data||{},encapsulation:d.encapsulation||Ie.Emulated,id:"c"+nr++,styles:d.styles||qe,_:null,setInput:null,schemas:d.schemas||null,tView:null},C=d.dependencies,w=d.features;return v.inputs=Ts(d.inputs,m),v.outputs=Ts(d.outputs),w&&w.forEach(I=>I(v)),v.directiveDefs=C?()=>("function"==typeof C?C():C).map(dt).filter(Rn):null,v.pipeDefs=C?()=>("function"==typeof C?C():C).map(zn).filter(Rn):null,v})}function dt(d){return en(d)||Tn(d)}function Rn(d){return null!==d}function Cr(d){return En(()=>({type:d.type,bootstrap:d.bootstrap||qe,declarations:d.declarations||qe,imports:d.imports||qe,exports:d.exports||qe,transitiveCompileScopes:null,schemas:d.schemas||null,id:d.id||null}))}function Ts(d,h){if(null==d)return Kt;const p={};for(const m in d)if(d.hasOwnProperty(m)){let v=d[m],C=v;Array.isArray(v)&&(C=v[1],v=v[0]),p[v]=m,h&&(h[v]=C)}return p}const Ai=Nn;function Bi(d){return{type:d.type,name:d.name,factory:null,pure:!1!==d.pure,standalone:!0===d.standalone,onDestroy:d.type.prototype.ngOnDestroy||null}}function en(d){return d[un]||null}function Tn(d){return d[Xt]||null}function zn(d){return d[yr]||null}function hi(d){const h=en(d)||Tn(d)||zn(d);return null!==h&&h.standalone}function Jn(d,h){const p=d[It]||null;if(!p&&!0===h)throw new Error(`Type ${X(d)} does not have '\u0275mod' property.`);return p}function Vn(d){return Array.isArray(d)&&"object"==typeof d[1]}function dr(d){return Array.isArray(d)&&!0===d[1]}function Xr(d){return 0!=(8&d.flags)}function on(d){return 2==(2&d.flags)}function Js(d){return 1==(1&d.flags)}function Sr(d){return null!==d.template}function To(d){return 0!=(256&d[2])}function $r(d,h){return d.hasOwnProperty(xt)?d[xt]:null}class Gr{constructor(h,p,m){this.previousValue=h,this.currentValue=p,this.firstChange=m}isFirstChange(){return this.firstChange}}function gi(){return eo}function eo(d){return d.type.prototype.ngOnChanges&&(d.setInput=xi),Lr}function Lr(){const d=Fs(this),h=d?.current;if(h){const p=d.previous;if(p===Kt)d.previous=h;else for(let m in h)p[m]=h[m];d.current=null,this.ngOnChanges(h)}}function xi(d,h,p,m){const v=Fs(d)||function to(d,h){return d[Or]=h}(d,{previous:Kt,current:null}),C=v.current||(v.current={}),w=v.previous,I=this.declaredInputs[p],k=w[I];C[I]=new Gr(k&&k.currentValue,h,w===Kt),d[m]=h}gi.ngInherit=!0;const Or="__ngSimpleChanges__";function Fs(d){return d[Or]||null}function An(d){for(;Array.isArray(d);)d=d[0];return d}function zi(d,h){return An(h[d])}function Fr(d,h){return An(h[d.index])}function no(d,h){return d.data[h]}function ss(d,h){return d[h]}function mn(d,h){const p=h[d];return Vn(p)?p:p[0]}function kr(d){return 64==(64&d[2])}function vi(d,h){return null==h?null:d[h]}function Mi(d){d[18]=0}function as(d,h){d[5]+=h;let p=d,m=d[3];for(;null!==m&&(1===h&&1===p[5]||-1===h&&0===p[5]);)m[5]+=h,p=m,m=m[3]}const At={lFrame:ka(null),bindingsEnabled:!0};function Mo(){return At.bindingsEnabled}function Fe(){return At.lFrame.lView}function Ue(){return At.lFrame.tView}function Gn(d){return At.lFrame.contextLView=d,d[8]}function ro(d){return At.lFrame.contextLView=null,d}function Cn(){let d=V();for(;null!==d&&64===d.type;)d=d.parent;return d}function V(){return At.lFrame.currentTNode}function P(d,h){const p=At.lFrame;p.currentTNode=d,p.isParent=h}function G(){return At.lFrame.isParent}function we(){At.lFrame.isParent=!1}function Mn(){const d=At.lFrame;let h=d.bindingRootIndex;return-1===h&&(h=d.bindingRootIndex=d.tView.bindingStartIndex),h}function cs(){return At.lFrame.bindingIndex}function Gi(){return At.lFrame.bindingIndex++}function yi(d){const h=At.lFrame,p=h.bindingIndex;return h.bindingIndex=h.bindingIndex+d,p}function Zr(d,h){const p=At.lFrame;p.bindingIndex=p.bindingRootIndex=d,Ns(h)}function Ns(d){At.lFrame.currentDirectiveIndex=d}function Ye(d){const h=At.lFrame.currentDirectiveIndex;return-1===h?null:d[h]}function ot(){return At.lFrame.currentQueryIndex}function ds(d){At.lFrame.currentQueryIndex=d}function wl(d){const h=d[1];return 2===h.type?h.declTNode:1===h.type?d[6]:null}function ta(d,h,p){if(p&ze.SkipSelf){let v=h,C=d;for(;!(v=v.parent,null!==v||p&ze.Host||(v=wl(C),null===v||(C=C[15],10&v.type))););if(null===v)return!1;h=v,d=C}const m=At.lFrame=Fa();return m.currentTNode=h,m.lView=d,!0}function ko(d){const h=Fa(),p=d[1];At.lFrame=h,h.currentTNode=p.firstChild,h.lView=d,h.tView=p,h.contextLView=d,h.bindingIndex=p.bindingStartIndex,h.inI18n=!1}function Fa(){const d=At.lFrame,h=null===d?null:d.child;return null===h?ka(d):h}function ka(d){const h={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:d,child:null,inI18n:!1};return null!==d&&(d.child=h),h}function El(){const d=At.lFrame;return At.lFrame=d.parent,d.currentTNode=null,d.lView=null,d}const na=El;function ra(){const d=El();d.isParent=!0,d.tView=null,d.selectedIndex=-1,d.contextLView=null,d.elementDepthCount=0,d.currentDirectiveIndex=-1,d.currentNamespace=null,d.bindingRootIndex=-1,d.bindingIndex=-1,d.currentQueryIndex=0}function Dr(){return At.lFrame.selectedIndex}function ti(d){At.lFrame.selectedIndex=d}function vn(){const d=At.lFrame;return no(d.tView,d.selectedIndex)}function No(d,h){for(let p=h.directiveStart,m=h.directiveEnd;p=m)break}else h[k]<0&&(d[18]+=65536),(I>11>16&&(3&d[2])===h){d[2]+=2048;try{C.call(I)}finally{}}}else try{C.call(I)}finally{}}class Pa{constructor(h,p,m){this.factory=h,this.resolving=!1,this.canSeeViewProviders=p,this.injectImpl=m}}function y(d,h,p){let m=0;for(;mh){w=C-1;break}}}for(;C>16}(d),m=h;for(;p>0;)m=m[15],p--;return m}let We=!0;function rt(d){const h=We;return We=d,h}let nn=0;const jt={};function Bn(d,h){const p=Ls(d,h);if(-1!==p)return p;const m=h[1];m.firstCreatePass&&(d.injectorIndex=h.length,Yn(m.data,d),Yn(h,null),Yn(m.blueprint,null));const v=ni(d,h),C=d.injectorIndex;if(K(v)){const w=fe(v),I=Ve(v,h),k=I[1].data;for(let B=0;B<8;B++)h[C+B]=I[w+B]|k[w+B]}return h[C+8]=v,C}function Yn(d,h){d.push(0,0,0,0,0,0,0,0,h)}function Ls(d,h){return-1===d.injectorIndex||d.parent&&d.parent.injectorIndex===d.injectorIndex||null===h[d.injectorIndex+8]?-1:d.injectorIndex}function ni(d,h){if(d.parent&&-1!==d.parent.injectorIndex)return d.parent.injectorIndex;let p=0,m=null,v=h;for(;null!==v;){if(m=On(v),null===m)return-1;if(p++,v=v[15],-1!==m.injectorIndex)return m.injectorIndex|p<<16}return-1}function Pr(d,h,p){!function er(d,h,p){let m;"string"==typeof p?m=p.charCodeAt(0)||0:p.hasOwnProperty(Yt)&&(m=p[Yt]),null==m&&(m=p[Yt]=nn++);const v=255&m;h.data[d+(v>>5)]|=1<=0?255&h:hr:h}(p);if("function"==typeof C){if(!ta(h,d,m))return m&ze.Host?Zi(v,0,m):fs(h,p,m,v);try{const w=C(m);if(null!=w||m&ze.Optional)return w;$e()}finally{na()}}else if("number"==typeof C){let w=null,I=Ls(d,h),k=-1,B=m&ze.Host?h[16][6]:null;for((-1===I||m&ze.SkipSelf)&&(k=-1===I?ni(d,h):h[I+8],-1!==k&&St(m,!1)?(w=h[1],I=fe(k),h=Ve(k,h)):I=-1);-1!==I;){const U=h[1];if(bt(C,I,U.data)){const Z=gs(I,h,p,w,m,B);if(Z!==jt)return Z}k=h[I+8],-1!==k&&St(m,h[1].data[I+8]===B)&&bt(C,I,h)?(w=U,I=fe(k),h=Ve(k,h)):I=-1}}return v}function gs(d,h,p,m,v,C){const w=h[1],I=w.data[d+8],U=hn(I,w,p,null==m?on(I)&&We:m!=w&&0!=(3&I.type),v&ze.Host&&C===I);return null!==U?ms(h,w,U,I):jt}function hn(d,h,p,m,v){const C=d.providerIndexes,w=h.data,I=1048575&C,k=d.directiveStart,U=C>>20,ue=v?I+U:d.directiveEnd;for(let ve=m?I:I+U;ve=k&&Re.type===p)return ve}if(v){const ve=w[k];if(ve&&Sr(ve)&&ve.type===p)return k}return null}function ms(d,h,p,m){let v=d[p];const C=h.data;if(function vu(d){return d instanceof Pa}(v)){const w=v;w.resolving&&function Rt(d,h){const p=h?`. Dependency path: ${h.join(" > ")} > ${d}`:"";throw new ge(-200,`Circular dependency in DI detected for ${d}${p}`)}(function je(d){return"function"==typeof d?d.name||d.toString():"object"==typeof d&&null!=d&&"function"==typeof d.type?d.type.name||d.type.toString():Ce(d)}(C[p]));const I=rt(w.canSeeViewProviders);w.resolving=!0;const k=w.injectImpl?wn(w.injectImpl):null;ta(d,m,ze.Default);try{v=d[p]=w.factory(void 0,C,d,m),h.firstCreatePass&&p>=m.directiveStart&&function ia(d,h,p){const{ngOnChanges:m,ngOnInit:v,ngDoCheck:C}=h.type.prototype;if(m){const w=eo(h);(p.preOrderHooks||(p.preOrderHooks=[])).push(d,w),(p.preOrderCheckHooks||(p.preOrderCheckHooks=[])).push(d,w)}v&&(p.preOrderHooks||(p.preOrderHooks=[])).push(0-d,v),C&&((p.preOrderHooks||(p.preOrderHooks=[])).push(d,C),(p.preOrderCheckHooks||(p.preOrderCheckHooks=[])).push(d,C))}(p,C[p],h)}finally{null!==k&&wn(k),rt(I),w.resolving=!1,na()}}return v}function bt(d,h,p){return!!(p[h+(d>>5)]&1<{const h=d.prototype.constructor,p=h[xt]||wr(h),m=Object.prototype;let v=Object.getPrototypeOf(d.prototype).constructor;for(;v&&v!==m;){const C=v[xt]||wr(v);if(C&&C!==p)return C;v=Object.getPrototypeOf(v)}return C=>new C})}function wr(d){return ye(d)?()=>{const h=wr(se(d));return h&&h()}:$r(d)}function On(d){const h=d[1],p=h.type;return 2===p?h.declTNode:1===p?d[6]:null}function tr(d){return function Vs(d,h){if("class"===h)return d.classes;if("style"===h)return d.styles;const p=d.attrs;if(p){const m=p.length;let v=0;for(;v{const m=function vs(d){return function(...p){if(d){const m=d(...p);for(const v in m)this[v]=m[v]}}}(h);function v(...C){if(this instanceof v)return m.apply(this,C),this;const w=new v(...C);return I.annotation=w,I;function I(k,B,U){const Z=k.hasOwnProperty(Hn)?k[Hn]:Object.defineProperty(k,Hn,{value:[]})[Hn];for(;Z.length<=U;)Z.push(null);return(Z[U]=Z[U]||[]).push(w),k}}return p&&(v.prototype=Object.create(p.prototype)),v.prototype.ngMetadataName=d,v.annotationCls=v,v})}class kn{constructor(h,p){this._desc=h,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof p?this.__NG_ELEMENT_ID__=p:void 0!==p&&(this.\u0275prov=zt({token:this,providedIn:p.providedIn||"root",factory:p.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const Ra=Function;function ri(d,h){void 0===h&&(h=d);for(let p=0;pArray.isArray(p)?Hs(p,h):h(p))}function _c(d,h,p){h>=d.length?d.push(p):d.splice(h,0,p)}function ys(d,h){return h>=d.length-1?d.pop():d.splice(h,1)[0]}function sl(d,h){const p=[];for(let m=0;m=0?d[1|m]=p:(m=~m,function Su(d,h,p,m){let v=d.length;if(v==h)d.push(p,m);else if(1===v)d.push(m,d[0]),d[0]=p;else{for(v--,d.push(d[v-1],d[v]);v>h;)d[v]=d[v-2],v--;d[h]=p,d[h+1]=m}}(d,m,h,p)),m}function Cc(d,h){const p=Cs(d,h);if(p>=0)return d[1|p]}function Cs(d,h){return function bc(d,h,p){let m=0,v=d.length>>p;for(;v!==m;){const C=m+(v-m>>1),w=d[C<h?v=C:m=C+1}return~(v<((la=la||{})[la.Important=1]="Important",la[la.DashCase=2]="DashCase",la))();const Xd=new Map;let eh=0;const fp="__ngContext__";function Pi(d,h){Vn(h)?(d[fp]=h[20],function d_(d){Xd.set(d[20],d)}(h)):d[fp]=h}function th(d,h){return undefined(d,h)}function ho(d){const h=d[3];return dr(h)?h[3]:h}function Dt(d){return yp(d[13])}function nh(d){return yp(d[4])}function yp(d){for(;null!==d&&!dr(d);)d=d[4];return d}function kl(d,h,p,m,v){if(null!=m){let C,w=!1;dr(m)?C=m:Vn(m)&&(w=!0,m=m[0]);const I=An(m);0===d&&null!==p?null==v?Tp(h,p,I):ol(h,p,I,v||null,!0):1===d&&null!==p?ol(h,p,I,v||null,!0):2===d?function Fp(d,h,p){const m=Fu(d,h);m&&function I_(d,h,p,m){d.removeChild(h,p,m)}(d,m,h,p)}(h,I,w):3===d&&h.destroyNode(I),null!=C&&function k_(d,h,p,m,v){const C=p[7];C!==An(p)&&kl(h,d,m,C,v);for(let I=10;I0&&(d[p-1][4]=m[4]);const C=ys(d,10+h);!function C_(d,h){ku(d,h,h[11],2,null,null),h[0]=null,h[6]=null}(m[1],m);const w=C[19];null!==w&&w.detachView(C[1]),m[3]=null,m[4]=null,m[2]&=-65}return m}function Dp(d,h){if(!(128&h[2])){const p=h[11];p.destroyNode&&ku(d,h,p,3,null,null),function D_(d){let h=d[13];if(!h)return sh(d[1],d);for(;h;){let p=null;if(Vn(h))p=h[13];else{const m=h[10];m&&(p=m)}if(!p){for(;h&&!h[4]&&h!==d;)Vn(h)&&sh(h[1],h),h=h[3];null===h&&(h=d),Vn(h)&&sh(h[1],h),p=h&&h[4]}h=p}}(h)}}function sh(d,h){if(!(128&h[2])){h[2]&=-65,h[2]|=128,function A_(d,h){let p;if(null!=d&&null!=(p=d.destroyHooks))for(let m=0;m=0?m[v=B]():m[v=-B].unsubscribe(),C+=2}else{const w=m[v=p[C+1]];p[C].call(w)}if(null!==m){for(let C=v+1;Cd,createScript:d=>d,createScriptURL:d=>d})}catch{}return Pu}()?.createHTML(d)||d}function G0(d){Rp=d}function B_(d){return function Lp(){if(void 0===dh&&(dh=null,Te.trustedTypes))try{dh=Te.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:d=>d,createScript:d=>d,createScriptURL:d=>d})}catch{}return dh}()?.createHTML(d)||d}class z_{constructor(h){this.changingThisBreaksApplicationSecurity=h}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}function Va(d){return d instanceof z_?d.changingThisBreaksApplicationSecurity:d}function Ec(d,h){const p=function U_(d){return d instanceof z_&&d.getTypeName()||null}(d);if(null!=p&&p!==h){if("ResourceURL"===p&&"URL"===h)return!0;throw new Error(`Required a safe ${h}, got a ${p} (see https://g.co/ng/security#xss)`)}return p===h}class $_{constructor(h){this.inertDocumentHelper=h}getInertBodyElement(h){h=""+h;try{const p=(new window.DOMParser).parseFromString(al(h),"text/html").body;return null===p?this.inertDocumentHelper.getInertBodyElement(h):(p.removeChild(p.firstChild),p)}catch{return null}}}class G_{constructor(h){if(this.defaultDoc=h,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const p=this.inertDocument.createElement("html");this.inertDocument.appendChild(p);const m=this.inertDocument.createElement("body");p.appendChild(m)}}getInertBodyElement(h){const p=this.inertDocument.createElement("template");if("content"in p)return p.innerHTML=al(h),p;const m=this.inertDocument.createElement("body");return m.innerHTML=al(h),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(m),m}stripCustomNsAttrs(h){const p=h.attributes;for(let v=p.length-1;0"),!0}endElement(h){const p=h.nodeName.toLowerCase();hh.hasOwnProperty(p)&&!W_.hasOwnProperty(p)&&(this.buf.push(""))}chars(h){this.buf.push(jp(h))}checkClobberedElement(h,p){if(p&&(h.compareDocumentPosition(p)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${h.outerHTML}`);return p}}const X_=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ey=/([^\#-~ |!])/g;function jp(d){return d.replace(/&/g,"&").replace(X_,function(h){return"&#"+(1024*(h.charCodeAt(0)-55296)+(h.charCodeAt(1)-56320)+65536)+";"}).replace(ey,function(h){return"&#"+h.charCodeAt(0)+";"}).replace(//g,">")}let Ru;function ph(d){return"content"in d&&function ny(d){return d.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===d.nodeName}(d)?d.content:null}var Nr=(()=>((Nr=Nr||{})[Nr.NONE=0]="NONE",Nr[Nr.HTML=1]="HTML",Nr[Nr.STYLE=2]="STYLE",Nr[Nr.SCRIPT=3]="SCRIPT",Nr[Nr.URL=4]="URL",Nr[Nr.RESOURCE_URL=5]="RESOURCE_URL",Nr))();function zp(d){const h=Lu();return h?B_(h.sanitize(Nr.HTML,d)||""):Ec(d,"HTML")?B_(Va(d)):function ty(d,h){let p=null;try{Ru=Ru||function Vp(d){const h=new G_(d);return function Y_(){try{return!!(new window.DOMParser).parseFromString(al(""),"text/html")}catch{return!1}}()?new $_(h):h}(d);let m=h?String(h):"";p=Ru.getInertBodyElement(m);let v=5,C=m;do{if(0===v)throw new Error("Failed to sanitize html because the input is unstable");v--,m=C,C=p.innerHTML,p=Ru.getInertBodyElement(m)}while(m!==C);return al((new K_).sanitizeChildren(ph(p)||p))}finally{if(p){const m=ph(p)||p;for(;m.firstChild;)m.removeChild(m.firstChild)}}}(function V_(){return void 0!==Rp?Rp:typeof document<"u"?document:void 0}(),Ce(d))}function gh(d){const h=Lu();return h?h.sanitize(Nr.URL,d)||"":Ec(d,"URL")?Va(d):Bp(Ce(d))}function Lu(){const d=Fe();return d&&d[12]}const mh=new kn("ENVIRONMENT_INITIALIZER"),Up=new kn("INJECTOR",-1),$p=new kn("INJECTOR_DEF_TYPES");class sy{get(h,p=Ae){if(p===Ae){const m=new Error(`NullInjectorError: No provider for ${X(h)}!`);throw m.name="NullInjectorError",m}return p}}function lS(...d){return{\u0275providers:oy(0,d)}}function oy(d,...h){const p=[],m=new Set;let v;return Hs(h,C=>{const w=C;Gp(w,p,[],m)&&(v||(v=[]),v.push(w))}),void 0!==v&&ay(v,p),p}function ay(d,h){for(let p=0;p{h.push(C)})}}function Gp(d,h,p,m){if(!(d=se(d)))return!1;let v=null,C=sn(d);const w=!C&&en(d);if(C||w){if(w&&!w.standalone)return!1;v=d}else{const k=d.ngModule;if(C=sn(k),!C)return!1;v=k}const I=m.has(v);if(w){if(I)return!1;if(m.add(v),w.dependencies){const k="function"==typeof w.dependencies?w.dependencies():w.dependencies;for(const B of k)Gp(B,h,p,m)}}else{if(!C)return!1;{if(null!=C.imports&&!I){let B;m.add(v);try{Hs(C.imports,U=>{Gp(U,h,p,m)&&(B||(B=[]),B.push(U))})}finally{}void 0!==B&&ay(B,h)}if(!I){const B=$r(v)||(()=>new v);h.push({provide:v,useFactory:B,deps:qe},{provide:$p,useValue:v,multi:!0},{provide:mh,useValue:()=>Zn(v),multi:!0})}const k=C.providers;null==k||I||Hs(k,U=>{h.push(U)})}}return v!==d&&void 0!==d.providers}const cS=J({provide:String,useValue:J});function Yp(d){return null!==d&&"object"==typeof d&&cS in d}function ll(d){return"function"==typeof d}const vh=new kn("Set Injector scope."),Vu={},cy={};let _h;function Bu(){return void 0===_h&&(_h=new sy),_h}class cl{}class Qp extends cl{constructor(h,p,m,v){super(),this.parent=p,this.source=m,this.scopes=v,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Jp(h,w=>this.processProvider(w)),this.records.set(Up,Pl(void 0,this)),v.has("environment")&&this.records.set(cl,Pl(void 0,this));const C=this.records.get(vh);null!=C&&"string"==typeof C.value&&this.scopes.add(C.value),this.injectorDefTypes=new Set(this.get($p.multi,qe,ze.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const h of this._ngOnDestroyHooks)h.ngOnDestroy();for(const h of this._onDestroyHooks)h()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(h){this._onDestroyHooks.push(h)}runInContext(h){this.assertNotDestroyed();const p=oi(this),m=wn(void 0);try{return h()}finally{oi(p),wn(m)}}get(h,p=Ae,m=ze.Default){this.assertNotDestroyed();const v=oi(this),C=wn(void 0);try{if(!(m&ze.SkipSelf)){let I=this.records.get(h);if(void 0===I){const k=function dS(d){return"function"==typeof d||"object"==typeof d&&d instanceof kn}(h)&&fn(h);I=k&&this.injectableDefInScope(k)?Pl(yh(h),Vu):null,this.records.set(h,I)}if(null!=I)return this.hydrate(h,I)}return(m&ze.Self?Bu():this.parent).get(h,p=m&ze.Optional&&p===Ae?null:p)}catch(w){if("NullInjectorError"===w.name){if((w[Ut]=w[Ut]||[]).unshift(X(h)),v)throw w;return function t_(d,h,p,m){const v=d[Ut];throw h[Qi]&&v.unshift(h[Qi]),d.message=function E0(d,h,p,m=null){d=d&&"\n"===d.charAt(0)&&"\u0275"==d.charAt(1)?d.slice(2):d;let v=X(h);if(Array.isArray(h))v=h.map(X).join(" -> ");else if("object"==typeof h){let C=[];for(let w in h)if(h.hasOwnProperty(w)){let I=h[w];C.push(w+":"+("string"==typeof I?JSON.stringify(I):X(I)))}v=`{${C.join(", ")}}`}return`${p}${m?"("+m+")":""}[${v}]: ${d.replace(bn,"\n ")}`}("\n"+d.message,v,p,m),d.ngTokenPath=v,d[Ut]=null,d}(w,h,"R3InjectorError",this.source)}throw w}finally{wn(C),oi(v)}}resolveInjectorInitializers(){const h=oi(this),p=wn(void 0);try{const m=this.get(mh.multi,qe,ze.Self);for(const v of m)v()}finally{oi(h),wn(p)}}toString(){const h=[],p=this.records;for(const m of p.keys())h.push(X(m));return`R3Injector[${h.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ge(205,!1)}processProvider(h){let p=ll(h=se(h))?h:se(h&&h.provide);const m=function dy(d){return Yp(d)?Pl(void 0,d.useValue):Pl(qp(d),Vu)}(h);if(ll(h)||!0!==h.multi)this.records.get(p);else{let v=this.records.get(p);v||(v=Pl(void 0,Vu,!0),v.factory=()=>Du(v.multi),this.records.set(p,v)),p=h,v.multi.push(h)}this.records.set(p,m)}hydrate(h,p){return p.value===Vu&&(p.value=cy,p.value=p.factory()),"object"==typeof p.value&&p.value&&function uS(d){return null!==d&&"object"==typeof d&&"function"==typeof d.ngOnDestroy}(p.value)&&this._ngOnDestroyHooks.add(p.value),p.value}injectableDefInScope(h){if(!h.providedIn)return!1;const p=se(h.providedIn);return"string"==typeof p?"any"===p||this.scopes.has(p):this.injectorDefTypes.has(p)}}function yh(d){const h=fn(d),p=null!==h?h.factory:$r(d);if(null!==p)return p;if(d instanceof kn)throw new ge(204,!1);if(d instanceof Function)return function uy(d){const h=d.length;if(h>0)throw sl(h,"?"),new ge(204,!1);const p=function Ir(d){const h=d&&(d[gn]||d[di]);if(h){const p=function jn(d){if(d.hasOwnProperty("name"))return d.name;const h=(""+d).match(/^function\s*([^\s(]+)/);return null===h?"":h[1]}(d);return console.warn(`DEPRECATED: DI is instantiating a token "${p}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${p}" class.`),h}return null}(d);return null!==p?()=>p.factory(d):()=>new d}(d);throw new ge(204,!1)}function qp(d,h,p){let m;if(ll(d)){const v=se(d);return $r(v)||yh(v)}if(Yp(d))m=()=>se(d.useValue);else if(function Wp(d){return!(!d||!d.useFactory)}(d))m=()=>d.useFactory(...Du(d.deps||[]));else if(function Zp(d){return!(!d||!d.useExisting)}(d))m=()=>Zn(se(d.useExisting));else{const v=se(d&&(d.useClass||d.provide));if(!function hy(d){return!!d.deps}(d))return $r(v)||yh(v);m=()=>new v(...Du(d.deps))}return m}function Pl(d,h,p=!1){return{factory:d,value:h,multi:p?[]:void 0}}function hS(d){return!!d.\u0275providers}function Jp(d,h){for(const p of d)Array.isArray(p)?Jp(p,h):hS(p)?Jp(p.\u0275providers,h):h(p)}class fy{}class gy{resolveComponentFactory(h){throw function pS(d){const h=Error(`No component factory found for ${X(d)}. Did you add it to @NgModule.entryComponents?`);return h.ngComponent=d,h}(h)}}let Tc=(()=>{class d{}return d.NULL=new gy,d})();function my(){return Nl(Cn(),Fe())}function Nl(d,h){return new Ac(Fr(d,h))}let Ac=(()=>{class d{constructor(p){this.nativeElement=p}}return d.__NG_ELEMENT_ID__=my,d})();function vy(d){return d instanceof Ac?d.nativeElement:d}class Kp{}let _y=(()=>{class d{}return d.__NG_ELEMENT_ID__=()=>function yy(){const d=Fe(),p=mn(Cn().index,d);return(Vn(p)?p:d)[11]}(),d})(),Cy=(()=>{class d{}return d.\u0275prov=zt({token:d,providedIn:"root",factory:()=>null}),d})();class Xp{constructor(h){this.full=h,this.major=h.split(".")[0],this.minor=h.split(".")[1],this.patch=h.split(".").slice(2).join(".")}}const by=new Xp("14.3.0"),Ch={};function Sh(d){return d.ngOriginalError}class Ic{constructor(){this._console=console}handleError(h){const p=this._findOriginalError(h);this._console.error("ERROR",h),p&&this._console.error("ORIGINAL ERROR",p)}_findOriginalError(h){let p=h&&Sh(h);for(;p&&Sh(p);)p=Sh(p);return p||null}}function eg(d){return d.ownerDocument.defaultView}function tg(d){return d.ownerDocument}function ng(d){return d.ownerDocument.body}function ua(d){return d instanceof Function?d():d}function ig(d,h,p){let m=d.length;for(;;){const v=d.indexOf(h,p);if(-1===v)return v;if(0===v||d.charCodeAt(v-1)<=32){const C=h.length;if(v+C===m||d.charCodeAt(v+C)<=32)return v}p=v+1}}const sg="ng-template";function xy(d,h,p){let m=0;for(;mC?"":v[Z+1].toLowerCase();const ve=8&m?ue:null;if(ve&&-1!==ig(ve,B,0)||2&m&&B!==ue){if(fo(m))return!1;w=!0}}}}else{if(!w&&!fo(m)&&!fo(k))return!1;if(w&&fo(k))continue;w=!1,m=k|1&m}}return fo(m)||w}function fo(d){return 0==(1&d)}function Oy(d,h,p,m){if(null===h)return-1;let v=0;if(m||!p){let C=!1;for(;v-1)for(p++;p0?'="'+I+'"':"")+"]"}else 8&m?v+="."+w:4&m&&(v+=" "+w);else""!==v&&!fo(w)&&(h+=cg(C,v),v=""),m=w,C=C||!fo(m);p++}return""!==v&&(h+=cg(C,v)),h}const Zt={};function ug(d){dg(Ue(),Fe(),Dr()+d,!1)}function dg(d,h,p,m){if(!m)if(3==(3&h[2])){const C=d.preOrderCheckHooks;null!==C&&io(h,C,p)}else{const C=d.preOrderHooks;null!==C&&hs(h,C,0,p)}ti(p)}function gg(d,h=null,p=null,m){const v=mg(d,h,p,m);return v.resolveInjectorInitializers(),v}function mg(d,h=null,p=null,m,v=new Set){const C=[p||qe,lS(d)];return m=m||("object"==typeof d?void 0:X(d)),new Qp(C,h||Bu(),m||null,v)}let ul=(()=>{class d{static create(p,m){if(Array.isArray(p))return gg({name:""},m,p,"");{const v=p.name??"";return gg({name:v},p.parent,p.providers,v)}}}return d.THROW_IF_NOT_FOUND=Ae,d.NULL=new sy,d.\u0275prov=zt({token:d,providedIn:"any",factory:()=>Zn(Up)}),d.__NG_ELEMENT_ID__=-1,d})();function Vl(d,h=ze.Default){const p=Fe();return null===p?Zn(d,h):Ro(Cn(),p,se(d),h)}function Dg(){throw new Error("invalid")}function ju(d,h){return d<<17|h<<2}function po(d){return d>>17&32767}function Ah(d){return 2|d}function da(d){return(131068&d)>>2}function Ih(d,h){return-131069&d|h<<2}function xh(d){return 1|d}function Pg(d,h){const p=d.contentQueries;if(null!==p)for(let m=0;m22&&dg(d,h,22,!1),p(m,v)}finally{ti(C)}}function Rg(d,h,p){if(Xr(h)){const v=h.directiveEnd;for(let C=h.directiveStart;C0;){const p=d[--h];if("number"==typeof p&&p<0)return p}return 0})(I)!=k&&I.push(k),I.push(m,v,w)}}function js(d,h){null!==d.hostBindings&&d.hostBindings(1,h)}function Ug(d,h){h.flags|=2,(d.components||(d.components=[])).push(h.index)}function Uh(d,h,p){if(p){if(h.exportAs)for(let m=0;m0&&Wu(p)}}function Wu(d){for(let m=Dt(d);null!==m;m=nh(m))for(let v=10;v0&&Wu(C)}const p=d[1].components;if(null!==p)for(let m=0;m0&&Wu(v)}}function GS(d,h){const p=mn(h,d),m=p[1];(function YS(d,h){for(let p=h.length;p-1&&(ih(h,m),ys(p,m))}this._attachedToViewContainer=!1}Dp(this._lView[1],this._lView)}onDestroy(h){Vg(this._lView[1],this._lView,null,h)}markForCheck(){Qu(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){qu(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ge(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function S_(d,h){ku(d,h,h[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(h){if(this._attachedToViewContainer)throw new ge(902,!1);this._appRef=h}}class mo extends bs{constructor(h){super(h),this._view=h}detectChanges(){const h=this._view;qu(h[1],h,h[8],!1)}checkNoChanges(){}get context(){return null}}class Fc extends Tc{constructor(h){super(),this.ngModule=h}resolveComponentFactory(h){const p=en(h);return new fa(p,this.ngModule)}}function Qg(d){const h=[];for(let p in d)d.hasOwnProperty(p)&&h.push({propName:d[p],templateName:p});return h}class ha{constructor(h,p){this.injector=h,this.parentInjector=p}get(h,p,m){const v=this.injector.get(h,Ch,m);return v!==Ch||p===Ch?v:this.parentInjector.get(h,p,m)}}class fa extends fy{constructor(h,p){super(),this.componentDef=h,this.ngModule=p,this.componentType=h.type,this.selector=function Ly(d){return d.map(Ry).join(",")}(h.selectors),this.ngContentSelectors=h.ngContentSelectors?h.ngContentSelectors:[],this.isBoundToModule=!!p}get inputs(){return Qg(this.componentDef.inputs)}get outputs(){return Qg(this.componentDef.outputs)}create(h,p,m,v){let C=(v=v||this.ngModule)instanceof cl?v:v?.injector;C&&null!==this.componentDef.getStandaloneInjector&&(C=this.componentDef.getStandaloneInjector(C)||C);const w=C?new ha(h,C):h,I=w.get(Kp,null);if(null===I)throw new ge(407,!1);const k=w.get(Cy,null),B=I.createRenderer(null,this.componentDef),U=this.componentDef.selectors[0][0]||"div",Z=m?function vC(d,h,p){return d.selectRootElement(h,p===Ie.ShadowDom)}(B,m,this.componentDef.encapsulation):Ou(B,U,function Sn(d){const h=d.toLowerCase();return"svg"===h?"svg":"math"===h?"math":null}(U)),ue=this.componentDef.onPush?288:272,ve=jh(0,null,null,1,0,null,null,null,null,null),Re=$u(null,ve,null,ue,null,null,I,B,k,w,null);let Qe,Ke;ko(Re);try{const gt=function $a(d,h,p,m,v,C){const w=p[1];p[22]=d;const k=Bl(w,22,2,"#host",null),B=k.mergedAttrs=h.hostAttrs;null!==B&&(Xu(k,B,!0),null!==d&&(y(v,d,B),null!==k.classes&&ch(v,d,k.classes),null!==k.styles&&Np(v,d,k.styles)));const U=m.createRenderer(d,h),Z=$u(p,Lg(h),null,h.onPush?32:16,p[22],k,m,U,C||null,null,null);return w.firstCreatePass&&(Pr(Bn(k,p),w,h.type),Ug(w,k),an(k,p.length,1)),Mc(p,Z),p[22]=Z}(Z,this.componentDef,Re,I,B);if(Z)if(m)y(B,Z,["ng-version",by.full]);else{const{attrs:Ot,classes:Ge}=function Vy(d){const h=[],p=[];let m=1,v=2;for(;m0&&ch(B,Z,Ge.join(" "))}if(Ke=no(ve,22),void 0!==p){const Ot=Ke.projection=[];for(let Ge=0;Ge=0;m--){const v=d[m];v.hostVars=h+=v.hostVars,v.hostAttrs=H(v.hostAttrs,p=H(p,v.hostAttrs))}}(m)}function ed(d){return d===Kt?{}:d===qe?[]:d}function wC(d,h){const p=d.viewQuery;d.viewQuery=p?(m,v)=>{h(m,v),p(m,v)}:h}function $l(d,h){const p=d.contentQueries;d.contentQueries=p?(m,v,C)=>{h(m,v,C),p(m,v,C)}:h}function kc(d,h){const p=d.hostBindings;d.hostBindings=p?(m,v)=>{h(m,v),p(m,v)}:h}let Rc=null;function Ga(){if(!Rc){const d=Te.Symbol;if(d&&d.iterator)Rc=d.iterator;else{const h=Object.getOwnPropertyNames(Map.prototype);for(let p=0;pI(An(Pn[m.index])):m.index;let Bt=null;if(!I&&k&&(Bt=function QS(d,h,p,m){const v=d.cleanup;if(null!=v)for(let C=0;Ck?I[k]:null}"string"==typeof w&&(C+=2)}return null}(d,h,v,m.index)),null!==Bt)(Bt.__ngLastListenerFn__||Bt).__ngNextListenerFn__=C,Bt.__ngLastListenerFn__=C,ve=!1;else{C=OC(m,h,Z,C,!1);const Pn=p.listen(gt,v,C);ue.push(C,Pn),U&&U.push(v,Ge,Ot,Ot+1)}}else C=OC(m,h,Z,C,!1);const Re=m.outputs;let Qe;if(ve&&null!==Re&&(Qe=Re[v])){const Ke=Qe.length;if(Ke)for(let gt=0;gt0;)h=h[15],d--;return h}(d,At.lFrame.contextLView))[8]}(d)}function lm(d,h){let p=null;const m=function Fy(d){const h=d.attrs;if(null!=h){const p=h.indexOf(5);if(0==(1&p))return h[p+1]}return null}(d);for(let v=0;v=0}const Hr={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function ef(d){return d.substring(Hr.key,Hr.keyEnd)}function Ys(d,h){const p=Hr.textEnd;return p===h?-1:(h=Hr.keyEnd=function RC(d,h,p){for(;h32;)h++;return h}(d,Hr.key=h,p),ql(d,h,p))}function ql(d,h,p){for(;h=0;p=Ys(h,p))ii(d,ef(h),!0)}function $o(d,h,p,m){const v=Fe(),C=Ue(),w=yi(2);C.firstUpdatePass&&id(C,d,w,m),h!==Zt&&Ri(v,w,h)&&Kl(C,C.data[Dr()],v,v[11],d,v[w+1]=function Xl(d,h){return null==d||("string"==typeof h?d+=h:"object"==typeof d&&(d=X(Va(d)))),d}(h,p),m,w)}function jr(d,h){return h>=d.expandoStartIndex}function id(d,h,p,m){const v=d.data;if(null===v[p+1]){const C=v[Dr()],w=jr(d,p);UC(C,m)&&null===h&&!w&&(h=!1),h=function jC(d,h,p,m){const v=Ye(d);let C=m?h.residualClasses:h.residualStyles;if(null===v)0===(m?h.classBindings:h.styleBindings)&&(p=Wc(p=nf(null,d,h,p,m),h.attrs,m),C=null);else{const w=h.directiveStylingLast;if(-1===w||d[w]!==v)if(p=nf(v,d,h,p,m),null===C){let k=function zC(d,h,p){const m=p?h.classBindings:h.styleBindings;if(0!==da(m))return d[po(m)]}(d,h,m);void 0!==k&&Array.isArray(k)&&(k=nf(null,d,h,k[1],m),k=Wc(k,h.attrs,m),function sd(d,h,p,m){d[po(p?h.classBindings:h.styleBindings)]=m}(d,h,m,k))}else C=function od(d,h,p){let m;const v=h.directiveEnd;for(let C=1+h.directiveStylingLast;C0)&&(B=!0)}else U=p;if(v)if(0!==k){const ue=po(d[I+1]);d[m+1]=ju(ue,I),0!==ue&&(d[ue+1]=Ih(d[ue+1],m)),d[I+1]=function rC(d,h){return 131071&d|h<<17}(d[I+1],m)}else d[m+1]=ju(I,0),0!==I&&(d[I+1]=Ih(d[I+1],m)),I=m;else d[m+1]=ju(k,0),0===I?I=m:d[k+1]=Ih(d[k+1],m),k=m;B&&(d[m+1]=Ah(d[m+1])),fl(d,U,m,!0),fl(d,U,m,!1),function Ql(d,h,p,m,v){const C=v?d.residualClasses:d.residualStyles;null!=C&&"string"==typeof h&&Cs(C,h)>=0&&(p[m+1]=xh(p[m+1]))}(h,U,d,m,C),w=ju(I,k),C?h.classBindings=w:h.styleBindings=w}(v,C,h,p,w,m)}}function nf(d,h,p,m,v){let C=null;const w=p.directiveEnd;let I=p.directiveStylingLast;for(-1===I?I=p.directiveStart:I++;I0;){const k=d[v],B=Array.isArray(k),U=B?k[1]:k,Z=null===U;let ue=p[v+1];ue===Zt&&(ue=Z?qe:void 0);let ve=Z?Cc(ue,m):U===m?ue:void 0;if(B&&!Qc(ve)&&(ve=Cc(k,m)),Qc(ve)&&(I=ve,w))return I;const Re=d[v+1];v=w?po(Re):da(Re)}if(null!==h){let k=C?h.residualClasses:h.residualStyles;null!=k&&(I=Cc(k,m))}return I}function Qc(d){return void 0!==d}function UC(d,h){return 0!=(d.flags&(h?16:32))}function $C(d,h=""){const p=Fe(),m=Ue(),v=d+22,C=m.firstCreatePass?Bl(m,v,1,h,null):m.data[v],w=p[v]=function rh(d,h){return d.createText(h)}(p[11],h);ah(m,p,w,C),P(C,!1)}function qc(d){return ya("",d,""),qc}function ya(d,h,p){const m=Fe(),v=Vc(m,d,h,p);return v!==Zt&&Ua(m,Dr(),v),ya}function mm(d,h,p,m,v){const C=Fe(),w=function Bc(d,h,p,m,v,C){const I=Br(d,cs(),p,v);return yi(2),I?h+Ce(p)+m+Ce(v)+C:Zt}(C,d,h,p,m,v);return w!==Zt&&Ua(C,Dr(),w),mm}function vm(d,h,p,m,v,C,w){const I=Fe(),k=Ya(I,d,h,p,m,v,C,w);return k!==Zt&&Ua(I,Dr(),k),vm}function Kc(d,h,p){const m=Fe();return Ri(m,Gi(),h)&&Jt(Ue(),vn(),m,d,h,m[11],p,!0),Kc}function Xc(d,h,p){const m=Fe();if(Ri(m,Gi(),h)){const C=Ue(),w=vn();Jt(C,w,m,d,h,Zg(Ye(C.data),w,m),p,!0)}return Xc}const Ca=void 0;var af=["en",[["a","p"],["AM","PM"],Ca],[["AM","PM"],Ca,Ca],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Ca,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Ca,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Ca,"{1} 'at' {0}",Ca],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function ad(d){const p=Math.floor(Math.abs(d)),m=d.toString().replace(/^[^.]*\.?/,"").length;return 1===p&&0===m?1:5}];let ec={};function ld(d){const h=function qC(d){return d.toLowerCase().replace(/_/g,"-")}(d);let p=Om(h);if(p)return p;const m=h.split("-")[0];if(p=Om(m),p)return p;if("en"===m)return af;throw new ge(701,!1)}function lf(d){return ld(d)[Mt.PluralCase]}function Om(d){return d in ec||(ec[d]=Te.ng&&Te.ng.common&&Te.ng.common.locales&&Te.ng.common.locales[d]),ec[d]}var Mt=(()=>((Mt=Mt||{})[Mt.LocaleId=0]="LocaleId",Mt[Mt.DayPeriodsFormat=1]="DayPeriodsFormat",Mt[Mt.DayPeriodsStandalone=2]="DayPeriodsStandalone",Mt[Mt.DaysFormat=3]="DaysFormat",Mt[Mt.DaysStandalone=4]="DaysStandalone",Mt[Mt.MonthsFormat=5]="MonthsFormat",Mt[Mt.MonthsStandalone=6]="MonthsStandalone",Mt[Mt.Eras=7]="Eras",Mt[Mt.FirstDayOfWeek=8]="FirstDayOfWeek",Mt[Mt.WeekendRange=9]="WeekendRange",Mt[Mt.DateFormat=10]="DateFormat",Mt[Mt.TimeFormat=11]="TimeFormat",Mt[Mt.DateTimeFormat=12]="DateTimeFormat",Mt[Mt.NumberSymbols=13]="NumberSymbols",Mt[Mt.NumberFormats=14]="NumberFormats",Mt[Mt.CurrencyCode=15]="CurrencyCode",Mt[Mt.CurrencySymbol=16]="CurrencySymbol",Mt[Mt.CurrencyName=17]="CurrencyName",Mt[Mt.Currencies=18]="Currencies",Mt[Mt.Directionality=19]="Directionality",Mt[Mt.PluralCase=20]="PluralCase",Mt[Mt.ExtraData=21]="ExtraData",Mt))();const Go="en-US";let cf=Go;function lu(d,h,p,m,v){if(d=se(d),Array.isArray(d))for(let C=0;C>20;if(ll(d)||!d.multi){const ve=new Pa(k,v,Vl),Re=vl(I,h,v?U:U+ue,Z);-1===Re?(Pr(Bn(B,w),C,I),oc(C,d,h.length),h.push(I),B.directiveStart++,B.directiveEnd++,v&&(B.providerIndexes+=1048576),p.push(ve),w.push(ve)):(p[Re]=ve,w[Re]=ve)}else{const ve=vl(I,h,U+ue,Z),Re=vl(I,h,U,U+ue),Qe=ve>=0&&p[ve],Ke=Re>=0&&p[Re];if(v&&!Ke||!v&&!Qe){Pr(Bn(B,w),C,I);const gt=function fb(d,h,p,m,v){const C=new Pa(d,p,Vl);return C.multi=[],C.index=h,C.componentProviders=0,Cf(C,v,m&&!p),C}(v?_n:Ja,p.length,v,m,k);!v&&Ke&&(p[Re].providerFactory=gt),oc(C,d,h.length,0),h.push(I),B.directiveStart++,B.directiveEnd++,v&&(B.providerIndexes+=1048576),p.push(gt),w.push(gt)}else oc(C,d,ve>-1?ve:Re,Cf(p[v?Re:ve],k,!v&&m));!v&&m&&Ke&&p[Re].componentProviders++}}}function oc(d,h,p,m){const v=ll(h),C=function ly(d){return!!d.useClass}(h);if(v||C){const k=(C?se(h.useClass):h).prototype.ngOnDestroy;if(k){const B=d.destroyHooks||(d.destroyHooks=[]);if(!v&&h.multi){const U=B.indexOf(p);-1===U?B.push(p,[m,k]):B[U+1].push(m,k)}else B.push(p,k)}}}function Cf(d,h,p){return p&&d.componentProviders++,d.multi.push(h)-1}function vl(d,h,p,m){for(let v=p;v{p.providersResolver=(m,v)=>function yf(d,h,p){const m=Ue();if(m.firstCreatePass){const v=Sr(d);lu(p,m.data,m.blueprint,v,!0),lu(h,m.data,m.blueprint,v,!1)}}(m,v?v(d):d,h)}}class Ka{}class Dd{}function wd(d,h){return new ui(d,h??null)}class ui extends Ka{constructor(h,p){super(),this._parent=p,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Fc(this);const m=Jn(h);this._bootstrapComponents=ua(m.bootstrap),this._r3Injector=mg(h,p,[{provide:Ka,useValue:this},{provide:Tc,useValue:this.componentFactoryResolver}],X(h),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(h)}get injector(){return this._r3Injector}destroy(){const h=this._r3Injector;!h.destroyed&&h.destroy(),this.destroyCbs.forEach(p=>p()),this.destroyCbs=null}onDestroy(h){this.destroyCbs.push(h)}}class Ed extends Dd{constructor(h){super(),this.moduleType=h}create(h){return new ui(this.moduleType,h)}}class Ea extends Ka{constructor(h,p,m){super(),this.componentFactoryResolver=new Fc(this),this.instance=null;const v=new Qp([...h,{provide:Ka,useValue:this},{provide:Tc,useValue:this.componentFactoryResolver}],p||Bu(),m,new Set(["environment"]));this.injector=v,v.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(h){this.injector.onDestroy(h)}}function Td(d,h,p=null){return new Ea(d,h,p).injector}let pb=(()=>{class d{constructor(p){this._injector=p,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(p){if(!p.standalone)return null;if(!this.cachedInjectors.has(p.id)){const m=oy(0,p.type),v=m.length>0?Td([m],this._injector,`Standalone[${p.type.name}]`):null;this.cachedInjectors.set(p.id,v)}return this.cachedInjectors.get(p.id)}ngOnDestroy(){try{for(const p of this.cachedInjectors.values())null!==p&&p.destroy()}finally{this.cachedInjectors.clear()}}}return d.\u0275prov=zt({token:d,providedIn:"environment",factory:()=>new d(Zn(cl))}),d})();function bf(d){d.getStandaloneInjector=h=>h.get(pb).getOrCreateStandaloneInjector(d)}function ev(d,h,p){const m=Mn()+d,v=Fe();return v[m]===Zt?zs(v,m,p?h.call(p):h()):function Us(d,h){return d[h]}(v,m)}function wf(d,h,p,m){return Md(Fe(),Mn(),d,h,p,m)}function uu(d,h){const p=d[h];return p===Zt?void 0:p}function Md(d,h,p,m,v,C){const w=h+p;return Ri(d,w,v)?zs(d,w+1,C?m.call(C,v):m(v)):uu(d,w+1)}function rv(d,h){const p=Ue();let m;const v=d+22;p.firstCreatePass?(m=function iv(d,h){if(h)for(let p=h.length-1;p>=0;p--){const m=h[p];if(d===m.name)return m}}(h,p.pipeRegistry),p.data[v]=m,m.onDestroy&&(p.destroyHooks||(p.destroyHooks=[])).push(v,m.onDestroy)):m=p.data[v];const C=m.factory||(m.factory=$r(m.type)),w=wn(Vl);try{const I=rt(!1),k=C();return rt(I),function Wh(d,h,p,m){p>=d.data.length&&(d.data[p]=null,d.blueprint[p]=null),h[p]=m}(p,Fe(),v,k),k}finally{wn(w)}}function sv(d,h,p){const m=d+22,v=Fe(),C=ss(v,m);return Od(v,m)?Md(v,Mn(),h,C.transform,p,C):C.transform(p)}function lc(d,h,p,m){const v=d+22,C=Fe(),w=ss(C,v);return Od(C,v)?function tv(d,h,p,m,v,C,w){const I=h+p;return Br(d,I,v,C)?zs(d,I+2,w?m.call(w,v,C):m(v,C)):uu(d,I+2)}(C,Mn(),h,w.transform,p,m,w):w.transform(p,m)}function Od(d,h){return d[1].data[h].pure}function If(d){return h=>{setTimeout(d,void 0,h)}}const Ei=class TD extends l.xQ{constructor(h=!1){super(),this.__isAsync=h}emit(h){super.next(h)}subscribe(h,p,m){let v=h,C=p||(()=>null),w=m;if(h&&"object"==typeof h){const k=h;v=k.next?.bind(k),C=k.error?.bind(k),w=k.complete?.bind(k)}this.__isAsync&&(C=If(C),v&&(v=If(v)),w&&(w=If(w)));const I=super.subscribe({next:v,error:C,complete:w});return h instanceof M.w&&h.add(I),I}};function Sb(){return this._results[Ga()]()}class Fd{constructor(h=!1){this._emitDistinctChangesOnly=h,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const p=Ga(),m=Fd.prototype;m[p]||(m[p]=Sb)}get changes(){return this._changes||(this._changes=new Ei)}get(h){return this._results[h]}map(h){return this._results.map(h)}filter(h){return this._results.filter(h)}find(h){return this._results.find(h)}reduce(h,p){return this._results.reduce(h,p)}forEach(h){this._results.forEach(h)}some(h){return this._results.some(h)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(h,p){const m=this;m.dirty=!1;const v=ri(h);(this._changesDetected=!function il(d,h,p){if(d.length!==h.length)return!1;for(let m=0;m{class d{}return d.__NG_ELEMENT_ID__=av,d})();const Db=cc,vr=class extends Db{constructor(h,p,m){super(),this._declarationLView=h,this._declarationTContainer=p,this.elementRef=m}createEmbeddedView(h,p){const m=this._declarationTContainer.tViews,v=$u(this._declarationLView,m,h,16,null,m.declTNode,null,null,null,null,p||null);v[17]=this._declarationLView[this._declarationTContainer.index];const w=this._declarationLView[19];return null!==w&&(v[19]=w.createEmbeddedView(m)),Vh(m,v,h),new bs(v)}};function av(){return yl(Cn(),Fe())}function yl(d,h){return 4&d.type?new vr(h,d,Nl(d,h)):null}let kd=(()=>{class d{}return d.__NG_ELEMENT_ID__=xf,d})();function xf(){return Ff(Cn(),Fe())}const wb=kd,Mf=class extends wb{constructor(h,p,m){super(),this._lContainer=h,this._hostTNode=p,this._hostLView=m}get element(){return Nl(this._hostTNode,this._hostLView)}get injector(){return new qt(this._hostTNode,this._hostLView)}get parentInjector(){const h=ni(this._hostTNode,this._hostLView);if(K(h)){const p=Ve(h,this._hostLView),m=fe(h);return new qt(p[1].data[m+8],p)}return new qt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(h){const p=lv(this._lContainer);return null!==p&&p[h]||null}get length(){return this._lContainer.length-10}createEmbeddedView(h,p,m){let v,C;"number"==typeof m?v=m:null!=m&&(v=m.index,C=m.injector);const w=h.createEmbeddedView(p||{},C);return this.insert(w,v),w}createComponent(h,p,m,v,C){const w=h&&!function _s(d){return"function"==typeof d}(h);let I;if(w)I=p;else{const Z=p||{};I=Z.index,m=Z.injector,v=Z.projectableNodes,C=Z.environmentInjector||Z.ngModuleRef}const k=w?h:new fa(en(h)),B=m||this.parentInjector;if(!C&&null==k.ngModule){const ue=(w?B:this.parentInjector).get(cl,null);ue&&(C=ue)}const U=k.create(B,v,void 0,C);return this.insert(U.hostView,I),U}insert(h,p){const m=h._lView,v=m[1];if(function Ps(d){return dr(d[3])}(m)){const U=this.indexOf(h);if(-1!==U)this.detach(U);else{const Z=m[3],ue=new Mf(Z,Z[6],Z[3]);ue.detach(ue.indexOf(h))}}const C=this._adjustIndex(p),w=this._lContainer;!function w_(d,h,p,m){const v=10+m,C=p.length;m>0&&(p[v-1][4]=h),m0)m.push(w[I/2]);else{const B=C[I+1],U=h[-k];for(let Z=10;Z{class d{constructor(p){this.appInits=p,this.resolve=qs,this.reject=qs,this.initialized=!1,this.done=!1,this.donePromise=new Promise((m,v)=>{this.resolve=m,this.reject=v})}runInitializers(){if(this.initialized)return;const p=[],m=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let v=0;v{C.subscribe({complete:I,error:k})});p.push(w)}}Promise.all(p).then(()=>{m()}).catch(v=>{this.reject(v)}),0===p.length&&m(),this.initialized=!0}}return d.\u0275fac=function(p){return new(p||d)(Zn(Gf,8))},d.\u0275prov=zt({token:d,factory:d.\u0275fac,providedIn:"root"}),d})();const Yf=new kn("AppId",{providedIn:"root",factory:function $b(){return`${Zf()}${Zf()}${Zf()}`}});function Zf(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Wf=new kn("Platform Initializer"),Lv=new kn("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Qf=new kn("appBootstrapListener"),Vv=new kn("AnimationModuleType");let Gb=(()=>{class d{log(p){console.log(p)}warn(p){console.warn(p)}}return d.\u0275fac=function(p){return new(p||d)},d.\u0275prov=zt({token:d,factory:d.\u0275fac,providedIn:"platform"}),d})();const pu=new kn("LocaleId",{providedIn:"root",factory:()=>tp(pu,ze.Optional|ze.SkipSelf)||function Yb(){return typeof $localize<"u"&&$localize.locale||Go}()}),RD=new kn("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class Zb{constructor(h,p){this.ngModuleFactory=h,this.componentFactories=p}}let Wb=(()=>{class d{compileModuleSync(p){return new Ed(p)}compileModuleAsync(p){return Promise.resolve(this.compileModuleSync(p))}compileModuleAndAllComponentsSync(p){const m=this.compileModuleSync(p),C=ua(Jn(p).declarations).reduce((w,I)=>{const k=en(I);return k&&w.push(new fa(k)),w},[]);return new Zb(m,C)}compileModuleAndAllComponentsAsync(p){return Promise.resolve(this.compileModuleAndAllComponentsSync(p))}clearCache(){}clearCacheFor(p){}getModuleId(p){}}return d.\u0275fac=function(p){return new(p||d)},d.\u0275prov=zt({token:d,factory:d.\u0275fac,providedIn:"root"}),d})();const Jb=(()=>Promise.resolve(0))();function Jf(d){typeof Zone>"u"?Jb.then(()=>{d&&d.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",d)}class wo{constructor({enableLongStackTrace:h=!1,shouldCoalesceEventChangeDetection:p=!1,shouldCoalesceRunChangeDetection:m=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ei(!1),this.onMicrotaskEmpty=new Ei(!1),this.onStable=new Ei(!1),this.onError=new Ei(!1),typeof Zone>"u")throw new ge(908,!1);Zone.assertZonePatched();const v=this;if(v._nesting=0,v._outer=v._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const C=Zone.AsyncStackTaggingZoneSpec;v._inner=v._inner.fork(new C("Angular"))}Zone.TaskTrackingZoneSpec&&(v._inner=v._inner.fork(new Zone.TaskTrackingZoneSpec)),h&&Zone.longStackTraceZoneSpec&&(v._inner=v._inner.fork(Zone.longStackTraceZoneSpec)),v.shouldCoalesceEventChangeDetection=!m&&p,v.shouldCoalesceRunChangeDetection=m,v.lastRequestAnimationFrameId=-1,v.nativeRequestAnimationFrame=function BD(){let d=Te.requestAnimationFrame,h=Te.cancelAnimationFrame;if(typeof Zone<"u"&&d&&h){const p=d[Zone.__symbol__("OriginalDelegate")];p&&(d=p);const m=h[Zone.__symbol__("OriginalDelegate")];m&&(h=m)}return{nativeRequestAnimationFrame:d,nativeCancelAnimationFrame:h}}().nativeRequestAnimationFrame,function zv(d){const h=()=>{!function Wo(d){d.isCheckStableRunning||-1!==d.lastRequestAnimationFrameId||(d.lastRequestAnimationFrameId=d.nativeRequestAnimationFrame.call(Te,()=>{d.fakeTopEventTask||(d.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{d.lastRequestAnimationFrameId=-1,Kf(d),d.isCheckStableRunning=!0,Sl(d),d.isCheckStableRunning=!1},void 0,()=>{},()=>{})),d.fakeTopEventTask.invoke()}),Kf(d))}(d)};d._inner=d._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(p,m,v,C,w,I)=>{try{return Xf(d),p.invokeTask(v,C,w,I)}finally{(d.shouldCoalesceEventChangeDetection&&"eventTask"===C.type||d.shouldCoalesceRunChangeDetection)&&h(),Xb(d)}},onInvoke:(p,m,v,C,w,I,k)=>{try{return Xf(d),p.invoke(v,C,w,I,k)}finally{d.shouldCoalesceRunChangeDetection&&h(),Xb(d)}},onHasTask:(p,m,v,C)=>{p.hasTask(v,C),m===v&&("microTask"==C.change?(d._hasPendingMicrotasks=C.microTask,Kf(d),Sl(d)):"macroTask"==C.change&&(d.hasPendingMacrotasks=C.macroTask))},onHandleError:(p,m,v,C)=>(p.handleError(v,C),d.runOutsideAngular(()=>d.onError.emit(C)),!1)})}(v)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!wo.isInAngularZone())throw new ge(909,!1)}static assertNotInAngularZone(){if(wo.isInAngularZone())throw new ge(909,!1)}run(h,p,m){return this._inner.run(h,p,m)}runTask(h,p,m,v){const C=this._inner,w=C.scheduleEventTask("NgZoneEvent: "+v,h,Kb,qs,qs);try{return C.runTask(w,p,m)}finally{C.cancelTask(w)}}runGuarded(h,p,m){return this._inner.runGuarded(h,p,m)}runOutsideAngular(h){return this._outer.run(h)}}const Kb={};function Sl(d){if(0==d._nesting&&!d.hasPendingMicrotasks&&!d.isStable)try{d._nesting++,d.onMicrotaskEmpty.emit(null)}finally{if(d._nesting--,!d.hasPendingMicrotasks)try{d.runOutsideAngular(()=>d.onStable.emit(null))}finally{d.isStable=!0}}}function Kf(d){d.hasPendingMicrotasks=!!(d._hasPendingMicrotasks||(d.shouldCoalesceEventChangeDetection||d.shouldCoalesceRunChangeDetection)&&-1!==d.lastRequestAnimationFrameId)}function Xf(d){d._nesting++,d.isStable&&(d.isStable=!1,d.onUnstable.emit(null))}function Xb(d){d._nesting--,Sl(d)}class HD{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ei,this.onMicrotaskEmpty=new Ei,this.onStable=new Ei,this.onError=new Ei}run(h,p,m){return h.apply(p,m)}runGuarded(h,p,m){return h.apply(p,m)}runOutsideAngular(h){return h()}runTask(h,p,m,v){return h.apply(p,m)}}const e0=new kn(""),t0=new kn("");let el,n0=(()=>{class d{constructor(p,m,v){this._ngZone=p,this.registry=m,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,el||(function hc(d){el=d}(v),v.addToWindow(m)),this._watchAngularEvents(),p.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{wo.assertNotInAngularZone(),Jf(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Jf(()=>{for(;0!==this._callbacks.length;){let p=this._callbacks.pop();clearTimeout(p.timeoutId),p.doneCb(this._didWork)}this._didWork=!1});else{let p=this.getPendingTasks();this._callbacks=this._callbacks.filter(m=>!m.updateCb||!m.updateCb(p)||(clearTimeout(m.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(p=>({source:p.source,creationLocation:p.creationLocation,data:p.data})):[]}addCallback(p,m,v){let C=-1;m&&m>0&&(C=setTimeout(()=>{this._callbacks=this._callbacks.filter(w=>w.timeoutId!==C),p(this._didWork,this.getPendingTasks())},m)),this._callbacks.push({doneCb:p,timeoutId:C,updateCb:v})}whenStable(p,m,v){if(v&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(p,m,v),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(p){this.registry.registerApplication(p,this)}unregisterApplication(p){this.registry.unregisterApplication(p)}findProviders(p,m,v){return[]}}return d.\u0275fac=function(p){return new(p||d)(Zn(wo),Zn(dc),Zn(t0))},d.\u0275prov=zt({token:d,factory:d.\u0275fac}),d})(),dc=(()=>{class d{constructor(){this._applications=new Map}registerApplication(p,m){this._applications.set(p,m)}unregisterApplication(p){this._applications.delete(p)}unregisterAllApplications(){this._applications.clear()}getTestability(p){return this._applications.get(p)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(p,m=!0){return el?.findTestabilityInTree(this,p,m)??null}}return d.\u0275fac=function(p){return new(p||d)},d.\u0275prov=zt({token:d,factory:d.\u0275fac,providedIn:"platform"}),d})(),Ta=null;const Uv=new kn("AllowMultipleToken"),jd=new kn("PlatformDestroyListeners");class Yv{constructor(h,p){this.name=h,this.token=p}}function Qv(d,h,p=[]){const m=`Platform: ${h}`,v=new kn(m);return(C=[])=>{let w=qv();if(!w||w.injector.get(Uv,!1)){const I=[...p,...C,{provide:v,useValue:!0}];d?d(I):function Zv(d){if(Ta&&!Ta.get(Uv,!1))throw new ge(400,!1);Ta=d;const h=d.get(Jv);(function ep(d){const h=d.get(Wf,null);h&&h.forEach(p=>p())})(d)}(function o0(d=[],h){return ul.create({name:h,providers:[{provide:vh,useValue:"platform"},{provide:jd,useValue:new Set([()=>Ta=null])},...d]})}(I,m))}return function s0(d){const h=qv();if(!h)throw new ge(401,!1);return h}()}}function qv(){return Ta?.get(Jv)??null}let Jv=(()=>{class d{constructor(p){this._injector=p,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(p,m){const v=function a0(d,h){let p;return p="noop"===d?new HD:("zone.js"===d?void 0:d)||new wo(h),p}(m?.ngZone,function Kv(d){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!d||!d.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!d||!d.ngZoneRunCoalescing)||!1}}(m)),C=[{provide:wo,useValue:v}];return v.run(()=>{const w=ul.create({providers:C,parent:this.injector,name:p.moduleType.name}),I=p.create(w),k=I.injector.get(Ic,null);if(!k)throw new ge(402,!1);return v.runOutsideAngular(()=>{const B=v.onError.subscribe({next:U=>{k.handleError(U)}});I.onDestroy(()=>{g(this._modules,I),B.unsubscribe()})}),function c(d,h,p){try{const m=p();return im(m)?m.catch(v=>{throw h.runOutsideAngular(()=>d.handleError(v)),v}):m}catch(m){throw h.runOutsideAngular(()=>d.handleError(m)),m}}(k,v,()=>{const B=I.injector.get(fu);return B.runInitializers(),B.donePromise.then(()=>(function uf(d){Ne(d,"Expected localeId to be defined"),"string"==typeof d&&(cf=d.toLowerCase().replace(/_/g,"-"))}(I.injector.get(pu,Go)||Go),this._moduleDoBootstrap(I),I))})})}bootstrapModule(p,m=[]){const v=f({},m);return function $v(d,h,p){const m=new Ed(p);return Promise.resolve(m)}(0,0,p).then(C=>this.bootstrapModuleFactory(C,v))}_moduleDoBootstrap(p){const m=p.injector.get(a);if(p._bootstrapComponents.length>0)p._bootstrapComponents.forEach(v=>m.bootstrap(v));else{if(!p.instance.ngDoBootstrap)throw new ge(403,!1);p.instance.ngDoBootstrap(m)}this._modules.push(p)}onDestroy(p){this._destroyListeners.push(p)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ge(404,!1);this._modules.slice().forEach(m=>m.destroy()),this._destroyListeners.forEach(m=>m());const p=this._injector.get(jd,null);p&&(p.forEach(m=>m()),p.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return d.\u0275fac=function(p){return new(p||d)(Zn(ul))},d.\u0275prov=zt({token:d,factory:d.\u0275fac,providedIn:"platform"}),d})();function f(d,h){return Array.isArray(h)?h.reduce(f,d):{...d,...h}}let a=(()=>{class d{constructor(p,m,v){this._zone=p,this._injector=m,this._exceptionHandler=v,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const C=new ce.y(I=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{I.next(this._stable),I.complete()})}),w=new ce.y(I=>{let k;this._zone.runOutsideAngular(()=>{k=this._zone.onStable.subscribe(()=>{wo.assertNotInAngularZone(),Jf(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,I.next(!0))})})});const B=this._zone.onUnstable.subscribe(()=>{wo.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{I.next(!1)}))});return()=>{k.unsubscribe(),B.unsubscribe()}});this.isStable=(0,pe.T)(C,w.pipe((0,de.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(p,m){const v=p instanceof fy;if(!this._injector.get(fu).done)throw!v&&hi(p),new ge(405,false);let w;w=v?p:this._injector.get(Tc).resolveComponentFactory(p),this.componentTypes.push(w.componentType);const I=function Gv(d){return d.isBoundToModule}(w)?void 0:this._injector.get(Ka),B=w.create(ul.NULL,[],m||w.selector,I),U=B.location.nativeElement,Z=B.injector.get(e0,null);return Z?.registerApplication(U),B.onDestroy(()=>{this.detachView(B.hostView),g(this.components,B),Z?.unregisterApplication(U)}),this._loadComponent(B),B}tick(){if(this._runningTick)throw new ge(101,!1);try{this._runningTick=!0;for(let p of this._views)p.detectChanges()}catch(p){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(p))}finally{this._runningTick=!1}}attachView(p){const m=p;this._views.push(m),m.attachToAppRef(this)}detachView(p){const m=p;g(this._views,m),m.detachFromAppRef()}_loadComponent(p){this.attachView(p.hostView),this.tick(),this.components.push(p),this._injector.get(Qf,[]).concat(this._bootstrapListeners).forEach(v=>v(p))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(p=>p()),this._views.slice().forEach(p=>p.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(p){return this._destroyListeners.push(p),()=>g(this._destroyListeners,p)}destroy(){if(this._destroyed)throw new ge(406,!1);const p=this._injector;p.destroy&&!p.destroyed&&p.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return d.\u0275fac=function(p){return new(p||d)(Zn(wo),Zn(cl),Zn(Ic))},d.\u0275prov=zt({token:d,factory:d.\u0275fac,providedIn:"root"}),d})();function g(d,h){const p=d.indexOf(h);p>-1&&d.splice(p,1)}let $=!0;function Pe(){$=!1}let yn=(()=>{class d{}return d.__NG_ELEMENT_ID__=fr,d})();function fr(d){return function qr(d,h,p){if(on(d)&&!p){const m=mn(d.index,h);return new bs(m,m)}return 47&d.type?new bs(h[16],h):null}(Cn(),Fe(),16==(16&d))}class YD{constructor(){}supports(h){return ga(h)}create(h){return new gw(h)}}const pw=(d,h)=>h;class gw{constructor(h){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=h||pw}forEachItem(h){let p;for(p=this._itHead;null!==p;p=p._next)h(p)}forEachOperation(h){let p=this._itHead,m=this._removalsHead,v=0,C=null;for(;p||m;){const w=!m||p&&p.currentIndex{w=this._trackByFn(v,I),null!==p&&Object.is(p.trackById,w)?(m&&(p=this._verifyReinsertion(p,I,w,v)),Object.is(p.item,I)||this._addIdentityChange(p,I)):(p=this._mismatch(p,I,w,v),m=!0),p=p._next,v++}),this.length=v;return this._truncate(p),this.collection=h,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let h;for(h=this._previousItHead=this._itHead;null!==h;h=h._next)h._nextPrevious=h._next;for(h=this._additionsHead;null!==h;h=h._nextAdded)h.previousIndex=h.currentIndex;for(this._additionsHead=this._additionsTail=null,h=this._movesHead;null!==h;h=h._nextMoved)h.previousIndex=h.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(h,p,m,v){let C;return null===h?C=this._itTail:(C=h._prev,this._remove(h)),null!==(h=null===this._unlinkedRecords?null:this._unlinkedRecords.get(m,null))?(Object.is(h.item,p)||this._addIdentityChange(h,p),this._reinsertAfter(h,C,v)):null!==(h=null===this._linkedRecords?null:this._linkedRecords.get(m,v))?(Object.is(h.item,p)||this._addIdentityChange(h,p),this._moveAfter(h,C,v)):h=this._addAfter(new mw(p,m),C,v),h}_verifyReinsertion(h,p,m,v){let C=null===this._unlinkedRecords?null:this._unlinkedRecords.get(m,null);return null!==C?h=this._reinsertAfter(C,h._prev,v):h.currentIndex!=v&&(h.currentIndex=v,this._addToMoves(h,v)),h}_truncate(h){for(;null!==h;){const p=h._next;this._addToRemovals(this._unlink(h)),h=p}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(h,p,m){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(h);const v=h._prevRemoved,C=h._nextRemoved;return null===v?this._removalsHead=C:v._nextRemoved=C,null===C?this._removalsTail=v:C._prevRemoved=v,this._insertAfter(h,p,m),this._addToMoves(h,m),h}_moveAfter(h,p,m){return this._unlink(h),this._insertAfter(h,p,m),this._addToMoves(h,m),h}_addAfter(h,p,m){return this._insertAfter(h,p,m),this._additionsTail=null===this._additionsTail?this._additionsHead=h:this._additionsTail._nextAdded=h,h}_insertAfter(h,p,m){const v=null===p?this._itHead:p._next;return h._next=v,h._prev=p,null===v?this._itTail=h:v._prev=h,null===p?this._itHead=h:p._next=h,null===this._linkedRecords&&(this._linkedRecords=new ZD),this._linkedRecords.put(h),h.currentIndex=m,h}_remove(h){return this._addToRemovals(this._unlink(h))}_unlink(h){null!==this._linkedRecords&&this._linkedRecords.remove(h);const p=h._prev,m=h._next;return null===p?this._itHead=m:p._next=m,null===m?this._itTail=p:m._prev=p,h}_addToMoves(h,p){return h.previousIndex===p||(this._movesTail=null===this._movesTail?this._movesHead=h:this._movesTail._nextMoved=h),h}_addToRemovals(h){return null===this._unlinkedRecords&&(this._unlinkedRecords=new ZD),this._unlinkedRecords.put(h),h.currentIndex=null,h._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=h,h._prevRemoved=null):(h._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=h),h}_addIdentityChange(h,p){return h.item=p,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=h:this._identityChangesTail._nextIdentityChange=h,h}}class mw{constructor(h,p){this.item=h,this.trackById=p,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class vw{constructor(){this._head=null,this._tail=null}add(h){null===this._head?(this._head=this._tail=h,h._nextDup=null,h._prevDup=null):(this._tail._nextDup=h,h._prevDup=this._tail,h._nextDup=null,this._tail=h)}get(h,p){let m;for(m=this._head;null!==m;m=m._nextDup)if((null===p||p<=m.currentIndex)&&Object.is(m.trackById,h))return m;return null}remove(h){const p=h._prevDup,m=h._nextDup;return null===p?this._head=m:p._nextDup=m,null===m?this._tail=p:m._prevDup=p,null===this._head}}class ZD{constructor(){this.map=new Map}put(h){const p=h.trackById;let m=this.map.get(p);m||(m=new vw,this.map.set(p,m)),m.add(h)}get(h,p){const v=this.map.get(h);return v?v.get(h,p):null}remove(h){const p=h.trackById;return this.map.get(p).remove(h)&&this.map.delete(p),h}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function WD(d,h,p){const m=d.previousIndex;if(null===m)return m;let v=0;return p&&m{if(p&&p.key===v)this._maybeAddToChanges(p,m),this._appendAfter=p,p=p._next;else{const C=this._getOrCreateRecordForKey(v,m);p=this._insertBeforeOrAppend(p,C)}}),p){p._prev&&(p._prev._next=null),this._removalsHead=p;for(let m=p;null!==m;m=m._nextRemoved)m===this._mapHead&&(this._mapHead=null),this._records.delete(m.key),m._nextRemoved=m._next,m.previousValue=m.currentValue,m.currentValue=null,m._prev=null,m._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(h,p){if(h){const m=h._prev;return p._next=h,p._prev=m,h._prev=p,m&&(m._next=p),h===this._mapHead&&(this._mapHead=p),this._appendAfter=h,h}return this._appendAfter?(this._appendAfter._next=p,p._prev=this._appendAfter):this._mapHead=p,this._appendAfter=p,null}_getOrCreateRecordForKey(h,p){if(this._records.has(h)){const v=this._records.get(h);this._maybeAddToChanges(v,p);const C=v._prev,w=v._next;return C&&(C._next=w),w&&(w._prev=C),v._next=null,v._prev=null,v}const m=new yw(h);return this._records.set(h,m),m.currentValue=p,this._addToAdditions(m),m}_reset(){if(this.isDirty){let h;for(this._previousMapHead=this._mapHead,h=this._previousMapHead;null!==h;h=h._next)h._nextPrevious=h._next;for(h=this._changesHead;null!==h;h=h._nextChanged)h.previousValue=h.currentValue;for(h=this._additionsHead;null!=h;h=h._nextAdded)h.previousValue=h.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(h,p){Object.is(p,h.currentValue)||(h.previousValue=h.currentValue,h.currentValue=p,this._addToChanges(h))}_addToAdditions(h){null===this._additionsHead?this._additionsHead=this._additionsTail=h:(this._additionsTail._nextAdded=h,this._additionsTail=h)}_addToChanges(h){null===this._changesHead?this._changesHead=this._changesTail=h:(this._changesTail._nextChanged=h,this._changesTail=h)}_forEach(h,p){h instanceof Map?h.forEach(p):Object.keys(h).forEach(m=>p(h[m],m))}}class yw{constructor(h){this.key=h,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function qD(){return new f0([new YD])}let f0=(()=>{class d{constructor(p){this.factories=p}static create(p,m){if(null!=m){const v=m.factories.slice();p=p.concat(v)}return new d(p)}static extend(p){return{provide:d,useFactory:m=>d.create(p,m||qD()),deps:[[d,new Tu,new Sc]]}}find(p){const m=this.factories.find(v=>v.supports(p));if(null!=m)return m;throw new ge(901,!1)}}return d.\u0275prov=zt({token:d,providedIn:"root",factory:qD}),d})();function JD(){return new p0([new QD])}let p0=(()=>{class d{constructor(p){this.factories=p}static create(p,m){if(m){const v=m.factories.slice();p=p.concat(v)}return new d(p)}static extend(p){return{provide:d,useFactory:m=>d.create(p,m||JD()),deps:[[d,new Tu,new Sc]]}}find(p){const m=this.factories.find(v=>v.supports(p));if(m)return m;throw new ge(901,!1)}}return d.\u0275prov=zt({token:d,providedIn:"root",factory:JD}),d})();const Sw=Qv(null,"core",[]);let Dw=(()=>{class d{constructor(p){}}return d.\u0275fac=function(p){return new(p||d)(Zn(a))},d.\u0275mod=Cr({type:d}),d.\u0275inj=Ft({}),d})();function ww(d){return"boolean"==typeof d?d:null!=d&&"false"!==d}function Tw(d,h){const p=en(d),m=h.elementInjector||Bu();return new fa(p).create(m,h.projectableNodes,h.hostElement,h.environmentInjector)}},92:(et,Ee,j)=>{j.d(Ee,{Cf:()=>je,EJ:()=>xi,F:()=>gr,Fd:()=>An,Fj:()=>xe,JJ:()=>ze,JL:()=>lr,K7:()=>sr,Kr:()=>ns,Mq:()=>Sr,NI:()=>Xn,On:()=>es,UX:()=>$i,Wl:()=>q,YN:()=>Or,_:()=>ts,_Y:()=>$n,a5:()=>gn,cw:()=>en,eT:()=>qo,kI:()=>tt,qQ:()=>ks,sg:()=>Os,u:()=>Gr,u5:()=>_i,wV:()=>rn,x0:()=>ei});var l=j(4537),M=j(8692),ce=j(6666),pe=j(5758),de=j(8002);let J=(()=>{class V{constructor(P,G){this._renderer=P,this._elementRef=G,this.onChange=we=>{},this.onTouched=()=>{}}setProperty(P,G){this._renderer.setProperty(this._elementRef.nativeElement,P,G)}registerOnTouched(P){this.onTouched=P}registerOnChange(P){this.onChange=P}setDisabledState(P){this.setProperty("disabled",P)}}return V.\u0275fac=function(P){return new(P||V)(l.Y36(l.Qsj),l.Y36(l.SBq))},V.\u0275dir=l.lG2({type:V}),V})(),he=(()=>{class V extends J{}return V.\u0275fac=function(){let N;return function(G){return(N||(N=l.n5z(V)))(G||V)}}(),V.\u0275dir=l.lG2({type:V,features:[l.qOj]}),V})();const X=new l.OlP("NgValueAccessor"),ae={provide:X,useExisting:(0,l.Gpc)(()=>q),multi:!0};let q=(()=>{class V extends he{writeValue(P){this.setProperty("checked",P)}}return V.\u0275fac=function(){let N;return function(G){return(N||(N=l.n5z(V)))(G||V)}}(),V.\u0275dir=l.lG2({type:V,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(P,G){1&P&&l.NdJ("change",function(ct){return G.onChange(ct.target.checked)})("blur",function(){return G.onTouched()})},features:[l._Bn([ae]),l.qOj]}),V})();const ee={provide:X,useExisting:(0,l.Gpc)(()=>xe),multi:!0},ye=new l.OlP("CompositionEventMode");let xe=(()=>{class V extends J{constructor(P,G,we){super(P,G),this._compositionMode=we,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function se(){const V=(0,M.q)()?(0,M.q)().getUserAgent():"";return/android (\d+)/.test(V.toLowerCase())}())}writeValue(P){this.setProperty("value",P??"")}_handleInput(P){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(P)}_compositionStart(){this._composing=!0}_compositionEnd(P){this._composing=!1,this._compositionMode&&this.onChange(P)}}return V.\u0275fac=function(P){return new(P||V)(l.Y36(l.Qsj),l.Y36(l.SBq),l.Y36(ye,8))},V.\u0275dir=l.lG2({type:V,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(P,G){1&P&&l.NdJ("input",function(ct){return G._handleInput(ct.target.value)})("blur",function(){return G.onTouched()})("compositionstart",function(){return G._compositionStart()})("compositionend",function(ct){return G._compositionEnd(ct.target.value)})},features:[l._Bn([ee]),l.qOj]}),V})();function be(V){return null==V||("string"==typeof V||Array.isArray(V))&&0===V.length}function Ce(V){return null!=V&&"number"==typeof V.length}const je=new l.OlP("NgValidators"),Rt=new l.OlP("NgAsyncValidators"),tn=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class tt{static min(N){return $e(N)}static max(N){return ft(N)}static required(N){return function Ht(V){return be(V.value)?{required:!0}:null}(N)}static requiredTrue(N){return function rr(V){return!0===V.value?null:{required:!0}}(N)}static email(N){return function $t(V){return be(V.value)||tn.test(V.value)?null:{email:!0}}(N)}static minLength(N){return function it(V){return N=>be(N.value)||!Ce(N.value)?null:N.value.lengthCe(N.value)&&N.value.length>V?{maxlength:{requiredLength:V,actualLength:N.value.length}}:null}(N)}static pattern(N){return function yt(V){if(!V)return Gt;let N,P;return"string"==typeof V?(P="","^"!==V.charAt(0)&&(P+="^"),P+=V,"$"!==V.charAt(V.length-1)&&(P+="$"),N=new RegExp(P)):(P=V.toString(),N=V),G=>{if(be(G.value))return null;const we=G.value;return N.test(we)?null:{pattern:{requiredPattern:P,actualValue:we}}}}(N)}static nullValidator(N){return null}static compose(N){return Be(N)}static composeAsync(N){return mt(N)}}function $e(V){return N=>{if(be(N.value)||be(V))return null;const P=parseFloat(N.value);return!isNaN(P)&&P{if(be(N.value)||be(V))return null;const P=parseFloat(N.value);return!isNaN(P)&&P>V?{max:{max:V,actual:N.value}}:null}}function Gt(V){return null}function st(V){return null!=V}function Ar(V){return(0,l.QGY)(V)?(0,ce.D)(V):V}function _e(V){let N={};return V.forEach(P=>{N=null!=P?{...N,...P}:N}),0===Object.keys(N).length?null:N}function Me(V,N){return N.map(P=>P(V))}function Ne(V){return V.map(N=>function Le(V){return!V.validate}(N)?N:P=>N.validate(P))}function Be(V){if(!V)return null;const N=V.filter(st);return 0==N.length?null:function(P){return _e(Me(P,N))}}function Ze(V){return null!=V?Be(Ne(V)):null}function mt(V){if(!V)return null;const N=V.filter(st);return 0==N.length?null:function(P){const G=Me(P,N).map(Ar);return(0,pe.D)(G).pipe((0,de.U)(_e))}}function Tt(V){return null!=V?mt(Ne(V)):null}function zt(V,N){return null===V?[N]:Array.isArray(V)?[...V,N]:[V,N]}function Ct(V){return V._rawValidators}function Ft(V){return V._rawAsyncValidators}function fn(V){return V?Array.isArray(V)?V:[V]:[]}function cn(V,N){return Array.isArray(V)?V.includes(N):V===N}function qn(V,N){const P=fn(N);return fn(V).forEach(we=>{cn(P,we)||P.push(we)}),P}function Ir(V,N){return fn(N).filter(P=>!cn(V,P))}class jn{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(N){this._rawValidators=N||[],this._composedValidatorFn=Ze(this._rawValidators)}_setAsyncValidators(N){this._rawAsyncValidators=N||[],this._composedAsyncValidatorFn=Tt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(N){this._onDestroyCallbacks.push(N)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(N=>N()),this._onDestroyCallbacks=[]}reset(N){this.control&&this.control.reset(N)}hasError(N,P){return!!this.control&&this.control.hasError(N,P)}getError(N,P){return this.control?this.control.getError(N,P):null}}class sn extends jn{get formDirective(){return null}get path(){return null}}class gn extends jn{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class zr{constructor(N){this._cd=N}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let ze=(()=>{class V extends zr{constructor(P){super(P)}}return V.\u0275fac=function(P){return new(P||V)(l.Y36(gn,2))},V.\u0275dir=l.lG2({type:V,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(P,G){2&P&&l.ekj("ng-untouched",G.isUntouched)("ng-touched",G.isTouched)("ng-pristine",G.isPristine)("ng-dirty",G.isDirty)("ng-valid",G.isValid)("ng-invalid",G.isInvalid)("ng-pending",G.isPending)},features:[l.qOj]}),V})(),lr=(()=>{class V extends zr{constructor(P){super(P)}}return V.\u0275fac=function(P){return new(P||V)(l.Y36(sn,10))},V.\u0275dir=l.lG2({type:V,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(P,G){2&P&&l.ekj("ng-untouched",G.isUntouched)("ng-touched",G.isTouched)("ng-pristine",G.isPristine)("ng-dirty",G.isDirty)("ng-valid",G.isValid)("ng-invalid",G.isInvalid)("ng-pending",G.isPending)("ng-submitted",G.isSubmitted)},features:[l.qOj]}),V})();const xt="VALID",Yt="INVALID",nr="PENDING",Nn="DISABLED";function pn(V){return(pr(V)?V.validators:V)||null}function dt(V){return Array.isArray(V)?Ze(V):V||null}function Rn(V,N){return(pr(N)?N.asyncValidators:V)||null}function Cr(V){return Array.isArray(V)?Tt(V):V||null}function pr(V){return null!=V&&!Array.isArray(V)&&"object"==typeof V}class Bi{constructor(N,P){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=N,this._rawAsyncValidators=P,this._composedValidatorFn=dt(this._rawValidators),this._composedAsyncValidatorFn=Cr(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(N){this._rawValidators=this._composedValidatorFn=N}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(N){this._rawAsyncValidators=this._composedAsyncValidatorFn=N}get parent(){return this._parent}get valid(){return this.status===xt}get invalid(){return this.status===Yt}get pending(){return this.status==nr}get disabled(){return this.status===Nn}get enabled(){return this.status!==Nn}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(N){this._rawValidators=N,this._composedValidatorFn=dt(N)}setAsyncValidators(N){this._rawAsyncValidators=N,this._composedAsyncValidatorFn=Cr(N)}addValidators(N){this.setValidators(qn(N,this._rawValidators))}addAsyncValidators(N){this.setAsyncValidators(qn(N,this._rawAsyncValidators))}removeValidators(N){this.setValidators(Ir(N,this._rawValidators))}removeAsyncValidators(N){this.setAsyncValidators(Ir(N,this._rawAsyncValidators))}hasValidator(N){return cn(this._rawValidators,N)}hasAsyncValidator(N){return cn(this._rawAsyncValidators,N)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(N={}){this.touched=!0,this._parent&&!N.onlySelf&&this._parent.markAsTouched(N)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(N=>N.markAllAsTouched())}markAsUntouched(N={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(P=>{P.markAsUntouched({onlySelf:!0})}),this._parent&&!N.onlySelf&&this._parent._updateTouched(N)}markAsDirty(N={}){this.pristine=!1,this._parent&&!N.onlySelf&&this._parent.markAsDirty(N)}markAsPristine(N={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(P=>{P.markAsPristine({onlySelf:!0})}),this._parent&&!N.onlySelf&&this._parent._updatePristine(N)}markAsPending(N={}){this.status=nr,!1!==N.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!N.onlySelf&&this._parent.markAsPending(N)}disable(N={}){const P=this._parentMarkedDirty(N.onlySelf);this.status=Nn,this.errors=null,this._forEachChild(G=>{G.disable({...N,onlySelf:!0})}),this._updateValue(),!1!==N.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...N,skipPristineCheck:P}),this._onDisabledChange.forEach(G=>G(!0))}enable(N={}){const P=this._parentMarkedDirty(N.onlySelf);this.status=xt,this._forEachChild(G=>{G.enable({...N,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:N.emitEvent}),this._updateAncestors({...N,skipPristineCheck:P}),this._onDisabledChange.forEach(G=>G(!1))}_updateAncestors(N){this._parent&&!N.onlySelf&&(this._parent.updateValueAndValidity(N),N.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(N){this._parent=N}getRawValue(){return this.value}updateValueAndValidity(N={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===xt||this.status===nr)&&this._runAsyncValidator(N.emitEvent)),!1!==N.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!N.onlySelf&&this._parent.updateValueAndValidity(N)}_updateTreeValidity(N={emitEvent:!0}){this._forEachChild(P=>P._updateTreeValidity(N)),this.updateValueAndValidity({onlySelf:!0,emitEvent:N.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Nn:xt}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(N){if(this.asyncValidator){this.status=nr,this._hasOwnPendingAsyncValidator=!0;const P=Ar(this.asyncValidator(this));this._asyncValidationSubscription=P.subscribe(G=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(G,{emitEvent:N})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(N,P={}){this.errors=N,this._updateControlsErrors(!1!==P.emitEvent)}get(N){let P=N;return null==P||(Array.isArray(P)||(P=P.split(".")),0===P.length)?null:P.reduce((G,we)=>G&&G._find(we),this)}getError(N,P){const G=P?this.get(P):this;return G&&G.errors?G.errors[N]:null}hasError(N,P){return!!this.getError(N,P)}get root(){let N=this;for(;N._parent;)N=N._parent;return N}_updateControlsErrors(N){this.status=this._calculateStatus(),N&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(N)}_initObservables(){this.valueChanges=new l.vpe,this.statusChanges=new l.vpe}_calculateStatus(){return this._allControlsDisabled()?Nn:this.errors?Yt:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(nr)?nr:this._anyControlsHaveStatus(Yt)?Yt:xt}_anyControlsHaveStatus(N){return this._anyControls(P=>P.status===N)}_anyControlsDirty(){return this._anyControls(N=>N.dirty)}_anyControlsTouched(){return this._anyControls(N=>N.touched)}_updatePristine(N={}){this.pristine=!this._anyControlsDirty(),this._parent&&!N.onlySelf&&this._parent._updatePristine(N)}_updateTouched(N={}){this.touched=this._anyControlsTouched(),this._parent&&!N.onlySelf&&this._parent._updateTouched(N)}_registerOnCollectionChange(N){this._onCollectionChange=N}_setUpdateStrategy(N){pr(N)&&null!=N.updateOn&&(this._updateOn=N.updateOn)}_parentMarkedDirty(N){return!N&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(N){return null}}class en extends Bi{constructor(N,P,G){super(pn(P),Rn(G,P)),this.controls=N,this._initObservables(),this._setUpdateStrategy(P),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(N,P){return this.controls[N]?this.controls[N]:(this.controls[N]=P,P.setParent(this),P._registerOnCollectionChange(this._onCollectionChange),P)}addControl(N,P,G={}){this.registerControl(N,P),this.updateValueAndValidity({emitEvent:G.emitEvent}),this._onCollectionChange()}removeControl(N,P={}){this.controls[N]&&this.controls[N]._registerOnCollectionChange(()=>{}),delete this.controls[N],this.updateValueAndValidity({emitEvent:P.emitEvent}),this._onCollectionChange()}setControl(N,P,G={}){this.controls[N]&&this.controls[N]._registerOnCollectionChange(()=>{}),delete this.controls[N],P&&this.registerControl(N,P),this.updateValueAndValidity({emitEvent:G.emitEvent}),this._onCollectionChange()}contains(N){return this.controls.hasOwnProperty(N)&&this.controls[N].enabled}setValue(N,P={}){(function Ai(V,N,P){V._forEachChild((G,we)=>{if(void 0===P[we])throw new l.vHH(1002,"")})})(this,0,N),Object.keys(N).forEach(G=>{(function Ts(V,N,P){const G=V.controls;if(!(N?Object.keys(G):G).length)throw new l.vHH(1e3,"");if(!G[P])throw new l.vHH(1001,"")})(this,!0,G),this.controls[G].setValue(N[G],{onlySelf:!0,emitEvent:P.emitEvent})}),this.updateValueAndValidity(P)}patchValue(N,P={}){null!=N&&(Object.keys(N).forEach(G=>{const we=this.controls[G];we&&we.patchValue(N[G],{onlySelf:!0,emitEvent:P.emitEvent})}),this.updateValueAndValidity(P))}reset(N={},P={}){this._forEachChild((G,we)=>{G.reset(N[we],{onlySelf:!0,emitEvent:P.emitEvent})}),this._updatePristine(P),this._updateTouched(P),this.updateValueAndValidity(P)}getRawValue(){return this._reduceChildren({},(N,P,G)=>(N[G]=P.getRawValue(),N))}_syncPendingControls(){let N=this._reduceChildren(!1,(P,G)=>!!G._syncPendingControls()||P);return N&&this.updateValueAndValidity({onlySelf:!0}),N}_forEachChild(N){Object.keys(this.controls).forEach(P=>{const G=this.controls[P];G&&N(G,P)})}_setUpControls(){this._forEachChild(N=>{N.setParent(this),N._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(N){for(const[P,G]of Object.entries(this.controls))if(this.contains(P)&&N(G))return!0;return!1}_reduceValue(){return this._reduceChildren({},(P,G,we)=>((G.enabled||this.disabled)&&(P[we]=G.value),P))}_reduceChildren(N,P){let G=N;return this._forEachChild((we,ct)=>{G=P(G,we,ct)}),G}_allControlsDisabled(){for(const N of Object.keys(this.controls))if(this.controls[N].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(N){return this.controls.hasOwnProperty(N)?this.controls[N]:null}}function ir(V,N){return[...N.path,V]}function re(V,N){ke(V,N),N.valueAccessor.writeValue(V.value),V.disabled&&N.valueAccessor.setDisabledState?.(!0),function Lt(V,N){N.valueAccessor.registerOnChange(P=>{V._pendingValue=P,V._pendingChange=!0,V._pendingDirty=!0,"change"===V.updateOn&&xn(V,N)})}(V,N),function Ur(V,N){const P=(G,we)=>{N.valueAccessor.writeValue(G),we&&N.viewToModelUpdate(G)};V.registerOnChange(P),N._registerOnDestroy(()=>{V._unregisterOnChange(P)})}(V,N),function Vt(V,N){N.valueAccessor.registerOnTouched(()=>{V._pendingTouched=!0,"blur"===V.updateOn&&V._pendingChange&&xn(V,N),"submit"!==V.updateOn&&V.markAsTouched()})}(V,N),function me(V,N){if(N.valueAccessor.setDisabledState){const P=G=>{N.valueAccessor.setDisabledState(G)};V.registerOnDisabledChange(P),N._registerOnDestroy(()=>{V._unregisterOnDisabledChange(P)})}}(V,N)}function te(V,N,P=!0){const G=()=>{};N.valueAccessor&&(N.valueAccessor.registerOnChange(G),N.valueAccessor.registerOnTouched(G)),Xe(V,N),V&&(N._invokeOnDestroyCallbacks(),V._registerOnCollectionChange(()=>{}))}function W(V,N){V.forEach(P=>{P.registerOnValidatorChange&&P.registerOnValidatorChange(N)})}function ke(V,N){const P=Ct(V);null!==N.validator?V.setValidators(zt(P,N.validator)):"function"==typeof P&&V.setValidators([P]);const G=Ft(V);null!==N.asyncValidator?V.setAsyncValidators(zt(G,N.asyncValidator)):"function"==typeof G&&V.setAsyncValidators([G]);const we=()=>V.updateValueAndValidity();W(N._rawValidators,we),W(N._rawAsyncValidators,we)}function Xe(V,N){let P=!1;if(null!==V){if(null!==N.validator){const we=Ct(V);if(Array.isArray(we)&&we.length>0){const ct=we.filter(Qt=>Qt!==N.validator);ct.length!==we.length&&(P=!0,V.setValidators(ct))}}if(null!==N.asyncValidator){const we=Ft(V);if(Array.isArray(we)&&we.length>0){const ct=we.filter(Qt=>Qt!==N.asyncValidator);ct.length!==we.length&&(P=!0,V.setAsyncValidators(ct))}}}const G=()=>{};return W(N._rawValidators,G),W(N._rawAsyncValidators,G),P}function xn(V,N){V._pendingDirty&&V.markAsDirty(),V.setValue(V._pendingValue,{emitModelToViewChange:!1}),N.viewToModelUpdate(V._pendingValue),V._pendingChange=!1}function wt(V,N){ke(V,N)}function Kn(V,N){if(!V.hasOwnProperty("model"))return!1;const P=V.model;return!!P.isFirstChange()||!Object.is(N,P.currentValue)}function cr(V,N){V._syncPendingControls(),N.forEach(P=>{const G=P.control;"submit"===G.updateOn&&G._pendingChange&&(P.viewToModelUpdate(G._pendingValue),G._pendingChange=!1)})}function pi(V,N){if(!N)return null;let P,G,we;return Array.isArray(N),N.forEach(ct=>{ct.constructor===xe?P=ct:function Kr(V){return Object.getPrototypeOf(V.constructor)===he}(ct)?G=ct:we=ct}),we||G||P||null}const xr={provide:sn,useExisting:(0,l.Gpc)(()=>gr)},Rr=(()=>Promise.resolve())();let gr=(()=>{class V extends sn{constructor(P,G){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new l.vpe,this.form=new en({},Ze(P),Tt(G))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(P){Rr.then(()=>{const G=this._findContainer(P.path);P.control=G.registerControl(P.name,P.control),re(P.control,P),P.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(P)})}getControl(P){return this.form.get(P.path)}removeControl(P){Rr.then(()=>{const G=this._findContainer(P.path);G&&G.removeControl(P.name),this._directives.delete(P)})}addFormGroup(P){Rr.then(()=>{const G=this._findContainer(P.path),we=new en({});wt(we,P),G.registerControl(P.name,we),we.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(P){Rr.then(()=>{const G=this._findContainer(P.path);G&&G.removeControl(P.name)})}getFormGroup(P){return this.form.get(P.path)}updateModel(P,G){Rr.then(()=>{this.form.get(P.path).setValue(G)})}setValue(P){this.control.setValue(P)}onSubmit(P){return this.submitted=!0,cr(this.form,this._directives),this.ngSubmit.emit(P),"dialog"===P?.target?.method}onReset(){this.resetForm()}resetForm(P){this.form.reset(P),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(P){return P.pop(),P.length?this.form.get(P):this.form}}return V.\u0275fac=function(P){return new(P||V)(l.Y36(je,10),l.Y36(Rt,10))},V.\u0275dir=l.lG2({type:V,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(P,G){1&P&&l.NdJ("submit",function(ct){return G.onSubmit(ct)})("reset",function(){return G.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[l._Bn([xr]),l.qOj]}),V})();function mr(V,N){const P=V.indexOf(N);P>-1&&V.splice(P,1)}function ur(V){return"object"==typeof V&&null!==V&&2===Object.keys(V).length&&"value"in V&&"disabled"in V}const Xn=class extends Bi{constructor(N=null,P,G){super(pn(P),Rn(G,P)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(N),this._setUpdateStrategy(P),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),pr(P)&&(P.nonNullable||P.initialValueIsDefault)&&(this.defaultValue=ur(N)?N.value:N)}setValue(N,P={}){this.value=this._pendingValue=N,this._onChange.length&&!1!==P.emitModelToViewChange&&this._onChange.forEach(G=>G(this.value,!1!==P.emitViewToModelChange)),this.updateValueAndValidity(P)}patchValue(N,P={}){this.setValue(N,P)}reset(N=this.defaultValue,P={}){this._applyFormState(N),this.markAsPristine(P),this.markAsUntouched(P),this.setValue(this.value,P),this._pendingChange=!1}_updateValue(){}_anyControls(N){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(N){this._onChange.push(N)}_unregisterOnChange(N){mr(this._onChange,N)}registerOnDisabledChange(N){this._onDisabledChange.push(N)}_unregisterOnDisabledChange(N){mr(this._onDisabledChange,N)}_forEachChild(N){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(N){ur(N)?(this.value=this._pendingValue=N.value,N.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=N}};let As=(()=>{class V extends sn{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return ir(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}return V.\u0275fac=function(){let N;return function(G){return(N||(N=l.n5z(V)))(G||V)}}(),V.\u0275dir=l.lG2({type:V,features:[l.qOj]}),V})();const Js={provide:sn,useExisting:(0,l.Gpc)(()=>Sr)};let Sr=(()=>{class V extends As{constructor(P,G,we){super(),this._parent=P,this._setValidators(G),this._setAsyncValidators(we)}_checkParentType(){}}return V.\u0275fac=function(P){return new(P||V)(l.Y36(sn,5),l.Y36(je,10),l.Y36(Rt,10))},V.\u0275dir=l.lG2({type:V,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[l._Bn([Js]),l.qOj]}),V})();const To={provide:gn,useExisting:(0,l.Gpc)(()=>es)},Et=(()=>Promise.resolve())();let es=(()=>{class V extends gn{constructor(P,G,we,ct,Qt){super(),this._changeDetectorRef=Qt,this.control=new Xn,this._registered=!1,this.update=new l.vpe,this._parent=P,this._setValidators(G),this._setAsyncValidators(we),this.valueAccessor=pi(0,ct)}ngOnChanges(P){if(this._checkForErrors(),!this._registered||"name"in P){if(this._registered&&(this._checkName(),this.formDirective)){const G=P.name.previousValue;this.formDirective.removeControl({name:G,path:this._getPath(G)})}this._setUpControl()}"isDisabled"in P&&this._updateDisabled(P),Kn(P,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(P){this.viewModel=P,this.update.emit(P)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){re(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(P){Et.then(()=>{this.control.setValue(P,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(P){const G=P.isDisabled.currentValue,we=0!==G&&(0,l.D6c)(G);Et.then(()=>{we&&!this.control.disabled?this.control.disable():!we&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(P){return this._parent?ir(P,this._parent):[P]}}return V.\u0275fac=function(P){return new(P||V)(l.Y36(sn,9),l.Y36(je,10),l.Y36(Rt,10),l.Y36(X,10),l.Y36(l.sBO,8))},V.\u0275dir=l.lG2({type:V,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[l._Bn([To]),l.qOj,l.TTD]}),V})(),$n=(()=>{class V{}return V.\u0275fac=function(P){return new(P||V)},V.\u0275dir=l.lG2({type:V,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),V})();const Is={provide:X,useExisting:(0,l.Gpc)(()=>rn),multi:!0};let rn=(()=>{class V extends he{writeValue(P){this.setProperty("value",P??"")}registerOnChange(P){this.onChange=G=>{P(""==G?null:parseFloat(G))}}}return V.\u0275fac=function(){let N;return function(G){return(N||(N=l.n5z(V)))(G||V)}}(),V.\u0275dir=l.lG2({type:V,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(P,G){1&P&&l.NdJ("input",function(ct){return G.onChange(ct.target.value)})("blur",function(){return G.onTouched()})},features:[l._Bn([Is]),l.qOj]}),V})();const Ao={provide:X,useExisting:(0,l.Gpc)(()=>ts),multi:!0};let tl=(()=>{class V{}return V.\u0275fac=function(P){return new(P||V)},V.\u0275mod=l.oAB({type:V}),V.\u0275inj=l.cJS({}),V})(),Aa=(()=>{class V{constructor(){this._accessors=[]}add(P,G){this._accessors.push([P,G])}remove(P){for(let G=this._accessors.length-1;G>=0;--G)if(this._accessors[G][1]===P)return void this._accessors.splice(G,1)}select(P){this._accessors.forEach(G=>{this._isSameGroup(G,P)&&G[1]!==P&&G[1].fireUncheck(P.value)})}_isSameGroup(P,G){return!!P[0].control&&P[0]._parent===G._control._parent&&P[1].name===G.name}}return V.\u0275fac=function(P){return new(P||V)},V.\u0275prov=l.Yz7({token:V,factory:V.\u0275fac,providedIn:tl}),V})(),ts=(()=>{class V extends he{constructor(P,G,we,ct){super(P,G),this._registry=we,this._injector=ct,this.onChange=()=>{}}ngOnInit(){this._control=this._injector.get(gn),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(P){this._state=P===this.value,this.setProperty("checked",this._state)}registerOnChange(P){this._fn=P,this.onChange=()=>{P(this.value),this._registry.select(this)}}fireUncheck(P){this.writeValue(P)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return V.\u0275fac=function(P){return new(P||V)(l.Y36(l.Qsj),l.Y36(l.SBq),l.Y36(Aa),l.Y36(l.zs3))},V.\u0275dir=l.lG2({type:V,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(P,G){1&P&&l.NdJ("change",function(){return G.onChange()})("blur",function(){return G.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[l._Bn([Ao]),l.qOj]}),V})();const xs={provide:X,useExisting:(0,l.Gpc)(()=>qo),multi:!0};let qo=(()=>{class V extends he{writeValue(P){this.setProperty("value",parseFloat(P))}registerOnChange(P){this.onChange=G=>{P(""==G?null:parseFloat(G))}}}return V.\u0275fac=function(){let N;return function(G){return(N||(N=l.n5z(V)))(G||V)}}(),V.\u0275dir=l.lG2({type:V,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(P,G){1&P&&l.NdJ("change",function(ct){return G.onChange(ct.target.value)})("input",function(ct){return G.onChange(ct.target.value)})("blur",function(){return G.onTouched()})},features:[l._Bn([xs]),l.qOj]}),V})();const Io=new l.OlP("NgModelWithFormControlWarning"),Ia={provide:sn,useExisting:(0,l.Gpc)(()=>Os)};let Os=(()=>{class V extends sn{constructor(P,G){super(),this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new l.vpe,this._setValidators(P),this._setAsyncValidators(G)}ngOnChanges(P){this._checkFormPresent(),P.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Xe(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(P){const G=this.form.get(P.path);return re(G,P),G.updateValueAndValidity({emitEvent:!1}),this.directives.push(P),G}getControl(P){return this.form.get(P.path)}removeControl(P){te(P.control||null,P,!1),function Eo(V,N){const P=V.indexOf(N);P>-1&&V.splice(P,1)}(this.directives,P)}addFormGroup(P){this._setUpFormContainer(P)}removeFormGroup(P){this._cleanUpFormContainer(P)}getFormGroup(P){return this.form.get(P.path)}addFormArray(P){this._setUpFormContainer(P)}removeFormArray(P){this._cleanUpFormContainer(P)}getFormArray(P){return this.form.get(P.path)}updateModel(P,G){this.form.get(P.path).setValue(G)}onSubmit(P){return this.submitted=!0,cr(this.form,this.directives),this.ngSubmit.emit(P),"dialog"===P?.target?.method}onReset(){this.resetForm()}resetForm(P){this.form.reset(P),this.submitted=!1}_updateDomValue(){this.directives.forEach(P=>{const G=P.control,we=this.form.get(P.path);G!==we&&(te(G||null,P),(V=>V instanceof Xn)(we)&&(re(we,P),P.control=we))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(P){const G=this.form.get(P.path);wt(G,P),G.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(P){if(this.form){const G=this.form.get(P.path);G&&function Jr(V,N){return Xe(V,N)}(G,P)&&G.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){ke(this.form,this),this._oldForm&&Xe(this._oldForm,this)}_checkFormPresent(){}}return V.\u0275fac=function(P){return new(P||V)(l.Y36(je,10),l.Y36(Rt,10))},V.\u0275dir=l.lG2({type:V,selectors:[["","formGroup",""]],hostBindings:function(P,G){1&P&&l.NdJ("submit",function(ct){return G.onSubmit(ct)})("reset",function(){return G.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[l._Bn([Ia]),l.qOj,l.TTD]}),V})();const Jo={provide:sn,useExisting:(0,l.Gpc)(()=>ei)};let ei=(()=>{class V extends As{constructor(P,G,we){super(),this._parent=P,this._setValidators(G),this._setAsyncValidators(we)}_checkParentType(){Xs(this._parent)}}return V.\u0275fac=function(P){return new(P||V)(l.Y36(sn,13),l.Y36(je,10),l.Y36(Rt,10))},V.\u0275dir=l.lG2({type:V,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[l._Bn([Jo]),l.qOj]}),V})();const xa={provide:sn,useExisting:(0,l.Gpc)(()=>Ks)};let Ks=(()=>{class V extends sn{constructor(P,G,we){super(),this._parent=P,this._setValidators(G),this._setAsyncValidators(we)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return ir(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){Xs(this._parent)}}return V.\u0275fac=function(P){return new(P||V)(l.Y36(sn,13),l.Y36(je,10),l.Y36(Rt,10))},V.\u0275dir=l.lG2({type:V,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[l._Bn([xa]),l.qOj]}),V})();function Xs(V){return!(V instanceof ei||V instanceof Os||V instanceof Ks)}const $r={provide:gn,useExisting:(0,l.Gpc)(()=>Gr)};let Gr=(()=>{class V extends gn{constructor(P,G,we,ct,Qt){super(),this._ngModelWarningConfig=Qt,this._added=!1,this.update=new l.vpe,this._ngModelWarningSent=!1,this._parent=P,this._setValidators(G),this._setAsyncValidators(we),this.valueAccessor=pi(0,ct)}set isDisabled(P){}ngOnChanges(P){this._added||this._setUpControl(),Kn(P,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(P){this.viewModel=P,this.update.emit(P)}get path(){return ir(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return V._ngModelWarningSentOnce=!1,V.\u0275fac=function(P){return new(P||V)(l.Y36(sn,13),l.Y36(je,10),l.Y36(Rt,10),l.Y36(X,10),l.Y36(Io,8))},V.\u0275dir=l.lG2({type:V,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[l._Bn([$r]),l.qOj,l.TTD]}),V})();const gi={provide:X,useExisting:(0,l.Gpc)(()=>xi),multi:!0};function eo(V,N){return null==V?`${N}`:(N&&"object"==typeof N&&(N="Object"),`${V}: ${N}`.slice(0,50))}let xi=(()=>{class V extends he{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(P){this._compareWith=P}writeValue(P){this.value=P;const we=eo(this._getOptionId(P),P);this.setProperty("value",we)}registerOnChange(P){this.onChange=G=>{this.value=this._getOptionValue(G),P(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(P){for(const G of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(G),P))return G;return null}_getOptionValue(P){const G=function Lr(V){return V.split(":")[0]}(P);return this._optionMap.has(G)?this._optionMap.get(G):P}}return V.\u0275fac=function(){let N;return function(G){return(N||(N=l.n5z(V)))(G||V)}}(),V.\u0275dir=l.lG2({type:V,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(P,G){1&P&&l.NdJ("change",function(ct){return G.onChange(ct.target.value)})("blur",function(){return G.onTouched()})},inputs:{compareWith:"compareWith"},features:[l._Bn([gi]),l.qOj]}),V})(),Or=(()=>{class V{constructor(P,G,we){this._element=P,this._renderer=G,this._select=we,this._select&&(this.id=this._select._registerOption())}set ngValue(P){null!=this._select&&(this._select._optionMap.set(this.id,P),this._setElementValue(eo(this.id,P)),this._select.writeValue(this._select.value))}set value(P){this._setElementValue(P),this._select&&this._select.writeValue(this._select.value)}_setElementValue(P){this._renderer.setProperty(this._element.nativeElement,"value",P)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return V.\u0275fac=function(P){return new(P||V)(l.Y36(l.SBq),l.Y36(l.Qsj),l.Y36(xi,9))},V.\u0275dir=l.lG2({type:V,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),V})();const Fs={provide:X,useExisting:(0,l.Gpc)(()=>sr),multi:!0};function to(V,N){return null==V?`${N}`:("string"==typeof N&&(N=`'${N}'`),N&&"object"==typeof N&&(N="Object"),`${V}: ${N}`.slice(0,50))}let sr=(()=>{class V extends he{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(P){this._compareWith=P}writeValue(P){let G;if(this.value=P,Array.isArray(P)){const we=P.map(ct=>this._getOptionId(ct));G=(ct,Qt)=>{ct._setSelected(we.indexOf(Qt.toString())>-1)}}else G=(we,ct)=>{we._setSelected(!1)};this._optionMap.forEach(G)}registerOnChange(P){this.onChange=G=>{const we=[],ct=G.selectedOptions;if(void 0!==ct){const Qt=ct;for(let ls=0;ls{class V{constructor(P,G,we){this._element=P,this._renderer=G,this._select=we,this._select&&(this.id=this._select._registerOption(this))}set ngValue(P){null!=this._select&&(this._value=P,this._setElementValue(to(this.id,P)),this._select.writeValue(this._select.value))}set value(P){this._select?(this._value=P,this._setElementValue(to(this.id,P)),this._select.writeValue(this._select.value)):this._setElementValue(P)}_setElementValue(P){this._renderer.setProperty(this._element.nativeElement,"value",P)}_setSelected(P){this._renderer.setProperty(this._element.nativeElement,"selected",P)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return V.\u0275fac=function(P){return new(P||V)(l.Y36(l.SBq),l.Y36(l.Qsj),l.Y36(sr,9))},V.\u0275dir=l.lG2({type:V,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),V})();function ji(V){return"number"==typeof V?V:parseFloat(V)}let mi=(()=>{class V{constructor(){this._validator=Gt}ngOnChanges(P){if(this.inputName in P){const G=this.normalizeInput(P[this.inputName].currentValue);this._enabled=this.enabled(G),this._validator=this._enabled?this.createValidator(G):Gt,this._onChange&&this._onChange()}}validate(P){return this._validator(P)}registerOnValidatorChange(P){this._onChange=P}enabled(P){return null!=P}}return V.\u0275fac=function(P){return new(P||V)},V.\u0275dir=l.lG2({type:V,features:[l.TTD]}),V})();const is={provide:je,useExisting:(0,l.Gpc)(()=>An),multi:!0};let An=(()=>{class V extends mi{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=P=>ji(P),this.createValidator=P=>ft(P)}}return V.\u0275fac=function(){let N;return function(G){return(N||(N=l.n5z(V)))(G||V)}}(),V.\u0275dir=l.lG2({type:V,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(P,G){2&P&&l.uIk("max",G._enabled?G.max:null)},inputs:{max:"max"},features:[l._Bn([is]),l.qOj]}),V})();const Xo={provide:je,useExisting:(0,l.Gpc)(()=>ks),multi:!0};let ks=(()=>{class V extends mi{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=P=>ji(P),this.createValidator=P=>$e(P)}}return V.\u0275fac=function(){let N;return function(G){return(N||(N=l.n5z(V)))(G||V)}}(),V.\u0275dir=l.lG2({type:V,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(P,G){2&P&&l.uIk("min",G._enabled?G.min:null)},inputs:{min:"min"},features:[l._Bn([Xo]),l.qOj]}),V})(),or=(()=>{class V{}return V.\u0275fac=function(P){return new(P||V)},V.\u0275mod=l.oAB({type:V}),V.\u0275inj=l.cJS({imports:[tl]}),V})(),_i=(()=>{class V{}return V.\u0275fac=function(P){return new(P||V)},V.\u0275mod=l.oAB({type:V}),V.\u0275inj=l.cJS({imports:[or]}),V})(),$i=(()=>{class V{static withConfig(P){return{ngModule:V,providers:[{provide:Io,useValue:P.warnOnNgModelWithFormControl}]}}}return V.\u0275fac=function(P){return new(P||V)},V.\u0275mod=l.oAB({type:V}),V.\u0275inj=l.cJS({imports:[or]}),V})()},5998:(et,Ee,j)=>{j.d(Ee,{Dx:()=>Oe,b2:()=>Li,q6:()=>di,se:()=>st});var l=j(8692),M=j(4537);class ce extends l.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class pe extends ce{static makeCurrent(){(0,l.HT)(new pe)}onAndCancel(te,W,me){return te.addEventListener(W,me,!1),()=>{te.removeEventListener(W,me,!1)}}dispatchEvent(te,W){te.dispatchEvent(W)}remove(te){te.parentNode&&te.parentNode.removeChild(te)}createElement(te,W){return(W=W||this.getDefaultDocument()).createElement(te)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(te){return te.nodeType===Node.ELEMENT_NODE}isShadowRoot(te){return te instanceof DocumentFragment}getGlobalEventTarget(te,W){return"window"===W?window:"document"===W?te:"body"===W?te.body:null}getBaseHref(te){const W=function J(){return de=de||document.querySelector("base"),de?de.getAttribute("href"):null}();return null==W?null:function X(re){he=he||document.createElement("a"),he.setAttribute("href",re);const te=he.pathname;return"/"===te.charAt(0)?te:`/${te}`}(W)}resetBaseElement(){de=null}getUserAgent(){return window.navigator.userAgent}getCookie(te){return(0,l.Mx)(document.cookie,te)}}let he,de=null;const ae=new M.OlP("TRANSITION_ID"),ee=[{provide:M.ip1,useFactory:function q(re,te,W){return()=>{W.get(M.CZH).donePromise.then(()=>{const me=(0,l.q)(),ke=te.querySelectorAll(`style[ng-transition="${re}"]`);for(let Xe=0;Xe{class re{build(){return new XMLHttpRequest}}return re.\u0275fac=function(W){return new(W||re)},re.\u0275prov=M.Yz7({token:re,factory:re.\u0275fac}),re})();const xe=new M.OlP("EventManagerPlugins");let ge=(()=>{class re{constructor(W,me){this._zone=me,this._eventNameToPlugin=new Map,W.forEach(ke=>ke.manager=this),this._plugins=W.slice().reverse()}addEventListener(W,me,ke){return this._findPluginFor(me).addEventListener(W,me,ke)}addGlobalEventListener(W,me,ke){return this._findPluginFor(me).addGlobalEventListener(W,me,ke)}getZone(){return this._zone}_findPluginFor(W){const me=this._eventNameToPlugin.get(W);if(me)return me;const ke=this._plugins;for(let Xe=0;Xe{class re{constructor(){this._stylesSet=new Set}addStyles(W){const me=new Set;W.forEach(ke=>{this._stylesSet.has(ke)||(this._stylesSet.add(ke),me.add(ke))}),this.onStylesAdded(me)}onStylesAdded(W){}getAllStyles(){return Array.from(this._stylesSet)}}return re.\u0275fac=function(W){return new(W||re)},re.\u0275prov=M.Yz7({token:re,factory:re.\u0275fac}),re})(),je=(()=>{class re extends Ce{constructor(W){super(),this._doc=W,this._hostNodes=new Map,this._hostNodes.set(W.head,[])}_addStylesToHost(W,me,ke){W.forEach(Xe=>{const Lt=this._doc.createElement("style");Lt.textContent=Xe,ke.push(me.appendChild(Lt))})}addHost(W){const me=[];this._addStylesToHost(this._stylesSet,W,me),this._hostNodes.set(W,me)}removeHost(W){const me=this._hostNodes.get(W);me&&me.forEach(Rt),this._hostNodes.delete(W)}onStylesAdded(W){this._hostNodes.forEach((me,ke)=>{this._addStylesToHost(W,ke,me)})}ngOnDestroy(){this._hostNodes.forEach(W=>W.forEach(Rt))}}return re.\u0275fac=function(W){return new(W||re)(M.LFG(l.K0))},re.\u0275prov=M.Yz7({token:re,factory:re.\u0275fac}),re})();function Rt(re){(0,l.q)().remove(re)}const tn={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},tt=/%COMP%/g;function Wt(re,te,W){for(let me=0;me{if("__ngUnwrap__"===te)return re;!1===re(te)&&(te.preventDefault(),te.returnValue=!1)}}let st=(()=>{class re{constructor(W,me,ke){this.eventManager=W,this.sharedStylesHost=me,this.appId=ke,this.rendererByCompId=new Map,this.defaultRenderer=new Ar(W)}createRenderer(W,me){if(!W||!me)return this.defaultRenderer;switch(me.encapsulation){case M.ifc.Emulated:{let ke=this.rendererByCompId.get(me.id);return ke||(ke=new Ne(this.eventManager,this.sharedStylesHost,me,this.appId),this.rendererByCompId.set(me.id,ke)),ke.applyToHost(W),ke}case 1:case M.ifc.ShadowDom:return new Be(this.eventManager,this.sharedStylesHost,W,me);default:if(!this.rendererByCompId.has(me.id)){const ke=Wt(me.id,me.styles,[]);this.sharedStylesHost.addStyles(ke),this.rendererByCompId.set(me.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return re.\u0275fac=function(W){return new(W||re)(M.LFG(ge),M.LFG(je),M.LFG(M.AFp))},re.\u0275prov=M.Yz7({token:re,factory:re.\u0275fac}),re})();class Ar{constructor(te){this.eventManager=te,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(te,W){return W?document.createElementNS(tn[W]||W,te):document.createElement(te)}createComment(te){return document.createComment(te)}createText(te){return document.createTextNode(te)}appendChild(te,W){(Le(te)?te.content:te).appendChild(W)}insertBefore(te,W,me){te&&(Le(te)?te.content:te).insertBefore(W,me)}removeChild(te,W){te&&te.removeChild(W)}selectRootElement(te,W){let me="string"==typeof te?document.querySelector(te):te;if(!me)throw new Error(`The selector "${te}" did not match any elements`);return W||(me.textContent=""),me}parentNode(te){return te.parentNode}nextSibling(te){return te.nextSibling}setAttribute(te,W,me,ke){if(ke){W=ke+":"+W;const Xe=tn[ke];Xe?te.setAttributeNS(Xe,W,me):te.setAttribute(W,me)}else te.setAttribute(W,me)}removeAttribute(te,W,me){if(me){const ke=tn[me];ke?te.removeAttributeNS(ke,W):te.removeAttribute(`${me}:${W}`)}else te.removeAttribute(W)}addClass(te,W){te.classList.add(W)}removeClass(te,W){te.classList.remove(W)}setStyle(te,W,me,ke){ke&(M.JOm.DashCase|M.JOm.Important)?te.style.setProperty(W,me,ke&M.JOm.Important?"important":""):te.style[W]=me}removeStyle(te,W,me){me&M.JOm.DashCase?te.style.removeProperty(W):te.style[W]=""}setProperty(te,W,me){te[W]=me}setValue(te,W){te.nodeValue=W}listen(te,W,me){return"string"==typeof te?this.eventManager.addGlobalEventListener(te,W,yt(me)):this.eventManager.addEventListener(te,W,yt(me))}}function Le(re){return"TEMPLATE"===re.tagName&&void 0!==re.content}class Ne extends Ar{constructor(te,W,me,ke){super(te),this.component=me;const Xe=Wt(ke+"-"+me.id,me.styles,[]);W.addStyles(Xe),this.contentAttr=function $t(re){return"_ngcontent-%COMP%".replace(tt,re)}(ke+"-"+me.id),this.hostAttr=function it(re){return"_nghost-%COMP%".replace(tt,re)}(ke+"-"+me.id)}applyToHost(te){super.setAttribute(te,this.hostAttr,"")}createElement(te,W){const me=super.createElement(te,W);return super.setAttribute(me,this.contentAttr,""),me}}class Be extends Ar{constructor(te,W,me,ke){super(te),this.sharedStylesHost=W,this.hostEl=me,this.shadowRoot=me.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Xe=Wt(ke.id,ke.styles,[]);for(let Lt=0;Lt{class re extends be{constructor(W){super(W)}supports(W){return!0}addEventListener(W,me,ke){return W.addEventListener(me,ke,!1),()=>this.removeEventListener(W,me,ke)}removeEventListener(W,me,ke){return W.removeEventListener(me,ke)}}return re.\u0275fac=function(W){return new(W||re)(M.LFG(l.K0))},re.\u0275prov=M.Yz7({token:re,factory:re.\u0275fac}),re})();const mt=["alt","control","meta","shift"],Tt={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},zt={alt:re=>re.altKey,control:re=>re.ctrlKey,meta:re=>re.metaKey,shift:re=>re.shiftKey};let Ct=(()=>{class re extends be{constructor(W){super(W)}supports(W){return null!=re.parseEventName(W)}addEventListener(W,me,ke){const Xe=re.parseEventName(me),Lt=re.eventCallback(Xe.fullKey,ke,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,l.q)().onAndCancel(W,Xe.domEventName,Lt))}static parseEventName(W){const me=W.toLowerCase().split("."),ke=me.shift();if(0===me.length||"keydown"!==ke&&"keyup"!==ke)return null;const Xe=re._normalizeKey(me.pop());let Lt="",Vt=me.indexOf("code");if(Vt>-1&&(me.splice(Vt,1),Lt="code."),mt.forEach(Ur=>{const wt=me.indexOf(Ur);wt>-1&&(me.splice(wt,1),Lt+=Ur+".")}),Lt+=Xe,0!=me.length||0===Xe.length)return null;const xn={};return xn.domEventName=ke,xn.fullKey=Lt,xn}static matchEventFullKeyCode(W,me){let ke=Tt[W.key]||W.key,Xe="";return me.indexOf("code.")>-1&&(ke=W.code,Xe="code."),!(null==ke||!ke)&&(ke=ke.toLowerCase()," "===ke?ke="space":"."===ke&&(ke="dot"),mt.forEach(Lt=>{Lt!==ke&&(0,zt[Lt])(W)&&(Xe+=Lt+".")}),Xe+=ke,Xe===me)}static eventCallback(W,me,ke){return Xe=>{re.matchEventFullKeyCode(Xe,W)&&ke.runGuarded(()=>me(Xe))}}static _normalizeKey(W){return"esc"===W?"escape":W}}return re.\u0275fac=function(W){return new(W||re)(M.LFG(l.K0))},re.\u0275prov=M.Yz7({token:re,factory:re.\u0275fac}),re})();const di=(0,M.eFA)(M._c5,"browser",[{provide:M.Lbi,useValue:l.bD},{provide:M.g9A,useValue:function jn(){pe.makeCurrent()},multi:!0},{provide:l.K0,useFactory:function gn(){return(0,M.RDi)(document),document},deps:[]}]),Ti=new M.OlP(""),ze=[{provide:M.rWj,useClass:class se{addToWindow(te){M.dqk.getAngularTestability=(me,ke=!0)=>{const Xe=te.findTestabilityInTree(me,ke);if(null==Xe)throw new Error("Could not find testability for element.");return Xe},M.dqk.getAllAngularTestabilities=()=>te.getAllTestabilities(),M.dqk.getAllAngularRootElements=()=>te.getAllRootElements(),M.dqk.frameworkStabilizers||(M.dqk.frameworkStabilizers=[]),M.dqk.frameworkStabilizers.push(me=>{const ke=M.dqk.getAllAngularTestabilities();let Xe=ke.length,Lt=!1;const Vt=function(xn){Lt=Lt||xn,Xe--,0==Xe&&me(Lt)};ke.forEach(function(xn){xn.whenStable(Vt)})})}findTestabilityInTree(te,W,me){return null==W?null:te.getTestability(W)??(me?(0,l.q)().isShadowRoot(W)?this.findTestabilityInTree(te,W.host,!0):this.findTestabilityInTree(te,W.parentElement,!0):null)}},deps:[]},{provide:M.lri,useClass:M.dDg,deps:[M.R0b,M.eoX,M.rWj]},{provide:M.dDg,useClass:M.dDg,deps:[M.R0b,M.eoX,M.rWj]}],lr=[{provide:M.zSh,useValue:"root"},{provide:M.qLn,useFactory:function sn(){return new M.qLn},deps:[]},{provide:xe,useClass:Ze,multi:!0,deps:[l.K0,M.R0b,M.Lbi]},{provide:xe,useClass:Ct,multi:!0,deps:[l.K0]},{provide:st,useClass:st,deps:[ge,je,M.AFp]},{provide:M.FYo,useExisting:st},{provide:Ce,useExisting:je},{provide:je,useClass:je,deps:[l.K0]},{provide:ge,useClass:ge,deps:[xe,M.R0b]},{provide:l.JF,useClass:ye,deps:[]},[]];let Li=(()=>{class re{constructor(W){}static withServerTransition(W){return{ngModule:re,providers:[{provide:M.AFp,useValue:W.appId},{provide:ae,useExisting:M.AFp},ee]}}}return re.\u0275fac=function(W){return new(W||re)(M.LFG(Ti,12))},re.\u0275mod=M.oAB({type:re}),re.\u0275inj=M.cJS({providers:[...lr,...ze],imports:[l.ez,M.hGG]}),re})(),Oe=(()=>{class re{constructor(W){this._doc=W}getTitle(){return this._doc.title}setTitle(W){this._doc.title=W||""}}return re.\u0275fac=function(W){return new(W||re)(M.LFG(l.K0))},re.\u0275prov=M.Yz7({token:re,factory:function(W){let me=null;return me=W?new W:function En(){return new Oe((0,M.LFG)(l.K0))}(),me},providedIn:"root"}),re})();typeof window<"u"&&window},7223:(et,Ee,j)=>{j.d(Ee,{gz:()=>Or,m2:()=>rn,OD:()=>Is,wm:()=>zd,F0:()=>tr,Od:()=>vs,yS:()=>Er,Bz:()=>$d,lC:()=>kr});var l=j(4537),M=j(6666),ce=j(5917),pe=j(6215),de=j(3410),J=j(4591),he=j(6481),X=j(882),ae=j(9193);function q(A){return new X.y(T=>{let D;try{D=A()}catch(L){return void T.error(L)}return(D?(0,M.D)(D):(0,ae.c)()).subscribe(T)})}var ee=j(4022),se=j(205),ye=j(2441),xe=j(9765),ge=j(8692),be=j(8002),Ce=j(3190),je=j(5257),Rt=j(9761),tn=j(5435),tt=j(9773),$e=j(8049),ft=j(4612),Ht=j(6239),rr=j(5345);function $t(A){return function(D){const F=new it(A),L=D.lift(F);return F.caught=L}}class it{constructor(T){this.selector=T}call(T,D){return D.subscribe(new Wt(T,this.selector,this.caught))}}class Wt extends rr.Ds{constructor(T,D,F){super(T),this.selector=D,this.caught=F}error(T){if(!this.isStopped){let D;try{D=this.selector(T,this.caught)}catch(z){return void super.error(z)}this._unsubscribeAndRecycle();const F=new rr.IY(this);this.add(F);const L=(0,rr.ft)(D,F);L!==F&&this.add(L)}}}var yt=j(7393);function Gt(A,T){let D=!1;return arguments.length>=2&&(D=!0),function(L){return L.lift(new st(A,T,D))}}class st{constructor(T,D,F=!1){this.accumulator=T,this.seed=D,this.hasSeed=F}call(T,D){return D.subscribe(new Ar(T,this.accumulator,this.seed,this.hasSeed))}}class Ar extends yt.L{constructor(T,D,F,L){super(T),this.accumulator=D,this._seed=F,this.hasSeed=L,this.index=0}get seed(){return this._seed}set seed(T){this.hasSeed=!0,this._seed=T}_next(T){if(this.hasSeed)return this._tryNext(T);this.seed=T,this.destination.next(T)}_tryNext(T){const D=this.index++;let F;try{F=this.accumulator(this.seed,T,D)}catch(L){this.destination.error(L)}this.seed=F,this.destination.next(F)}}var _e=j(7108);function Me(A){return function(D){return 0===A?(0,ae.c)():D.lift(new Le(A))}}class Le{constructor(T){if(this.total=T,this.total<0)throw new _e.W}call(T,D){return D.subscribe(new Ne(T,this.total))}}class Ne extends yt.L{constructor(T,D){super(T),this.total=D,this.ring=new Array,this.count=0}_next(T){const D=this.ring,F=this.total,L=this.count++;D.length0){const F=this.count>=this.total?this.total:this.count,L=this.ring;for(let z=0;z=2;return F=>F.pipe(A?(0,tn.h)((L,z)=>A(L,z,F)):mt.y,Me(1),D?(0,Ze.d)(T):(0,Be.T)(()=>new de.K))}class Ct{constructor(T,D){this.predicate=T,this.inclusive=D}call(T,D){return D.subscribe(new Ft(T,this.predicate,this.inclusive))}}class Ft extends yt.L{constructor(T,D,F){super(T),this.predicate=D,this.inclusive=F,this.index=0}_next(T){const D=this.destination;let F;try{F=this.predicate(T,this.index++)}catch(L){return void D.error(L)}this.nextOrComplete(T,F)}nextOrComplete(T,D){const F=this.destination;Boolean(D)?F.next(T):(this.inclusive&&F.next(T),F.complete())}}class cn{constructor(T){this.value=T}call(T,D){return D.subscribe(new qn(T,this.value))}}class qn extends yt.L{constructor(T,D){super(T),this.value=D}_next(T){this.destination.next(this.value)}}var Ir=j(3464);function jn(A){return T=>T.lift(new sn(A))}class sn{constructor(T){this.callback=T}call(T,D){return D.subscribe(new gn(T,this.callback))}}class gn extends yt.L{constructor(T,D){super(T),this.add(new Ir.w(D))}}var zr=j(1307),di=j(3282),Ti=j(5998);const ze="primary",lr=Symbol("RouteTitle");class Li{constructor(T){this.params=T||{}}has(T){return Object.prototype.hasOwnProperty.call(this.params,T)}get(T){if(this.has(T)){const D=this.params[T];return Array.isArray(D)?D[0]:D}return null}getAll(T){if(this.has(T)){const D=this.params[T];return Array.isArray(D)?D:[D]}return[]}get keys(){return Object.keys(this.params)}}function wn(A){return new Li(A)}function Vi(A,T,D){const F=D.path.split("/");if(F.length>A.length||"full"===D.pathMatch&&(T.hasChildren()||F.lengthF[z]===L)}return A===T}function oe(A){return Array.prototype.concat.apply([],A)}function ne(A){return A.length>0?A[A.length-1]:null}function Te(A,T){for(const D in A)A.hasOwnProperty(D)&&T(A[D],D)}function lt(A){return(0,l.CqO)(A)?A:(0,l.QGY)(A)?(0,M.D)(Promise.resolve(A)):(0,ce.of)(A)}const qe={exact:function It(A,T,D){if(!pr(A.segments,T.segments)||!Nn(A.segments,T.segments,D)||A.numberOfChildren!==T.numberOfChildren)return!1;for(const F in T.children)if(!A.children[F]||!It(A.children[F],T.children[F],D))return!1;return!0},subset:Yt},un={exact:function yr(A,T){return En(A,T)},subset:function xt(A,T){return Object.keys(T).length<=Object.keys(A).length&&Object.keys(T).every(D=>Oe(A[D],T[D]))},ignored:()=>!0};function Xt(A,T,D){return qe[D.paths](A.root,T.root,D.matrixParams)&&un[D.queryParams](A.queryParams,T.queryParams)&&!("exact"===D.fragment&&A.fragment!==T.fragment)}function Yt(A,T,D){return nr(A,T,T.segments,D)}function nr(A,T,D,F){if(A.segments.length>D.length){const L=A.segments.slice(0,D.length);return!(!pr(L,D)||T.hasChildren()||!Nn(L,D,F))}if(A.segments.length===D.length){if(!pr(A.segments,D)||!Nn(A.segments,D,F))return!1;for(const L in T.children)if(!A.children[L]||!Yt(A.children[L],T.children[L],F))return!1;return!0}{const L=D.slice(0,A.segments.length),z=D.slice(A.segments.length);return!!(pr(A.segments,L)&&Nn(A.segments,L,F)&&A.children[ze])&&nr(A.children[ze],T,z,F)}}function Nn(A,T,D){return T.every((F,L)=>un[D](A[L].parameters,F.parameters))}class pn{constructor(T,D,F){this.root=T,this.queryParams=D,this.fragment=F}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=wn(this.queryParams)),this._queryParamMap}toString(){return en.serialize(this)}}class dt{constructor(T,D){this.segments=T,this.children=D,this.parent=null,Te(D,(F,L)=>F.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Tn(this)}}class Rn{constructor(T,D){this.path=T,this.parameters=D}get parameterMap(){return this._parameterMap||(this._parameterMap=wn(this.parameters)),this._parameterMap}toString(){return me(this)}}function pr(A,T){return A.length===T.length&&A.every((D,F)=>D.path===T[F].path)}let Ai=(()=>{class A{}return A.\u0275fac=function(D){return new(D||A)},A.\u0275prov=l.Yz7({token:A,factory:function(){return new Bi},providedIn:"root"}),A})();class Bi{parse(T){const D=new Ii(T);return new pn(D.parseRootSegment(),D.parseQueryParams(),D.parseFragment())}serialize(T){const D=`/${zn(T.root,!0)}`,F=function Xe(A){const T=Object.keys(A).map(D=>{const F=A[D];return Array.isArray(F)?F.map(L=>`${Jn(D)}=${Jn(L)}`).join("&"):`${Jn(D)}=${Jn(F)}`}).filter(D=>!!D);return T.length?`?${T.join("&")}`:""}(T.queryParams);return`${D}${F}${"string"==typeof T.fragment?`#${function ir(A){return encodeURI(A)}(T.fragment)}`:""}`}}const en=new Bi;function Tn(A){return A.segments.map(T=>me(T)).join("/")}function zn(A,T){if(!A.hasChildren())return Tn(A);if(T){const D=A.children[ze]?zn(A.children[ze],!1):"",F=[];return Te(A.children,(L,z)=>{z!==ze&&F.push(`${z}:${zn(L,!1)}`)}),F.length>0?`${D}(${F.join("//")})`:D}{const D=function Ts(A,T){let D=[];return Te(A.children,(F,L)=>{L===ze&&(D=D.concat(T(F,L)))}),Te(A.children,(F,L)=>{L!==ze&&(D=D.concat(T(F,L)))}),D}(A,(F,L)=>L===ze?[zn(A.children[ze],!1)]:[`${L}:${zn(F,!1)}`]);return 1===Object.keys(A.children).length&&null!=A.children[ze]?`${Tn(A)}/${D[0]}`:`${Tn(A)}/(${D.join("//")})`}}function hi(A){return encodeURIComponent(A).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Jn(A){return hi(A).replace(/%3B/gi,";")}function re(A){return hi(A).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function te(A){return decodeURIComponent(A)}function W(A){return te(A.replace(/\+/g,"%20"))}function me(A){return`${re(A.path)}${function ke(A){return Object.keys(A).map(T=>`;${re(T)}=${re(A[T])}`).join("")}(A.parameters)}`}const Lt=/^[^\/()?;=#]+/;function Vt(A){const T=A.match(Lt);return T?T[0]:""}const xn=/^[^=?&#]+/,wt=/^[^&#]+/;class Ii{constructor(T){this.url=T,this.remaining=T}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new dt([],{}):new dt([],this.parseChildren())}parseQueryParams(){const T={};if(this.consumeOptional("?"))do{this.parseQueryParam(T)}while(this.consumeOptional("&"));return T}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const T=[];for(this.peekStartsWith("(")||T.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),T.push(this.parseSegment());let D={};this.peekStartsWith("/(")&&(this.capture("/"),D=this.parseParens(!0));let F={};return this.peekStartsWith("(")&&(F=this.parseParens(!1)),(T.length>0||Object.keys(D).length>0)&&(F[ze]=new dt(T,D)),F}parseSegment(){const T=Vt(this.remaining);if(""===T&&this.peekStartsWith(";"))throw new l.vHH(4009,!1);return this.capture(T),new Rn(te(T),this.parseMatrixParams())}parseMatrixParams(){const T={};for(;this.consumeOptional(";");)this.parseParam(T);return T}parseParam(T){const D=Vt(this.remaining);if(!D)return;this.capture(D);let F="";if(this.consumeOptional("=")){const L=Vt(this.remaining);L&&(F=L,this.capture(F))}T[te(D)]=te(F)}parseQueryParam(T){const D=function Ur(A){const T=A.match(xn);return T?T[0]:""}(this.remaining);if(!D)return;this.capture(D);let F="";if(this.consumeOptional("=")){const Q=function Jr(A){const T=A.match(wt);return T?T[0]:""}(this.remaining);Q&&(F=Q,this.capture(F))}const L=W(D),z=W(F);if(T.hasOwnProperty(L)){let Q=T[L];Array.isArray(Q)||(Q=[Q],T[L]=Q),Q.push(z)}else T[L]=z}parseParens(T){const D={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const F=Vt(this.remaining),L=this.remaining[F.length];if("/"!==L&&")"!==L&&";"!==L)throw new l.vHH(4010,!1);let z;F.indexOf(":")>-1?(z=F.slice(0,F.indexOf(":")),this.capture(z),this.capture(":")):T&&(z=ze);const Q=this.parseChildren();D[z]=1===Object.keys(Q).length?Q[ze]:new dt([],Q),this.consumeOptional("//")}return D}peekStartsWith(T){return this.remaining.startsWith(T)}consumeOptional(T){return!!this.peekStartsWith(T)&&(this.remaining=this.remaining.substring(T.length),!0)}capture(T){if(!this.consumeOptional(T))throw new l.vHH(4011,!1)}}function fi(A){return A.segments.length>0?new dt([],{[ze]:A}):A}function Un(A){const T={};for(const F of Object.keys(A.children)){const z=Un(A.children[F]);(z.segments.length>0||z.hasChildren())&&(T[F]=z)}return function Ln(A){if(1===A.numberOfChildren&&A.children[ze]){const T=A.children[ze];return new dt(A.segments.concat(T.segments),T.children)}return A}(new dt(A.segments,T))}function Kn(A){return A instanceof pn}function dn(A,T,D,F,L){if(0===D.length)return gr(T.root,T.root,T.root,F,L);const z=function Xn(A){if("string"==typeof A[0]&&1===A.length&&"/"===A[0])return new ur(!0,0,A);let T=0,D=!1;const F=A.reduce((L,z,Q)=>{if("object"==typeof z&&null!=z){if(z.outlets){const ie={};return Te(z.outlets,(Ae,Je)=>{ie[Je]="string"==typeof Ae?Ae.split("/"):Ae}),[...L,{outlets:ie}]}if(z.segmentPath)return[...L,z.segmentPath]}return"string"!=typeof z?[...L,z]:0===Q?(z.split("/").forEach((ie,Ae)=>{0==Ae&&"."===ie||(0==Ae&&""===ie?D=!0:".."===ie?T++:""!=ie&&L.push(ie))}),L):[...L,z]},[]);return new ur(D,T,F)}(D);return z.toRoot()?gr(T.root,T.root,new dt([],{}),F,L):function Q(Ae){const Je=function As(A,T,D,F){if(A.isAbsolute)return new br(T.root,!0,0);if(-1===F)return new br(D,D===T.root,0);return function Vn(A,T,D){let F=A,L=T,z=D;for(;z>L;){if(z-=L,F=F.parent,!F)throw new l.vHH(4005,!1);L=F.segments.length}return new br(F,!1,L-z)}(D,F+(xr(A.commands[0])?0:1),A.numberOfDoubleDots)}(z,T,A.snapshot?._urlSegment,Ae),Ut=Je.processChildren?on(Je.segmentGroup,Je.index,z.commands):Xr(Je.segmentGroup,Je.index,z.commands);return gr(T.root,Je.segmentGroup,Ut,F,L)}(A.snapshot?._lastPathIndex)}function xr(A){return"object"==typeof A&&null!=A&&!A.outlets&&!A.segmentPath}function Rr(A){return"object"==typeof A&&null!=A&&A.outlets}function gr(A,T,D,F,L){let Q,z={};F&&Te(F,(Ae,Je)=>{z[Je]=Array.isArray(Ae)?Ae.map(Ut=>`${Ut}`):`${Ae}`}),Q=A===T?D:mr(A,T,D);const ie=fi(Un(Q));return new pn(ie,z,L)}function mr(A,T,D){const F={};return Te(A.children,(L,z)=>{F[z]=L===T?D:mr(L,T,D)}),new dt(A.segments,F)}class ur{constructor(T,D,F){if(this.isAbsolute=T,this.numberOfDoubleDots=D,this.commands=F,T&&F.length>0&&xr(F[0]))throw new l.vHH(4003,!1);const L=F.find(Rr);if(L&&L!==ne(F))throw new l.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class br{constructor(T,D,F){this.segmentGroup=T,this.processChildren=D,this.index=F}}function Xr(A,T,D){if(A||(A=new dt([],{})),0===A.segments.length&&A.hasChildren())return on(A,T,D);const F=function Js(A,T,D){let F=0,L=T;const z={match:!1,pathIndex:0,commandIndex:0};for(;L=D.length)return z;const Q=A.segments[L],ie=D[F];if(Rr(ie))break;const Ae=`${ie}`,Je=F0&&void 0===Ae)break;if(Ae&&Je&&"object"==typeof Je&&void 0===Je.outlets){if(!es(Ae,Je,Q))return z;F+=2}else{if(!es(Ae,{},Q))return z;F++}L++}return{match:!0,pathIndex:L,commandIndex:F}}(A,T,D),L=D.slice(F.commandIndex);if(F.match&&F.pathIndex{"string"==typeof z&&(z=[z]),null!==z&&(L[Q]=Xr(A.children[Q],T,z))}),Te(A.children,(z,Q)=>{void 0===F[Q]&&(L[Q]=z)}),new dt(A.segments,L)}}function Sr(A,T,D){const F=A.segments.slice(0,T);let L=0;for(;L{"string"==typeof D&&(D=[D]),null!==D&&(T[F]=Sr(new dt([],{}),0,D))}),T}function Et(A){const T={};return Te(A,(D,F)=>T[F]=`${D}`),T}function es(A,T,D){return A==D.path&&En(T,D.parameters)}class $n{constructor(T,D){this.id=T,this.url=D}}class Is extends $n{constructor(T,D,F="imperative",L=null){super(T,D),this.type=0,this.navigationTrigger=F,this.restoredState=L}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class rn extends $n{constructor(T,D,F){super(T,D),this.urlAfterRedirects=F,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Ao extends $n{constructor(T,D,F,L){super(T,D),this.reason=F,this.code=L,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Mr extends $n{constructor(T,D,F,L){super(T,D),this.error=F,this.target=L,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class tl extends $n{constructor(T,D,F,L){super(T,D),this.urlAfterRedirects=F,this.state=L,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Aa extends $n{constructor(T,D,F,L){super(T,D),this.urlAfterRedirects=F,this.state=L,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ts extends $n{constructor(T,D,F,L,z){super(T,D),this.urlAfterRedirects=F,this.state=L,this.shouldActivate=z,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class xs extends $n{constructor(T,D,F,L){super(T,D),this.urlAfterRedirects=F,this.state=L,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class qo extends $n{constructor(T,D,F,L){super(T,D),this.urlAfterRedirects=F,this.state=L,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Io{constructor(T){this.route=T,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class xo{constructor(T){this.route=T,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Ms{constructor(T){this.snapshot=T,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ia{constructor(T){this.snapshot=T,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Os{constructor(T){this.snapshot=T,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Jo{constructor(T){this.snapshot=T,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ei{constructor(T,D,F){this.routerEvent=T,this.position=D,this.anchor=F,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Ks{constructor(T){this._root=T}get root(){return this._root.value}parent(T){const D=this.pathFromRoot(T);return D.length>1?D[D.length-2]:null}children(T){const D=Xs(T,this._root);return D?D.children.map(F=>F.value):[]}firstChild(T){const D=Xs(T,this._root);return D&&D.children.length>0?D.children[0].value:null}siblings(T){const D=$r(T,this._root);return D.length<2?[]:D[D.length-2].children.map(L=>L.value).filter(L=>L!==T)}pathFromRoot(T){return $r(T,this._root).map(D=>D.value)}}function Xs(A,T){if(A===T.value)return T;for(const D of T.children){const F=Xs(A,D);if(F)return F}return null}function $r(A,T){if(A===T.value)return[T];for(const D of T.children){const F=$r(A,D);if(F.length)return F.unshift(T),F}return[]}class Gr{constructor(T,D){this.value=T,this.children=D}toString(){return`TreeNode(${this.value})`}}function gi(A){const T={};return A&&A.children.forEach(D=>T[D.value.outlet]=D),T}class eo extends Ks{constructor(T,D){super(T),this.snapshot=D,sr(this,T)}toString(){return this.snapshot.toString()}}function Lr(A,T){const D=function xi(A,T){const Q=new Hi([],{},{},"",{},ze,T,null,A.root,-1,{});return new Ko("",new Gr(Q,[]))}(A,T),F=new pe.X([new Rn("",{})]),L=new pe.X({}),z=new pe.X({}),Q=new pe.X({}),ie=new pe.X(""),Ae=new Or(F,L,Q,ie,z,ze,T,D.root);return Ae.snapshot=D.root,new eo(new Gr(Ae,[]),D)}class Or{constructor(T,D,F,L,z,Q,ie,Ae){this.url=T,this.params=D,this.queryParams=F,this.fragment=L,this.data=z,this.outlet=Q,this.component=ie,this.title=this.data?.pipe((0,be.U)(Je=>Je[lr]))??(0,ce.of)(void 0),this._futureSnapshot=Ae}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,be.U)(T=>wn(T)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,be.U)(T=>wn(T)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Fs(A,T="emptyOnly"){const D=A.pathFromRoot;let F=0;if("always"!==T)for(F=D.length-1;F>=1;){const L=D[F],z=D[F-1];if(L.routeConfig&&""===L.routeConfig.path)F--;else{if(z.component)break;F--}}return function to(A){return A.reduce((T,D)=>({params:{...T.params,...D.params},data:{...T.data,...D.data},resolve:{...D.data,...T.resolve,...D.routeConfig?.data,...D._resolvedData}}),{params:{},data:{},resolve:{}})}(D.slice(F))}class Hi{constructor(T,D,F,L,z,Q,ie,Ae,Je,Ut,at,bn){this.url=T,this.params=D,this.queryParams=F,this.fragment=L,this.data=z,this.outlet=Q,this.component=ie,this.title=this.data?.[lr],this.routeConfig=Ae,this._urlSegment=Je,this._lastPathIndex=Ut,this._correctedLastPathIndex=bn??Ut,this._resolve=at}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=wn(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=wn(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(F=>F.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Ko extends Ks{constructor(T,D){super(D),this.url=T,sr(this,D)}toString(){return ns(this._root)}}function sr(A,T){T.value._routerState=A,T.children.forEach(D=>sr(A,D))}function ns(A){const T=A.children.length>0?` { ${A.children.map(ns).join(", ")} } `:"";return`${A.value}${T}`}function rs(A){if(A.snapshot){const T=A.snapshot,D=A._futureSnapshot;A.snapshot=D,En(T.queryParams,D.queryParams)||A.queryParams.next(D.queryParams),T.fragment!==D.fragment&&A.fragment.next(D.fragment),En(T.params,D.params)||A.params.next(D.params),function Xi(A,T){if(A.length!==T.length)return!1;for(let D=0;DEn(D.parameters,T[F].parameters))}(A.url,T.url);return D&&!(!A.parent!=!T.parent)&&(!A.parent||ji(A.parent,T.parent))}function is(A,T,D){if(D&&A.shouldReuseRoute(T.value,D.value.snapshot)){const F=D.value;F._futureSnapshot=T.value;const L=function An(A,T,D){return T.children.map(F=>{for(const L of D.children)if(A.shouldReuseRoute(F.value,L.value.snapshot))return is(A,F,L);return is(A,F)})}(A,T,D);return new Gr(F,L)}{if(A.shouldAttach(T.value)){const z=A.retrieve(T.value);if(null!==z){const Q=z.route;return Q.value._futureSnapshot=T.value,Q.children=T.children.map(ie=>is(A,ie)),Q}}const F=function Xo(A){return new Or(new pe.X(A.url),new pe.X(A.params),new pe.X(A.queryParams),new pe.X(A.fragment),new pe.X(A.data),A.outlet,A.component,A)}(T.value),L=T.children.map(z=>is(A,z));return new Gr(F,L)}}const ks="ngNavigationCancelingError";function zi(A,T){const{redirectTo:D,navigationBehaviorOptions:F}=Kn(T)?{redirectTo:T,navigationBehaviorOptions:void 0}:T,L=Fr(!1,0,T);return L.url=D,L.navigationBehaviorOptions=F,L}function Fr(A,T,D){const F=new Error("NavigationCancelingError: "+(A||""));return F[ks]=!0,F.cancellationCode=T,D&&(F.url=D),F}function Ui(A){return no(A)&&Kn(A.url)}function no(A){return A&&A[ks]}class ss{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new mn,this.attachRef=null}}let mn=(()=>{class A{constructor(){this.contexts=new Map}onChildOutletCreated(D,F){const L=this.getOrCreateContext(D);L.outlet=F,this.contexts.set(D,L)}onChildOutletDestroyed(D){const F=this.getContext(D);F&&(F.outlet=null,F.attachRef=null)}onOutletDeactivated(){const D=this.contexts;return this.contexts=new Map,D}onOutletReAttached(D){this.contexts=D}getOrCreateContext(D){let F=this.getContext(D);return F||(F=new ss,this.contexts.set(D,F)),F}getContext(D){return this.contexts.get(D)||null}}return A.\u0275fac=function(D){return new(D||A)},A.\u0275prov=l.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"}),A})();const os=!1;let kr=(()=>{class A{constructor(D,F,L,z,Q){this.parentContexts=D,this.location=F,this.changeDetector=z,this.environmentInjector=Q,this.activated=null,this._activatedRoute=null,this.activateEvents=new l.vpe,this.deactivateEvents=new l.vpe,this.attachEvents=new l.vpe,this.detachEvents=new l.vpe,this.name=L||ze,D.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const D=this.parentContexts.getContext(this.name);D&&D.route&&(D.attachRef?this.attach(D.attachRef,D.route):this.activateWith(D.route,D.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new l.vHH(4012,os);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new l.vHH(4012,os);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new l.vHH(4012,os);this.location.detach();const D=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(D.instance),D}attach(D,F){this.activated=D,this._activatedRoute=F,this.location.insert(D.hostView),this.attachEvents.emit(D.instance)}deactivate(){if(this.activated){const D=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(D)}}activateWith(D,F){if(this.isActivated)throw new l.vHH(4013,os);this._activatedRoute=D;const L=this.location,Q=D._futureSnapshot.component,ie=this.parentContexts.getOrCreateContext(this.name).children,Ae=new Ps(D,ie,L.injector);if(F&&function vi(A){return!!A.resolveComponentFactory}(F)){const Je=F.resolveComponentFactory(Q);this.activated=L.createComponent(Je,L.length,Ae)}else this.activated=L.createComponent(Q,{index:L.length,injector:Ae,environmentInjector:F??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return A.\u0275fac=function(D){return new(D||A)(l.Y36(mn),l.Y36(l.s_b),l.$8M("name"),l.Y36(l.sBO),l.Y36(l.lqb))},A.\u0275dir=l.lG2({type:A,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0}),A})();class Ps{constructor(T,D,F){this.route=T,this.childContexts=D,this.parent=F}get(T,D){return T===Or?this.route:T===mn?this.childContexts:this.parent.get(T,D)}}let Mi=(()=>{class A{}return A.\u0275fac=function(D){return new(D||A)},A.\u0275cmp=l.Xpm({type:A,selectors:[["ng-component"]],standalone:!0,features:[l.jDz],decls:1,vars:0,template:function(D,F){1&D&&l._UZ(0,"router-outlet")},dependencies:[kr],encapsulation:2}),A})();function as(A,T){return A.providers&&!A._injector&&(A._injector=(0,l.MMx)(A.providers,T,`Route: ${A.path}`)),A._injector??T}function ea(A){const T=A.children&&A.children.map(ea),D=T?{...A,children:T}:{...A};return!D.component&&!D.loadComponent&&(T||D.loadChildren)&&D.outlet&&D.outlet!==ze&&(D.component=Mi),D}function Fe(A){return A.outlet||ze}function Ue(A,T){const D=A.filter(F=>Fe(F)===T);return D.push(...A.filter(F=>Fe(F)!==T)),D}function Gn(A){if(!A)return null;if(A.routeConfig?._injector)return A.routeConfig._injector;for(let T=A.parent;T;T=T.parent){const D=T.routeConfig;if(D?._loadedInjector)return D._loadedInjector;if(D?._injector)return D._injector}return null}class Cn{constructor(T,D,F,L){this.routeReuseStrategy=T,this.futureState=D,this.currState=F,this.forwardEvent=L}activate(T){const D=this.futureState._root,F=this.currState?this.currState._root:null;this.deactivateChildRoutes(D,F,T),rs(this.futureState.root),this.activateChildRoutes(D,F,T)}deactivateChildRoutes(T,D,F){const L=gi(D);T.children.forEach(z=>{const Q=z.value.outlet;this.deactivateRoutes(z,L[Q],F),delete L[Q]}),Te(L,(z,Q)=>{this.deactivateRouteAndItsChildren(z,F)})}deactivateRoutes(T,D,F){const L=T.value,z=D?D.value:null;if(L===z)if(L.component){const Q=F.getContext(L.outlet);Q&&this.deactivateChildRoutes(T,D,Q.children)}else this.deactivateChildRoutes(T,D,F);else z&&this.deactivateRouteAndItsChildren(D,F)}deactivateRouteAndItsChildren(T,D){T.value.component&&this.routeReuseStrategy.shouldDetach(T.value.snapshot)?this.detachAndStoreRouteSubtree(T,D):this.deactivateRouteAndOutlet(T,D)}detachAndStoreRouteSubtree(T,D){const F=D.getContext(T.value.outlet),L=F&&T.value.component?F.children:D,z=gi(T);for(const Q of Object.keys(z))this.deactivateRouteAndItsChildren(z[Q],L);if(F&&F.outlet){const Q=F.outlet.detach(),ie=F.children.onOutletDeactivated();this.routeReuseStrategy.store(T.value.snapshot,{componentRef:Q,route:T,contexts:ie})}}deactivateRouteAndOutlet(T,D){const F=D.getContext(T.value.outlet),L=F&&T.value.component?F.children:D,z=gi(T);for(const Q of Object.keys(z))this.deactivateRouteAndItsChildren(z[Q],L);F&&F.outlet&&(F.outlet.deactivate(),F.children.onOutletDeactivated(),F.attachRef=null,F.resolver=null,F.route=null)}activateChildRoutes(T,D,F){const L=gi(D);T.children.forEach(z=>{this.activateRoutes(z,L[z.value.outlet],F),this.forwardEvent(new Jo(z.value.snapshot))}),T.children.length&&this.forwardEvent(new Ia(T.value.snapshot))}activateRoutes(T,D,F){const L=T.value,z=D?D.value:null;if(rs(L),L===z)if(L.component){const Q=F.getOrCreateContext(L.outlet);this.activateChildRoutes(T,D,Q.children)}else this.activateChildRoutes(T,D,F);else if(L.component){const Q=F.getOrCreateContext(L.outlet);if(this.routeReuseStrategy.shouldAttach(L.snapshot)){const ie=this.routeReuseStrategy.retrieve(L.snapshot);this.routeReuseStrategy.store(L.snapshot,null),Q.children.onOutletReAttached(ie.contexts),Q.attachRef=ie.componentRef,Q.route=ie.route.value,Q.outlet&&Q.outlet.attach(ie.componentRef,ie.route.value),rs(ie.route.value),this.activateChildRoutes(T,null,Q.children)}else{const ie=Gn(L.snapshot),Ae=ie?.get(l._Vd)??null;Q.attachRef=null,Q.route=L,Q.resolver=Ae,Q.injector=ie,Q.outlet&&Q.outlet.activateWith(L,Q.injector),this.activateChildRoutes(T,null,Q.children)}}else this.activateChildRoutes(T,null,F)}}class V{constructor(T){this.path=T,this.route=this.path[this.path.length-1]}}class N{constructor(T,D){this.component=T,this.route=D}}function P(A,T,D){const F=A._root;return ct(F,T?T._root:null,D,[F.value])}function we(A,T){const D=Symbol(),F=T.get(A,D);return F===D?"function"!=typeof A||(0,l.Z0I)(A)?T.get(A):A:F}function ct(A,T,D,F,L={canDeactivateChecks:[],canActivateChecks:[]}){const z=gi(T);return A.children.forEach(Q=>{(function Qt(A,T,D,F,L={canDeactivateChecks:[],canActivateChecks:[]}){const z=A.value,Q=T?T.value:null,ie=D?D.getContext(A.value.outlet):null;if(Q&&z.routeConfig===Q.routeConfig){const Ae=function ls(A,T,D){if("function"==typeof D)return D(A,T);switch(D){case"pathParamsChange":return!pr(A.url,T.url);case"pathParamsOrQueryParamsChange":return!pr(A.url,T.url)||!En(A.queryParams,T.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ji(A,T)||!En(A.queryParams,T.queryParams);default:return!ji(A,T)}}(Q,z,z.routeConfig.runGuardsAndResolvers);Ae?L.canActivateChecks.push(new V(F)):(z.data=Q.data,z._resolvedData=Q._resolvedData),ct(A,T,z.component?ie?ie.children:null:D,F,L),Ae&&ie&&ie.outlet&&ie.outlet.isActivated&&L.canDeactivateChecks.push(new N(ie.outlet.component,Q))}else Q&&Yr(T,ie,L),L.canActivateChecks.push(new V(F)),ct(A,null,z.component?ie?ie.children:null:D,F,L)})(Q,z[Q.value.outlet],D,F.concat([Q.value]),L),delete z[Q.value.outlet]}),Te(z,(Q,ie)=>Yr(Q,D.getContext(ie),L)),L}function Yr(A,T,D){const F=gi(A),L=A.value;Te(F,(z,Q)=>{Yr(z,L.component?T?T.children.getContext(Q):null:T,D)}),D.canDeactivateChecks.push(new N(L.component&&T&&T.outlet&&T.outlet.isActivated?T.outlet.component:null,L))}function Mn(A){return"function"==typeof A}function Ns(A){return A instanceof de.K||"EmptyError"===A?.name}const Ye=Symbol("INITIAL_VALUE");function ot(){return(0,Ce.w)(A=>(0,J.aj)(A.map(T=>T.pipe((0,je.q)(1),(0,Rt.O)(Ye)))).pipe((0,be.U)(T=>{for(const D of T)if(!0!==D){if(D===Ye)return Ye;if(!1===D||D instanceof pn)return D}return!0}),(0,tn.h)(T=>T!==Ye),(0,je.q)(1)))}function Tl(A){return(0,ee.z)((0,Ht.b)(T=>{if(Kn(T))throw zi(0,T)}),(0,be.U)(T=>!0===T))}const Dr={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ti(A,T,D,F,L){const z=vn(A,T,D);return z.matched?function Al(A,T,D,F){const L=T.canMatch;if(!L||0===L.length)return(0,ce.of)(!0);const z=L.map(Q=>{const ie=we(Q,A);return lt(function Oa(A){return A&&Mn(A.canMatch)}(ie)?ie.canMatch(T,D):A.runInContext(()=>ie(T,D)))});return(0,ce.of)(z).pipe(ot(),Tl())}(F=as(T,F),T,D).pipe((0,be.U)(Q=>!0===Q?z:{...Dr})):(0,ce.of)(z)}function vn(A,T,D){if(""===T.path)return"full"===T.pathMatch&&(A.hasChildren()||D.length>0)?{...Dr}:{matched:!0,consumedSegments:[],remainingSegments:D,parameters:{},positionalParamSegments:{}};const L=(T.matcher||Vi)(D,A,T);if(!L)return{...Dr};const z={};Te(L.posParams,(ie,Ae)=>{z[Ae]=ie.path});const Q=L.consumed.length>0?{...z,...L.consumed[L.consumed.length-1].parameters}:z;return{matched:!0,consumedSegments:L.consumed,remainingSegments:D.slice(L.consumed.length),parameters:Q,positionalParamSegments:L.posParams??{}}}function Po(A,T,D,F,L="corrected"){if(D.length>0&&function pc(A,T,D){return D.some(F=>ia(A,T,F)&&Fe(F)!==ze)}(A,D,F)){const Q=new dt(T,function Il(A,T,D,F){const L={};L[ze]=F,F._sourceSegment=A,F._segmentIndexShift=T.length;for(const z of D)if(""===z.path&&Fe(z)!==ze){const Q=new dt([],{});Q._sourceSegment=A,Q._segmentIndexShift=T.length,L[Fe(z)]=Q}return L}(A,T,F,new dt(D,A.children)));return Q._sourceSegment=A,Q._segmentIndexShift=T.length,{segmentGroup:Q,slicedSegments:[]}}if(0===D.length&&function gc(A,T,D){return D.some(F=>ia(A,T,F))}(A,D,F)){const Q=new dt(A.segments,function fc(A,T,D,F,L,z){const Q={};for(const ie of F)if(ia(A,D,ie)&&!L[Fe(ie)]){const Ae=new dt([],{});Ae._sourceSegment=A,Ae._segmentIndexShift="legacy"===z?A.segments.length:T.length,Q[Fe(ie)]=Ae}return{...L,...Q}}(A,T,D,F,A.children,L));return Q._sourceSegment=A,Q._segmentIndexShift=T.length,{segmentGroup:Q,slicedSegments:D}}const z=new dt(A.segments,A.children);return z._sourceSegment=A,z._segmentIndexShift=T.length,{segmentGroup:z,slicedSegments:D}}function ia(A,T,D){return(!(A.hasChildren()||T.length>0)||"full"!==D.pathMatch)&&""===D.path}function No(A,T,D,F){return!!(Fe(A)===F||F!==ze&&ia(T,D,A))&&("**"===A.path||vn(T,A,D).matched)}function io(A,T,D){return 0===T.length&&!A.children[D]}const hs=!1;class Rs{constructor(T){this.segmentGroup=T||null}}class so{constructor(T){this.urlTree=T}}function oo(A){return(0,se._)(new Rs(A))}function Yi(A){return(0,se._)(new so(A))}class sa{constructor(T,D,F,L,z){this.injector=T,this.configLoader=D,this.urlSerializer=F,this.urlTree=L,this.config=z,this.allowRedirects=!0}apply(){const T=Po(this.urlTree.root,[],[],this.config).segmentGroup,D=new dt(T.segments,T.children);return this.expandSegmentGroup(this.injector,this.config,D,ze).pipe((0,be.U)(z=>this.createUrlTree(Un(z),this.urlTree.queryParams,this.urlTree.fragment))).pipe($t(z=>{if(z instanceof so)return this.allowRedirects=!1,this.match(z.urlTree);throw z instanceof Rs?this.noMatchError(z):z}))}match(T){return this.expandSegmentGroup(this.injector,this.config,T.root,ze).pipe((0,be.U)(L=>this.createUrlTree(Un(L),T.queryParams,T.fragment))).pipe($t(L=>{throw L instanceof Rs?this.noMatchError(L):L}))}noMatchError(T){return new l.vHH(4002,hs)}createUrlTree(T,D,F){const L=fi(T);return new pn(L,D,F)}expandSegmentGroup(T,D,F,L){return 0===F.segments.length&&F.hasChildren()?this.expandChildren(T,D,F).pipe((0,be.U)(z=>new dt([],z))):this.expandSegment(T,F,D,F.segments,L,!0)}expandChildren(T,D,F){const L=[];for(const z of Object.keys(F.children))"primary"===z?L.unshift(z):L.push(z);return(0,M.D)(L).pipe((0,ft.b)(z=>{const Q=F.children[z],ie=Ue(D,z);return this.expandSegmentGroup(T,ie,Q,z).pipe((0,be.U)(Ae=>({segment:Ae,outlet:z})))}),Gt((z,Q)=>(z[Q.outlet]=Q.segment,z),{}),Tt())}expandSegment(T,D,F,L,z,Q){return(0,M.D)(F).pipe((0,ft.b)(ie=>this.expandSegmentAgainstRoute(T,D,F,ie,L,z,Q).pipe($t(Je=>{if(Je instanceof Rs)return(0,ce.of)(null);throw Je}))),(0,$e.P)(ie=>!!ie),$t((ie,Ae)=>{if(Ns(ie))return io(D,L,z)?(0,ce.of)(new dt([],{})):oo(D);throw ie}))}expandSegmentAgainstRoute(T,D,F,L,z,Q,ie){return No(L,D,z,Q)?void 0===L.redirectTo?this.matchSegmentAgainstRoute(T,D,L,z,Q):ie&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(T,D,F,L,z,Q):oo(D):oo(D)}expandSegmentAgainstRouteUsingRedirect(T,D,F,L,z,Q){return"**"===L.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(T,F,L,Q):this.expandRegularSegmentAgainstRouteUsingRedirect(T,D,F,L,z,Q)}expandWildCardWithParamsAgainstRouteUsingRedirect(T,D,F,L){const z=this.applyRedirectCommands([],F.redirectTo,{});return F.redirectTo.startsWith("/")?Yi(z):this.lineralizeSegments(F,z).pipe((0,tt.zg)(Q=>{const ie=new dt(Q,{});return this.expandSegment(T,ie,D,Q,L,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(T,D,F,L,z,Q){const{matched:ie,consumedSegments:Ae,remainingSegments:Je,positionalParamSegments:Ut}=vn(D,L,z);if(!ie)return oo(D);const at=this.applyRedirectCommands(Ae,L.redirectTo,Ut);return L.redirectTo.startsWith("/")?Yi(at):this.lineralizeSegments(L,at).pipe((0,tt.zg)(bn=>this.expandSegment(T,D,F,bn.concat(Je),Q,!1)))}matchSegmentAgainstRoute(T,D,F,L,z){return"**"===F.path?(T=as(F,T),F.loadChildren?(F._loadedRoutes?(0,ce.of)({routes:F._loadedRoutes,injector:F._loadedInjector}):this.configLoader.loadChildren(T,F)).pipe((0,be.U)(ie=>(F._loadedRoutes=ie.routes,F._loadedInjector=ie.injector,new dt(L,{})))):(0,ce.of)(new dt(L,{}))):ti(D,F,L,T).pipe((0,Ce.w)(({matched:Q,consumedSegments:ie,remainingSegments:Ae})=>Q?this.getChildConfig(T=F._injector??T,F,L).pipe((0,tt.zg)(Ut=>{const at=Ut.injector??T,bn=Ut.routes,{segmentGroup:si,slicedSegments:Qi}=Po(D,ie,Ae,bn),Fi=new dt(si.segments,si.children);if(0===Qi.length&&Fi.hasChildren())return this.expandChildren(at,bn,Fi).pipe((0,be.U)(Yd=>new dt(ie,Yd)));if(0===bn.length&&0===Qi.length)return(0,ce.of)(new dt(ie,{}));const oi=Fe(F)===z;return this.expandSegment(at,Fi,bn,Qi,oi?ze:z,!0).pipe((0,be.U)(Zn=>new dt(ie.concat(Zn.segments),Zn.children)))})):oo(D)))}getChildConfig(T,D,F){return D.children?(0,ce.of)({routes:D.children,injector:T}):D.loadChildren?void 0!==D._loadedRoutes?(0,ce.of)({routes:D._loadedRoutes,injector:D._loadedInjector}):function ra(A,T,D,F){const L=T.canLoad;if(void 0===L||0===L.length)return(0,ce.of)(!0);const z=L.map(Q=>{const ie=we(Q,A);return lt(function Fo(A){return A&&Mn(A.canLoad)}(ie)?ie.canLoad(T,D):A.runInContext(()=>ie(T,D)))});return(0,ce.of)(z).pipe(ot(),Tl())}(T,D,F).pipe((0,tt.zg)(L=>L?this.configLoader.loadChildren(T,D).pipe((0,Ht.b)(z=>{D._loadedRoutes=z.routes,D._loadedInjector=z.injector})):function vu(A){return(0,se._)(Fr(hs,3))}())):(0,ce.of)({routes:[],injector:T})}lineralizeSegments(T,D){let F=[],L=D.root;for(;;){if(F=F.concat(L.segments),0===L.numberOfChildren)return(0,ce.of)(F);if(L.numberOfChildren>1||!L.children[ze])return(0,se._)(new l.vHH(4e3,hs));L=L.children[ze]}}applyRedirectCommands(T,D,F){return this.applyRedirectCreateUrlTree(D,this.urlSerializer.parse(D),T,F)}applyRedirectCreateUrlTree(T,D,F,L){const z=this.createSegmentGroup(T,D.root,F,L);return new pn(z,this.createQueryParams(D.queryParams,this.urlTree.queryParams),D.fragment)}createQueryParams(T,D){const F={};return Te(T,(L,z)=>{if("string"==typeof L&&L.startsWith(":")){const ie=L.substring(1);F[z]=D[ie]}else F[z]=L}),F}createSegmentGroup(T,D,F,L){const z=this.createSegments(T,D.segments,F,L);let Q={};return Te(D.children,(ie,Ae)=>{Q[Ae]=this.createSegmentGroup(T,ie,F,L)}),new dt(z,Q)}createSegments(T,D,F,L){return D.map(z=>z.path.startsWith(":")?this.findPosParam(T,z,L):this.findOrReturn(z,F))}findPosParam(T,D,F){const L=F[D.path.substring(1)];if(!L)throw new l.vHH(4001,hs);return L}findOrReturn(T,D){let F=0;for(const L of D){if(L.path===T.path)return D.splice(F),L;F++}return T}}class O{}class y{constructor(T,D,F,L,z,Q,ie,Ae){this.injector=T,this.rootComponentType=D,this.config=F,this.urlTree=L,this.url=z,this.paramsInheritanceStrategy=Q,this.relativeLinkResolution=ie,this.urlSerializer=Ae}recognize(){const T=Po(this.urlTree.root,[],[],this.config.filter(D=>void 0===D.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,T,ze).pipe((0,be.U)(D=>{if(null===D)return null;const F=new Hi([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},ze,this.rootComponentType,null,this.urlTree.root,-1,{}),L=new Gr(F,D),z=new Ko(this.url,L);return this.inheritParamsAndData(z._root),z}))}inheritParamsAndData(T){const D=T.value,F=Fs(D,this.paramsInheritanceStrategy);D.params=Object.freeze(F.params),D.data=Object.freeze(F.data),T.children.forEach(L=>this.inheritParamsAndData(L))}processSegmentGroup(T,D,F,L){return 0===F.segments.length&&F.hasChildren()?this.processChildren(T,D,F):this.processSegment(T,D,F,F.segments,L)}processChildren(T,D,F){return(0,M.D)(Object.keys(F.children)).pipe((0,ft.b)(L=>{const z=F.children[L],Q=Ue(D,L);return this.processSegmentGroup(T,Q,z,L)}),Gt((L,z)=>L&&z?(L.push(...z),L):null),function zt(A,T=!1){return D=>D.lift(new Ct(A,T))}(L=>null!==L),(0,Ze.d)(null),Tt(),(0,be.U)(L=>{if(null===L)return null;const z=Y(L);return function E(A){A.sort((T,D)=>T.value.outlet===ze?-1:D.value.outlet===ze?1:T.value.outlet.localeCompare(D.value.outlet))}(z),z}))}processSegment(T,D,F,L,z){return(0,M.D)(D).pipe((0,ft.b)(Q=>this.processSegmentAgainstRoute(Q._injector??T,Q,F,L,z)),(0,$e.P)(Q=>!!Q),$t(Q=>{if(Ns(Q))return io(F,L,z)?(0,ce.of)([]):(0,ce.of)(null);throw Q}))}processSegmentAgainstRoute(T,D,F,L,z){if(D.redirectTo||!No(D,F,L,z))return(0,ce.of)(null);let Q;if("**"===D.path){const ie=L.length>0?ne(L).parameters:{},Ae=De(F)+L.length,Je=new Hi(L,ie,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,We(D),Fe(D),D.component??D._loadedComponent??null,D,fe(F),Ae,rt(D),Ae);Q=(0,ce.of)({snapshot:Je,consumedSegments:[],remainingSegments:[]})}else Q=ti(F,D,L,T).pipe((0,be.U)(({matched:ie,consumedSegments:Ae,remainingSegments:Je,parameters:Ut})=>{if(!ie)return null;const at=De(F)+Ae.length;return{snapshot:new Hi(Ae,Ut,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,We(D),Fe(D),D.component??D._loadedComponent??null,D,fe(F),at,rt(D),at),consumedSegments:Ae,remainingSegments:Je}}));return Q.pipe((0,Ce.w)(ie=>{if(null===ie)return(0,ce.of)(null);const{snapshot:Ae,consumedSegments:Je,remainingSegments:Ut}=ie;T=D._injector??T;const at=D._loadedInjector??T,bn=function R(A){return A.children?A.children:A.loadChildren?A._loadedRoutes:[]}(D),{segmentGroup:si,slicedSegments:Qi}=Po(F,Je,Ut,bn.filter(oi=>void 0===oi.redirectTo),this.relativeLinkResolution);if(0===Qi.length&&si.hasChildren())return this.processChildren(at,bn,si).pipe((0,be.U)(oi=>null===oi?null:[new Gr(Ae,oi)]));if(0===bn.length&&0===Qi.length)return(0,ce.of)([new Gr(Ae,[])]);const Fi=Fe(D)===z;return this.processSegment(at,bn,si,Qi,Fi?ze:z).pipe((0,be.U)(oi=>null===oi?null:[new Gr(Ae,oi)]))}))}}function H(A){const T=A.value.routeConfig;return T&&""===T.path&&void 0===T.redirectTo}function Y(A){const T=[],D=new Set;for(const F of A){if(!H(F)){T.push(F);continue}const L=T.find(z=>F.value.routeConfig===z.value.routeConfig);void 0!==L?(L.children.push(...F.children),D.add(L)):T.push(F)}for(const F of D){const L=Y(F.children);T.push(new Gr(F.value,L))}return T.filter(F=>!D.has(F))}function fe(A){let T=A;for(;T._sourceSegment;)T=T._sourceSegment;return T}function De(A){let T=A,D=T._segmentIndexShift??0;for(;T._sourceSegment;)T=T._sourceSegment,D+=T._segmentIndexShift??0;return D-1}function We(A){return A.data||{}}function rt(A){return A.resolve||{}}function Bn(A){return"string"==typeof A.title||null===A.title}function Yn(A){return(0,Ce.w)(T=>{const D=A(T);return D?(0,M.D)(D).pipe((0,be.U)(()=>T)):(0,ce.of)(T)})}let Ls=(()=>{class A{buildTitle(D){let F,L=D.root;for(;void 0!==L;)F=this.getResolvedTitleForRoute(L)??F,L=L.children.find(z=>z.outlet===ze);return F}getResolvedTitleForRoute(D){return D.data[lr]}}return A.\u0275fac=function(D){return new(D||A)},A.\u0275prov=l.Yz7({token:A,factory:function(){return(0,l.f3M)(ni)},providedIn:"root"}),A})(),ni=(()=>{class A extends Ls{constructor(D){super(),this.title=D}updateTitle(D){const F=this.buildTitle(D);void 0!==F&&this.title.setTitle(F)}}return A.\u0275fac=function(D){return new(D||A)(l.LFG(Ti.Dx))},A.\u0275prov=l.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"}),A})();class Vs{}class fs extends class Zi{shouldDetach(T){return!1}store(T,D){}shouldAttach(T){return!1}retrieve(T){return null}shouldReuseRoute(T,D){return T.routeConfig===D.routeConfig}}{}const ps=new l.OlP("",{providedIn:"root",factory:()=>({})}),hn=new l.OlP("ROUTES");let ms=(()=>{class A{constructor(D,F){this.injector=D,this.compiler=F,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(D){if(this.componentLoaders.get(D))return this.componentLoaders.get(D);if(D._loadedComponent)return(0,ce.of)(D._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(D);const F=lt(D.loadComponent()).pipe((0,Ht.b)(z=>{this.onLoadEndListener&&this.onLoadEndListener(D),D._loadedComponent=z}),jn(()=>{this.componentLoaders.delete(D)})),L=new ye.c(F,()=>new xe.xQ).pipe((0,zr.x)());return this.componentLoaders.set(D,L),L}loadChildren(D,F){if(this.childrenLoaders.get(F))return this.childrenLoaders.get(F);if(F._loadedRoutes)return(0,ce.of)({routes:F._loadedRoutes,injector:F._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(F);const z=this.loadModuleFactoryOrRoutes(F.loadChildren).pipe((0,be.U)(ie=>{this.onLoadEndListener&&this.onLoadEndListener(F);let Ae,Je,Ut=!1;Array.isArray(ie)?Je=ie:(Ae=ie.create(D).injector,Je=oe(Ae.get(hn,[],l.XFs.Self|l.XFs.Optional)));return{routes:Je.map(ea),injector:Ae}}),jn(()=>{this.childrenLoaders.delete(F)})),Q=new ye.c(z,()=>new xe.xQ).pipe((0,zr.x)());return this.childrenLoaders.set(F,Q),Q}loadModuleFactoryOrRoutes(D){return lt(D()).pipe((0,tt.zg)(F=>F instanceof l.YKP||Array.isArray(F)?(0,ce.of)(F):(0,M.D)(this.compiler.compileModuleAsync(F))))}}return A.\u0275fac=function(D){return new(D||A)(l.LFG(l.zs3),l.LFG(l.Sil))},A.\u0275prov=l.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"}),A})();class ut{}class bt{shouldProcessUrl(T){return!0}extract(T){return T}merge(T,D){return T}}function qt(A){throw A}function hr(A,T,D){return T.parse("/")}const Wr={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},wr={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function On(){const A=(0,l.f3M)(Ai),T=(0,l.f3M)(mn),D=(0,l.f3M)(ge.Ye),F=(0,l.f3M)(l.zs3),L=(0,l.f3M)(l.Sil),z=(0,l.f3M)(hn,{optional:!0})??[],Q=(0,l.f3M)(ps,{optional:!0})??{},ie=(0,l.f3M)(ni),Ae=(0,l.f3M)(Ls,{optional:!0}),Je=(0,l.f3M)(ut,{optional:!0}),Ut=(0,l.f3M)(Vs,{optional:!0}),at=new tr(null,A,T,D,F,L,oe(z));return Je&&(at.urlHandlingStrategy=Je),Ut&&(at.routeReuseStrategy=Ut),at.titleStrategy=Ae??ie,function Wi(A,T){A.errorHandler&&(T.errorHandler=A.errorHandler),A.malformedUriErrorHandler&&(T.malformedUriErrorHandler=A.malformedUriErrorHandler),A.onSameUrlNavigation&&(T.onSameUrlNavigation=A.onSameUrlNavigation),A.paramsInheritanceStrategy&&(T.paramsInheritanceStrategy=A.paramsInheritanceStrategy),A.relativeLinkResolution&&(T.relativeLinkResolution=A.relativeLinkResolution),A.urlUpdateStrategy&&(T.urlUpdateStrategy=A.urlUpdateStrategy),A.canceledNavigationResolution&&(T.canceledNavigationResolution=A.canceledNavigationResolution)}(Q,at),at}let tr=(()=>{class A{constructor(D,F,L,z,Q,ie,Ae){this.rootComponentType=D,this.urlSerializer=F,this.rootContexts=L,this.location=z,this.config=Ae,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new xe.xQ,this.errorHandler=qt,this.malformedUriErrorHandler=hr,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,ce.of)(void 0),this.urlHandlingStrategy=new bt,this.routeReuseStrategy=new fs,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=Q.get(ms),this.configLoader.onLoadEndListener=bn=>this.triggerEvent(new xo(bn)),this.configLoader.onLoadStartListener=bn=>this.triggerEvent(new Io(bn)),this.ngModule=Q.get(l.h0i),this.console=Q.get(l.c2e);const at=Q.get(l.R0b);this.isNgZoneEnabled=at instanceof l.R0b&&l.R0b.isInAngularZone(),this.resetConfig(Ae),this.currentUrlTree=function Kt(){return new pn(new dt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=Lr(this.currentUrlTree,this.rootComponentType),this.transitions=new pe.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(D){const F=this.events;return D.pipe((0,tn.h)(L=>0!==L.id),(0,be.U)(L=>({...L,extractedUrl:this.urlHandlingStrategy.extract(L.rawUrl)})),(0,Ce.w)(L=>{let z=!1,Q=!1;return(0,ce.of)(L).pipe((0,Ht.b)(ie=>{this.currentNavigation={id:ie.id,initialUrl:ie.rawUrl,extractedUrl:ie.extractedUrl,trigger:ie.source,extras:ie.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,Ce.w)(ie=>{const Ae=this.browserUrlTree.toString(),Je=!this.navigated||ie.extractedUrl.toString()!==Ae||Ae!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||Je)&&this.urlHandlingStrategy.shouldProcessUrl(ie.rawUrl))return Hn(ie.source)&&(this.browserUrlTree=ie.extractedUrl),(0,ce.of)(ie).pipe((0,Ce.w)(at=>{const bn=this.transitions.getValue();return F.next(new Is(at.id,this.serializeUrl(at.extractedUrl),at.source,at.restoredState)),bn!==this.transitions.getValue()?ae.E:Promise.resolve(at)}),function rl(A,T,D,F){return(0,Ce.w)(L=>function _u(A,T,D,F,L){return new sa(A,T,D,F,L).apply()}(A,T,D,L.extractedUrl,F).pipe((0,be.U)(z=>({...L,urlAfterRedirects:z}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,Ht.b)(at=>{this.currentNavigation={...this.currentNavigation,finalUrl:at.urlAfterRedirects},L.urlAfterRedirects=at.urlAfterRedirects}),function vt(A,T,D,F,L,z){return(0,tt.zg)(Q=>function _(A,T,D,F,L,z,Q="emptyOnly",ie="legacy"){return new y(A,T,D,F,L,Q,ie,z).recognize().pipe((0,Ce.w)(Ae=>null===Ae?function S(A){return new X.y(T=>T.error(A))}(new O):(0,ce.of)(Ae)))}(A,T,D,Q.urlAfterRedirects,F.serialize(Q.urlAfterRedirects),F,L,z).pipe((0,be.U)(ie=>({...Q,targetSnapshot:ie}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,Ht.b)(at=>{if(L.targetSnapshot=at.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!at.extras.skipLocationChange){const si=this.urlHandlingStrategy.merge(at.urlAfterRedirects,at.rawUrl);this.setBrowserUrl(si,at)}this.browserUrlTree=at.urlAfterRedirects}const bn=new tl(at.id,this.serializeUrl(at.extractedUrl),this.serializeUrl(at.urlAfterRedirects),at.targetSnapshot);F.next(bn)}));if(Je&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:bn,extractedUrl:si,source:Qi,restoredState:Fi,extras:oi}=ie,aa=new Is(bn,this.serializeUrl(si),Qi,Fi);F.next(aa);const Zn=Lr(si,this.rootComponentType).snapshot;return L={...ie,targetSnapshot:Zn,urlAfterRedirects:si,extras:{...oi,skipLocationChange:!1,replaceUrl:!1}},(0,ce.of)(L)}return this.rawUrlTree=ie.rawUrl,ie.resolve(null),ae.E}),(0,Ht.b)(ie=>{const Ae=new Aa(ie.id,this.serializeUrl(ie.extractedUrl),this.serializeUrl(ie.urlAfterRedirects),ie.targetSnapshot);this.triggerEvent(Ae)}),(0,be.U)(ie=>L={...ie,guards:P(ie.targetSnapshot,ie.currentSnapshot,this.rootContexts)}),function ds(A,T){return(0,tt.zg)(D=>{const{targetSnapshot:F,currentSnapshot:L,guards:{canActivateChecks:z,canDeactivateChecks:Q}}=D;return 0===Q.length&&0===z.length?(0,ce.of)({...D,guardsResult:!0}):function wl(A,T,D,F){return(0,M.D)(A).pipe((0,tt.zg)(L=>function na(A,T,D,F,L){const z=T&&T.routeConfig?T.routeConfig.canDeactivate:null;if(!z||0===z.length)return(0,ce.of)(!0);const Q=z.map(ie=>{const Ae=Gn(T)??L,Je=we(ie,Ae);return lt(function nl(A){return A&&Mn(A.canDeactivate)}(Je)?Je.canDeactivate(A,T,D,F):Ae.runInContext(()=>Je(A,T,D,F))).pipe((0,$e.P)())});return(0,ce.of)(Q).pipe(ot())}(L.component,L.route,D,T,F)),(0,$e.P)(L=>!0!==L,!0))}(Q,F,L,A).pipe((0,tt.zg)(ie=>ie&&function cs(A){return"boolean"==typeof A}(ie)?function ta(A,T,D,F){return(0,M.D)(T).pipe((0,ft.b)(L=>(0,he.z)(function Fa(A,T){return null!==A&&T&&T(new Ms(A)),(0,ce.of)(!0)}(L.route.parent,F),function ko(A,T){return null!==A&&T&&T(new Os(A)),(0,ce.of)(!0)}(L.route,F),function El(A,T,D){const F=T[T.length-1],z=T.slice(0,T.length-1).reverse().map(Q=>function G(A){const T=A.routeConfig?A.routeConfig.canActivateChild:null;return T&&0!==T.length?{node:A,guards:T}:null}(Q)).filter(Q=>null!==Q).map(Q=>q(()=>{const ie=Q.guards.map(Ae=>{const Je=Gn(Q.node)??D,Ut=we(Ae,Je);return lt(function yi(A){return A&&Mn(A.canActivateChild)}(Ut)?Ut.canActivateChild(F,A):Je.runInContext(()=>Ut(F,A))).pipe((0,$e.P)())});return(0,ce.of)(ie).pipe(ot())}));return(0,ce.of)(z).pipe(ot())}(A,L.path,D),function ka(A,T,D){const F=T.routeConfig?T.routeConfig.canActivate:null;if(!F||0===F.length)return(0,ce.of)(!0);const L=F.map(z=>q(()=>{const Q=Gn(T)??D,ie=we(z,Q);return lt(function Gi(A){return A&&Mn(A.canActivate)}(ie)?ie.canActivate(T,A):Q.runInContext(()=>ie(T,A))).pipe((0,$e.P)())}));return(0,ce.of)(L).pipe(ot())}(A,L.route,D))),(0,$e.P)(L=>!0!==L,!0))}(F,z,A,T):(0,ce.of)(ie)),(0,be.U)(ie=>({...D,guardsResult:ie})))})}(this.ngModule.injector,ie=>this.triggerEvent(ie)),(0,Ht.b)(ie=>{if(L.guardsResult=ie.guardsResult,Kn(ie.guardsResult))throw zi(0,ie.guardsResult);const Ae=new ts(ie.id,this.serializeUrl(ie.extractedUrl),this.serializeUrl(ie.urlAfterRedirects),ie.targetSnapshot,!!ie.guardsResult);this.triggerEvent(Ae)}),(0,tn.h)(ie=>!!ie.guardsResult||(this.restoreHistory(ie),this.cancelNavigationTransition(ie,"",3),!1)),Yn(ie=>{if(ie.guards.canActivateChecks.length)return(0,ce.of)(ie).pipe((0,Ht.b)(Ae=>{const Je=new xs(Ae.id,this.serializeUrl(Ae.extractedUrl),this.serializeUrl(Ae.urlAfterRedirects),Ae.targetSnapshot);this.triggerEvent(Je)}),(0,Ce.w)(Ae=>{let Je=!1;return(0,ce.of)(Ae).pipe(function pt(A,T){return(0,tt.zg)(D=>{const{targetSnapshot:F,guards:{canActivateChecks:L}}=D;if(!L.length)return(0,ce.of)(D);let z=0;return(0,M.D)(L).pipe((0,ft.b)(Q=>function _t(A,T,D,F){const L=A.routeConfig,z=A._resolve;return void 0!==L?.title&&!Bn(L)&&(z[lr]=L.title),function nn(A,T,D,F){const L=function jt(A){return[...Object.keys(A),...Object.getOwnPropertySymbols(A)]}(A);if(0===L.length)return(0,ce.of)({});const z={};return(0,M.D)(L).pipe((0,tt.zg)(Q=>function er(A,T,D,F){const L=Gn(T)??F,z=we(A,L);return lt(z.resolve?z.resolve(T,D):L.runInContext(()=>z(T,D)))}(A[Q],T,D,F).pipe((0,$e.P)(),(0,Ht.b)(ie=>{z[Q]=ie}))),Me(1),function fn(A){return T=>T.lift(new cn(A))}(z),$t(Q=>Ns(Q)?ae.E:(0,se._)(Q)))}(z,A,T,F).pipe((0,be.U)(Q=>(A._resolvedData=Q,A.data=Fs(A,D).resolve,L&&Bn(L)&&(A.data[lr]=L.title),null)))}(Q.route,F,A,T)),(0,Ht.b)(()=>z++),Me(1),(0,tt.zg)(Q=>z===L.length?(0,ce.of)(D):ae.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,Ht.b)({next:()=>Je=!0,complete:()=>{Je||(this.restoreHistory(Ae),this.cancelNavigationTransition(Ae,"",2))}}))}),(0,Ht.b)(Ae=>{const Je=new qo(Ae.id,this.serializeUrl(Ae.extractedUrl),this.serializeUrl(Ae.urlAfterRedirects),Ae.targetSnapshot);this.triggerEvent(Je)}))}),Yn(ie=>{const Ae=Je=>{const Ut=[];Je.routeConfig?.loadComponent&&!Je.routeConfig._loadedComponent&&Ut.push(this.configLoader.loadComponent(Je.routeConfig).pipe((0,Ht.b)(at=>{Je.component=at}),(0,be.U)(()=>{})));for(const at of Je.children)Ut.push(...Ae(at));return Ut};return(0,J.aj)(Ae(ie.targetSnapshot.root)).pipe((0,Ze.d)(),(0,je.q)(1))}),Yn(()=>this.afterPreactivation()),(0,be.U)(ie=>{const Ae=function mi(A,T,D){const F=is(A,T._root,D?D._root:void 0);return new eo(F,T)}(this.routeReuseStrategy,ie.targetSnapshot,ie.currentRouterState);return L={...ie,targetRouterState:Ae}}),(0,Ht.b)(ie=>{this.currentUrlTree=ie.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(ie.urlAfterRedirects,ie.rawUrl),this.routerState=ie.targetRouterState,"deferred"===this.urlUpdateStrategy&&(ie.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,ie),this.browserUrlTree=ie.urlAfterRedirects)}),((A,T,D)=>(0,be.U)(F=>(new Cn(T,F.targetRouterState,F.currentRouterState,D).activate(A),F)))(this.rootContexts,this.routeReuseStrategy,ie=>this.triggerEvent(ie)),(0,Ht.b)({next(){z=!0},complete(){z=!0}}),jn(()=>{z||Q||this.cancelNavigationTransition(L,"",1),this.currentNavigation?.id===L.id&&(this.currentNavigation=null)}),$t(ie=>{if(Q=!0,no(ie)){Ui(ie)||(this.navigated=!0,this.restoreHistory(L,!0));const Ae=new Ao(L.id,this.serializeUrl(L.extractedUrl),ie.message,ie.cancellationCode);if(F.next(Ae),Ui(ie)){const Je=this.urlHandlingStrategy.merge(ie.url,this.rawUrlTree),Ut={skipLocationChange:L.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Hn(L.source)};this.scheduleNavigation(Je,"imperative",null,Ut,{resolve:L.resolve,reject:L.reject,promise:L.promise})}else L.resolve(!1)}else{this.restoreHistory(L,!0);const Ae=new Mr(L.id,this.serializeUrl(L.extractedUrl),ie,L.targetSnapshot??void 0);F.next(Ae);try{L.resolve(this.errorHandler(ie))}catch(Je){L.reject(Je)}}return ae.E}))}))}resetRootComponentType(D){this.rootComponentType=D,this.routerState.root.component=this.rootComponentType}setTransition(D){this.transitions.next({...this.transitions.value,...D})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(D=>{const F="popstate"===D.type?"popstate":"hashchange";"popstate"===F&&setTimeout(()=>{const L={replaceUrl:!0},z=D.state?.navigationId?D.state:null;if(z){const ie={...z};delete ie.navigationId,delete ie.\u0275routerPageId,0!==Object.keys(ie).length&&(L.state=ie)}const Q=this.parseUrl(D.url);this.scheduleNavigation(Q,F,z,L)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(D){this.events.next(D)}resetConfig(D){this.config=D.map(ea),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(D,F={}){const{relativeTo:L,queryParams:z,fragment:Q,queryParamsHandling:ie,preserveFragment:Ae}=F,Je=L||this.routerState.root,Ut=Ae?this.currentUrlTree.fragment:Q;let at=null;switch(ie){case"merge":at={...this.currentUrlTree.queryParams,...z};break;case"preserve":at=this.currentUrlTree.queryParams;break;default:at=z||null}return null!==at&&(at=this.removeEmptyProps(at)),dn(Je,this.currentUrlTree,D,at,Ut??null)}navigateByUrl(D,F={skipLocationChange:!1}){const L=Kn(D)?D:this.parseUrl(D),z=this.urlHandlingStrategy.merge(L,this.rawUrlTree);return this.scheduleNavigation(z,"imperative",null,F)}navigate(D,F={skipLocationChange:!1}){return function Lo(A){for(let T=0;T{const z=D[L];return null!=z&&(F[L]=z),F},{})}processNavigations(){this.navigations.subscribe(D=>{this.navigated=!0,this.lastSuccessfulId=D.id,this.currentPageId=D.targetPageId,this.events.next(new rn(D.id,this.serializeUrl(D.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),D.resolve(!0)},D=>{this.console.warn(`Unhandled Navigation Error: ${D}`)})}scheduleNavigation(D,F,L,z,Q){if(this.disposed)return Promise.resolve(!1);let ie,Ae,Je;Q?(ie=Q.resolve,Ae=Q.reject,Je=Q.promise):Je=new Promise((bn,si)=>{ie=bn,Ae=si});const Ut=++this.navigationId;let at;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(L=this.location.getState()),at=L&&L.\u0275routerPageId?L.\u0275routerPageId:z.replaceUrl||z.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):at=0,this.setTransition({id:Ut,targetPageId:at,source:F,restoredState:L,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:D,extras:z,resolve:ie,reject:Ae,promise:Je,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Je.catch(bn=>Promise.reject(bn))}setBrowserUrl(D,F){const L=this.urlSerializer.serialize(D),z={...F.extras.state,...this.generateNgRouterState(F.id,F.targetPageId)};this.location.isCurrentPathEqualTo(L)||F.extras.replaceUrl?this.location.replaceState(L,"",z):this.location.go(L,"",z)}restoreHistory(D,F=!1){if("computed"===this.canceledNavigationResolution){const L=this.currentPageId-D.targetPageId;"popstate"!==D.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===L?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===L&&(this.resetState(D),this.browserUrlTree=D.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(L)}else"replace"===this.canceledNavigationResolution&&(F&&this.resetState(D),this.resetUrlToCurrentUrlTree())}resetState(D){this.routerState=D.currentRouterState,this.currentUrlTree=D.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,D.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(D,F,L){const z=new Ao(D.id,this.serializeUrl(D.extractedUrl),F,L);this.triggerEvent(z),D.resolve(!1)}generateNgRouterState(D,F){return"computed"===this.canceledNavigationResolution?{navigationId:D,\u0275routerPageId:F}:{navigationId:D}}}return A.\u0275fac=function(D){l.$Z()},A.\u0275prov=l.Yz7({token:A,factory:function(){return On()},providedIn:"root"}),A})();function Hn(A){return"imperative"!==A}let Qr=(()=>{class A{constructor(D,F,L,z,Q){this.router=D,this.route=F,this.tabIndexAttribute=L,this.renderer=z,this.el=Q,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.commands=null,this.onChanges=new xe.xQ,this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(D){this._preserveFragment=(0,l.D6c)(D)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(D){this._skipLocationChange=(0,l.D6c)(D)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(D){this._replaceUrl=(0,l.D6c)(D)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(D){if(null!=this.tabIndexAttribute)return;const F=this.renderer,L=this.el.nativeElement;null!==D?F.setAttribute(L,"tabindex",D):F.removeAttribute(L,"tabindex")}ngOnChanges(D){this.onChanges.next(this)}set routerLink(D){null!=D?(this.commands=Array.isArray(D)?D:[D],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){return null===this.urlTree||this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return A.\u0275fac=function(D){return new(D||A)(l.Y36(tr),l.Y36(Or),l.$8M("tabindex"),l.Y36(l.Qsj),l.Y36(l.SBq))},A.\u0275dir=l.lG2({type:A,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(D,F){1&D&&l.NdJ("click",function(){return F.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[l.TTD]}),A})(),Er=(()=>{class A{constructor(D,F,L){this.router=D,this.route=F,this.locationStrategy=L,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.commands=null,this.href=null,this.onChanges=new xe.xQ,this.subscription=D.events.subscribe(z=>{z instanceof rn&&this.updateTargetUrlAndHref()})}set preserveFragment(D){this._preserveFragment=(0,l.D6c)(D)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(D){this._skipLocationChange=(0,l.D6c)(D)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(D){this._replaceUrl=(0,l.D6c)(D)}get replaceUrl(){return this._replaceUrl}set routerLink(D){this.commands=null!=D?Array.isArray(D)?D:[D]:null}ngOnChanges(D){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(D,F,L,z,Q){return!!(0!==D||F||L||z||Q||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!1)}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return A.\u0275fac=function(D){return new(D||A)(l.Y36(tr),l.Y36(Or),l.Y36(ge.S$))},A.\u0275dir=l.lG2({type:A,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(D,F){1&D&&l.NdJ("click",function(z){return F.onClick(z.button,z.ctrlKey,z.shiftKey,z.altKey,z.metaKey)}),2&D&&l.uIk("target",F.target)("href",F.href,l.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[l.TTD]}),A})(),vs=(()=>{class A{constructor(D,F,L,z,Q,ie){this.router=D,this.element=F,this.renderer=L,this.cdr=z,this.link=Q,this.linkWithHref=ie,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new l.vpe,this.routerEventsSubscription=D.events.subscribe(Ae=>{Ae instanceof rn&&this.update()})}ngAfterContentInit(){(0,ce.of)(this.links.changes,this.linksWithHrefs.changes,(0,ce.of)(null)).pipe((0,di.J)()).subscribe(D=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const D=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(F=>!!F).map(F=>F.onChanges);this.linkInputChangesSubscription=(0,M.D)(D).pipe((0,di.J)()).subscribe(F=>{this.isActive!==this.isLinkActive(this.router)(F)&&this.update()})}set routerLinkActive(D){const F=Array.isArray(D)?D:D.split(" ");this.classes=F.filter(L=>!!L)}ngOnChanges(D){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(()=>{const D=this.hasActiveLinks();this.isActive!==D&&(this.isActive=D,this.cdr.markForCheck(),this.classes.forEach(F=>{D?this.renderer.addClass(this.element.nativeElement,F):this.renderer.removeClass(this.element.nativeElement,F)}),D&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(D))})}isLinkActive(D){const F=function Oi(A){return!!A.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return L=>!!L.urlTree&&D.isActive(L.urlTree,F)}hasActiveLinks(){const D=this.isLinkActive(this.router);return this.link&&D(this.link)||this.linkWithHref&&D(this.linkWithHref)||this.links.some(D)||this.linksWithHrefs.some(D)}}return A.\u0275fac=function(D){return new(D||A)(l.Y36(tr),l.Y36(l.SBq),l.Y36(l.Qsj),l.Y36(l.sBO),l.Y36(Qr,8),l.Y36(Er,8))},A.\u0275dir=l.lG2({type:A,selectors:[["","routerLinkActive",""]],contentQueries:function(D,F,L){if(1&D&&(l.Suo(L,Qr,5),l.Suo(L,Er,5)),2&D){let z;l.iGM(z=l.CRH())&&(F.links=z),l.iGM(z=l.CRH())&&(F.linksWithHrefs=z)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[l.TTD]}),A})();class yu{}let zd=(()=>{class A{preload(D,F){return F().pipe($t(()=>(0,ce.of)(null)))}}return A.\u0275fac=function(D){return new(D||A)},A.\u0275prov=l.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"}),A})(),Cu=(()=>{class A{constructor(D,F,L,z,Q){this.router=D,this.injector=L,this.preloadingStrategy=z,this.loader=Q}setUpPreloading(){this.subscription=this.router.events.pipe((0,tn.h)(D=>D instanceof rn),(0,ft.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(D,F){const L=[];for(const z of F){z.providers&&!z._injector&&(z._injector=(0,l.MMx)(z.providers,D,`Route: ${z.path}`));const Q=z._injector??D,ie=z._loadedInjector??Q;z.loadChildren&&!z._loadedRoutes&&void 0===z.canLoad||z.loadComponent&&!z._loadedComponent?L.push(this.preloadConfig(Q,z)):(z.children||z._loadedRoutes)&&L.push(this.processRoutes(ie,z.children??z._loadedRoutes))}return(0,M.D)(L).pipe((0,di.J)())}preloadConfig(D,F){return this.preloadingStrategy.preload(F,()=>{let L;L=F.loadChildren&&void 0===F.canLoad?this.loader.loadChildren(D,F):(0,ce.of)(null);const z=L.pipe((0,tt.zg)(Q=>null===Q?(0,ce.of)(void 0):(F._loadedRoutes=Q.routes,F._loadedInjector=Q.injector,this.processRoutes(Q.injector??D,Q.routes))));if(F.loadComponent&&!F._loadedComponent){const Q=this.loader.loadComponent(F);return(0,M.D)([z,Q]).pipe((0,di.J)())}return z})}}return A.\u0275fac=function(D){return new(D||A)(l.LFG(tr),l.LFG(l.Sil),l.LFG(l.lqb),l.LFG(yu),l.LFG(ms))},A.\u0275prov=l.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"}),A})();const mc=new l.OlP("");let vc=(()=>{class A{constructor(D,F,L={}){this.router=D,this.viewportScroller=F,this.options=L,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},L.scrollPositionRestoration=L.scrollPositionRestoration||"disabled",L.anchorScrolling=L.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(D=>{D instanceof Is?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=D.navigationTrigger,this.restoredId=D.restoredState?D.restoredState.navigationId:0):D instanceof rn&&(this.lastId=D.id,this.scheduleScrollEvent(D,this.router.parseUrl(D.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(D=>{D instanceof ei&&(D.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(D.position):D.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(D.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(D,F){this.router.triggerEvent(new ei(D,"popstate"===this.lastSource?this.store[this.restoredId]:null,F))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return A.\u0275fac=function(D){l.$Z()},A.\u0275prov=l.Yz7({token:A,factory:A.\u0275fac}),A})();function Bs(A,T){return{\u0275kind:A,\u0275providers:T}}function Bo(A){return[{provide:hn,multi:!0,useValue:A}]}function ao(){const A=(0,l.f3M)(l.zs3);return T=>{const D=A.get(l.z2F);if(T!==D.components[0])return;const F=A.get(tr),L=A.get(ar);1===A.get(Ra)&&F.initialNavigation(),A.get(ri,null,l.XFs.Optional)?.setUpPreloading(),A.get(mc,null,l.XFs.Optional)?.init(),F.resetRootComponentType(D.componentTypes[0]),L.closed||(L.next(),L.unsubscribe())}}const ar=new l.OlP("",{factory:()=>new xe.xQ}),Ra=new l.OlP("",{providedIn:"root",factory:()=>1});const ri=new l.OlP("");function Hs(A){return Bs(0,[{provide:ri,useExisting:Cu},{provide:yu,useExisting:A}])}const Ol=new l.OlP("ROUTER_FORROOT_GUARD"),oa=[ge.Ye,{provide:Ai,useClass:Bi},{provide:tr,useFactory:On},mn,{provide:Or,useFactory:function xl(A){return A.routerState.root},deps:[tr]},ms];function Su(){return new l.PXZ("Router",tr)}let $d=(()=>{class A{constructor(D){}static forRoot(D,F){return{ngModule:A,providers:[oa,[],Bo(D),{provide:Ol,useFactory:Cc,deps:[[tr,new l.FiY,new l.tp0]]},{provide:ps,useValue:F||{}},F?.useHash?{provide:ge.S$,useClass:ge.Do}:{provide:ge.S$,useClass:ge.b0},{provide:mc,useFactory:()=>{const A=(0,l.f3M)(tr),T=(0,l.f3M)(ge.EM),D=(0,l.f3M)(ps);return D.scrollOffset&&T.setOffset(D.scrollOffset),new vc(A,T,D)}},F?.preloadingStrategy?Hs(F.preloadingStrategy).\u0275providers:[],{provide:l.PXZ,multi:!0,useFactory:Su},F?.initialNavigation?Cs(F):[],[{provide:Tr,useFactory:ao},{provide:l.tb,multi:!0,useExisting:Tr}]]}}static forChild(D){return{ngModule:A,providers:[Bo(D)]}}}return A.\u0275fac=function(D){return new(D||A)(l.LFG(Ol,8))},A.\u0275mod=l.oAB({type:A}),A.\u0275inj=l.cJS({imports:[Mi]}),A})();function Cc(A){return"guarded"}function Cs(A){return["disabled"===A.initialNavigation?Bs(3,[{provide:l.ip1,multi:!0,useFactory:()=>{const T=(0,l.f3M)(tr);return()=>{T.setUpLocationChangeListener()}}},{provide:Ra,useValue:2}]).\u0275providers:[],"enabledBlocking"===A.initialNavigation?Bs(2,[{provide:Ra,useValue:0},{provide:l.ip1,multi:!0,deps:[l.zs3],useFactory:T=>{const D=T.get(ge.V_,Promise.resolve());let F=!1;return()=>D.then(()=>new Promise(z=>{const Q=T.get(tr),ie=T.get(ar);(function L(z){T.get(tr).events.pipe((0,tn.h)(ie=>ie instanceof rn||ie instanceof Ao||ie instanceof Mr),(0,be.U)(ie=>ie instanceof rn||ie instanceof Ao&&(0===ie.code||1===ie.code)&&null),(0,tn.h)(ie=>null!==ie),(0,je.q)(1)).subscribe(()=>{z()})})(()=>{z(!0),F=!0}),Q.afterPreactivation=()=>(z(!0),F||ie.closed?(0,ce.of)(void 0):ie),Q.initialNavigation()}))}}]).\u0275providers:[]]}const Tr=new l.OlP("")},6799:(et,Ee,j)=>{j.d(Ee,{K6A:()=>Kv,I9z:()=>zf,KKC:()=>od,Y_4:()=>nf,PEh:()=>sd,CM6:()=>ef,C9t:()=>Ad,fv_:()=>oc,m4W:()=>bd,dRQ:()=>Km,Z4N:()=>$m,YAP:()=>BC,uUW:()=>Uf,qvL:()=>jg,nqY:()=>Zh,xRP:()=>WC,G55:()=>bm,MgK:()=>ci,mIp:()=>Co,QoI:()=>Ld,saT:()=>Rb,blk:()=>pD,XTz:()=>Lm,otW:()=>mD,dTv:()=>cb,EuU:()=>yf,hQ:()=>pu,vNO:()=>Jl,fzC:()=>zb,A0B:()=>Ub,d6G:()=>Gf,ogR:()=>fu,zYX:()=>Yf,zuD:()=>du,toC:()=>Fb,dml:()=>ff,jND:()=>Ef,KHL:()=>Tf,PDs:()=>Af,Gcc:()=>Md,Nh1:()=>_d,K8c:()=>Hm});var l=j(4537),M=j(8692);class ce{constructor(f,a){this.fn=f,this.subscriptions=a}unsubscribe(){const f=this.subscriptions.indexOf(this);-1!==f&&this.subscriptions.splice(f,1)}}function de(c){return null!=c&&"object"==typeof c&&!0===c["@@functional/placeholder"]}function J(c){return function f(a){return 0===arguments.length||de(a)?f:c.apply(this,arguments)}}function he(c){return function f(a,g){switch(arguments.length){case 0:return f;case 1:return de(a)?f:J(function(b){return c(a,b)});default:return de(a)&&de(g)?f:de(a)?J(function(b){return c(b,g)}):de(g)?J(function(b){return c(a,b)}):c(a,g)}}}const ae=he(function(f,a){return a instanceof f||null!=a&&(a.constructor===f||"Object"===f.name&&"object"==typeof a)});function q(c,f){return Object.prototype.hasOwnProperty.call(f,c)}var ee=Object.prototype.toString;const ye=function(){return"[object Arguments]"===ee.call(arguments)?function(f){return"[object Arguments]"===ee.call(f)}:function(f){return q("callee",f)}}(),xe=Array.isArray||function(f){return null!=f&&f.length>=0&&"[object Array]"===Object.prototype.toString.call(f)};function be(c){return"[object String]"===Object.prototype.toString.call(c)}var je=J(function(f){return null!=f&&"function"==typeof f["fantasy-land/empty"]?f["fantasy-land/empty"]():null!=f&&null!=f.constructor&&"function"==typeof f.constructor["fantasy-land/empty"]?f.constructor["fantasy-land/empty"]():null!=f&&"function"==typeof f.empty?f.empty():null!=f&&null!=f.constructor&&"function"==typeof f.constructor.empty?f.constructor.empty():xe(f)?[]:be(f)?"":function ge(c){return"[object Object]"===Object.prototype.toString.call(c)}(f)?{}:ye(f)?function(){return arguments}():function Ce(c){var f=Object.prototype.toString.call(c);return"[object Uint8ClampedArray]"===f||"[object Int8Array]"===f||"[object Uint8Array]"===f||"[object Int16Array]"===f||"[object Uint16Array]"===f||"[object Int32Array]"===f||"[object Uint32Array]"===f||"[object Float32Array]"===f||"[object Float64Array]"===f||"[object BigInt64Array]"===f||"[object BigUint64Array]"===f}(f)?f.constructor.from(""):void 0});const Rt=je;function tn(c){for(var a,f=[];!(a=c.next()).done;)f.push(a.value);return f}function tt(c,f,a){for(var g=0,b=a.length;g=0;)q(a=$t[g],f)&&!Wt(b,a)&&(b[b.length]=a),g-=1;return b}:function(f){return Object(f)!==f?[]:Object.keys(f)}),Ar=J(function(f){return null===f?"Null":void 0===f?"Undefined":Object.prototype.toString.call(f).slice(8,-1)});function _e(c,f,a,g){var b=tn(c);function $(le,Se){return Me(le,Se,a.slice(),g.slice())}return!tt(function(le,Se){return!tt($,Se,le)},tn(f),b)}function Me(c,f,a,g){if(Ht(c,f))return!0;var b=Ar(c);if(b!==Ar(f))return!1;if("function"==typeof c["fantasy-land/equals"]||"function"==typeof f["fantasy-land/equals"])return"function"==typeof c["fantasy-land/equals"]&&c["fantasy-land/equals"](f)&&"function"==typeof f["fantasy-land/equals"]&&f["fantasy-land/equals"](c);if("function"==typeof c.equals||"function"==typeof f.equals)return"function"==typeof c.equals&&c.equals(f)&&"function"==typeof f.equals&&f.equals(c);switch(b){case"Arguments":case"Array":case"Object":if("function"==typeof c.constructor&&"Promise"===function $e(c){var f=String(c).match(/^function (\w*)/);return null==f?"":f[1]}(c.constructor))return c===f;break;case"Boolean":case"Number":case"String":if(typeof c!=typeof f||!Ht(c.valueOf(),f.valueOf()))return!1;break;case"Date":if(!Ht(c.valueOf(),f.valueOf()))return!1;break;case"Error":return c.name===f.name&&c.message===f.message;case"RegExp":if(c.source!==f.source||c.global!==f.global||c.ignoreCase!==f.ignoreCase||c.multiline!==f.multiline||c.sticky!==f.sticky||c.unicode!==f.unicode)return!1}for(var x=a.length-1;x>=0;){if(a[x]===c)return g[x]===f;x-=1}switch(b){case"Map":return c.size===f.size&&_e(c.entries(),f.entries(),a.concat([c]),g.concat([f]));case"Set":return c.size===f.size&&_e(c.values(),f.values(),a.concat([c]),g.concat([f]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var $=Gt(c);if($.length!==Gt(f).length)return!1;var le=a.concat([c]),Se=g.concat([f]);for(x=$.length-1;x>=0;){var Pe=$[x];if(!q(Pe,f)||!Me(f[Pe],c[Pe],le,Se))return!1;x-=1}return!0}const Ne=he(function(f,a){return Me(f,a,[],[])}),Ze=J(function(f){return null!=f&&Ne(f,Rt(f))});function mt(c){return null==c}function Tt(c){return mt(c)||Ze(c)}function zt(c){return ae(String,c)}function cn(c){return ae(Object,c)}function qn(c){return ae(Map,c)}function jn(c,f){return c!==f}function Ti(c,f){return JSON.stringify(c)===JSON.stringify(f)}function lr(c){const f=new Map;for(const[a,g]of c)qn(g)?f.set(a,lr(g)):f.set(a,g);return f}function Li(c){switch(!0){case qn(c):return lr(c);case cn(c)&&!Array.isArray(c):return Te({},c);default:return JSON.parse(JSON.stringify(c))}}function Te(...c){const f={};return c.map(a=>cn(a)?{...a}:{}).forEach(a=>{Object.keys(a).forEach(g=>{const b=a[g];f[g]=Array.isArray(b)?Array.from(b):cn(b)?Te(f[g]||{},b):b})}),f}function lt(c=window){return!mt(c)}let Kt,qe,un,Xt;function yr(c=!0){if(!c||!Kt){const f=document&&document.querySelector("[ng-version]");Kt=f?""+f.getAttribute("ng-version"):void 0}return Kt}function It(c=!0){return c&&Kt||(qe=window?.angular?.version?.full),qe}function xt(c=!0){return c&&un||(un=window?.CDS?._react?.version?window.CDS._react.version:document.querySelector("[data-reactroot], [data-reactid]")?"unknown version":void 0),un}function Yt(c=!0){if(!c||!Xt){const f=document.querySelectorAll("*");let a;for(let g=0;g"-"+f.toLowerCase())}function en(c){return c.charAt(0).toUpperCase()+c.slice(1)}const Jr=new class{constructor(){if(this.supports={js:!0},!document.body.hasAttribute("cds-supports")||"no-js"===document.body.getAttribute("cds-supports")){const c=Rn(Object.keys(this.supports).reduce((f,a)=>`${f} ${this.supports[a]?a:"no-"+a}`,"")).trim();document.body.setAttribute("cds-supports",c)}}};function Ii(c,f){switch(c){case 0:return function(){return f.apply(this,arguments)};case 1:return function(a){return f.apply(this,arguments)};case 2:return function(a,g){return f.apply(this,arguments)};case 3:return function(a,g,b){return f.apply(this,arguments)};case 4:return function(a,g,b,x){return f.apply(this,arguments)};case 5:return function(a,g,b,x,$){return f.apply(this,arguments)};case 6:return function(a,g,b,x,$,le){return f.apply(this,arguments)};case 7:return function(a,g,b,x,$,le,Se){return f.apply(this,arguments)};case 8:return function(a,g,b,x,$,le,Se,Pe){return f.apply(this,arguments)};case 9:return function(a,g,b,x,$,le,Se,Pe,nt){return f.apply(this,arguments)};case 10:return function(a,g,b,x,$,le,Se,Pe,nt,Pt){return f.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function fi(c,f,a){return function(){for(var g=[],b=0,x=c,$=0;$=arguments.length)?le=f[$]:(le=arguments[b],b+=1),g[$]=le,de(le)||(x-=1),$+=1}return x<=0?a.apply(this,g):Ii(x,fi(c,g,a))}}const Ln=he(function(f,a){return 1===f?J(a):Ii(f,fi(f,[],a))}),Kn=Number.isInteger||function(f){return f<<0===f},cr=he(function(f,a){var g=f<0?a.length+f:f;return be(a)?a.charAt(g):a[g]}),Eo=he(function(f,a){return f.map(function(g){for(var $,b=a,x=0;xvoid 0!==xr(c,f)),ur=gr({"@@functional/placeholder":!0},window);class Xn{static log(...f){Fn()&&br()&&console.log(...f)}static warn(...f){Fn()&&br()&&console.warn(...f)}static error(...f){Fn()&&br()&&console.error(...f)}}function br(){return!ur(["jasmine"])}function Fn(){return!window.CDS.environment.production}function As(){lt()&&(window.CDS=window.CDS||{_version:[],_react:{version:void 0},_supports:Jr.supports,_isStateProxied:!1,_state:{focusTrapItems:[],layerElements:[],i18nRegistry:{},elementRegistry:{},iconRegistry:{},motionRegistry:{}},environment:{production:!1},getDetails:Vn,logDetails:dr},function(){const c="6.4.2";window.CDS._version.indexOf(c)<0&&(window.CDS._version.push(c),document.querySelector("body")?.setAttribute("cds-version",window.CDS._version.join(" "))),window.CDS._version.length>1&&Xn.warn("Running more than one version of Clarity can cause unexpected issues. Please ensure only one version is loaded.")}(),window.CDS._isStateProxied||(window.CDS._isStateProxied=!0,window.CDS._state=new Proxy(window.CDS._state,{set:(c,f,a)=>{const g={key:f,prev:window.CDS._state[f],current:a};return c[f]=a,document.dispatchEvent(new CustomEvent("CDS_STATE_UPDATE",{detail:g})),!0}})))}function Vn(){return{versions:window.CDS._version,environment:window.CDS.environment,userAgent:navigator.userAgent,supports:window.CDS._supports,angularVersion:yr(!1),angularJSVersion:It(!1),reactVersion:xt(!1),vueVersion:Yt(!1),state:{...window.CDS._state,iconRegistry:Object.keys(window.CDS._state.iconRegistry),motionRegistry:Object.keys(window.CDS._state.motionRegistry),focusTrapRegistry:Object.keys(window.CDS._state.focusTrapItems.map(c=>c.focusTrapId))}}}function dr(){Xn.log(JSON.stringify(Vn(),null,2))}const Xr=new class pe{constructor(){this.subscriptions=[]}subscribe(f){const a=new ce(f,this.subscriptions);return this.subscriptions.push(a),a}emit(f){this.subscriptions.forEach(a=>a.fn(f))}toEventObservable(){return this}};Xr.listener=document.addEventListener("CDS_STATE_UPDATE",c=>Xr.emit(c.detail));class on{static get state(){return As(),window.CDS._state}static getValue(f){return on.state[f]}static setValue(f,a){on.state[f]=a}static log(){Xn.log(JSON.stringify(on.state,null,2))}}on.stateUpdates=Xr.toEventObservable();const To=["unknown",{outline:''}];class Et{static get registry(){return{unknown:To[1],...on.state.iconRegistry}}static addIcons(...f){on.state.iconRegistry={...on.state.iconRegistry,...Object.fromEntries(f.filter(([a])=>!Et.registry[a]))}}static addAliases(...f){const a=f.filter(([g])=>Et.registry[g]).flatMap(([g,b])=>b.map(x=>[x,Et.registry[g]]));on.state.iconRegistry={...on.state.iconRegistry,...Object.fromEntries(a)}}static getIconNameFromShape(f){return f[0]}}const $n=["angle",{outline:''}],rn=["exclamation-circle",{outline:'',solid:''}],Mr=["check-circle",{outline:'',solid:''}],Aa=["ellipsis-horizontal",{outline:'',outlineBadged:''}],xs=["window-close",{outline:''}],Io=["event",{outline:'',outlineAlerted:'',outlineBadged:'',solid:'',solidAlerted:'',solidBadged:''}],Ms=["calendar",{outline:'',outlineAlerted:'',outlineBadged:'',solid:'',solidAlerted:'',solidBadged:''}],Os=["eye-hide",{outline:'',solid:''}],ei=["eye",{outline:'',solid:''}],Ks=["ellipsis-vertical",{outline:'',outlineBadged:''}],$r=["view-columns",{outline:''}],gi=["arrow",{outline:''}],Lr=["times",{outline:''}],Or=["step-forward-2",{outline:''}],to=["angle-double",{outline:''}],Ko=["filter-grid-circle",{outline:'',solid:''}],ns=["filter-grid",{outline:'',solid:''}],ji=["info-circle",{outline:'',solid:''}],is=["exclamation-triangle",{outline:'',solid:''}],Xo=["circle",{outline:'',solid:''}],zi=["dot-circle",{outline:''}],Ui=["error-standard",{outline:'',solid:''}],ss=["success-standard",{outline:'',solid:''}];var mn=j(8002),Ps=(j(6239),j(9761),j(7393)),or=j(5435),_i=j(4395),$i=j(6782),Oo=(j(7460),j(5257)),Ue=(j(8049),j(3190),j(9765)),Gn=j(6215),ro=j(882),Cn=j(2759);var N=j(5917),P=j(3989),we=j(6493);const ls=new class ct extends we.v{}(class G extends P.o{constructor(f,a){super(f,a),this.scheduler=f,this.work=a}schedule(f,a=0){return a>0?super.schedule(f,a):(this.delay=a,this.state=f,this.scheduler.flush(this),this)}execute(f,a){return a>0||this.closed?super.execute(f,a):this._execute(f,a)}requestAsyncId(f,a,g=0){return null!==g&&g>0||null===g&&this.delay>0?super.requestAsyncId(f,a,g):f.flush(this)}});var Yr=j(3464),Mn=j(3098);class Gi extends Ps.L{constructor(f,a,g=0){super(f),this.scheduler=a,this.delay=g}static dispatch(f){const{notification:a,destination:g}=f;a.observe(g),this.unsubscribe()}scheduleMessage(f){this.destination.add(this.scheduler.schedule(Gi.dispatch,this.delay,new yi(f,this.destination)))}_next(f){this.scheduleMessage(Mn.P.createNext(f))}_error(f){this.scheduleMessage(Mn.P.createError(f)),this.unsubscribe()}_complete(){this.scheduleMessage(Mn.P.createComplete()),this.unsubscribe()}}class yi{constructor(f,a){this.notification=f,this.destination=a}}var nl=j(7971),Oa=j(8858);class Zr extends Ue.xQ{constructor(f=Number.POSITIVE_INFINITY,a=Number.POSITIVE_INFINITY,g){super(),this.scheduler=g,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=f<1?1:f,this._windowTime=a<1?1:a,a===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(f){if(!this.isStopped){const a=this._events;a.push(f),a.length>this._bufferSize&&a.shift()}super.next(f)}nextTimeWindow(f){this.isStopped||(this._events.push(new us(this._getNow(),f)),this._trimBufferThenGetEvents()),super.next(f)}_subscribe(f){const a=this._infiniteTimeWindow,g=a?this._events:this._trimBufferThenGetEvents(),b=this.scheduler,x=g.length;let $;if(this.closed)throw new nl.N;if(this.isStopped||this.hasError?$=Yr.w.EMPTY:(this.observers.push(f),$=new Oa.W(this,f)),b&&f.add(f=new Gi(f,b)),a)for(let le=0;lea&&($=Math.max($,x-a)),$>0&&b.splice(0,$),b}}class us{constructor(f,a){this.time=f,this.value=a}}var Ns=j(4591),Ye=j(4091),ot=j(92);j(7223),j(8817);class Ro{static getTrapElements(){return[...on.state.focusTrapItems]}static setTrapElements(f){const a=document.querySelector("html");null!==a&&function Ve(c,...f){c&&f.forEach(([a,g])=>{!1===g||null===g?c.removeAttribute(a):c.setAttribute(a,g+"")})}(a,["cds-focus-trap",!!f.length&&""]),on.state.focusTrapItems=[...f]}static removeTrapElement(f){this.getTrapElements().length<1||this.setTrapElements([...this.getTrapElements().filter(a=>a.focusTrapId!==f.focusTrapId)])}static setCurrent(f){f?.focusTrapId&&this.setTrapElements([...this.getTrapElements().filter(a=>a.focusTrapId!==f.focusTrapId),f])}static activatePreviousCurrent(){this.setTrapElements([...this.getTrapElements()].slice(0,-1))}static getCurrent(){return function ko(c){return c.length?c[c.length-1]:void 0}(this.getTrapElements())||null}}const ps=Ln(3,(c,f,a)=>{!function mr(c,f){return f||(f=window&&window.customElements),!f||!!f.get(c)}(c)||function nr(){return window?.location?.href?.includes("localhost:6006")}()?(a.define(c,f),As(),window&&!Object.keys(window.CDS._state.elementRegistry).some(g=>g===c)&&(window.CDS._state.elementRegistry={...window.CDS._state.elementRegistry,[c]:{}})):Xn.warn(c+" has already been registered")});function gs(c,f){lt()&&ur(["customElements"])&&ps(c,f,window.customElements)}var hn=j(4762);let ms=!1;function ut(c){if((c=Math.trunc(c)||0)<0&&(c+=this.length),!(c<0||c>=this.length))return this[c]}if(!ms){ms=!0;const c=Reflect.getPrototypeOf(Int8Array);for(const f of[Array,String,c])Object.defineProperty(f.prototype,"at",{value:ut,writable:!0,enumerable:!1,configurable:!0})}let bt=!1,St=!1;function qt(c,f,a){Object.defineProperty(c,a,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(f)?this.getAttribute(f):null},set:function(g){null!==g?this.setAttribute(f,g):this.removeAttribute(f)}})}bt||Element.prototype.hasOwnProperty("role")||(qt(Element.prototype,"role","role"),bt=!0),St||Element.prototype.hasOwnProperty("ariaLabel")||(St=!0,["ActiveDescendant","Atomic","AutoComplete","Busy","Checked","ColCount","ColIndex","ColSpan","Controls","Current","DescribedBy","Details","Disabled","ErrorMessage","Expanded","FlowTo","HasPopup","Hidden","Invalid","KeyShortcuts","Label","LabelledBy","Level","Live","Modal","MultiLine","MultiSelectable","Orientation","Owns","Placeholder","PosInSet","Pressed","ReadOnly","Relevant","Required","RoleDescription","RowCount","RowIndex","RowSpan","Selected","SetSize","Sort","ValueMax","ValueMin","ValueNow","ValueText"].forEach(c=>qt(Element.prototype,"aria-"+c.toLowerCase(),"aria"+c)));var hr=j(8239);const Wr=window,wr=Wr.ShadowRoot&&(void 0===Wr.ShadyCSS||Wr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Wi=Symbol(),On=new WeakMap;class tr{constructor(f,a,g){if(this._$cssResult$=!0,g!==Wi)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=f,this.t=a}get styleSheet(){let f=this.o;const a=this.t;if(wr&&void 0===f){const g=void 0!==a&&1===a.length;g&&(f=On.get(a)),void 0===f&&((this.o=f=new CSSStyleSheet).replaceSync(this.cssText),g&&On.set(a,f))}return f}toString(){return this.cssText}}const Hn=(c,...f)=>{const a=1===c.length?c[0]:f.reduce((g,b,x)=>g+($=>{if(!0===$._$cssResult$)return $.cssText;if("number"==typeof $)return $;throw Error("Value passed to 'css' function must be a 'css' function result: "+$+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(b)+c[x+1],c[0]);return new tr(a,c,Wi)},Er=wr?c=>c:c=>c instanceof CSSStyleSheet?(f=>{let a="";for(const g of f.cssRules)a+=g.cssText;return(c=>new tr("string"==typeof c?c:c+"",void 0,Wi))(a)})(c):c;var vs;const Oi=window,yu=Oi.trustedTypes,zd=yu?yu.emptyScript:"",kn=Oi.reactiveElementPolyfillSupport,Cu={toAttribute(c,f){switch(f){case Boolean:c=c?zd:null;break;case Object:case Array:c=null==c?c:JSON.stringify(c)}return c},fromAttribute(c,f){let a=c;switch(f){case Boolean:a=null!==c;break;case Number:a=null===c?null:Number(c);break;case Object:case Array:try{a=JSON.parse(c)}catch{a=null}}return a}},mc=(c,f)=>f!==c&&(f==f||c==c),vc={attribute:!0,type:String,converter:Cu,reflect:!1,hasChanged:mc};class Vo extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(f){var a;this.finalize(),(null!==(a=this.h)&&void 0!==a?a:this.h=[]).push(f)}static get observedAttributes(){this.finalize();const f=[];return this.elementProperties.forEach((a,g)=>{const b=this._$Ep(g,a);void 0!==b&&(this._$Ev.set(b,g),f.push(b))}),f}static createProperty(f,a=vc){if(a.state&&(a.attribute=!1),this.finalize(),this.elementProperties.set(f,a),!a.noAccessor&&!this.prototype.hasOwnProperty(f)){const g="symbol"==typeof f?Symbol():"__"+f,b=this.getPropertyDescriptor(f,g,a);void 0!==b&&Object.defineProperty(this.prototype,f,b)}}static getPropertyDescriptor(f,a,g){return{get(){return this[a]},set(b){const x=this[f];this[a]=b,this.requestUpdate(f,x,g)},configurable:!0,enumerable:!0}}static getPropertyOptions(f){return this.elementProperties.get(f)||vc}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const f=Object.getPrototypeOf(this);if(f.finalize(),void 0!==f.h&&(this.h=[...f.h]),this.elementProperties=new Map(f.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const a=this.properties,g=[...Object.getOwnPropertyNames(a),...Object.getOwnPropertySymbols(a)];for(const b of g)this.createProperty(b,a[b])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(f){const a=[];if(Array.isArray(f)){const g=new Set(f.flat(1/0).reverse());for(const b of g)a.unshift(Er(b))}else void 0!==f&&a.push(Er(f));return a}static _$Ep(f,a){const g=a.attribute;return!1===g?void 0:"string"==typeof g?g:"string"==typeof f?f.toLowerCase():void 0}u(){var f;this._$E_=new Promise(a=>this.enableUpdating=a),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(f=this.constructor.h)||void 0===f||f.forEach(a=>a(this))}addController(f){var a,g;(null!==(a=this._$ES)&&void 0!==a?a:this._$ES=[]).push(f),void 0!==this.renderRoot&&this.isConnected&&(null===(g=f.hostConnected)||void 0===g||g.call(f))}removeController(f){var a;null===(a=this._$ES)||void 0===a||a.splice(this._$ES.indexOf(f)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((f,a)=>{this.hasOwnProperty(a)&&(this._$Ei.set(a,this[a]),delete this[a])})}createRenderRoot(){var f;const a=null!==(f=this.shadowRoot)&&void 0!==f?f:this.attachShadow(this.constructor.shadowRootOptions);return((c,f)=>{wr?c.adoptedStyleSheets=f.map(a=>a instanceof CSSStyleSheet?a:a.styleSheet):f.forEach(a=>{const g=document.createElement("style"),b=Wr.litNonce;void 0!==b&&g.setAttribute("nonce",b),g.textContent=a.cssText,c.appendChild(g)})})(a,this.constructor.elementStyles),a}connectedCallback(){var f;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(f=this._$ES)||void 0===f||f.forEach(a=>{var g;return null===(g=a.hostConnected)||void 0===g?void 0:g.call(a)})}enableUpdating(f){}disconnectedCallback(){var f;null===(f=this._$ES)||void 0===f||f.forEach(a=>{var g;return null===(g=a.hostDisconnected)||void 0===g?void 0:g.call(a)})}attributeChangedCallback(f,a,g){this._$AK(f,g)}_$EO(f,a,g=vc){var b;const x=this.constructor._$Ep(f,g);if(void 0!==x&&!0===g.reflect){const $=(void 0!==(null===(b=g.converter)||void 0===b?void 0:b.toAttribute)?g.converter:Cu).toAttribute(a,g.type);this._$El=f,null==$?this.removeAttribute(x):this.setAttribute(x,$),this._$El=null}}_$AK(f,a){var g;const b=this.constructor,x=b._$Ev.get(f);if(void 0!==x&&this._$El!==x){const $=b.getPropertyOptions(x),le="function"==typeof $.converter?{fromAttribute:$.converter}:void 0!==(null===(g=$.converter)||void 0===g?void 0:g.fromAttribute)?$.converter:Cu;this._$El=x,this[x]=le.fromAttribute(a,$.type),this._$El=null}}requestUpdate(f,a,g){let b=!0;void 0!==f&&(((g=g||this.constructor.getPropertyOptions(f)).hasChanged||mc)(this[f],a)?(this._$AL.has(f)||this._$AL.set(f,a),!0===g.reflect&&this._$El!==f&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(f,g))):b=!1),!this.isUpdatePending&&b&&(this._$E_=this._$Ej())}_$Ej(){var f=this;return(0,hr.Z)(function*(){f.isUpdatePending=!0;try{yield f._$E_}catch(g){Promise.reject(g)}const a=f.scheduleUpdate();return null!=a&&(yield a),!f.isUpdatePending})()}scheduleUpdate(){return this.performUpdate()}performUpdate(){var f;if(!this.isUpdatePending)return;this._$Ei&&(this._$Ei.forEach((b,x)=>this[x]=b),this._$Ei=void 0);let a=!1;const g=this._$AL;try{a=this.shouldUpdate(g),a?(this.willUpdate(g),null===(f=this._$ES)||void 0===f||f.forEach(b=>{var x;return null===(x=b.hostUpdate)||void 0===x?void 0:x.call(b)}),this.update(g)):this._$Ek()}catch(b){throw a=!1,this._$Ek(),b}a&&this._$AE(g)}willUpdate(f){}_$AE(f){var a;null===(a=this._$ES)||void 0===a||a.forEach(g=>{var b;return null===(b=g.hostUpdated)||void 0===b?void 0:b.call(g)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(f)),this.updated(f)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(f){return!0}update(f){void 0!==this._$EC&&(this._$EC.forEach((a,g)=>this._$EO(g,this[g],a)),this._$EC=void 0),this._$Ek()}updated(f){}firstUpdated(f){}}var Ud;Vo.finalized=!0,Vo.elementProperties=new Map,Vo.elementStyles=[],Vo.shadowRootOptions={mode:"open"},kn?.({ReactiveElement:Vo}),(null!==(vs=Oi.reactiveElementVersions)&&void 0!==vs?vs:Oi.reactiveElementVersions=[]).push("1.6.1");const xl=window,Bs=xl.trustedTypes,Bo=Bs?Bs.createPolicy("lit-html",{createHTML:c=>c}):void 0,bu="$lit$",ao=`lit$${(Math.random()+"").slice(9)}$`,ar="?"+ao,Ra=`<${ar}>`,_s=document,Ml=()=>_s.createComment(""),il=c=>null===c||"object"!=typeof c&&"function"!=typeof c,ri=Array.isArray,_c="[ \t\n\f\r]",ys=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,sl=/-->/g,Ol=/>/g,oa=RegExp(`>|${_c}(?:([^\\s"'>=/]+)(${_c}*=${_c}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Su=/'/g,$d=/"/g,Gd=/^(?:script|style|textarea|title)$/i,yc=c=>(f,...a)=>({_$litType$:c,strings:f,values:a}),ii=yc(1),Cc=yc(2),Cs=Symbol.for("lit-noChange"),Tr=Symbol.for("lit-nothing"),bc=new WeakMap,La=_s.createTreeWalker(_s,129,null,!1);class T{constructor({strings:f,_$litType$:a},g){let b;this.parts=[];let x=0,$=0;const le=f.length-1,Se=this.parts,[Pe,nt]=((c,f)=>{const a=c.length-1,g=[];let b,x=2===f?"":"",$=ys;for(let Se=0;Se"===Pt[0]?($=b??ys,Nt=-1):void 0===Pt[1]?Nt=-2:(Nt=$.lastIndex-Pt[2].length,nt=Pt[1],$=void 0===Pt[3]?oa:'"'===Pt[3]?$d:Su):$===$d||$===Su?$=oa:$===sl||$===Ol?$=ys:($=oa,b=void 0);const fr=$===oa&&c[Se+1].startsWith("/>")?" ":"";x+=$===ys?Pe+Ra:Nt>=0?(g.push(nt),Pe.slice(0,Nt)+bu+Pe.slice(Nt)+ao+fr):Pe+ao+(-2===Nt?(g.push(void 0),Se):fr)}const le=x+(c[a]||"")+(2===f?"":"");if(!Array.isArray(c)||!c.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==Bo?Bo.createHTML(le):le,g]})(f,a);if(this.el=T.createElement(Pe,g),La.currentNode=this.el.content,2===a){const Pt=this.el.content,Nt=Pt.firstChild;Nt.remove(),Pt.append(...Nt.childNodes)}for(;null!==(b=La.nextNode())&&Se.length0){b.textContent=Bs?Bs.emptyScript:"";for(let yn=0;ynri(c)||"function"==typeof c?.[Symbol.iterator])(f)?this.T(f):this._(f)}k(f){return this._$AA.parentNode.insertBefore(f,this._$AB)}$(f){this._$AH!==f&&(this._$AR(),this._$AH=this.k(f))}_(f){this._$AH!==Tr&&il(this._$AH)?this._$AA.nextSibling.data=f:this.$(_s.createTextNode(f)),this._$AH=f}g(f){var a;const{values:g,_$litType$:b}=f,x="number"==typeof b?this._$AC(f):(void 0===b.el&&(b.el=T.createElement(b.h,this.options)),b);if((null===(a=this._$AH)||void 0===a?void 0:a._$AD)===x)this._$AH.v(g);else{const $=new F(x,this),le=$.u(this.options);$.v(g),this.$(le),this._$AH=$}}_$AC(f){let a=bc.get(f.strings);return void 0===a&&bc.set(f.strings,a=new T(f)),a}T(f){ri(this._$AH)||(this._$AH=[],this._$AR());const a=this._$AH;let g,b=0;for(const x of f)b===a.length?a.push(g=new L(this.k(Ml()),this.k(Ml()),this,this.options)):g=a[b],g._$AI(x),b++;b2||""!==g[0]||""!==g[1]?(this._$AH=Array(g.length-1).fill(new String),this.strings=g):this._$AH=Tr}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(f,a=this,g,b){const x=this.strings;let $=!1;if(void 0===x)f=D(this,f,a,0),$=!il(f)||f!==this._$AH&&f!==Cs,$&&(this._$AH=f);else{const le=f;let Se,Pe;for(f=x[0],Se=0;Se{var g,b;const x=null!==(g=a?.renderBefore)&&void 0!==g?g:f;let $=x._$litPart$;if(void 0===$){const le=null!==(b=a?.renderBefore)&&void 0!==b?b:null;x._$litPart$=$=new L(f.insertBefore(Ml(),le),le,void 0,a??{})}return $._$AI(c),$};var Qi,Fi;class aa extends Vo{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var f,a;const g=super.createRenderRoot();return null!==(f=(a=this.renderOptions).renderBefore)&&void 0!==f||(a.renderBefore=g.firstChild),g}update(f){const a=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(f),this._$Do=si(a,this.renderRoot,this.renderOptions)}connectedCallback(){var f;super.connectedCallback(),null===(f=this._$Do)||void 0===f||f.setConnected(!0)}disconnectedCallback(){var f;super.disconnectedCallback(),null===(f=this._$Do)||void 0===f||f.setConnected(!1)}render(){return Cs}}aa.finalized=!0,aa._$litElement$=!0,null===(Qi=globalThis.litElementHydrateSupport)||void 0===Qi||Qi.call(globalThis,{LitElement:aa}),(0,globalThis.litElementPolyfillSupport)?.({LitElement:aa}),(null!==(Fi=globalThis.litElementVersions)&&void 0!==Fi?Fi:globalThis.litElementVersions=[]).push("3.3.2");const Du=Hn`@charset "UTF-8";:host,:root{--δ2:var(--cds-global-layout-space-xxs, calc(4 * 1rem / var(--cds-global-base, 20)));--δ3:var(--cds-global-layout-space-xs, calc(8 * 1rem / var(--cds-global-base, 20)));--δ4:var(--cds-global-layout-space-sm, calc(12 * 1rem / var(--cds-global-base, 20)));--δ5:var(--cds-global-layout-space-md, calc(16 * 1rem / var(--cds-global-base, 20)));--δ6:var(--cds-global-layout-space-lg, calc(24 * 1rem / var(--cds-global-base, 20)));--δ7:var(--cds-global-layout-space-xl, calc(32 * 1rem / var(--cds-global-base, 20)))}[cds-layout~="wrap:none"]{flex-wrap:nowrap!important}[cds-layout*="align:stretch"]{flex-grow:1!important}[cds-layout*="align:shrink"]{flex-shrink:1!important;flex-grow:0!important}[cds-layout~=horizontal]{display:flex;flex-direction:row;flex-wrap:wrap;justify-items:flex-start;align-items:flex-start;width:100%;margin:0;min-height:0}[cds-layout~=horizontal]>[cds-layout~=horizontal],[cds-layout~=horizontal]>[cds-layout~=vertical],[cds-layout~=horizontal]>[cds-text]{width:initial!important}[cds-layout~=horizontal][cds-layout*="align:top"]{align-items:flex-start}[cds-layout~=horizontal][cds-layout*="align:left"]{justify-content:flex-start}[cds-layout~=horizontal][cds-layout*="align:right"]{justify-content:flex-end}[cds-layout~=horizontal][cds-layout*="align:vertical-center"]{align-items:center;align-content:center}[cds-layout~=horizontal][cds-layout*="align:horizontal-center"]{justify-content:center}[cds-layout~=horizontal][cds-layout*="align:center"]{align-items:center;align-content:center;justify-content:center}[cds-layout~=horizontal][cds-layout*="order:reverse"]{flex-direction:row-reverse}[cds-layout~=horizontal][cds-layout*="align:horizontal-stretch"]{justify-content:stretch;flex-grow:1}[cds-layout~=horizontal][cds-layout*="align:horizontal-stretch"]>*{flex-grow:1}[cds-layout~=horizontal][cds-layout*="align:stretch"]{align-items:stretch;align-content:stretch;flex-grow:1}[cds-layout~=horizontal][cds-layout*="align:stretch"]>*{flex-grow:1}[cds-layout~=horizontal]>[cds-layout*="align:center"],[cds-layout~=horizontal]>[cds-layout*="align:vertical-center"]{align-self:center}[cds-layout~=horizontal]>[cds-layout*="align:center"],[cds-layout~=horizontal]>[cds-layout*="align:horizontal-center"]{margin-left:auto!important;margin-right:auto!important}[cds-layout~=horizontal]>[cds-layout*="align:top"]{align-self:flex-start}[cds-layout~=horizontal]>[cds-layout*="align:right"]{margin-left:auto!important}[cds-layout~=horizontal]>[cds-layout*="align:left"]{margin-right:auto!important}[cds-layout~=vertical]{width:100%;display:flex;flex-direction:column;align-items:flex-start}[cds-layout~=vertical],[cds-layout~=vertical][cds-layout*="align:top"]{justify-content:flex-start}[cds-layout~=vertical][cds-layout*="align:left"]{align-items:flex-start}[cds-layout~=vertical][cds-layout*="align:right"]{align-items:flex-end}[cds-layout~=vertical][cds-layout*="align:vertical-center"]{justify-content:center}[cds-layout~=vertical][cds-layout*="align:horizontal-center"]{align-items:center}[cds-layout~=vertical][cds-layout*="align:center"]{align-items:center;justify-content:center}[cds-layout~=vertical][cds-layout*="order:reverse"]{flex-direction:column-reverse}[cds-layout~=vertical][cds-layout*="align:horizontal-stretch"]{align-items:stretch}[cds-layout~=vertical][cds-layout*="align:stretch"]{align-items:stretch;justify-content:stretch}[cds-layout~=vertical][cds-layout*="align:stretch"]>*{flex-grow:1}[cds-layout~=vertical]>[cds-layout*="align:center"],[cds-layout~=vertical]>[cds-layout*="align:vertical-center"]{margin-top:auto;margin-bottom:auto}[cds-layout~=vertical]>[cds-layout*="align:center"],[cds-layout~=vertical]>[cds-layout*="align:horizontal-center"]{align-self:center}[cds-layout~=vertical]>[cds-layout*="align:top"]{margin-bottom:auto!important}[cds-layout~=vertical]>[cds-layout*="align:right"]{margin-left:auto}[cds-layout~=vertical]>[cds-layout*="align:left"]{margin-right:auto}[cds-layout~=grid]{display:grid;align-items:start;align-content:start;grid-template-columns:repeat(var(--cds-global-layout-grid-cols,12),1fr);width:100%}[cds-layout~=grid][cds-layout*=rows]{grid-template-rows:repeat(12,auto)}[cds-layout~=grid]>[cds-layout*=row]{align-self:stretch}[cds-layout~=grid][cds-layout*="align:top"]{align-content:start}[cds-layout~=grid][cds-layout*="align:right"]{justify-content:end}[cds-layout~=grid][cds-layout*="align:left"]{justify-content:start}[cds-layout~=grid][cds-layout*="align:horizontal-stretch"]{justify-items:stretch;justify-content:stretch}[cds-layout~=grid][cds-layout*="align:stretch"]{align-items:stretch;align-content:stretch;justify-items:stretch;justify-content:stretch}[cds-layout~=grid][cds-layout*="align:vertical-center"]{align-items:center;align-content:center}[cds-layout~=grid][cds-layout*="align:horizontal-center"]{justify-items:center;justify-content:center}[cds-layout~=grid][cds-layout*="align:center"]{align-items:center;align-content:center;justify-items:center;justify-content:center}::slotted([cds-layout~="display:screen-reader-only"]),[cds-layout~="display:screen-reader-only"]{position:absolute!important;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);padding:0;border:0;height:1px;width:1px;overflow:hidden;white-space:nowrap;top:0;left:0;display:block!important}[cds-layout*="gap:none"]{gap:0}[cds-layout*="gap:xxs"]{gap:var(--δ2)}[cds-layout*="gap:xs"]{gap:var(--δ3)}[cds-layout*="gap:sm"]{gap:var(--δ4)}[cds-layout*="gap:md"]{gap:var(--δ5)}[cds-layout*="gap:lg"]{gap:var(--δ6)}[cds-layout~="p:none"]{padding:0!important}[cds-layout~="p:xxs"]{padding:var(--δ2)!important}[cds-layout~="p:xs"]{padding:var(--δ3)!important}[cds-layout~="p:sm"]{padding:var(--δ4)!important}[cds-layout~="p:md"]{padding:var(--δ5)!important}[cds-layout~="m:md"]{margin:var(--δ5)!important}[cds-layout~="p:lg"]{padding:var(--δ6)!important}[cds-layout~="p-y:xs"]{padding-top:var(--δ3)!important;padding-bottom:var(--δ3)!important}[cds-layout~="p-x:lg"]{padding-left:var(--δ6)!important;padding-right:var(--δ6)!important}[cds-layout~="p-y:lg"]{padding-top:var(--δ6)!important;padding-bottom:var(--δ6)!important}[cds-layout~="p-l:md"]{padding-left:var(--δ5)!important}@media (min-width:992px){[cds-layout*="gap@md:lg"]{gap:var(--δ6)}[cds-layout~="p@md:lg"]{padding:var(--δ6)!important}[cds-layout~="m@md:xl"]{margin:var(--δ7)!important}}[cds-layout~=fill]{width:100%!important}*,:after,:before{box-sizing:border-box}[cds-layout~=horizontal][cds-layout*="align:horizontal-stretch"]>::slotted(*),[cds-layout~=horizontal][cds-layout*="align:stretch"]>::slotted(*),[cds-layout~=vertical][cds-layout*="align:stretch"]>::slotted(*){flex-grow:1}[cds-layout~=vertical] ::slotted([cds-layout*="align:center"]),[cds-layout~=vertical] ::slotted([cds-layout*="align:vertical-center"]){margin-top:auto;margin-bottom:auto}[cds-layout~=vertical] ::slotted([cds-layout*="align:center"]),[cds-layout~=vertical] ::slotted([cds-layout*="align:horizontal-center"]){align-self:center}[cds-layout~=vertical] ::slotted([cds-layout*="align:top"]){margin-bottom:auto!important}[cds-layout~=vertical] ::slotted([cds-layout*="align:bottom"]){margin-top:auto!important}[cds-layout~=vertical] ::slotted([cds-layout*="align:right"]){margin-left:auto}[cds-layout~=vertical] ::slotted([cds-layout*="align:left"]),[cds-layout~=vertical]>[cds-layout*="align:left"]{margin-right:auto}@media (min-width:576px){[cds-layout~=vertical] ::slotted([cds-layout*="align@xs:center"]),[cds-layout~=vertical] ::slotted([cds-layout*="align@xs:vertical-center"]){margin-top:auto;margin-bottom:auto}[cds-layout~=vertical] ::slotted([cds-layout*="align@xs:center"]),[cds-layout~=vertical] ::slotted([cds-layout*="align@xs:horizontal-center"]){align-self:center}[cds-layout~=vertical] ::slotted([cds-layout*="align@xs:top"]){margin-bottom:auto!important}[cds-layout~=vertical] ::slotted([cds-layout*="align@xs:bottom"]){margin-top:auto!important}[cds-layout~=vertical] ::slotted([cds-layout*="align@xs:right"]){margin-left:auto}[cds-layout~=vertical] ::slotted([cds-layout*="align@xs:left"]){margin-right:auto}}@media (min-width:768px){[cds-layout~=vertical] ::slotted([cds-layout*="align@sm:center"]),[cds-layout~=vertical] ::slotted([cds-layout*="align@sm:vertical-center"]){margin-top:auto;margin-bottom:auto}[cds-layout~=vertical] ::slotted([cds-layout*="align@sm:center"]),[cds-layout~=vertical] ::slotted([cds-layout*="align@sm:horizontal-center"]){align-self:center}[cds-layout~=vertical] ::slotted([cds-layout*="align@sm:top"]){margin-bottom:auto!important}[cds-layout~=vertical] ::slotted([cds-layout*="align@sm:bottom"]){margin-top:auto!important}[cds-layout~=vertical] ::slotted([cds-layout*="align@sm:right"]){margin-left:auto}[cds-layout~=vertical] ::slotted([cds-layout*="align@sm:left"]){margin-right:auto}}@media (min-width:992px){[cds-layout~=vertical] ::slotted([cds-layout*="align@md:center"]),[cds-layout~=vertical] ::slotted([cds-layout*="align@md:vertical-center"]){margin-top:auto;margin-bottom:auto}[cds-layout~=vertical] ::slotted([cds-layout*="align@md:center"]),[cds-layout~=vertical] ::slotted([cds-layout*="align@md:horizontal-center"]){align-self:center}[cds-layout~=vertical] ::slotted([cds-layout*="align@md:top"]){margin-bottom:auto!important}[cds-layout~=vertical] ::slotted([cds-layout*="align@md:bottom"]){margin-top:auto!important}[cds-layout~=vertical] ::slotted([cds-layout*="align@md:right"]){margin-left:auto}[cds-layout~=vertical] ::slotted([cds-layout*="align@md:left"]){margin-right:auto}}@media (min-width:1200px){[cds-layout~=vertical] ::slotted([cds-layout*="align@lg:center"]),[cds-layout~=vertical] ::slotted([cds-layout*="align@lg:vertical-center"]){margin-top:auto;margin-bottom:auto}[cds-layout~=vertical] ::slotted([cds-layout*="align@lg:center"]),[cds-layout~=vertical] ::slotted([cds-layout*="align@lg:horizontal-center"]){align-self:center}[cds-layout~=vertical] ::slotted([cds-layout*="align@lg:top"]){margin-bottom:auto!important}[cds-layout~=vertical] ::slotted([cds-layout*="align@lg:bottom"]){margin-top:auto!important}[cds-layout~=vertical] ::slotted([cds-layout*="align@lg:right"]){margin-left:auto}[cds-layout~=vertical] ::slotted([cds-layout*="align@lg:left"]){margin-right:auto}}@media (min-width:1440px){[cds-layout~=vertical] ::slotted([cds-layout*="align@xl:center"]),[cds-layout~=vertical] ::slotted([cds-layout*="align@xl:vertical-center"]){margin-top:auto;margin-bottom:auto}[cds-layout~=vertical] ::slotted([cds-layout*="align@xl:center"]),[cds-layout~=vertical] ::slotted([cds-layout*="align@xl:horizontal-center"]){align-self:center}[cds-layout~=vertical] ::slotted([cds-layout*="align@xl:top"]){margin-bottom:auto!important}[cds-layout~=vertical] ::slotted([cds-layout*="align@xl:bottom"]){margin-top:auto!important}[cds-layout~=vertical] ::slotted([cds-layout*="align@xl:right"]){margin-left:auto}[cds-layout~=vertical] ::slotted([cds-layout*="align@xl:left"]){margin-right:auto}}[cds-layout~=horizontal] ::slotted([cds-layout*="align:center"]),[cds-layout~=horizontal] ::slotted([cds-layout*="align:vertical-center"]){align-self:center}[cds-layout~=horizontal] ::slotted([cds-layout*="align:center"]),[cds-layout~=horizontal] ::slotted([cds-layout*="align:horizontal-center"]){margin-left:auto!important;margin-right:auto!important}[cds-layout~=horizontal] ::slotted([cds-layout*="align:top"]){align-self:flex-start}[cds-layout~=horizontal] ::slotted([cds-layout*="align:bottom"]){align-self:flex-end}[cds-layout~=horizontal] ::slotted([cds-layout*="align:right"]){margin-left:auto!important}[cds-layout~=horizontal] ::slotted([cds-layout*="align:left"]){margin-right:auto!important}@media (min-width:576px){[cds-layout~=horizontal] ::slotted([cds-layout*="align@xs:center"]),[cds-layout~=horizontal] ::slotted([cds-layout*="align@xs:vertical-center"]){align-self:center}[cds-layout~=horizontal] ::slotted([cds-layout*="align@xs:center"]),[cds-layout~=horizontal] ::slotted([cds-layout*="align@xs:horizontal-center"]){margin-left:auto!important;margin-right:auto!important}[cds-layout~=horizontal] ::slotted([cds-layout*="align@xs:top"]){align-self:flex-start}[cds-layout~=horizontal] ::slotted([cds-layout*="align@xs:bottom"]){align-self:flex-end}[cds-layout~=horizontal] ::slotted([cds-layout*="align@xs:right"]){margin-left:auto!important}[cds-layout~=horizontal] ::slotted([cds-layout*="align@xs:left"]){margin-right:auto!important}}@media (min-width:768px){[cds-layout~=horizontal] ::slotted([cds-layout*="align@sm:center"]),[cds-layout~=horizontal] ::slotted([cds-layout*="align@sm:vertical-center"]){align-self:center}[cds-layout~=horizontal] ::slotted([cds-layout*="align@sm:center"]),[cds-layout~=horizontal] ::slotted([cds-layout*="align@sm:horizontal-center"]){margin-left:auto!important;margin-right:auto!important}[cds-layout~=horizontal] ::slotted([cds-layout*="align@sm:top"]){align-self:flex-start}[cds-layout~=horizontal] ::slotted([cds-layout*="align@sm:bottom"]){align-self:flex-end}[cds-layout~=horizontal] ::slotted([cds-layout*="align@sm:right"]){margin-left:auto!important}[cds-layout~=horizontal] ::slotted([cds-layout*="align@sm:left"]){margin-right:auto!important}}@media (min-width:992px){[cds-layout~=horizontal] ::slotted([cds-layout*="align@md:center"]),[cds-layout~=horizontal] ::slotted([cds-layout*="align@md:vertical-center"]){align-self:center}[cds-layout~=horizontal] ::slotted([cds-layout*="align@md:center"]),[cds-layout~=horizontal] ::slotted([cds-layout*="align@md:horizontal-center"]){margin-left:auto!important;margin-right:auto!important}[cds-layout~=horizontal] ::slotted([cds-layout*="align@md:top"]){align-self:flex-start}[cds-layout~=horizontal] ::slotted([cds-layout*="align@md:bottom"]){align-self:flex-end}[cds-layout~=horizontal] ::slotted([cds-layout*="align@md:right"]){margin-left:auto!important}[cds-layout~=horizontal] ::slotted([cds-layout*="align@md:left"]){margin-right:auto!important}}@media (min-width:1200px){[cds-layout~=horizontal] ::slotted([cds-layout*="align@lg:center"]),[cds-layout~=horizontal] ::slotted([cds-layout*="align@lg:vertical-center"]){align-self:center}[cds-layout~=horizontal] ::slotted([cds-layout*="align@lg:center"]),[cds-layout~=horizontal] ::slotted([cds-layout*="align@lg:horizontal-center"]){margin-left:auto!important;margin-right:auto!important}[cds-layout~=horizontal] ::slotted([cds-layout*="align@lg:top"]){align-self:flex-start}[cds-layout~=horizontal] ::slotted([cds-layout*="align@lg:bottom"]){align-self:flex-end}[cds-layout~=horizontal] ::slotted([cds-layout*="align@lg:right"]){margin-left:auto!important}[cds-layout~=horizontal] ::slotted([cds-layout*="align@lg:left"]){margin-right:auto!important}}@media (min-width:1440px){[cds-layout~=horizontal] ::slotted([cds-layout*="align@xl:center"]),[cds-layout~=horizontal] ::slotted([cds-layout*="align@xl:vertical-center"]){align-self:center}[cds-layout~=horizontal] ::slotted([cds-layout*="align@xl:center"]),[cds-layout~=horizontal] ::slotted([cds-layout*="align@xl:horizontal-center"]){margin-left:auto!important;margin-right:auto!important}[cds-layout~=horizontal] ::slotted([cds-layout*="align@xl:top"]){align-self:flex-start}[cds-layout~=horizontal] ::slotted([cds-layout*="align@xl:bottom"]){align-self:flex-end}[cds-layout~=horizontal] ::slotted([cds-layout*="align@xl:right"]){margin-left:auto!important}[cds-layout~=horizontal] ::slotted([cds-layout*="align@xl:left"]){margin-right:auto!important}}[cds-text]{font-family:var(--cds-global-typography-font-family, "Clarity City", "Avenir Next", sans-serif);margin-top:0;margin-bottom:0}[cds-text][cds-layout~=grid]::after,[cds-text][cds-layout~=grid]::before,[cds-text][cds-layout~=horizontal]::after,[cds-text][cds-layout~=horizontal]::before,[cds-text][cds-layout~=vertical]::after,[cds-text][cds-layout~=vertical]::before{display:none}[cds-text*=display],[cds-text*=section],[cds-text*=subsection],[cds-text*=title]{font-family:var(--cds-global-typography-header-font-family, "Clarity City", "Avenir Next", sans-serif);color:var(--cds-global-typography-color-400,var(--cds-global-color-construction-900,#21333b))}[cds-text*=body],[cds-text*=message],[cds-text*=secondary]{color:var(--cds-global-typography-color-500,var(--cds-global-color-black,#000))}[cds-text*=inline]{width:auto!important;display:inline-block!important}[cds-text*=display]{font-size:var(--cds-global-typography-display-font-size,calc(40 * 1rem / var(--cds-global-base,20)));font-weight:var(--cds-global-typography-display-font-weight,400);line-height:var(--cds-global-typography-display-line-height,1.1em);letter-spacing:var(--cds-global-typography-display-letter-spacing,-.0125em)}[cds-text*=display]::before{content:"";display:block;height:0;width:0;margin-bottom:calc(((var(--cds-global-typography-top-gap-height,.1475em) + calc((var(--cds-global-typography-display-line-height,1.1em) - 1em)/ 2))*-1) + .037em)}[cds-text*=display]::after{content:"";display:block;height:0;width:0;margin-top:calc((((1em - var(--cds-global-typography-top-gap-height,.1475em) - var(--cds-global-typography-ascender-height,.1703em) - var(--cds-global-typography-x-height,.517em)) + calc((var(--cds-global-typography-display-line-height,1.1em) - 1em)/ 2))*-1) - .044em)}[cds-text*=title]{font-size:var(--cds-global-typography-title-font-size,calc(24 * 1rem / var(--cds-global-base,20)));font-weight:var(--cds-global-typography-title-font-weight,400);line-height:var(--cds-global-typography-title-line-height,1.16667em);letter-spacing:var(--cds-global-typography-title-letter-spacing,-.008333em)}[cds-text*=title]::before{content:"";display:block;height:0;width:0;margin-bottom:calc(((var(--cds-global-typography-top-gap-height,.1475em) + calc((var(--cds-global-typography-title-line-height,1.16667em) - 1em)/ 2))*-1) + .037em)}[cds-text*=title]::after{content:"";display:block;height:0;width:0;margin-top:calc((((1em - var(--cds-global-typography-top-gap-height,.1475em) - var(--cds-global-typography-ascender-height,.1703em) - var(--cds-global-typography-x-height,.517em)) + calc((var(--cds-global-typography-title-line-height,1.16667em) - 1em)/ 2))*-1) - .044em)}[cds-text*=section]{font-size:var(--cds-global-typography-section-font-size,calc(20 * 1rem / var(--cds-global-base,20)));font-weight:var(--cds-global-typography-section-font-weight,400);line-height:var(--cds-global-typography-section-line-height,1.2em);letter-spacing:var(--cds-global-typography-section-letter-spacing,-.01em)}[cds-text*=section]::before{content:"";display:block;height:0;width:0;margin-bottom:calc(((var(--cds-global-typography-top-gap-height,.1475em) + calc((var(--cds-global-typography-section-line-height,1.2em) - 1em)/ 2))*-1) + .037em)}[cds-text*=section]::after{content:"";display:block;height:0;width:0;margin-top:calc((((1em - var(--cds-global-typography-top-gap-height,.1475em) - var(--cds-global-typography-ascender-height,.1703em) - var(--cds-global-typography-x-height,.517em)) + calc((var(--cds-global-typography-section-line-height,1.2em) - 1em)/ 2))*-1) - .044em)}[cds-text*=subsection]{font-size:var(--cds-global-typography-subsection-font-size,calc(16 * 1rem / var(--cds-global-base,20)));font-weight:var(--cds-global-typography-subsection-font-weight,400);line-height:var(--cds-global-typography-subsection-line-height,1.25em);letter-spacing:var(--cds-global-typography-subsection-letter-spacing,-.0125em)}[cds-text*=subsection]::before{content:"";display:block;height:0;width:0;margin-bottom:calc(((var(--cds-global-typography-top-gap-height,.1475em) + calc((var(--cds-global-typography-subsection-line-height,1.25em) - 1em)/ 2))*-1) + .037em)}[cds-text*=subsection]::after{content:"";display:block;height:0;width:0;margin-top:calc((((1em - var(--cds-global-typography-top-gap-height,.1475em) - var(--cds-global-typography-ascender-height,.1703em) - var(--cds-global-typography-x-height,.517em)) + calc((var(--cds-global-typography-subsection-line-height,1.25em) - 1em)/ 2))*-1) - .044em)}[cds-text*=body]{font-weight:var(--cds-global-typography-body-font-weight,400);font-size:var(--cds-global-typography-body-font-size,calc(14 * 1rem / var(--cds-global-base,20)));letter-spacing:var(--cds-global-typography-body-letter-spacing,-.014286em);line-height:var(--cds-global-typography-body-line-height,1.42857em)}[cds-text*=body]::before{content:"";display:block;height:0;width:0;margin-bottom:calc(((var(--cds-global-typography-top-gap-height,.1475em) + calc((var(--cds-global-typography-body-line-height,1.42857em) - 1em)/ 2))*-1) + .1em)}[cds-text*=body]::after{content:"";display:block;height:0;width:0;margin-top:calc((((1em - var(--cds-global-typography-top-gap-height,.1475em) - var(--cds-global-typography-ascender-height,.1703em) - var(--cds-global-typography-x-height,.517em)) + calc((var(--cds-global-typography-body-line-height,1.42857em) - 1em)/ 2))*-1) - .044em)}body[cds-text*=body]::after,body[cds-text*=body]::before{content:none}[cds-text*=message]{font-size:var(--cds-global-typography-message-font-size,calc(16 * 1rem / var(--cds-global-base,20)));font-weight:var(--cds-global-typography-message-font-weight,calc(400 * 1rem / var(--cds-global-base,20)));line-height:var(--cds-global-typography-message-line-height,1.25em);letter-spacing:var(--cds-global-typography-message-letter-spacing,-.0125em)}[cds-text*=message]::before{content:"";display:block;height:0;width:0;margin-bottom:calc(((var(--cds-global-typography-top-gap-height,.1475em) + calc((var(--cds-global-typography-message-line-height,1.25em) - 1em)/ 2))*-1) + .037em)}[cds-text*=message]::after{content:"";display:block;height:0;width:0;margin-top:calc((((1em - var(--cds-global-typography-top-gap-height,.1475em) - var(--cds-global-typography-ascender-height,.1703em) - var(--cds-global-typography-x-height,.517em)) + calc((var(--cds-global-typography-message-line-height,1.25em) - 1em)/ 2))*-1) - .044em)}[cds-text*=secondary]{font-size:var(--cds-global-typography-secondary-font-size,calc(13 * 1rem / var(--cds-global-base,20)));font-weight:var(--cds-global-typography-secondary-font-weight,400);line-height:var(--cds-global-typography-secondary-line-height,1.23077em);letter-spacing:var(--cds-global-typography-secondary-letter-spacing,-.007692em)}[cds-text*=secondary]::before{content:"";display:block;height:0;width:0;margin-bottom:calc(((var(--cds-global-typography-top-gap-height,.1475em) + calc((var(--cds-global-typography-secondary-line-height,1.23077em) - 1em)/ 2))*-1) + .037em)}[cds-text*=secondary]::after{content:"";display:block;height:0;width:0;margin-top:calc((((1em - var(--cds-global-typography-top-gap-height,.1475em) - var(--cds-global-typography-ascender-height,.1703em) - var(--cds-global-typography-x-height,.517em)) + calc((var(--cds-global-typography-secondary-line-height,1.23077em) - 1em)/ 2))*-1) - .044em)}[cds-text~=link]{color:var(--cds-global-typography-link-color,var(--cds-global-color-blue-800,#00608a))!important;text-decoration:underline!important;line-height:inherit!important;font-size:inherit!important}[cds-text~=link]:focus{outline:var(--cds-alias-object-interaction-outline,Highlight solid 2px);outline-offset:var(--cds-alias-object-interaction-outline-offset,1px)}[cds-text~=link]:hover{color:var(--cds-global-typography-link-color-hover,var(--cds-global-color-blue-900,#004b6b))!important}[cds-text~=link]:visited:not([cds-text~=static]){color:var(--cds-global-typography-link-color-visited,var(--cds-global-color-lavender-600,#3b40ce))!important}[cds-text~=link]:visited:not([cds-text~=static]):hover{color:var(--cds-global-typography-link-color-visited-hover,var(--cds-global-color-lavender-700,#2429c2))!important}@media (-webkit-min-device-pixel-ratio:0){[cds-text=link]:focus{outline:var(--cds-alias-object-interaction-outline-webkit,5px auto -webkit-focus-ring-color)}}[cds-text~=code]{color:var(--cds-alias-status-danger,var(--cds-global-color-red-700,#e02200));font-family:monospace;font-size:1.1em}[cds-divider]{display:block;height:var(--cds-alias-object-border-width-100,calc(1 * 1rem / var(--cds-global-base,20)));overflow:hidden;box-shadow:var(--cds-alias-object-border-color,var(--cds-global-color-construction-200,#cbd4d8)) 0 0 0 var(--cds-alias-object-border-width-100,calc(1 * 1rem / var(--cds-global-base,20))) inset}[cds-text~=light]{font-weight:var(--cds-global-typography-font-weight-light,300)!important}[cds-text~=justify]{text-align:justify!important}[cds-text~=left]{text-align:left!important}[cds-text~=right]{text-align:right!important}[cds-text~=center]{text-align:center!important}[cds-text~=lhe]{padding:.05px 0}[cds-text~=lhe]::before{content:"";margin-top:-.124em;display:block;height:0}[cds-text~=lhe]::after{content:"";margin-bottom:-.221em;display:block;height:0}[cds-text*=h2],[cds-text*=h3]{font-family:var(--cds-global-typography-header-font-family, "Clarity City", "Avenir Next", sans-serif);font-size:1.4rem;font-weight:200;color:var(--cds-global-typography-color-400);line-height:1.7143em;letter-spacing:-.017857em}[cds-text*=h2]::before{content:"";display:block;height:0;width:0;margin-bottom:calc(((var(--cds-global-typography-top-gap-height,.1475em) + calc((1.7143em - 1em)/ 2))*-1) + .037em)}[cds-text*=h2]::after{content:"";display:block;height:0;width:0;margin-top:calc((((1em - var(--cds-global-typography-top-gap-height,.1475em) - var(--cds-global-typography-ascender-height,.1703em) - var(--cds-global-typography-x-height,.517em)) + calc((1.7143em - 1em)/ 2))*-1) - .044em)}[cds-text*=h3]{font-size:1.1rem;line-height:1.0909em;letter-spacing:-.013636em}[cds-text*=h3]::before{content:"";display:block;height:0;width:0;margin-bottom:calc(((var(--cds-global-typography-top-gap-height,.1475em) + calc((1.0909em - 1em)/ 2))*-1) + .037em)}[cds-text*=h3]::after{content:"";display:block;height:0;width:0;margin-top:calc((((1em - var(--cds-global-typography-top-gap-height,.1475em) - var(--cds-global-typography-ascender-height,.1703em) - var(--cds-global-typography-x-height,.517em)) + calc((1.0909em - 1em)/ 2))*-1) - .044em)}:host{all:initial;display:block;visibility:inherit;font-family:var(--cds-global-typography-font-family, "Clarity City", "Avenir Next", sans-serif);contain:layout;box-sizing:border-box!important;-webkit-appearance:none!important}*,:after,:before{box-sizing:inherit!important}slot{font-family:var(--cds-global-typography-font-family, "Clarity City", "Avenir Next", sans-serif);display:contents!important}::slotted(*){font-family:inherit;box-sizing:inherit}::slotted(*)::placeholder{color:var(--cds-global-typography-color-200,var(--cds-global-color-construction-600,#4f6169))}:host([_is-anchor]),:host([role=button]){cursor:pointer!important}:host([_is-anchor]) ::slotted(*),:host([role=button]) ::slotted(*){cursor:pointer!important}:host([role=button][disabled]){cursor:not-allowed!important}:host([role=button][disabled]) ::slotted(*){cursor:not-allowed!important;pointer-events:none}:host([hidden]),[hidden]{display:none!important}:host([hidden*=false]){display:block!important}:host([role=dialog][hidden]),:host([role=dialog][hidden]) ::slotted(*){display:block!important;visibility:hidden!important}:host([role=dialog][hidden*=false]),:host([role=dialog][hidden*=false]) ::slotted(*){visibility:visible!important}:host([_focused]) .input,:host([_focused]) [focusable],:host([tabindex="0"]:focus),:host([tabindex="0"]:focus) [focusable],[tabindex="0"][focusable]:focus{outline:Highlight solid 2px;outline:5px auto -webkit-focus-ring-color;outline-offset:var(--cds-alias-object-interaction-outline-offset,1px)}`;function Eu(c){return`calc((${c} / var(--cds-global-base)) * 1rem)`}const Iu=(c,f)=>"method"===f.kind&&f.descriptor&&!("value"in f.descriptor)?{...f,finisher(a){a.createProperty(f.key,c)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:f.key,initializer(){"function"==typeof f.initializer&&(this[f.key]=f.initializer.call(this))},finisher(a){a.createProperty(f.key,c)}};function Wd(c){return(f,a)=>void 0!==a?void f.constructor.createProperty(a,c):Iu(c,f)}function np(c,f){switch(f&&f.type){case Array:case Object:return{reflect:!1,...f};case String:return{reflect:!0,attribute:Rn(c),converter:{toAttribute:a=>a||null},...f};case Number:return{reflect:!0,attribute:Rn(c),...f};case Boolean:return{reflect:!0,attribute:Rn(c),converter:{toAttribute:a=>a?"":null,fromAttribute:a=>function Zi(c){return null!=c&&""+c!="false"}(a)},...f};case Date:return{reflect:!1,converter:{fromAttribute:a=>new Date(a)},...f};default:return{...f}}}function Wn(c){return(f,a)=>(c?.required&&function r_(c,f,a){const g=c.firstUpdated;c.firstUpdated=function(b){if(a&&a.required&&Tt(this[f])){const x=a.requiredMessage||function($="warning",le,Se){const Pe=Se.toLocaleLowerCase();return`${en($)}: ${le} is required to use ${Pe} component. Set the JS Property or HTML Attribute.\n\n`+(yr()?`Angular: <${Pe} [${le}]="...">\n`:"")+(Yt()?`Vue: <${Pe} :${le}="...">\n`:"")+(xt()?`React: <${function pr(c){return en(function Cr(c){return c.split("-").map((f,a)=>a?f.charAt(0).toUpperCase()+f.slice(1).toLowerCase():f).join("")}(c))}(Pe)} ${nt=le,nt.startsWith("aria")?Rn(nt):nt}={...} />\n`:"")+`HTML: <${Pe} ${Rn(le)}="...">\nJavaScript: document.querySelector('${Pe}').${le} = '...';\n\n`;var nt}(a.required,f,this.tagName);if("error"===a.required)throw Error(x);Xn.warn(x,this)}g&&g.call(this,b)}}(f,a,c),Wd(np(a,c))(f,a))}function Fl(c){return(f,a)=>{const g=np(a,c);return g&&(g.reflect=!!c?.reflect&&c.reflect,g.reflect&&!c?.attribute&&(g.attribute="_"+Rn(a))),Wd(g)(f,a)}}var Ho,c,I0=Hn`@keyframes fadeInAndOut{0%,to{opacity:0}75%{opacity:1}}:host{--color:currentColor;display:inline-block;height:var(--cds-global-space-7,calc(16 * 1rem / var(--cds-global-base,20)));width:var(--cds-global-space-7,calc(16 * 1rem / var(--cds-global-base,20)));min-height:var(--cds-global-space-7,calc(16 * 1rem / var(--cds-global-base,20)));min-width:var(--cds-global-space-7,calc(16 * 1rem / var(--cds-global-base,20)));margin:0;vertical-align:middle;fill:var(--color);color:var(--color);contain:strict;cursor:inherit}svg{display:block}:host([size*=xs]){height:var(--cds-global-space-5,calc(8 * 1rem / var(--cds-global-base,20)));width:var(--cds-global-space-5,calc(8 * 1rem / var(--cds-global-base,20)));min-height:var(--cds-global-space-5,calc(8 * 1rem / var(--cds-global-base,20)));min-width:var(--cds-global-space-5,calc(8 * 1rem / var(--cds-global-base,20)))}:host([size*=sm]){height:var(--cds-global-space-7,calc(16 * 1rem / var(--cds-global-base,20)));width:var(--cds-global-space-7,calc(16 * 1rem / var(--cds-global-base,20)));min-height:var(--cds-global-space-7,calc(16 * 1rem / var(--cds-global-base,20)));min-width:var(--cds-global-space-7,calc(16 * 1rem / var(--cds-global-base,20)))}:host([size*=md]){height:var(--cds-global-space-9,calc(24 * 1rem / var(--cds-global-base,20)));width:var(--cds-global-space-9,calc(24 * 1rem / var(--cds-global-base,20)));min-height:var(--cds-global-space-9,calc(24 * 1rem / var(--cds-global-base,20)));min-width:var(--cds-global-space-9,calc(24 * 1rem / var(--cds-global-base,20)))}:host([size*=lg]){height:var(--cds-global-space-11,calc(36 * 1rem / var(--cds-global-base,20)));width:var(--cds-global-space-11,calc(36 * 1rem / var(--cds-global-base,20)));min-height:var(--cds-global-space-11,calc(36 * 1rem / var(--cds-global-base,20)));min-width:var(--cds-global-space-11,calc(36 * 1rem / var(--cds-global-base,20)))}:host([size*=xl]){height:var(--cds-global-space-12,calc(48 * 1rem / var(--cds-global-base,20)));width:var(--cds-global-space-12,calc(48 * 1rem / var(--cds-global-base,20)));min-height:var(--cds-global-space-12,calc(48 * 1rem / var(--cds-global-base,20)));min-width:var(--cds-global-space-12,calc(48 * 1rem / var(--cds-global-base,20)))}:host([size*=xxl]){height:calc(var(--cds-global-space-13,calc(64 * 1rem / var(--cds-global-base,20))) - var(--cds-global-space-5,calc(8 * 1rem / var(--cds-global-base,20))));width:calc(var(--cds-global-space-13,calc(64 * 1rem / var(--cds-global-base,20))) - var(--cds-global-space-5,calc(8 * 1rem / var(--cds-global-base,20))));min-height:calc(var(--cds-global-space-13,calc(64 * 1rem / var(--cds-global-base,20))) - var(--cds-global-space-5,calc(8 * 1rem / var(--cds-global-base,20))));min-width:calc(var(--cds-global-space-13,calc(64 * 1rem / var(--cds-global-base,20))) - var(--cds-global-space-5,calc(8 * 1rem / var(--cds-global-base,20))))}:host([size*=fit]){height:auto;width:auto;contain:layout}:host([status=success]){--color:var(--cds-alias-status-success, var(--cds-global-color-green-700, #42810e))}:host([status=danger]){--color:var(--cds-alias-status-danger, var(--cds-global-color-red-700, #e02200))}:host([status=warning]){--color:var(--cds-alias-status-warning-dark, var(--cds-global-color-ochre-800, #a36500))}:host([status=info]){--color:var(--cds-alias-status-info, var(--cds-global-color-blue-700, #0079ad))}:host([inverse]){--color:var(--cds-global-color-construction-200, #cbd4d8)}:host([direction=up]){transform:rotate(0)}:host([direction=down]){transform:rotate(180deg)}:host([direction=right]){transform:rotate(90deg)}:host([direction=left]){transform:rotate(270deg)}:host([flip=horizontal]){transform:scale(-1) rotateX(180deg)}:host([flip=vertical]){transform:scale(-1) rotateY(180deg)}.alert,.badge{fill:var(--badge-color,var(--cds-alias-status-danger,var(--cds-global-color-red-700,#e02200)))}:host([badge=success]){--badge-color:var(--cds-alias-status-success, var(--cds-global-color-green-700, #42810e))}:host([badge=danger]){--badge-color:var(--cds-alias-status-danger, var(--cds-global-color-red-700, #e02200))}:host([badge*=warning]){--badge-color:var(--cds-alias-status-warning-dark, var(--cds-global-color-ochre-800, #a36500))}:host([badge=inherit]){--badge-color:currentColor}:host([badge=info]){--badge-color:var(--cds-alias-status-info, var(--cds-global-color-blue-700, #0079ad))}:host([badge=inherit-triangle]){--badge-color:currentColor}:host([badge][inverse]){--badge-color:var(--cds-alias-status-danger, var(--cds-global-color-red-700, #e02200))}:host([badge=success][inverse]){--badge-color:var(--cds-alias-status-success, var(--cds-global-color-green-700, #42810e))}:host([badge*=warning][inverse]){--badge-color:var(--cds-alias-status-warning-dark, var(--cds-global-color-ochre-800, #a36500))}:host([badge*=inherit][inverse]){--badge-color:currentColor}:host([badge=info][inverse]){--badge-color:var(--cds-alias-status-info, var(--cds-global-color-blue-700, #0079ad))}.cds-internal-dot-1{animation:fadeInAndOut 1.8s ease-in 0s infinite}.cds-internal-dot-2{animation:fadeInAndOut 1.8s ease-out .422s infinite}.cds-internal-dot-3{animation:fadeInAndOut 1.8s ease-out .675s infinite}@media (prefers-reduced-motion){.cds-internal-dot-1,.cds-internal-dot-2,.cds-internal-dot-3{animation:none}}`;function op(c,f){let a="";switch(function xu(c){switch(!0){case Tt(c):return Ho.NilSizeValue;case function ip(c){return["xxs","xs","sm","md","lg","xl","xxl"].indexOf(c)>-1}(c):return Ho.ValidSizeString;case function Ct(c){return zt(c)&&!Ze(c.trim())&&+c==+c}(c):return Ho.ValidNumericString;default:return Ho.BadSizeValue}}(function sp(c){return Tt(c)?"":function ke(c,f,a=""){const g=c.split(" "),b=""===a?g.filter(x=>x!==f):g.map(x=>x===f?a:x);return b.length>0?b.join(" "):""}(c,"fit")}(f))){case Ho.ValidNumericString:return a=Eu(parseInt(f)),void function Zd(c,...f){f.forEach(([a,g])=>{c.style[a]=g})}(c,...function s_(c,f){return!mt(c)&&c.indexOf("fit")>-1?[["width","auto"],["height","auto"],["min-width",f],["min-height",f]]:[["width",f],["height",f],["min-width",f],["min-height",f]]}(f,a));case Ho.ValidSizeString:case Ho.NilSizeValue:return void function Sc(c,...f){f.forEach(a=>{c.style[a]=""})}(c,"width","height","min-width","min-height");default:return}}function ap(c){return c.badge&&("inherit-triangle"===c.badge||"warning-triangle"===c.badge)}(c=Ho||(Ho={})).BadSizeValue="bad-value",c.ValidSizeString="value-is-string",c.ValidNumericString="value-is-numeric",c.NilSizeValue="value-is-nil";class lo extends aa{constructor(){super(...arguments),this._shape="unknown",this.solid=!1,this.inverse=!1}static get styles(){return[Du,I0]}get shape(){return this._shape}set shape(f){if(function gn(c,f){return!Tt(c)&&jn(c,f)}(f,this._shape)){const a=this._shape;this._shape=f,this.requestUpdate("shape",a)}}get size(){return this._size}set size(f){if(function sn(c,f){return function Ft(c){return ae(String,c)||mt(c)}(c)&&jn(c,f)}(f,this._size)){const a=this._size;this._size=f,op(this,f),this.requestUpdate("size",a)}}updated(f){if(f.has("innerOffset")&&this.innerOffset>0){const a=Eu(-1*this.innerOffset),g=`calc(100% + ${Eu(2*this.innerOffset)})`;this.svg.style.width=g,this.svg.style.height=g,this.svg.style.margin=`${a} 0 0 ${a}`}}firstUpdated(f){if(super.firstUpdated(f),this.isConnected){let a="unknown";this.subscription=on.stateUpdates.subscribe(g=>{"iconRegistry"===g.key&&Et.registry[this.shape]&&a!==this.shape&&(a=this.shape,this.requestUpdate("shape"))})}}disconnectedCallback(){super.disconnectedCallback(),this.subscription?.unsubscribe()}render(){return zt(Et.registry[this.shape])?ii``:Cc``}}(0,hn.gn)([Wn({type:String})],lo.prototype,"shape",null),(0,hn.gn)([Wn({type:String})],lo.prototype,"size",null),(0,hn.gn)([Wn({type:String})],lo.prototype,"direction",void 0),(0,hn.gn)([Wn({type:String})],lo.prototype,"flip",void 0),(0,hn.gn)([Wn({type:Boolean})],lo.prototype,"solid",void 0),(0,hn.gn)([Wn({type:String})],lo.prototype,"status",void 0),(0,hn.gn)([Wn({type:Boolean})],lo.prototype,"inverse",void 0),(0,hn.gn)([Wn({type:String})],lo.prototype,"badge",void 0),(0,hn.gn)([Fl({type:Number})],lo.prototype,"innerOffset",void 0),(0,hn.gn)([function i_(c,f){return(({finisher:c,descriptor:f})=>(a,g)=>{var b;if(void 0===g){const x=null!==(b=a.originalKey)&&void 0!==b?b:a.key,$=null!=f?{kind:"method",placement:"prototype",key:x,descriptor:f(a.key)}:{...a,key:x};return null!=c&&($.finisher=function(le){c(le,x)}),$}{const x=a.constructor;void 0!==f&&Object.defineProperty(a,g,f(g)),c?.(x,g)}})({descriptor:a=>{const g={get(){var b,x;return null!==(x=null===(b=this.renderRoot)||void 0===b?void 0:b.querySelector(c))&&void 0!==x?x:null},enumerable:!0,configurable:!0};if(f){const b="symbol"==typeof a?Symbol():"__"+a;g.get=function(){var x,$;return void 0===this[b]&&(this[b]=null!==($=null===(x=this.renderRoot)||void 0===x?void 0:x.querySelector(c))&&void 0!==$?$:null),this[b]}}return g}})}("svg")],lo.prototype,"svg",void 0),gs("cds-icon",lo);class Qd{constructor(f){this.host=f,this.host.addController(this)}hostConnected(){var f=this;return(0,hr.Z)(function*(){yield f.host.updateComplete,f.host.addEventListener("keydown",a=>f.emulateActive(a)),f.host.addEventListener("mousedown",a=>f.emulateActive(a)),f.host.addEventListener("keyup",()=>f.emulateInactive()),f.host.addEventListener("blur",()=>f.emulateInactive()),f.host.addEventListener("mouseup",()=>f.emulateInactive())})()}emulateActive(f){this.host.disabled||this.host?.setAttribute("cds-active",""),"Space"===f.code&&f.target===this.host&&f.preventDefault()}emulateInactive(){this.host.removeAttribute("cds-active")}}class F0{constructor(f){this.host=f,this.host.addController(this)}hostConnected(){(this.host.hasAttribute("aria-controls")||this.host.ariaControls)&&(this.host.ariaHasPopup="true",this.host.ariaExpanded="false")}}class k0{constructor(f){this.host=f,this.host.addController(this)}hostUpdated(){null!==this.host.disabled&&(this.host.ariaDisabled=this.host.disabled),this.host.readonly&&(this.host.ariaDisabled=null)}}class N0{constructor(f){this.host=f,this.host.addController(this)}hostUpdated(){null!=this.host.pressed&&(this.host.ariaPressed=this.host.pressed?"true":"false"),this.host.readonly&&(this.host.ariaPressed=null)}}class L0{constructor(f){this.host=f,this.host.addController(this)}hostConnected(){this.host.tabIndex=0}hostUpdated(){this.host.role=this.host.readonly?null:"button",this.host.tabIndex=this.host.disabled?-1:0,this.host.readonly&&this.host.removeAttribute("tabindex")}}class cp{constructor(f){this.host=f,this.host.addController(this)}get currentAnchor(){return"A"===this.host.parentElement?.tagName?this.host.parentElement:null}hostConnected(){this.setAnchor()}hostUpdated(){this.setAnchor()}setAnchor(){this.currentAnchor&&this.currentAnchor!==this.previousAnchor&&(this.previousAnchor=this.currentAnchor,this.host.readonly=!0,this.currentAnchor.style.lineHeight="0",this.currentAnchor.style.textDecoration="none")}}const Dc=c=>c??Tr;function Jd(c){c.preventDefault(),c.stopPropagation()}const Kd=new Map([["arrow-left","ArrowLeft"],["arrow-right","ArrowRight"],["arrow-up","ArrowUp"],["arrow-down","ArrowDown"],["tab","Tab"],["enter","Enter"],["escape","Escape"],["space"," "],["home","Home"],["end","End"]]);var co;!function(c){c.ArrowUp="ArrowUp",c.ArrowDown="ArrowDown",c.ArrowLeft="ArrowLeft",c.ArrowRight="ArrowRight",c.End="End",c.Home="Home",c.PageUp="PageUp",c.PageDown="PageDown"}(co||(co={}));class gp{constructor(f){this.host=f,this.triggerNativeButtonBehaviorHandler=this.triggerNativeButtonBehavior.bind(this),this.emulateKeyBoardEventBehaviorHandler=this.emulateKeyBoardEventBehavior.bind(this),this.host.addController(this)}hostUpdated(){this.setButtonType(),this.setupNativeButtonBehavior()}setButtonType(){!this.host.type&&this.host.closest("form")&&(this.host.type="submit")}setupNativeButtonBehavior(){this.host.readonly||this.host.disabled?(this.host.removeEventListener("click",this.triggerNativeButtonBehaviorHandler),this.host.removeEventListener("keyup",this.emulateKeyBoardEventBehaviorHandler)):(this.host.addEventListener("click",this.triggerNativeButtonBehaviorHandler),this.host.addEventListener("keyup",this.emulateKeyBoardEventBehaviorHandler))}emulateKeyBoardEventBehavior(f){!function d_(c,f,a){c.filter(g=>function eh(c,f){return class up{static get keycodes(){return Li(Kd)}static add(f,a){Kd.set(f,a)}static has(f){return Kd.has(f)}static getCode(f,a=this.keycodes){return function Xd(c,f){return f.get(c)||""}(f,a)}}.getCode(f)===c.key}(f,g)).length>0&&a()}(["enter","space"],f,()=>{"submit"===this.host.type?this.triggerNativeButtonBehavior(f):this.host.click(),Jd(f)})}triggerNativeButtonBehavior(f){if(this.host.disabled)Jd(f);else if(!f.defaultPrevented){const a=function pp(c,f,a){const g=document.createElement("div");f.appendChild(g),si(c,f,{renderBefore:g,...a});const b=g.previousSibling;return g.remove(),b}(ii``,this.host);a?.dispatchEvent(new MouseEvent("click",{relatedTarget:this.host,composed:!0})),a?.remove()}}}class mp{constructor(f){this.host=f,this.host.addController(this)}hostUpdated(){null!=this.host.expanded&&(this.host.ariaExpanded=this.host.expanded?"true":"false"),this.host.readonly&&(this.host.ariaExpanded=null)}}let uo=class extends aa{constructor(){super(...arguments),this._disabled=!1}get disabled(){return this._disabled}set disabled(c){const f=this._disabled;this._disabled=c,this.requestUpdate("disabled",f)}};(0,hn.gn)([Wn({type:Boolean})],uo.prototype,"pressed",void 0),(0,hn.gn)([Wn({type:Boolean})],uo.prototype,"expanded",void 0),(0,hn.gn)([Wn({type:Boolean})],uo.prototype,"readonly",void 0),(0,hn.gn)([Wn({type:String})],uo.prototype,"type",void 0),(0,hn.gn)([Wn({type:String})],uo.prototype,"name",void 0),(0,hn.gn)([Wn({type:String})],uo.prototype,"value",void 0),(0,hn.gn)([Wn({type:Boolean})],uo.prototype,"disabled",null),(0,hn.gn)([Wn({type:String})],uo.prototype,"popup",void 0),uo=(0,hn.gn)([function o_(){return c=>c.addInitializer(f=>new Qd(f))}(),function R0(){return c=>c.addInitializer(f=>new L0(f))}(),function P0(){return c=>c.addInitializer(f=>new N0(f))}(),function m_(){return c=>c.addInitializer(f=>new mp(f))}(),function qd(){return c=>c.addInitializer(f=>new k0(f))}(),function O0(){return c=>c.addInitializer(f=>new F0(f))}(),function g_(){return c=>c.addInitializer(f=>new gp(f))}(),function a_(){return c=>c.addInitializer(f=>new cp(f))}()],uo);const Mu={actions:{sort:"Sort",expand:"Expand",close:"Close",resize:"Resize",filter:"Filter"},alert:{closeButtonAriaLabel:"Close",loading:"Loading",info:"Info",success:"Success",warning:"Warning",danger:"Error"},dropdown:{open:"Open"},file:{browse:"browse",files:"files",removeFile:"remove file"},modal:{closeButtonAriaLabel:"Close modal",contentStart:"Beginning of modal content",contentBox:"Scrollable modal body",contentEnd:"End of modal content"},navigation:{navigationElement:"navigation",navigationLabel:"navigation menu",navigationAbridgedText:"View abridged menu",navigationUnabridgedText:"View unabridged menu"},overlay:{closeButtonAriaLabel:"Close dialog",contentStart:"Beginning of dialog content",contentEnd:"End of dialog content"},popup:{closeButtonAriaLabel:"Close popup",contentStart:"Beginning of popup content",contentEnd:"End of popup content"},password:{showButtonAriaLabel:"Show password",hideButtonAriaLabel:"Hide password"},progress:{loading:"Loading",looping:"Loading"},treeview:{loading:"Loading"},grid:{resizeColumn:"Resize Column",closeDetails:"Close Details",noData:"No Results Found",rowDetailStart:"Start of row details",rowDetailEnd:"End of row details",footerEnd:"End of grid rows",action:"Action",dropTarget:"Drop Item",pagination:{label:"grid pagination",firstPage:"go to first page",previousPage:"go to previous page",nextPage:"go to next page",lastPage:"go to last page",pageSize:"rows per page",page:"page"}}};class ca{static get keys(){return 0===Object.keys(on.state.i18nRegistry).length&&(on.state.i18nRegistry=Te(Mu,on.state.i18nRegistry)),Te(Mu,on.state.i18nRegistry)}static findKey(f){const a=ca.keys;return Object.keys(a).find(g=>Ti(a[g],f))}static get(f){return f&&ca.keys[f]||{}}static reset(){on.state.i18nRegistry=Te({},Mu)}static hydrate(f,a){return JSON.parse(function wt(c,f,a){return c.replace(/\$\{.+?\}/g,g=>function ze(c,f,a=`\${${c}}`){return c.split(".").reduce((g,b)=>{try{const x=g[b];switch(!0){case null===x:case!1===x:case""===x:case 0===x:return x;default:return x||a}}catch{return a}},f)}(g.substr(2,g.length-3).trim(),f,a))}(JSON.stringify(f),a))}static localize(f){on.state.i18nRegistry=Te(Mu,on.state.i18nRegistry,f)}}var __=Hn`:host{--icon-width:var(--cds-global-space-7, calc(16 * 1rem / var(--cds-global-base, 20)));--icon-height:var(--cds-global-space-7, calc(16 * 1rem / var(--cds-global-base, 20)));--width:var(--icon-width);--height:var(--icon-width);--cursor:pointer;--color:var(--cds-global-typography-color-300, var(--cds-global-color-construction-800, #2d4048));--font-size:var(--cds-global-typography-font-size-3, calc(13 * 1rem / var(--cds-global-base, 20)));--background:transparent;--padding:0;--outline:var(--cds-alias-object-interaction-outline, Highlight solid 2px);--outline-offset:calc(var(--cds-alias-object-interaction-outline-offset, 1px) * -1);pointer-events:none;display:inline-block;outline:0!important}:host([role=button]){pointer-events:initial;cursor:var(--cursor)!important}:host([status=active]){--color:var(--cds-alias-status-info, var(--cds-global-color-blue-700, #0079ad))}::slotted([shape=close]),::slotted([shape=info-circle]),::slotted([shape=times]),:host([shape=close]),:host([shape=info-circle]){--icon-width:var(--cds-global-space-8, calc(18 * 1rem / var(--cds-global-base, 20)));--icon-height:var(--cds-global-space-8, calc(18 * 1rem / var(--cds-global-base, 20)))}:host(:hover){--color:var(--cds-alias-object-interaction-color-hover, var(--cds-global-color-construction-1000, #1b2b32))}:host(:active){--color:var(--cds-alias-object-interaction-color-active, var(--cds-global-color-construction-1000, #1b2b32))}:host(:active) .private-host{transform:translateY(calc(var(--cds-global-space-1,calc(1 * 1rem / var(--cds-global-base,20)))/ 2))}:host([disabled]){--color:var(--cds-alias-object-interaction-color-disabled, var(--cds-global-color-construction-300, #aeb8bc))}.private-host{--icon-color:var(--color);background:var(--background);padding:var(--padding);color:var(--color);font-size:var(--font-size);display:flex;justify-content:center;align-items:center;min-width:var(--width);min-height:var(--height)}::slotted(cds-icon),cds-icon{width:var(--icon-width);height:var(--icon-height);pointer-events:none}::slotted(cds-icon:not([status])),cds-icon{--color:var(--icon-color)}:host([disabled]:active){pointer-events:none!important}.private-host::after{content:"";position:absolute;left:calc(-1*var(--width) - 1);top:calc(-1*var(--height) - 1);width:var(--cds-alias-object-interaction-touch-target,calc(36 * 1rem / var(--cds-global-base,20)));height:var(--cds-alias-object-interaction-touch-target,calc(36 * 1rem / var(--cds-global-base,20)))}:host([disabled]) .private-host::after{outline:0!important}:host(:focus) .private-host::after{outline:var(--outline);outline-offset:var(--outline-offset)}@media (-webkit-min-device-pixel-ratio:0){:host(:focus) .private-host::after{outline-color:-webkit-focus-ring-color}}`;class ho extends uo{constructor(){super(...arguments),this.i18n=ca.keys.actions,this.cdsButtonAction=!0}render(){return ii`
`}updated(f){super.updated(f),this.ariaLabel||this.readonly||Xn.warn("A aria-label is required for interactive cds-button-action type",this),f.has("readonly")&&(this.ariaHidden=this.readonly&&!this.hasAttribute("aria-label")?"true":null)}}ho.styles=[Du,__],(0,hn.gn)([Wn({type:String})],ho.prototype,"shape",void 0),(0,hn.gn)([Wn({type:String,reflect:!0})],ho.prototype,"action",void 0),(0,hn.gn)([Wn({type:String})],ho.prototype,"iconSize",void 0),(0,hn.gn)([function th(){return(c,f)=>{const a=c.connectedCallback,g=c.disconnectedCallback;c.connectedCallback=function(){c.__i18nSub=on.stateUpdates.subscribe(x=>{"i18nRegistry"===x.key&&this.requestUpdate(f)}),a&&a.apply(this)},c.disconnectedCallback=function(){c.__i18nSub.unsubscribe(),g&&g.apply(this)};const b={get(){const x=Te(ca.keys[this.__i18nKey],this.__i18n||{});return ca.hydrate(x,this)},set(x){const $=function v_(c,f){if(Tt(c)){let a={};if(f.hasAttribute("cds-i18n")){const g=f.getAttribute("cds-i18n")+"";if(Tt(g))a={};else try{a=JSON.parse(g)}catch{Xn.warn("Clarity i18n: Invalid JSON passed to cds-i18n"),a={}}}return a}return c}(x,this),le=function vp(c,f,a,g){return Tt(c)?Ti(a,g)?{update:!1}:{update:!0,values:a}:c===f?{update:!1,values:{}}:{update:!0,key:c,values:{}}}(ca.findKey($)||"",this.__i18nKey,$,this.__i18n);void 0!==le.key&&(this.__i18nKey=le.key+""),void 0!==le.values&&(this.__i18n={...le.values}),!0===le.update&&this.requestUpdate(),this.requestUpdate(f)},enumerable:!0,configurable:!0};return void 0!==f?function(x,$,le){const Se=Object.defineProperty($,le,x);return Wn({type:Object,attribute:"cds-i18n"})(Se,le)}(b,c,f):function(x,$){const le={kind:"method",placement:"prototype",key:$.key,descriptor:x};return Wn({type:Object})(le)}(b,c)}}()],ho.prototype,"i18n",void 0),(0,hn.gn)([Fl({type:Boolean,reflect:!0,attribute:"cds-button-action"})],ho.prototype,"cdsButtonAction",void 0);class _p extends ho{constructor(){super(...arguments),this.shape="close"}connectedCallback(){super.connectedCallback(),this.ariaLabel=this.ariaLabel?this.ariaLabel:this.i18n.close}}(0,hn.gn)([Wn({type:String})],_p.prototype,"shape",void 0),gs("cds-internal-close-button",_p),Et.addIcons(Lr),Et.addAliases(["times",["close"]]);const Dt=["*"];function F_(c,f){1&c&&l._UZ(0,"label")}const Pp=[[["","clrCheckbox",""],["","clrToggle",""]],[["label"]]],k_=["[clrCheckbox],[clrToggle]","label"];function P_(c,f){1&c&&l._UZ(0,"label")}function Np(c,f){1&c&&l.Hsn(0,2,["*ngIf","showHelper"])}function ch(c,f){1&c&&l._UZ(0,"cds-icon",5)}function Pu(c,f){1&c&&l._UZ(0,"cds-icon",6)}function uh(c,f){1&c&&l.Hsn(0,3,["*ngIf","showInvalid"])}function al(c,f){1&c&&l.Hsn(0,4,["*ngIf","showValid"])}const N_=[[["label"]],[["clr-checkbox-wrapper"],["clr-toggle-wrapper"]],[["clr-control-helper"]],[["clr-control-error"]],[["clr-control-success"]]],R_=["label","clr-checkbox-wrapper,clr-toggle-wrapper","clr-control-helper","clr-control-error","clr-control-success"];function J0(c,f){1&c&&l._UZ(0,"label")}function K0(c,f){1&c&&l._UZ(0,"cds-icon",5)}function X0(c,f){1&c&&l._UZ(0,"cds-icon",6)}function Vp(c,f){1&c&&l.Hsn(0,2,["*ngIf","showHelper"])}function $_(c,f){1&c&&l.Hsn(0,3,["*ngIf","showInvalid"])}function G_(c,f){1&c&&l.Hsn(0,4,["*ngIf","showValid"])}const Y_=[[["label"]],[["","clrInput",""]],[["clr-control-helper"]],[["clr-control-error"]],[["clr-control-success"]]],Z_=["label","[clrInput]","clr-control-helper","clr-control-error","clr-control-success"];function mh(c,f){1&c&&l._UZ(0,"label")}const Up=[[["","clrRadio",""]],[["label"]]],$p=["[clrRadio]","label"];function Zp(c,f){1&c&&l._UZ(0,"label")}function Wp(c,f){if(1&c&&l._UZ(0,"span",6),2&c){const a=l.oxw();l.Udp("width",a.getRangeProgressFillWidth())}}function ll(c,f){1&c&&l._UZ(0,"cds-icon",7)}function ly(c,f){1&c&&l._UZ(0,"cds-icon",8)}function vh(c,f){1&c&&l.Hsn(0,2,["*ngIf","showHelper"])}function Vu(c,f){1&c&&l.Hsn(0,3,["*ngIf","showInvalid"])}function cy(c,f){1&c&&l.Hsn(0,4,["*ngIf","showValid"])}const _h=[[["label"]],[["","clrRange",""]],[["clr-control-helper"]],[["clr-control-error"]],[["clr-control-success"]]],Bu=["label","[clrRange]","clr-control-helper","clr-control-error","clr-control-success"];function cl(c,f){1&c&&l._UZ(0,"label")}function Qp(c,f){1&c&&l._UZ(0,"cds-icon",5)}function yh(c,f){1&c&&l._UZ(0,"cds-icon",6)}function uy(c,f){1&c&&l.Hsn(0,2,["*ngIf","showHelper"])}function dy(c,f){1&c&&l.Hsn(0,3,["*ngIf","showInvalid"])}function qp(c,f){1&c&&l.Hsn(0,4,["*ngIf","showValid"])}const Pl=[[["label"]],[["","clrSelect",""]],[["clr-control-helper"]],[["clr-control-error"]],[["clr-control-success"]]],hy=["label","[clrSelect]","clr-control-helper","clr-control-error","clr-control-success"],gS=["anchor"];function gy(c,f){if(1&c&&(l.TgZ(0,"div",4)(1,"div",5)(2,"button",6),l._UZ(3,"cds-icon",7),l.qZA()(),l.Hsn(4),l.qZA()),2&c){const a=l.oxw();l.Q6J("id",a.popoverId),l.uIk("aria-label",a.commonStrings.keys.datagridFilterDialogAriaLabel),l.xp6(3),l.uIk("title",a.commonStrings.keys.close)}}const Tc=["input_low"],my=["input"],Nl=["columnPortal"];function Ac(c,f){1&c&&l.Hsn(0)}const vy=["resizeTracker"],mS=["columnHandle"];function Kp(c,f){1&c&&l.GkF(0)}function _y(c,f){if(1&c&&l._UZ(0,"cds-icon",10),2&c){const a=l.oxw(2);l.uIk("direction",a.sortDirection)}}function yy(c,f){if(1&c){const a=l.EpF();l.TgZ(0,"button",7),l.NdJ("click",function(){l.CHM(a);const b=l.oxw();return l.KtG(b.sort())}),l.YNc(1,Kp,1,0,"ng-container",8),l.YNc(2,_y,1,1,"cds-icon",9),l.qZA()}if(2&c){const a=l.oxw(),g=l.MAs(6);l.xp6(1),l.Q6J("ngTemplateOutlet",g),l.xp6(1),l.Q6J("ngIf",a.sortDirection)}}function Cy(c,f){if(1&c){const a=l.EpF();l.TgZ(0,"clr-dg-string-filter",11),l.NdJ("clrFilterValueChange",function(b){l.CHM(a);const x=l.oxw();return l.KtG(x.filterValue=b)}),l.qZA()}if(2&c){const a=l.oxw();l.Q6J("clrFilterPlaceholder",a.filterStringPlaceholder)("clrDgStringFilter",a.registered)("clrFilterValue",a.filterValue)}}function Xp(c,f){if(1&c){const a=l.EpF();l.TgZ(0,"clr-dg-numeric-filter",12),l.NdJ("clrFilterValueChange",function(b){l.CHM(a);const x=l.oxw();return l.KtG(x.filterValue=b)}),l.qZA()}if(2&c){const a=l.oxw();l.Q6J("clrFilterMaxPlaceholder",a.filterNumberMaxPlaceholder)("clrFilterMinPlaceholder",a.filterNumberMinPlaceholder)("clrDgNumericFilter",a.registered)("clrFilterValue",a.filterValue)}}function by(c,f){1&c&&l.Hsn(0,1)}function Ch(c,f){1&c&&l.GkF(0)}function bh(c,f){if(1&c&&(l.TgZ(0,"span",13),l.YNc(1,Ch,1,0,"ng-container",8),l.qZA()),2&c){l.oxw();const a=l.MAs(6);l.xp6(1),l.Q6J("ngTemplateOutlet",a)}}function Sy(c,f){1&c&&l._UZ(0,"clr-dg-column-separator")}const Sh=[[["clr-dg-filter"],["clr-dg-string-filter"],["clr-dg-numeric-filter"]],"*"],Ic=["clr-dg-filter, clr-dg-string-filter, clr-dg-numeric-filter","*"];function Dy(c,f){1&c&&l._UZ(0,"div",4)}function wy(c,f){1&c&&l.Hsn(0,0,["*ngIf","emptyDatagrid"])}function Ey(c,f){if(1&c&&(l.ynx(0),l.TgZ(1,"button",1),l._UZ(2,"cds-icon",2),l.qZA(),l.BQk()),2&c){const a=l.oxw();l.xp6(2),l.uIk("title",a.commonStrings.keys.info)}}const Ty=["cellPortal"];function eg(c,f){1&c&&l.Hsn(0)}const tg=["rowPortal"];function ng(c,f){1&c&&l.Hsn(0)}const Rl=["detailButton"],ua=["stickyCells"],Ay=["scrollableCells"],Iy=["calculatedCells"];function vS(c,f){}function _S(c,f){if(1&c&&(l.TgZ(0,"clr-expandable-animation",7),l.YNc(1,vS,0,0,"ng-template",8),l.qZA()),2&c){const a=l.oxw(2),g=l.MAs(6);l.Q6J("clrExpandTrigger",a.expandAnimationTrigger),l.xp6(1),l.Q6J("ngTemplateOutlet",g)}}function rg(c,f){}function yS(c,f){if(1&c&&l.YNc(0,rg,0,0,"ng-template",8),2&c){l.oxw(2);const a=l.MAs(6);l.Q6J("ngTemplateOutlet",a)}}function ig(c,f){if(1&c){const a=l.EpF();l.TgZ(0,"div",6),l.NdJ("mousedown",function(b){l.CHM(a);const x=l.oxw();return l.KtG(x.clearRanges(b))})("click",function(){l.CHM(a);const b=l.oxw();return l.KtG(b.selectRow(!b.selected))}),l.YNc(1,_S,2,2,"clr-expandable-animation",1),l.YNc(2,yS,1,1,null,2),l.qZA()}if(2&c){const a=l.oxw();l.xp6(1),l.Q6J("ngIf",a.expand.expandable),l.xp6(1),l.Q6J("ngIf",!a.expand.expandable)}}function CS(c,f){}function sg(c,f){if(1&c&&(l.TgZ(0,"clr-expandable-animation",7),l.YNc(1,CS,0,0,"ng-template",8),l.qZA()),2&c){const a=l.oxw(),g=l.MAs(6);l.Q6J("clrExpandTrigger",a.expandAnimationTrigger),l.xp6(1),l.Q6J("ngTemplateOutlet",g)}}function xy(c,f){}function og(c,f){if(1&c&&l.YNc(0,xy,0,0,"ng-template",8),2&c){l.oxw();const a=l.MAs(6);l.Q6J("ngTemplateOutlet",a)}}function My(c,f){1&c&&l.Hsn(0)}const ag=function(c){return{"clr-form-control-disabled":c}};function fo(c,f){if(1&c){const a=l.EpF();l.TgZ(0,"div",19)(1,"div",20)(2,"input",21),l.NdJ("ngModelChange",function(b){l.CHM(a);const x=l.oxw(2);return l.KtG(x.toggle(b))}),l.qZA(),l.TgZ(3,"label",22),l.NdJ("click",function(b){l.CHM(a);const x=l.oxw(2);return l.KtG(x.clearRanges(b))}),l.TgZ(4,"span",23),l._uU(5),l.qZA()()()()}if(2&c){const a=l.oxw(2);l.Q6J("ngClass",l.VKq(8,ag,!a.clrDgSelectable)),l.xp6(2),l.Q6J("ngModel",a.selected)("id",a.checkboxId)("disabled",!a.clrDgSelectable||null),l.uIk("aria-disabled",!a.clrDgSelectable||null)("aria-label",a.clrDgRowAriaLabel),l.xp6(1),l.Q6J("for",a.checkboxId),l.xp6(2),l.Oqu(a.commonStrings.keys.select)}}function Oy(c,f){if(1&c){const a=l.EpF();l.TgZ(0,"div",19)(1,"input",24),l.NdJ("ngModelChange",function(b){l.CHM(a);const x=l.oxw(2);return l.KtG(x.selection.currentSingle=b)}),l.qZA()()}if(2&c){const a=l.oxw(2);l.Q6J("ngClass",l.VKq(9,ag,!a.clrDgSelectable)),l.xp6(1),l.Q6J("id",a.radioId)("name",a.selection.id+"-radio")("value",a.item)("ngModel",a.selection.currentSingle)("checked",a.selection.currentSingle===a.item)("disabled",!a.clrDgSelectable||null),l.uIk("aria-disabled",!a.clrDgSelectable||null)("aria-label",a.clrDgRowAriaLabel)}}function lg(c,f){1&c&&(l.TgZ(0,"div",25),l.Hsn(1,2),l.qZA())}function Fy(c,f){if(1&c){const a=l.EpF();l.TgZ(0,"button",29),l.NdJ("click",function(){l.CHM(a);const b=l.oxw(4);return l.KtG(b.toggleExpand())}),l._UZ(1,"cds-icon",30),l.qZA()}if(2&c){const a=l.oxw(4);l.uIk("aria-expanded",a.expand.expanded)("aria-label",a.expand.expanded?a.clrDgDetailCloseLabel:a.clrDgDetailOpenLabel)("aria-controls",a.expandableId),l.xp6(1),l.uIk("direction",a.expand.expanded?"down":"right")("title",a.expand.expanded?a.commonStrings.keys.collapse:a.commonStrings.keys.expand)}}function ky(c,f){if(1&c&&(l.TgZ(0,"clr-spinner",31),l._uU(1),l.qZA()),2&c){const a=l.oxw(4);l.xp6(1),l.Oqu(a.commonStrings.keys.loading)}}function Py(c,f){if(1&c&&(l.ynx(0),l.YNc(1,Fy,2,5,"button",27),l.YNc(2,ky,2,1,"clr-spinner",28),l.BQk()),2&c){const a=l.oxw(3);l.xp6(1),l.Q6J("ngIf",!a.expand.loading),l.xp6(1),l.Q6J("ngIf",a.expand.loading)}}function Ny(c,f){if(1&c&&(l.TgZ(0,"div",26),l.YNc(1,Py,3,2,"ng-container",2),l.qZA()),2&c){const a=l.oxw(2);l.xp6(1),l.Q6J("ngIf",a.expand.expandable)}}function cg(c,f){if(1&c){const a=l.EpF();l.TgZ(0,"div",32)(1,"button",33,34),l.NdJ("click",function(){l.CHM(a);const b=l.MAs(2),x=l.oxw(2);return l.KtG(x.detailService.toggle(x.item,b))}),l._UZ(3,"cds-icon",35),l.qZA()()}if(2&c){const a=l.oxw(2);l.xp6(1),l.ekj("is-open",a.detailService.isRowOpen(a.item)),l.uIk("aria-label",a.detailService.isRowOpen(a.item)?a.clrDgDetailCloseLabel:a.clrDgDetailOpenLabel)("aria-expanded",a.detailService.isOpen)("aria-controls",a.detailService.id),l.xp6(2),l.uIk("direction",a.detailService.isRowOpen(a.item)?"left":"right")("title",a.detailService.isRowOpen(a.item)?a.commonStrings.keys.close:a.commonStrings.keys.open)}}function Ry(c,f){}function Ly(c,f){if(1&c&&l.YNc(0,Ry,0,0,"ng-template",8),2&c){l.oxw(2);const a=l.MAs(4);l.Q6J("ngTemplateOutlet",a)}}function Vy(c,f){}function Zt(c,f){if(1&c&&l.YNc(0,Vy,0,0,"ng-template",8),2&c){l.oxw(2);const a=l.MAs(4);l.Q6J("ngTemplateOutlet",a)}}const ug=function(c){return{"is-replaced":c}};function dg(c,f){if(1&c&&(l.TgZ(0,"div",9)(1,"div",10),l.ynx(2,null,11),l.YNc(4,fo,6,10,"div",12),l.YNc(5,Oy,2,11,"div",12),l.YNc(6,lg,2,0,"div",13),l.YNc(7,Ny,2,1,"div",14),l.YNc(8,cg,4,7,"div",15),l.BQk(),l.qZA(),l.TgZ(9,"div",16)(10,"div",17),l.Hsn(11,1),l.GkF(12,null,18),l.qZA(),l.YNc(14,Ly,1,1,null,2),l.YNc(15,Zt,1,1,null,2),l.qZA()()),2&c){const a=l.oxw();l.ekj("datagrid-row-detail-open",a.detailService.isRowOpen(a.item)),l.Q6J("id",a.id),l.xp6(4),l.Q6J("ngIf",a.selection.selectionType===a.SELECTION_TYPE.Multi),l.xp6(1),l.Q6J("ngIf",a.selection.selectionType===a.SELECTION_TYPE.Single),l.xp6(1),l.Q6J("ngIf",a.rowActionService.hasActionableRow),l.xp6(1),l.Q6J("ngIf",a.globalExpandable.hasExpandableRow),l.xp6(1),l.Q6J("ngIf",a.detailService.enabled),l.xp6(1),l.Q6J("ngClass",l.VKq(11,ug,a.replaced&&a.expanded)),l.xp6(5),l.Q6J("ngIf",a.replaced&&!a.expand.loading),l.xp6(1),l.Q6J("ngIf",!a.replaced&&!a.expand.loading)}}const hg=[[["clr-dg-row-detail"]],[["clr-dg-cell"]],[["clr-dg-action-overflow"]]],By=["clr-dg-row-detail","clr-dg-cell","clr-dg-action-overflow"],Hy=["scrollableColumns"],fg=["datagridTable"],jy=["projectedDisplayColumns"],pg=["projectedCalculationColumns"],zy=["displayedRows"],Uy=["calculationRows"];function bS(c,f){if(1&c){const a=l.EpF();l.TgZ(0,"div",24),l.NdJ("keydown.space",function(b){l.CHM(a);const x=l.oxw();return x.allSelected=!x.allSelected,l.KtG(b.preventDefault())}),l.TgZ(1,"div",25)(2,"input",26),l.NdJ("ngModelChange",function(b){l.CHM(a);const x=l.oxw();return l.KtG(x.allSelected=b)}),l.qZA(),l.TgZ(3,"label",27)(4,"span",28),l._uU(5),l.qZA()()(),l._UZ(6,"div",29),l.qZA()}if(2&c){const a=l.oxw();l.xp6(2),l.Q6J("id",a.selectAllId)("ngModel",a.allSelected),l.uIk("aria-label",a.commonStrings.keys.selectAll),l.xp6(1),l.Q6J("for",a.selectAllId),l.xp6(2),l.Oqu(a.commonStrings.keys.selectAll)}}function gg(c,f){if(1&c&&(l.TgZ(0,"div",30),l._UZ(1,"div",29),l.qZA()),2&c){const a=l.oxw();l.uIk("aria-label",a.clrDgSingleSelectionAriaLabel)}}function mg(c,f){if(1&c&&(l.TgZ(0,"div",31),l._UZ(1,"div",29),l.qZA()),2&c){const a=l.oxw();l.uIk("aria-label",a.clrDgSingleActionableAriaLabel)}}function ul(c,f){if(1&c&&(l.TgZ(0,"div",32),l._UZ(1,"div",29),l.qZA()),2&c){const a=l.oxw();l.uIk("aria-label",a.clrDetailExpandableAriaLabel)}}function $y(c,f){1&c&&l._UZ(0,"clr-dg-placeholder")}function Dh(c,f){1&c&&(l.TgZ(0,"div",33)(1,"clr-spinner",34),l._uU(2,"Loading"),l.qZA()())}const wh=[[["clr-dg-action-bar"]],[["clr-dg-placeholder"]],[["clr-dg-footer"]],[["","clrIfDetail",""],["clr-dg-detail"]]],Gy=["clr-dg-action-bar","clr-dg-placeholder","clr-dg-footer","[clrIfDetail],clr-dg-detail"],DS=["allSelected"];function wS(c,f){if(1&c&&(l.ynx(0),l.TgZ(1,"h2"),l._uU(2),l.qZA(),l.BQk()),2&c){const a=l.oxw(2);l.xp6(2),l.Oqu(a.commonStrings.keys.showColumns)}}function Yy(c,f){}function vg(c,f){if(1&c){const a=l.EpF();l.TgZ(0,"li")(1,"clr-checkbox-wrapper")(2,"input",14),l.NdJ("ngModelChange",function(b){const $=l.CHM(a).$implicit,le=l.oxw(2);return l.KtG(le.toggleColumnState($,!b))}),l.qZA(),l.TgZ(3,"label"),l.YNc(4,Yy,0,0,"ng-template",15),l.qZA()()()}if(2&c){const a=f.$implicit,g=l.oxw(2);l.xp6(2),l.Q6J("disabled",g.hasOnlyOneVisibleColumn&&!a.hidden)("ngModel",!a.hidden),l.xp6(2),l.Q6J("ngTemplateOutlet",a.titleTemplateRef)}}function ES(c,f){if(1&c){const a=l.EpF();l.TgZ(0,"clr-dg-column-toggle-button",16),l.NdJ("clrAllSelected",function(){l.CHM(a);const b=l.oxw(2);return l.KtG(b.allColumnsSelected())}),l._uU(1),l.qZA()}if(2&c){const a=l.oxw(2);l.xp6(1),l.hij(" ",a.commonStrings.keys.selectAll," ")}}function Zy(c,f){if(1&c&&(l.TgZ(0,"div",2)(1,"div",3)(2,"div",4,5),l._uU(4),l.qZA(),l.YNc(5,wS,3,1,"ng-container",6),l.Hsn(6),l.TgZ(7,"button",7),l._UZ(8,"cds-icon",8),l.TgZ(9,"span",9),l._uU(10),l.qZA()()(),l.TgZ(11,"ul",10),l.YNc(12,vg,5,3,"li",11),l.qZA(),l.TgZ(13,"div",12),l.Hsn(14,1),l.YNc(15,ES,2,1,"clr-dg-column-toggle-button",13),l.qZA()()),2&c){const a=l.oxw();l.Q6J("id",a.popoverId),l.uIk("aria-label",a.commonStrings.keys.showColumnsMenuDescription),l.xp6(4),l.Oqu(a.commonStrings.keys.allColumnsSelected),l.xp6(1),l.Q6J("ngIf",!a.customToggleTitle),l.xp6(2),l.uIk("aria-label",a.commonStrings.keys.close),l.xp6(1),l.uIk("title",a.commonStrings.keys.close),l.xp6(2),l.Oqu(a.commonStrings.keys.close),l.xp6(2),l.Q6J("ngForOf",a.hideableColumnStates)("ngForTrackBy",a.trackByFn),l.xp6(3),l.Q6J("ngIf",!a.customToggleButton)}}const Ll=[[["clr-dg-column-toggle-title"]],[["clr-dg-column-toggle-button"]]],Wy=["clr-dg-column-toggle-title","clr-dg-column-toggle-button"];function Qy(c,f){if(1&c&&(l.ynx(0),l.TgZ(1,"div",1)(2,"clr-checkbox-wrapper",2),l._UZ(3,"input",3),l.TgZ(4,"label"),l._uU(5),l.qZA(),l.TgZ(6,"span",4),l._uU(7),l.qZA()()(),l.BQk()),2&c){const a=l.oxw();l.xp6(5),l.Oqu(a.selection.current.length),l.xp6(2),l.Oqu(a.commonStrings.keys.selectedRows)}}function yg(c,f){1&c&&l._UZ(0,"clr-dg-column-toggle")}function qy(c,f){if(1&c&&(l.ynx(0),l.Hsn(1,1),l.YNc(2,yg,1,0,"clr-dg-column-toggle",0),l.TgZ(3,"div",5),l.Hsn(4,2),l.qZA(),l.BQk()),2&c){const a=l.oxw();l.xp6(2),l.Q6J("ngIf",a.hasHideableColumns&&!a.toggle)}}const Jy=[[["clr-dg-pagination"]],[["clr-dg-column-toggle"]],"*"],Ky=["clr-dg-pagination","clr-dg-column-toggle","*"];function cC(c,f){if(1&c){const a=l.EpF();l.TgZ(0,"button",3),l.NdJ("click",function(){l.CHM(a);const b=l.oxw();return l.KtG(b.openNav(b.responsiveNavCodes.NAV_LEVEL_1))}),l._UZ(1,"span"),l.qZA()}if(2&c){const a=l.oxw();l.uIk("aria-label",a.responsiveNavCommonString)("aria-expanded",1===a.openNavLevel?"true":"false")}}function kh(c,f){if(1&c){const a=l.EpF();l.TgZ(0,"button",4),l.NdJ("click",function(){l.CHM(a);const b=l.oxw();return l.KtG(b.openNav(b.responsiveNavCodes.NAV_LEVEL_2))}),l._UZ(1,"span"),l.qZA()}if(2&c){const a=l.oxw();l.uIk("aria-label",a.responsiveOverflowCommonString)("aria-expanded",2===a.openNavLevel?"true":"false")}}function Ha(c,f){if(1&c){const a=l.EpF();l.TgZ(0,"button",3),l.NdJ("click",function(){l.CHM(a);const b=l.oxw();return l.KtG(b.toggleByButton())}),l._UZ(1,"cds-icon",4),l.qZA()}if(2&c){const a=l.oxw();l.ekj("on-collapse",a.collapsed),l.uIk("aria-expanded",a.ariaExpanded)("aria-label",a.commonStrings.keys.verticalNavToggle),l.xp6(1),l.uIk("direction",a.collapsed?"right":"left")("title",a.collapsed?a.commonStrings.keys.expand:a.commonStrings.keys.collapse)}}function Ph(c,f){if(1&c){const a=l.EpF();l.TgZ(0,"button",5),l.NdJ("click",function(){l.CHM(a);const b=l.oxw();return l.KtG(b.collapsed=!1)}),l.qZA()}if(2&c){const a=l.oxw();l.uIk("aria-label",a.commonStrings.keys.verticalNavToggle)}}const uC=[[["","clrVerticalNavLink",""]],[["","clrVerticalNavIcon",""]],"*",[["","clrIfExpanded",""],["clr-vertical-nav-group-children"]]],Og=["[clrVerticalNavLink]","[clrVerticalNavIcon]","*","[clrIfExpanded], clr-vertical-nav-group-children"],Nh=["clrVerticalNavLink",""],Fg=[[["","clrVerticalNavIcon",""]],"*"],Rh=["[clrVerticalNavIcon]","*"];let jg=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275dir=l.lG2({type:c,selectors:[["clr-icon"]]}),c})(),Jt=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275dir=l.lG2({type:c,selectors:[["cds-icon"]]}),c})(),In=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez]]}),c})();class Yu{}var ai=(()=>(function(c){c[c.DEFAULT=0]="DEFAULT",c[c.LOADING=1]="LOADING",c[c.SUCCESS=2]="SUCCESS",c[c.ERROR=3]="ERROR"}(ai||(ai={})),ai))();let Ci=(()=>{class c{constructor(){this.expandable=0,this._loading=!1,this._expanded=!1,this._expandChange=new Ue.xQ}get loading(){return this._loading}set loading(a){(a=!!a)!==this._loading&&(this._loading=a)}get expanded(){return this._expanded}set expanded(a){(a=!!a)!==this._expanded&&(this._expanded=a,this._expandChange.next(a))}toggle(){this.expanded=!this._expanded}get expandChange(){return this._expandChange.asObservable()}loadingStateChange(a){this.loading=a===ai.LOADING}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})(),CC=0;function Vr(){return"clr-id-"+CC++}const go="0.2s ease-in-out",Uh=((0,Ye.X$)("skipInitialRender",[(0,Ye.eR)(":enter",[])]),(0,Ye.X$)("toggle",[(0,Ye.eR)("void => *",[(0,Ye.oB)({display:"block",height:0}),(0,Ye.jt)(go,(0,Ye.oB)({height:"*"}))])]),(0,Ye.X$)("skipInitialRender",[(0,Ye.eR)(":enter",[])]),(0,Ye.X$)("toggle",[(0,Ye.eR)("void => *",[(0,Ye.oB)({display:"block",height:0}),(0,Ye.jt)(go,(0,Ye.oB)({height:"*"}))]),(0,Ye.eR)("* => void",[(0,Ye.oB)({display:"block"}),(0,Ye.jt)(go,(0,Ye.oB)({height:0,display:"none"}))])]),{open:"Open",close:"Close",show:"Show",hide:"Hide",expand:"Expand",collapse:"Collapse",more:"More",select:"Select",selectAll:"Select All",previous:"Previous",next:"Next",current:"Jump to current",info:"Info",success:"Success",warning:"Warning",danger:"Error",rowActions:"Available actions",pickColumns:"Manage Columns",showColumns:"Show Columns",sortColumn:"Sort Column",firstPage:"First Page",lastPage:"Last Page",nextPage:"Next Page",previousPage:"Previous Page",currentPage:"Current Page",totalPages:"Total Pages",filterItems:"Filter items",minValue:"Min value",maxValue:"Max value",modalContentStart:"Beginning of Modal Content",modalContentEnd:"End of Modal Content",showColumnsMenuDescription:"Show or hide columns menu",allColumnsSelected:"All columns selected",signpostToggle:"Signpost Toggle",signpostClose:"Signpost Close",loading:"Loading",detailPaneStart:"Start of row details",detailPaneEnd:"End of row details",singleSelectionAriaLabel:"Single selection header",singleActionableAriaLabel:"Single actionable header",detailExpandableAriaLabel:"Toggle more row content",datagridFilterAriaLabel:"Toggle {COLUMN} filter",datagridFilterDialogAriaLabel:"Filter dialog",columnSeparatorAriaLabel:"Column resize handle",columnSeparatorDescription:"Use left or right key to resize the column",alertCloseButtonAriaLabel:"Close alert",alertNextAlertAriaLabel:"Next alert message, {CURRENT} of {COUNT}",alertPreviousAlertAriaLabel:"Previous alert message, {CURRENT} of {COUNT}",datepickerDialogLabel:"Choose date",datepickerToggle:"Toggle datepicker",datepickerToggleChooseDateLabel:"Choose date",datepickerToggleChangeDateLabel:"Change date, {SELECTED_DATE}",datepickerPreviousMonth:"Previous month",datepickerCurrentMonth:"Current month",datepickerNextMonth:"Next month",datepickerPreviousDecade:"Previous decade",datepickerNextDecade:"Next decade",datepickerCurrentDecade:"Current decade",datepickerSelectMonthText:"Select month, the current month is {CALENDAR_MONTH}",datepickerSelectYearText:"Select year, the current year is {CALENDAR_YEAR}",datepickerSelectedLabel:"{FULL_DATE} - Selected",stackViewChanged:"Value changed.",responsiveNavToggleOpen:"Navigation menu",responsiveNavToggleClose:"Navigation menu",responsiveNavOverflowOpen:"Navigation overflow menu",responsiveNavOverflowClose:"Navigation overflow menu",verticalNavGroupToggle:"Toggle vertical navigation group",verticalNavToggle:"Toggle vertical navigation",timelineStepNotStarted:"Not started",timelineStepCurrent:"Current",timelineStepSuccess:"Completed",timelineStepError:"Error",timelineStepProcessing:"In progress",comboboxDelete:"Delete selected option",comboboxSearching:'Searching for matches for "{INPUT}"',comboboxSelection:"Selection",comboboxSelected:"Selected",comboboxNoResults:"No results",comboboxOpen:"Show options",datagridExpandableBeginningOf:"Beginning of",datagridExpandableEndOf:"End of",datagridExpandableRowContent:"Expandable row content",datagridExpandableRowsHelperText:"Screen reader table commands may not work for viewing expanded content, please use your screen reader's browse mode to read the content exposed by this button",wizardStepSuccess:"Completed",wizardStepError:"Error",passwordHide:"Hide password",passwordShow:"Show password",selectedRows:"Selected rows"});let an=(()=>{class c{constructor(){this._strings=Uh}localize(a){this._strings={...this._strings,...a}}get keys(){return this._strings}parse(a,g={}){const b=Object.keys(g);let x=a;return b.length&&b.forEach($=>{x=x.replace(`{${$}}`,g[$])}),x}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"}),c})(),jl=(()=>{class c{constructor(){this._chocolate=new Ue.xQ,this.disableChocolateCheck=!1}get chocolate(){return this._chocolate.asObservable()}ngAfterViewChecked(){this.disableChocolateCheck||this._chocolate.next()}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275dir=l.lG2({type:c}),c})(),zl=(()=>{class c{constructor(a,g){this.subscription=g.chocolate.subscribe(()=>{this.latestFlavor!==this.flavor&&(g.disableChocolateCheck=!0,a.detectChanges(),g.disableChocolateCheck=!1)})}ngAfterContentChecked(){this.latestFlavor=this.flavor}ngOnDestroy(){this.subscription.unsubscribe()}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(l.sBO),l.Y36(jl))},c.\u0275dir=l.lG2({type:c}),c})(),Mc=(()=>{class c{constructor(){Et.addIcons($n,rn,Mr)}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez,In]]}),c})(),Xu=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez,In,Mc],Mc]}),c})();var ht=(()=>(function(c){c.ArrowLeft="ArrowLeft",c.ArrowUp="ArrowUp",c.ArrowRight="ArrowRight",c.ArrowDown="ArrowDown",c.Backspace="Backspace",c.Tab="Tab",c.Enter="Enter",c.Escape="Escape",c.Space="Space",c.Spacebar=" ",c.Home="Home",c.End="End"}(ht||(ht={})),ht))(),bs=(()=>(function(c){c.ArrowUp="Up",c.ArrowDown="Down",c.ArrowRight="Right",c.ArrowLeft="Left",c.Space="Spacebar",c.Escape="Esc"}(bs||(bs={})),bs))();function mo(c){return c===ht.ArrowUp||c===bs.ArrowUp?ht.ArrowUp:c===ht.ArrowDown||c===bs.ArrowDown?ht.ArrowDown:c===ht.ArrowRight||c===bs.ArrowRight?ht.ArrowRight:c===ht.ArrowLeft||c===bs.ArrowLeft?ht.ArrowLeft:c===ht.Space||c===bs.Space?ht.Space:c===ht.Escape||c===bs.Escape?ht.Escape:c}let Sn=(()=>{class c{constructor(){this._open=!1,this._openChange=new Ue.xQ,this._openEventChange=new Ue.xQ,this._popoverAligned=new Ue.xQ}get openChange(){return this._openChange.asObservable()}set openEvent(a){this._openEvent=a,this._openEventChange.next(a)}get openEvent(){return this._openEvent}getEventChange(){return this._openEventChange.asObservable()}set open(a){this._open!==(a=!!a)&&(this._open=a,this._openChange.next(a))}get open(){return this._open}get originalEvent(){return this._openEvent}toggleWithEvent(a){(function Fc(c){const f=mo(c.key);(f===ht.ArrowUp||f===ht.ArrowDown||f===ht.ArrowLeft||f===ht.ArrowRight)&&c.preventDefault()})(a),this.openEvent=a,this.open=!this.open}get popoverAligned(){return this._popoverAligned.asObservable()}popoverAlignedEmit(a){this._popoverAligned.next(a)}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})(),ha=(()=>{class c{constructor(a,g,b){this.renderer=a,this.smartOpenService=g,this.document=b,this.outsideClickClose=!0,this.scrollToClose=!0,this.subscriptions=[],this.subscriptions.push(g.openChange.subscribe(x=>{x?(this.addEscapeListener(),this.addClickListener(),this.addScrollListener()):this.removeAllEventListeners()}),g.getEventChange().subscribe(x=>{this.ignoredEvent=x}))}addScrollListener(){this.scrollToClose&&(this.documentScroller=(0,Cn.R)(this.document,"scroll",{capture:!0}),this.scrollSubscription=this.documentScroller.pipe((0,or.h)(this.testForSmartPopoverContentContainer)).subscribe(()=>{this.smartOpenService.open=!1,this.setAnchorFocus()}))}removeScrollListener(){this.documentScroller&&(this.scrollSubscription.unsubscribe(),delete this.documentScroller)}testForSmartPopoverContentContainer(a){let g=a.target;for(;g.classList&&"body"!==g.parentElement.localName;)g=g.parentElement;return!!g.classList&&!g.classList.contains("clr-popover-content")}addClickListener(){this.outsideClickClose&&(this.documentClickListener=this.renderer.listen(this.document,"click",a=>{a===this.ignoredEvent?delete this.ignoredEvent:(this.smartOpenService.open=!1,a.target.focus())}))}removeClickListener(){this.outsideClickClose&&(delete this.ignoredEvent,this.documentClickListener&&(this.documentClickListener(),delete this.documentClickListener))}addEscapeListener(){this.escapeListener=this.renderer.listen(this.document,"keydown.escape",()=>{this.smartOpenService.open=!1,this.setAnchorFocus()})}removeEscapeListener(){this.escapeListener&&(this.escapeListener(),delete this.escapeListener)}set anchorButtonRef(a){this._anchorButtonRef=a}get anchorButtonRef(){return this._anchorButtonRef}set closeButtonRef(a){this._closeButtonRef=a}get closeButtonRef(){return this._closeButtonRef}setCloseFocus(){this._closeButtonRef.nativeElement.focus()}setAnchorFocus(){this.anchorButtonRef.nativeElement.focus()}set contentRef(a){this._contentRef=a}get contentRef(){return this._contentRef}removeAllEventListeners(){this.removeScrollListener(),this.removeClickListener(),this.removeEscapeListener()}ngOnDestroy(){this.subscriptions.forEach(a=>a.unsubscribe()),this.removeAllEventListeners()}}return c.\u0275fac=function(a){return new(a||c)(l.LFG(l.Qsj),l.LFG(Sn),l.LFG(M.K0))},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})(),fa=(()=>{class c{constructor(a,g){a.anchorButtonRef=g}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(ha),l.Y36(l.SBq))},c.\u0275dir=l.lG2({type:c,selectors:[["","clrPopoverAnchor",""]],hostVars:2,hostBindings:function(a,g){2&a&&l.ekj("clr-anchor",!0)}}),c})(),qg=(()=>{class c{constructor(a,g,b){this.elementRef=a,this.smartEventsService=g,this.smartOpenService=b,this.subscriptions=[],this.closeChange=new l.vpe,this.subscriptions.push(b.openChange.pipe((0,or.h)(x=>!x)).subscribe(()=>{this.closeChange.next()}))}handleClick(a){this.smartOpenService.toggleWithEvent(a),this.smartEventsService.setAnchorFocus()}ngAfterViewInit(){this.smartEventsService.closeButtonRef=this.elementRef,this.smartEventsService.setCloseFocus()}ngOnDestroy(){this.subscriptions.forEach(a=>a.unsubscribe())}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(l.SBq),l.Y36(ha),l.Y36(Sn))},c.\u0275dir=l.lG2({type:c,selectors:[["","clrPopoverCloseButton",""]],hostVars:2,hostBindings:function(a,g){1&a&&l.NdJ("click",function(x){return g.handleClick(x)}),2&a&&l.ekj("clr-smart-close-button",!0)},outputs:{closeChange:"clrPopoverOnCloseChange"}}),c})();var li=(()=>(function(c){c[c.VERTICAL=0]="VERTICAL",c[c.HORIZONTAL=1]="HORIZONTAL"}(li||(li={})),li))(),ln=(()=>(function(c){c[c.START=0]="START",c[c.CENTER=.5]="CENTER",c[c.END=1]="END"}(ln||(ln={})),ln))(),Ul=(()=>(function(c){c[c.BOTTOM=0]="BOTTOM",c[c.LEFT=1]="LEFT",c[c.RIGHT=2]="RIGHT",c[c.TOP=3]="TOP"}(Ul||(Ul={})),Ul))();const $a=c=>({...c,side:-1*c.side}),pa=(c,f)=>{const a=c.content+(f?.5:-.5);return a<0||a>1?c:{...c,content:a}};function dl(c,f,a){return g=>f(c(g),a)}function Ni(c,f,a){let g=f.left,b=f.top;switch(c.axis+c.side){case-1:g+=Jg(c,f,a),b-=a.height;break;case 1:g+=Jg(c,f,a),b+=f.height;break;case 0:g-=a.width,b+=ed(c,f,a);break;case 2:g+=f.width,b+=ed(c,f,a)}return{xOffset:g,yOffset:b}}function Jg(c,f,a){let g=0;switch(c.anchor){case ln.START:break;case ln.CENTER:g+=f.width/2;break;case ln.END:g+=f.width}switch(c.content){case ln.START:break;case ln.CENTER:g-=a.width/2;break;case ln.END:g-=a.width}return g}function ed(c,f,a){let g=0;switch(c.anchor){case ln.START:break;case ln.CENTER:g+=f.height/2;break;case ln.END:g+=f.height}switch(c.content){case ln.START:break;case ln.CENTER:g-=a.height/2;break;case ln.END:g-=a.height}return g}let $l=(()=>{class c{constructor(a,g){this.eventService=a,this.platformId=g,this._shouldRealign=new Ue.xQ,this.shouldRealign=this._shouldRealign.asObservable()}realign(){this._shouldRealign.next()}set position(a){this._position=a}get position(){return this._position}alignContent(a){if(!(0,M.NF)(this.platformId))return{xOffset:0,yOffset:0};this.currentAnchorCoords=this.eventService.anchorButtonRef.nativeElement.getBoundingClientRect(),this.currentContentCoords=a.getBoundingClientRect(),this.contentOffsets=Ni(this.position,this.currentAnchorCoords,this.currentContentCoords);const g=function wC(c,f){const a=[],g_bottom=c.yOffset+f.height,g_left=c.xOffset,g_right=c.xOffset+f.width;return c.yOffset>=0||a.push(Ul.TOP),g_left>=0||a.push(Ul.LEFT),g_bottom<=(window.innerHeight||document.documentElement.clientHeight)||a.push(Ul.BOTTOM),g_right<=(window.innerWidth||document.documentElement.clientWidth)||a.push(Ul.RIGHT),a}(this.contentOffsets,this.currentContentCoords),b=g.reduce((x,$)=>x+$,0);return 1===g.length&&this.position.axis===li.VERTICAL?this.handleVerticalAxisOneViolation(b):1===g.length&&this.position.axis===li.HORIZONTAL?this.handleHorizontalAxisOneViolation(b):2===g.length&&this.position.axis===li.VERTICAL?this.handleVerticalAxisTwoViolations(b):2===g.length&&this.position.axis===li.HORIZONTAL&&this.handleHorizontalAxisTwoViolations(b),this.contentOffsets}handleVerticalAxisOneViolation(a){switch(a){case 0:case 3:this.contentOffsets=Ni($a(this.position),this.currentAnchorCoords,this.currentContentCoords);break;case 1:this.contentOffsets=Ni(this.position,this.currentAnchorCoords,this.currentContentCoords),this.contentOffsets.xOffset<0&&(this.contentOffsets.xOffset=10);break;case 2:this.contentOffsets=Ni(pa(this.position,!0),this.currentAnchorCoords,this.currentContentCoords)}}handleVerticalAxisTwoViolations(a){switch(a){case 5:{const g=dl($a,pa,!0);this.contentOffsets=Ni(g(this.position),this.currentAnchorCoords,this.currentContentCoords);break}case 4:{const g=dl($a,pa,!1);this.contentOffsets=Ni(g(this.position),this.currentAnchorCoords,this.currentContentCoords);break}case 3:default:break;case 2:{const g=dl($a,pa,!0);this.contentOffsets=Ni(g(this.position),this.currentAnchorCoords,this.currentContentCoords);break}case 1:{const g=dl($a,pa,!1);this.contentOffsets=Ni(g(this.position),this.currentAnchorCoords,this.currentContentCoords);break}}}handleHorizontalAxisOneViolation(a){switch(a){case 1:case 2:this.contentOffsets=Ni($a(this.position),this.currentAnchorCoords,this.currentContentCoords);break;case 0:this.contentOffsets=Ni(pa(this.position,!0),this.currentAnchorCoords,this.currentContentCoords);break;case 3:this.contentOffsets=Ni(pa(this.position),this.currentAnchorCoords,this.currentContentCoords)}}handleHorizontalAxisTwoViolations(a){switch(a){case 5:case 4:{const g=dl($a,pa,!1);this.contentOffsets=Ni(g(this.position),this.currentAnchorCoords,this.currentContentCoords);break}case 3:default:break;case 2:case 1:{const g=dl($a,pa,!0);this.contentOffsets=Ni(g(this.position),this.currentAnchorCoords,this.currentContentCoords);break}}}}return c.\u0275fac=function(a){return new(a||c)(l.LFG(ha),l.LFG(l.Lbi))},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})(),kc=(()=>{class c{constructor(a,g,b,x,$,le,Se){this.document=a,this.container=g,this.template=b,this.renderer=x,this.smartPositionService=$,this.smartEventsService=le,this.smartOpenService=Se,this.subscriptions=[],this.removeClickListenerFn=null,this.shouldRealign=!1,this.checkCollector=new l.vpe}set open(a){this.smartOpenService.open=!!a}set contentAt(a){this.smartPositionService.position=a}set outsideClickClose(a){this.smartEventsService.outsideClickClose=!!a}set scrollToClose(a){this.smartEventsService.scrollToClose=!!a}ngAfterViewInit(){this.subscriptions.push(this.smartOpenService.openChange.subscribe(a=>{a?this.addContent():this.removeContent()}),this.smartPositionService.shouldRealign.subscribe(()=>{this.shouldRealign=!0,this.view&&this.renderer.setStyle(this.view.rootNodes[0],"opacity","0")}),this.checkCollector.pipe((0,_i.b)(0)).subscribe(()=>{this.alignContent(),this.shouldRealign=!1,this.view&&this.renderer.setStyle(this.view.rootNodes[0],"opacity","1")}))}ngOnDestroy(){this.removeContent(),this.subscriptions.forEach(a=>a.unsubscribe())}removeContent(){!this.view||(this.removeClickListenerFn&&(this.removeClickListenerFn(),this.removeClickListenerFn=null),this.view.rootNodes.forEach(a=>this.renderer.removeChild(this.document.body,a)),this.container.clear(),delete this.view)}addContent(){this.view=this.container.createEmbeddedView(this.template);const[a]=this.view.rootNodes;this.smartEventsService.contentRef=a,this.renderer.addClass(a,"clr-popover-content"),this.renderer.setStyle(a,"top","0px"),this.renderer.setStyle(a,"left","0px"),this.renderer.setStyle(a,"opacity","0"),this.removeClickListenerFn=this.renderer.listen(a,"click",g=>{this.smartOpenService.openEvent=g}),this.view.rootNodes.forEach(g=>{this.renderer.appendChild(this.document.body,g)}),this.shouldRealign=!0}ngAfterContentChecked(){this.smartOpenService.open&&this.view&&this.shouldRealign&&this.checkCollector.emit()}alignContent(){if(!this.view)return;const a=this.smartPositionService.alignContent(this.view.rootNodes[0]);this.renderer.setStyle(this.view.rootNodes[0],"top",`${a.yOffset}px`),this.renderer.setStyle(this.view.rootNodes[0],"left",`${a.xOffset}px`),this.smartOpenService.popoverAlignedEmit(this.view.rootNodes[0])}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(M.K0),l.Y36(l.s_b),l.Y36(l.Rgc),l.Y36(l.Qsj),l.Y36($l),l.Y36(ha),l.Y36(Sn))},c.\u0275dir=l.lG2({type:c,selectors:[["","clrPopoverContent",""]],inputs:{open:["clrPopoverContent","open"],contentAt:["clrPopoverContentAt","contentAt"],outsideClickClose:["clrPopoverContentOutsideClickToClose","outsideClickClose"],scrollToClose:["clrPopoverContentScrollToClose","scrollToClose"]}}),c})(),Pc=(()=>{class c{constructor(a){this.smartOpenService=a,this.subscriptions=[],this.openCloseChange=new l.vpe,this.subscriptions.push(this.smartOpenService.openChange.subscribe(g=>{this.openCloseChange.next(g)}))}handleClick(a){this.smartOpenService.toggleWithEvent(a)}ngOnDestroy(){this.subscriptions.forEach(a=>a.unsubscribe())}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(Sn))},c.\u0275dir=l.lG2({type:c,selectors:[["","clrPopoverOpenCloseButton",""]],hostVars:2,hostBindings:function(a,g){1&a&&l.NdJ("click",function(x){return g.handleClick(x)}),2&a&&l.ekj("clr-smart-open-close",!0)},outputs:{openCloseChange:"clrPopoverOpenCloseChange"}}),c})(),Nc=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[]]}),c})();var qi=(()=>(function(c){c.UP="up",c.DOWN="down",c.LEFT="left",c.RIGHT="right"}(qi||(qi={})),qi))();let ga=(()=>{class c{constructor(a){this.renderer=a,this._unlistenFuncs=[]}get current(){return this._current}reset(a){this._current=a}listenToArrowKeys(a){this._unlistenFuncs.push(this.renderer.listen(a,"keydown.arrowup",()=>!this.move(qi.UP))),this._unlistenFuncs.push(this.renderer.listen(a,"keydown.arrowdown",()=>!this.move(qi.DOWN))),this._unlistenFuncs.push(this.renderer.listen(a,"keydown.arrowleft",()=>!this.move(qi.LEFT))),this._unlistenFuncs.push(this.renderer.listen(a,"keydown.arrowright",()=>!this.move(qi.RIGHT)))}registerContainer(a,g="0"){this.renderer.setAttribute(a,"tabindex",g),this.listenToArrowKeys(a),this._unlistenFuncs.push(this.renderer.listen(a,"keydown.space",()=>!this.activateCurrent())),this._unlistenFuncs.push(this.renderer.listen(a,"keydown.enter",()=>!this.activateCurrent()))}moveTo(a){void 0!==a&&(this.current&&this.current.blur(),a.focus(),this._current=a)}move(a){let g=!1;if(this.current){const b=this.current[a];b&&(function V(c){return!!c&&(c instanceof ro.y||"function"==typeof c.lift&&"function"==typeof c.subscribe)}(b)?b:(0,N.of)(b)).subscribe($=>{$&&(this.moveTo($),g=!0)})}return g}activateCurrent(){return!(!this.current||!this.current.activate||(this.current.activate(),0))}detachListeners(){this._unlistenFuncs.forEach(a=>a())}}return c.\u0275fac=function(a){return new(a||c)(l.LFG(l.Qsj))},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})();new l.FiY,new l.tp0;var bi=(()=>(function(c){c[c.BEFORE=-1]="BEFORE",c[c.AFTER=1]="AFTER"}(bi||(bi={})),bi))();class Ji{}Ji["top-right"]={axis:li.VERTICAL,side:bi.BEFORE,anchor:ln.END,content:ln.END},Ji["top-left"]={axis:li.VERTICAL,side:bi.BEFORE,anchor:ln.START,content:ln.START},Ji["bottom-right"]={axis:li.VERTICAL,side:bi.AFTER,anchor:ln.END,content:ln.END},Ji["bottom-left"]={axis:li.VERTICAL,side:bi.AFTER,anchor:ln.START,content:ln.START},Ji["right-top"]={axis:li.HORIZONTAL,side:bi.AFTER,anchor:ln.CENTER,content:ln.END},Ji["right-bottom"]={axis:li.HORIZONTAL,side:bi.AFTER,anchor:ln.START,content:ln.START},Ji["left-top"]={axis:li.HORIZONTAL,side:bi.BEFORE,anchor:ln.CENTER,content:ln.END},Ji["left-bottom"]={axis:li.HORIZONTAL,side:bi.BEFORE,anchor:ln.START,content:ln.START};class zs{static linkParent(f,a,g){f.forEach(b=>b[g]=a)}static linkVertical(f,a=!0){f.forEach((g,b)=>{b>0&&(g.up=f[b-1]),b1&&(f[0].up=f[f.length-1],f[f.length-1].down=f[0])}}let Br=(()=>{class c{userDefinedWidth(a){a.classList.add("datagrid-cell-width-zero");const g=this.clientRect(a).width;return a.classList.remove("datagrid-cell-width-zero"),g}scrollBarWidth(a){return a.offsetWidth-a.clientWidth}scrollWidth(a){return a.scrollWidth||0}computedHeight(a){return parseInt(getComputedStyle(a).getPropertyValue("height"),10)}clientRect(a){const g=a.getBoundingClientRect();return{top:parseInt(g.top,10),bottom:parseInt(g.bottom,10),left:parseInt(g.left,10),right:parseInt(g.right,10),width:parseInt(g.width,10),height:parseInt(g.height,10)}}minWidth(a){return parseInt(getComputedStyle(a).getPropertyValue("min-width"),10)}focus(a){a.focus()}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})(),hl=(()=>{class c{constructor(a,g){this.element=a,this.domAdapter=g,this.startHeight=0}get expandAnimation(){return{value:this.clrExpandTrigger,params:{startHeight:this.startHeight}}}animationDone(){this.updateStartHeight()}updateStartHeight(){this.startHeight=this.domAdapter.computedHeight(this.element.nativeElement)||0}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(l.SBq),l.Y36(Br))},c.\u0275cmp=l.Xpm({type:c,selectors:[["clr-expandable-animation"]],hostVars:1,hostBindings:function(a,g){1&a&&l.WFA("@expandAnimation.done",function(){return g.animationDone()}),2&a&&l.d8E("@expandAnimation",g.expandAnimation)},inputs:{clrExpandTrigger:"clrExpandTrigger"},features:[l._Bn([Br])],ngContentSelectors:Dt,decls:1,vars:0,template:function(a,g){1&a&&(l.F$t(),l.Hsn(0))},styles:["[_nghost-%COMP%]{display:block;overflow:hidden}"],data:{animation:[(0,Ye.X$)("expandAnimation",[(0,Ye.eR)("true <=> false",[(0,Ye.oB)({height:"{{startHeight}}px"}),(0,Ye.jt)("0.2s ease-in-out",(0,Ye.oB)({height:"*"}))])])]}}),c})(),Ya=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez]]}),c})();new l.OlP("IF_ACTIVE_ID");let Zh=(()=>{class c{constructor(a,g,b){this.toggleService=a,this.template=g,this.container=b,this.openChange=new l.vpe(!1),this.subscription=this.toggleService.openChange.subscribe(x=>{this.updateView(x),this.openChange.emit(x)})}set open(a){this.toggleService.open=a}get open(){return this.toggleService.open}updateView(a){a?this.container.createEmbeddedView(this.template):this.container.clear()}ngOnDestroy(){this.subscription.unsubscribe()}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(Sn),l.Y36(l.Rgc),l.Y36(l.s_b))},c.\u0275dir=l.lG2({type:c,selectors:[["","clrIfOpen",""]],inputs:{open:["clrIfOpen","open"]},outputs:{openChange:"clrIfOpenChange"}}),c})(),Ss=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez]]}),c})();class zo{constructor(f){this.dragPosition=f.dragPosition,this.group=f.group,this.dragDataTransfer=f.dragDataTransfer,this.dropPointPosition=f.dropPointPosition}}var Si=(()=>(function(c){c[c.DRAG_START=0]="DRAG_START",c[c.DRAG_MOVE=1]="DRAG_MOVE",c[c.DRAG_END=2]="DRAG_END",c[c.DRAG_ENTER=3]="DRAG_ENTER",c[c.DRAG_LEAVE=4]="DRAG_LEAVE",c[c.DROP=5]="DROP"}(Si||(Si={})),Si))();let tm=(()=>{class c{constructor(){this.dragStart=new Ue.xQ,this.dragMove=new Ue.xQ,this.dragEnd=new Ue.xQ,this.drop=new Ue.xQ}get dragStarted(){return this.dragStart.asObservable()}get dragMoved(){return this.dragMove.asObservable()}get dragEnded(){return this.dragEnd.asObservable()}get dropped(){return this.drop.asObservable()}broadcast(a){switch(a.type){case Si.DRAG_START:this.dragStart.next(a);break;case Si.DRAG_MOVE:this.dragMove.next(a);break;case Si.DRAG_END:this.dragEnd.next(a);break;case Si.DROP:this.drop.next(a)}}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"}),c})(),Wl=(()=>{class c{constructor(a,g,b){this.ngZone=a,this.renderer=g,this.eventBus=b,this.listeners=[],this.dragStart=new Ue.xQ,this.dragMove=new Ue.xQ,this.dragEnd=new Ue.xQ,this.hasDragStarted=!1,this.dragStartDelay=0}get dragStarted(){return this.dragStart.asObservable()}get dragMoved(){return this.dragMove.asObservable()}get dragEnded(){return this.dragEnd.asObservable()}get dragStartPosition(){return this.initialPosition}attachDragListeners(a){this.draggableEl=a,this.listeners.push(this.customDragEvent(this.draggableEl,"mousedown","mousemove","mouseup")),this.listeners.push(this.customDragEvent(this.draggableEl,"touchstart","touchmove","touchend"))}detachDragListeners(){this.listeners&&this.listeners.map(a=>a()),this.nestedListeners&&this.nestedListeners.map(a=>a()),this.checkDragStartBoundaryListener&&this.checkDragStartBoundaryListener()}getNativeEventObject(a){return Object.prototype.hasOwnProperty.call(a,"changedTouches")?a.changedTouches[0]:a}customDragEvent(a,g,b,x){return this.renderer.listen(a,g,$=>{this.initialPosition={pageX:this.getNativeEventObject($).pageX,pageY:this.getNativeEventObject($).pageY},this.nestedListeners=[],this.ngZone.runOutsideAngular(()=>{this.nestedListeners.push(this.renderer.listen("document","selectstart",le=>{le.preventDefault(),le.stopImmediatePropagation()})),this.checkDragStartBoundary(b),this.dragStartDelayTimeout=setTimeout(()=>{this.checkDragStartBoundaryListener&&this.checkDragStartBoundaryListener(),this.hasDragStarted=!0,this.broadcast($,Si.DRAG_START),this.nestedListeners.push(this.renderer.listen("document",b,le=>{le.stopImmediatePropagation(),this.hasDragStarted&&this.broadcast(le,Si.DRAG_MOVE)}))},this.dragStartDelay)}),this.nestedListeners.push(this.renderer.listen("document",x,le=>{this.hasDragStarted&&(this.hasDragStarted=!1,this.broadcast(le,Si.DRAG_END)),clearTimeout(this.dragStartDelayTimeout),this.nestedListeners.map(Se=>Se()),this.checkDragStartBoundaryListener&&this.checkDragStartBoundaryListener()}))})}checkDragStartBoundary(a){this.checkDragStartBoundaryListener=this.renderer.listen("document",a,g=>{const b=Math.abs(this.getNativeEventObject(g).pageX-this.initialPosition.pageX),x=Math.abs(this.getNativeEventObject(g).pageY-this.initialPosition.pageY);(b>1||x>1)&&(clearTimeout(this.dragStartDelayTimeout),this.checkDragStartBoundaryListener&&this.checkDragStartBoundaryListener())})}broadcast(a,g){const b=this.generateDragEvent(a,g);switch(b.type){case Si.DRAG_START:this.dragStart.next(b);break;case Si.DRAG_MOVE:this.dragMove.next(b);break;case Si.DRAG_END:this.dragEnd.next(b)}b.ghostElement=this.ghostElement,b.dropPointPosition=this.dropPointPosition,this.eventBus.broadcast(b)}generateDragEvent(a,g){const b=this.getNativeEventObject(a);return{type:g,dragPosition:{pageX:b.pageX,pageY:b.pageY,moveX:b.pageX-this.initialPosition.pageX,moveY:b.pageY-this.initialPosition.pageY},group:this.group,dragDataTransfer:this.dragDataTransfer,ghostElement:this.ghostElement}}}return c.\u0275fac=function(a){return new(a||c)(l.LFG(l.R0b),l.LFG(l.Qsj),l.LFG(tm))},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})(),Wh=(()=>{class c{constructor(a){this.domAdapter=a}capture(a,g){this.draggableElClientRect=this.domAdapter.clientRect(a),this.snapshotDragEvent=g}discard(){delete this.draggableElClientRect,delete this.snapshotDragEvent}get hasDraggableState(){return!!this.snapshotDragEvent&&!!this.draggableElClientRect}get clientRect(){return this.draggableElClientRect}get dragEvent(){return this.snapshotDragEvent}}return c.\u0275fac=function(a){return new(a||c)(l.LFG(Br))},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})(),Qh=(()=>{class c{constructor(a,g,b,x,$){if(this.el=a,this.dragEventListener=g,this.draggableSnapshot=b,this.renderer=x,this.ngZone=$,this.subscriptions=[],this.leaveAnimConfig={value:0,params:{top:"0px",left:"0px"}},!this.dragEventListener||!this.draggableSnapshot)throw new Error("The clr-draggable-ghost component can only be used inside of a clrDraggable directive.");this.draggableGhostEl=this.el.nativeElement,this.renderer.addClass(this.draggableGhostEl,"draggable-ghost"),this.dragEventListener.ghostElement=this.draggableGhostEl,this.setDefaultGhostSize(this.draggableGhostEl);const le={top:this.draggableSnapshot.hasDraggableState?this.draggableSnapshot.dragEvent.dragPosition.pageY-this.draggableSnapshot.clientRect.top:0,left:this.draggableSnapshot.hasDraggableState?this.draggableSnapshot.dragEvent.dragPosition.pageX-this.draggableSnapshot.clientRect.left:0};let Se=!1;this.subscriptions.push(this.dragEventListener.dragMoved.subscribe(Pe=>{Se||(this.draggableSnapshot.hasDraggableState?this.animateToOnLeave(`${this.draggableSnapshot.clientRect.top}px`,`${this.draggableSnapshot.clientRect.left}px`):this.animateToOnLeave(`${this.dragEventListener.dragStartPosition.pageY}px`,`${this.dragEventListener.dragStartPosition.pageY}px`),Se=!0);const nt=this.findTopLeftPosition(Pe.dragPosition,le);this.setPositionStyle(this.draggableGhostEl,nt.pageX,nt.pageY),this.dragEventListener.dropPointPosition=this.findDropPointPosition(nt)}))}setDefaultGhostSize(a){this.draggableSnapshot.hasDraggableState&&this.setSizeStyle(a,this.draggableSnapshot.clientRect.width,this.draggableSnapshot.clientRect.height)}animateToOnLeave(a,g){this.ngZone.run(()=>{this.leaveAnimConfig={value:0,params:{top:a,left:g}}})}findTopLeftPosition(a,g){return{pageX:a.pageX-g.left,pageY:a.pageY-g.top}}findDropPointPosition(a){return this.draggableSnapshot.hasDraggableState?{pageX:a.pageX+this.draggableSnapshot.clientRect.width/2,pageY:a.pageY+this.draggableSnapshot.clientRect.height/2}:a}setSizeStyle(a,g,b){this.renderer.setStyle(a,"width",`${g}px`),this.renderer.setStyle(a,"height",`${b}px`)}setPositionStyle(a,g,b){this.renderer.setStyle(a,"left",`${g}px`),this.renderer.setStyle(a,"top",`${b}px`),this.renderer.setStyle(a,"visibility","visible")}ngOnDestroy(){this.subscriptions.forEach(a=>a.unsubscribe())}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(l.SBq),l.Y36(Wl,8),l.Y36(Wh,8),l.Y36(l.Qsj),l.Y36(l.R0b))},c.\u0275cmp=l.Xpm({type:c,selectors:[["clr-draggable-ghost"]],hostVars:1,hostBindings:function(a,g){2&a&&l.d8E("@leaveAnimation",g.leaveAnimConfig)},ngContentSelectors:Dt,decls:1,vars:0,template:function(a,g){1&a&&(l.F$t(),l.Hsn(0))},encapsulation:2,data:{animation:[(0,Ye.X$)("leaveAnimation",[(0,Ye.eR)(":leave",[(0,Ye.oB)({left:"*",top:"*"}),(0,Ye.jt)("0.2s ease-in-out",(0,Ye.oB)({top:"{{top}}",left:"{{left}}"}))])])]}}),c})(),td=(()=>{class c{constructor(a,g,b){if(this.template=a,this.container=g,this.dragEventListener=b,this.subscriptions=[],!this.dragEventListener||!this.container)throw new Error("The *clrIfDragged directive can only be used inside of a clrDraggable directive.");this.subscriptions.push(this.dragEventListener.dragStarted.subscribe(()=>{this.container.createEmbeddedView(this.template)})),this.subscriptions.push(this.dragEventListener.dragEnded.subscribe(()=>{this.container.clear()}))}ngOnDestroy(){this.subscriptions.forEach(a=>a.unsubscribe())}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(l.Rgc),l.Y36(l.s_b,12),l.Y36(Wl,8))},c.\u0275dir=l.lG2({type:c,selectors:[["","clrIfDragged",""]]}),c})(),Hc=(()=>{class c{constructor(a,g){this.dragEventListener=a,this.renderer=g}get defaultHandleEl(){return this._defaultHandleEl}set defaultHandleEl(a){this._defaultHandleEl=a,this._customHandleEl||this.makeElementHandle(this._defaultHandleEl)}makeElementHandle(a){this._defaultHandleEl&&this._defaultHandleEl!==a&&this.renderer.removeClass(this._defaultHandleEl,"drag-handle"),this.dragEventListener.attachDragListeners(a),this.renderer.addClass(a,"drag-handle")}get customHandleEl(){return this._customHandleEl}registerCustomHandle(a){this.dragEventListener.detachDragListeners(),this._customHandleEl=a,this.makeElementHandle(this._customHandleEl)}unregisterCustomHandle(){this.dragEventListener.detachDragListeners(),this.renderer.removeClass(this._customHandleEl,"drag-handle"),delete this._customHandleEl,this._defaultHandleEl&&this.makeElementHandle(this._defaultHandleEl)}}return c.\u0275fac=function(a){return new(a||c)(l.LFG(Wl),l.LFG(l.Qsj))},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})(),nm=(()=>{class c{constructor(a){this.renderer=a}enter(){this.renderer.addClass(document.body,"in-drag")}exit(){this.renderer.removeClass(document.body,"in-drag")}}return c.\u0275fac=function(a){return new(a||c)(l.LFG(l.Qsj))},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})(),jc=(()=>{class c{constructor(a,g,b,x,$,le,Se,Pe){this.el=a,this.dragEventListener=g,this.dragHandleRegistrar=b,this.viewContainerRef=x,this.cfr=$,this.injector=le,this.draggableSnapshot=Se,this.globalDragMode=Pe,this.subscriptions=[],this.dragOn=!1,this.dragStartEmitter=new l.vpe,this.dragMoveEmitter=new l.vpe,this.dragEndEmitter=new l.vpe,this.draggableEl=this.el.nativeElement,this.componentFactory=this.cfr.resolveComponentFactory(Qh)}set dataTransfer(a){this.dragEventListener.dragDataTransfer=a}set group(a){this.dragEventListener.group=a}set dragStartDelay(a){"number"==typeof a?this.dragEventListener.dragStartDelay=a:"string"==typeof a&&(this.dragEventListener.dragStartDelay=parseInt(a,10)||0)}createDefaultGhost(a){this.draggableSnapshot.capture(this.draggableEl,a),this.viewContainerRef.createComponent(this.componentFactory,0,this.injector,[[this.draggableEl.cloneNode(!0)]])}destroyDefaultGhost(){this.viewContainerRef.clear(),this.draggableSnapshot.discard()}ngAfterContentInit(){this.dragHandleRegistrar.defaultHandleEl=this.draggableEl,this.subscriptions.push(this.dragEventListener.dragStarted.subscribe(a=>{this.globalDragMode.enter(),this.dragOn=!0,this.customGhost||this.createDefaultGhost(a),this.dragStartEmitter.emit(new zo(a))})),this.subscriptions.push(this.dragEventListener.dragMoved.subscribe(a=>{this.dragMoveEmitter.emit(new zo(a))})),this.subscriptions.push(this.dragEventListener.dragEnded.subscribe(a=>{this.globalDragMode.exit(),this.dragOn=!1,this.customGhost||this.destroyDefaultGhost(),this.dragEndEmitter.emit(new zo(a))}))}ngOnDestroy(){this.subscriptions.forEach(a=>a.unsubscribe()),this.dragEventListener.detachDragListeners()}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(l.SBq),l.Y36(Wl),l.Y36(Hc),l.Y36(l.s_b),l.Y36(l._Vd),l.Y36(l.zs3),l.Y36(Wh),l.Y36(nm))},c.\u0275dir=l.lG2({type:c,selectors:[["","clrDraggable",""]],contentQueries:function(a,g,b){if(1&a&&l.Suo(b,td,5),2&a){let x;l.iGM(x=l.CRH())&&(g.customGhost=x.first)}},hostVars:4,hostBindings:function(a,g){2&a&&l.ekj("draggable",!0)("being-dragged",g.dragOn)},inputs:{dataTransfer:["clrDraggable","dataTransfer"],group:["clrGroup","group"],dragStartDelay:["clrDragStartDelay","dragStartDelay"]},outputs:{dragStartEmitter:"clrDragStart",dragMoveEmitter:"clrDragMove",dragEndEmitter:"clrDragEnd"},features:[l._Bn([Wl,Hc,Wh,nm,Br])]}),c})(),zc=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez]]}),c})();const Jh={provide:new l.OlP("FOCUS_ON_VIEW_INIT"),useValue:!0};let Za=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({providers:[Jh],imports:[[M.ez]]}),c})(),sm=(()=>{class c{constructor(){this._previousFocusTraps=[]}get current(){return this._current}set current(a){this._previousFocusTraps.push(this._current),this._current=a}get nbFocusTrappers(){return this._previousFocusTraps.length}activatePreviousTrapper(){this._current=this._previousFocusTraps.pop()}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"}),c})(),Uo=(()=>{class c{constructor(a,g,b,x,$){this.el=a,this.injector=g,this.focusTrapsTracker=b,this.renderer=x,this.platformId=$,this.localFocusEscaped=!1,this._config={strict:!0},this.document=this.injector.get(M.K0),this.focusTrapsTracker.current=this}set config(a){this._config=Object.assign(this._config,""===a?{}:a)}onFocusIn(a){const g=this.el.nativeElement;this.focusTrapsTracker.current!==this||!(0,M.NF)(this.platformId)||this.localFocusEscaped||g.contains(a.target)||(a.target===this.topReboundEl&&g.contains(a.relatedTarget)?(this.focusLastFocusable(),this.focusTrapElIfOutside()):a.target===this.bottomReboundEl&&g.contains(a.relatedTarget)?(this.focusFirstFocusable(),this.focusTrapElIfOutside()):this._config.strict?this.el.nativeElement.focus():this.localFocusEscaped=!0)}createFocusableOffScreenEl(){const a=this.document.createElement("span");return this.renderer.setAttribute(a,"tabindex","0"),this.renderer.addClass(a,"offscreen-focus-rebounder"),a}addReboundEls(){if((0,M.NF)(this.platformId)){this.topReboundEl=this.createFocusableOffScreenEl(),this.bottomReboundEl=this.createFocusableOffScreenEl();const a=this.el.nativeElement;this.renderer.insertBefore(a.parentElement,this.topReboundEl,a),a.nextSibling?this.renderer.insertBefore(a.parentNode,this.bottomReboundEl,a.nextSibling):this.renderer.appendChild(a.parentNode,this.bottomReboundEl)}}removeReboundEls(){(0,M.NF)(this.platformId)&&this.topReboundEl&&this.bottomReboundEl&&(this.parentElement.removeChild(this.topReboundEl),this.parentElement.removeChild(this.bottomReboundEl),delete this.topReboundEl,delete this.bottomReboundEl)}setPreviousFocus(){this.previousActiveElement&&this.previousActiveElement.focus&&this.previousActiveElement.focus()}ngOnInit(){(0,M.NF)(this.platformId)&&(this.renderer.setAttribute(this.el.nativeElement,"tabindex","-1"),this.el.nativeElement.focus())}ngAfterViewInit(){(0,M.NF)(this.platformId)&&(this.previousActiveElement=this.document.activeElement,this.parentElement=this.el.nativeElement.parentElement),this.addReboundEls()}get potentiallyFocusableEls(){return[...this.el.nativeElement.querySelectorAll('[href]:not([tabindex="-1"]), button:not([disabled]):not([tabindex="-1"]), input:not([disabled]):not([tabindex="-1"]), select:not([disabled]):not([tabindex="-1"]), textarea:not([disabled]):not([tabindex="-1"]), [contenteditable="true"]:not([tabindex="-1"]), [tabindex]:not([tabindex="-1"]) ')]}focusFirstFocusable(){for(let a=0;a=0&&(this.lastFocusableEl=this.focusElement(this.potentiallyFocusableEls[a]),!this.lastFocusableEl);a--);}focusTrapElIfOutside(){this.el.nativeElement.contains(document.activeElement)||this.el.nativeElement.focus()}focusElement(a){return a&&a.focus&&(a.focus(),document.activeElement===a)?a:null}ngOnDestroy(){this.removeReboundEls(),this.setPreviousFocus(),this.focusTrapsTracker.activatePreviousTrapper()}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(l.SBq),l.Y36(l.zs3),l.Y36(sm),l.Y36(l.Qsj),l.Y36(l.Lbi))},c.\u0275dir=l.lG2({type:c,selectors:[["","clrFocusTrap",""]],hostBindings:function(a,g){1&a&&l.NdJ("focusin",function(x){return g.onFocusIn(x)},!1,l.evT)},inputs:{config:["clrFocusTrap","config"]}}),c})(),$c=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez]]}),c})(),am=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez]]}),c})(),rd=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez,In,Nc]]}),c})(),hm=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez]]}),c})(),fm=(()=>{class c{constructor(){Et.addIcons(Aa)}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[hm,rd]}),c})(),pm=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275cmp=l.Xpm({type:c,selectors:[["ng-component"]],decls:0,vars:0,template:function(a,g){},encapsulation:2}),c})(),Gc=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({}),c})(),gm=0,Gs=(()=>{class c{constructor(){this._id="clr-form-control-"+ ++gm,this._idChange=new Gn.X(this._id)}get id(){return this._id}set id(a){this._id=a,this._idChange.next(a)}get idChange(){return this._idChange.asObservable()}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})(),NC=0,Ql=(()=>{class c{constructor(){this._id="clr-form-container-"+ ++NC,this._idChange=new Gn.X(this._id)}get id(){return this._id}set id(a){this._id=a,this._idChange.next(a)}get idChange(){return this._idChange.asObservable()}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})();let Xh=(()=>{class c{constructor(a,g){this.controlIdService=a,this.containerIdService=g,this.controlIdSuffix="abstract"}get id(){return this.containerIdService?`${this.containerIdService.id}-${this.controlIdSuffix}`:this.controlIdService?`${this.controlIdService.id}-${this.controlIdSuffix}`:null}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(Gs,8),l.Y36(Ql,8))},c.\u0275dir=l.lG2({type:c}),c})(),Hr=(()=>{class c extends Xh{constructor(a,g){super(a,g),this.controlIdService=a,this.containerIdService=g,this.controlIdSuffix="error"}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(Gs,8),l.Y36(Ql,8))},c.\u0275cmp=l.Xpm({type:c,selectors:[["clr-control-error"]],hostVars:3,hostBindings:function(a,g){2&a&&(l.uIk("id",g.id),l.ekj("clr-subtext",!0))},features:[l.qOj],ngContentSelectors:Dt,decls:1,vars:0,template:function(a,g){1&a&&(l.F$t(),l.Hsn(0))},encapsulation:2}),c})(),ef=(()=>{class c extends Xh{constructor(a,g){super(a,g),this.controlIdService=a,this.containerIdService=g,this.controlIdSuffix="helper"}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(Gs,8),l.Y36(Ql,8))},c.\u0275cmp=l.Xpm({type:c,selectors:[["clr-control-helper"]],hostVars:3,hostBindings:function(a,g){2&a&&(l.uIk("id",g.id),l.ekj("clr-subtext",!0))},features:[l.qOj],ngContentSelectors:Dt,decls:1,vars:0,template:function(a,g){1&a&&(l.F$t(),l.Hsn(0))},encapsulation:2}),c})(),Ds=(()=>{class c{constructor(){this._controlChanges=new Ue.xQ,this._helpers=new Ue.xQ}get controlChanges(){return this._controlChanges.asObservable()}setControl(a){this._controlChanges.next(a)}get helpersChange(){return this._helpers.asObservable()}setHelpers(a){this._helpers.next(a)}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})();var Di=(()=>(function(c){c.NONE="NONE",c.VALID="VALID",c.INVALID="INVALID"}(Di||(Di={})),Di))();let Ys=(()=>{class c{constructor(a){this.ngControlService=a,this.subscriptions=[],this._statusChanges=new Gn.X(Di.NONE),this.subscriptions.push(this.ngControlService.controlChanges.subscribe(g=>{g&&(this.control=g,this.subscriptions.push(this.control.statusChanges.subscribe(()=>{this.triggerStatusChange()})))}))}get statusChanges(){return this._statusChanges.asObservable()}triggerStatusChange(){if(this.control){const a=Di[this.control.status];this._statusChanges.next(["VALID","INVALID"].includes(a)?a:Di.NONE)}}ngOnDestroy(){this.subscriptions.forEach(a=>a.unsubscribe())}}return c.\u0275fac=function(a){return new(a||c)(l.LFG(Ds))},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})();var ma=(()=>(function(c){c.VERTICAL="vertical",c.HORIZONTAL="horizontal",c.COMPACT="compact"}(ma||(ma={})),ma))();let yo=(()=>{class c{constructor(){this.minLabelSize=1,this.maxLabelSize=12,this.layout=ma.HORIZONTAL,this.layoutValues=Object.keys(ma).map(a=>ma[a]),this._labelSize=2}set labelSize(a){this.labelSizeIsValid(a)&&(this._labelSize=a)}get labelSize(){return this._labelSize}isVertical(){return this.layout===ma.VERTICAL}isHorizontal(){return this.layout===ma.HORIZONTAL}isCompact(){return this.layout===ma.COMPACT}get layoutClass(){return`clr-form-${this.layout}`}isValid(a){return this.layoutValues.indexOf(a)>-1}labelSizeIsValid(a){return Number.isInteger(a)&&a>=this.minLabelSize&&a<=this.maxLabelSize}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})(),ci=(()=>{class c{constructor(a,g,b,x,$){this.controlIdService=a,this.layoutService=g,this.ngControlService=b,this.renderer=x,this.el=$,this.subscriptions=[],this.enableGrid=!0}get labelText(){return this.el.nativeElement&&this.el.nativeElement.textContent}ngOnInit(){(this.controlIdService||this.ngControlService)&&this.renderer.addClass(this.el.nativeElement,"clr-control-label"),this.enableGrid&&this.layoutService&&!this.layoutService.isVertical()&&this.el.nativeElement&&this.el.nativeElement.className.indexOf("clr-col")<0&&(this.renderer.addClass(this.el.nativeElement,"clr-col-12"),this.renderer.addClass(this.el.nativeElement,`clr-col-md-${this.layoutService.labelSize}`)),this.controlIdService&&!this.forAttr&&this.subscriptions.push(this.controlIdService.idChange.subscribe(a=>this.forAttr=a))}disableGrid(){this.enableGrid=!1}ngOnDestroy(){this.subscriptions.forEach(a=>a.unsubscribe())}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(Gs,8),l.Y36(yo,8),l.Y36(Ds,8),l.Y36(l.Qsj),l.Y36(l.SBq))},c.\u0275dir=l.lG2({type:c,selectors:[["label"]],hostVars:1,hostBindings:function(a,g){2&a&&l.uIk("for",g.forAttr)},inputs:{forAttr:["for","forAttr"]}}),c})(),ql=(()=>{class c extends Xh{constructor(a,g){super(a,g),this.controlIdService=a,this.containerIdService=g,this.controlIdSuffix="success"}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(Gs,8),l.Y36(Ql,8))},c.\u0275cmp=l.Xpm({type:c,selectors:[["clr-control-success"]],hostVars:3,hostBindings:function(a,g){2&a&&(l.uIk("id",g.id),l.ekj("clr-subtext",!0))},features:[l.qOj],ngContentSelectors:Dt,decls:1,vars:0,template:function(a,g){1&a&&(l.F$t(),l.Hsn(0))},encapsulation:2}),c})(),Zs=(()=>{class c{constructor(a){this.layoutService=a,this.className=""}controlClass(a=Di.NONE,g=!1,b=""){const x=[this.className,b];switch(a){case Di.VALID:x.push("clr-success");break;case Di.INVALID:x.push("clr-error")}return g&&this.layoutService&&-1===this.className.indexOf("clr-col")&&x.push(`clr-col-md-${this.layoutService.maxLabelSize-this.layoutService.labelSize} clr-col-12`),x.join(" ").trim()}initControlClass(a,g){g&&g.className&&(this.className=g.className,g.className.split(" ").forEach(x=>{x.startsWith("clr-col")&&a.removeClass(g,x)}))}}return c.\u0275fac=function(a){return new(a||c)(l.LFG(yo,8))},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})(),Yc=(()=>{class c{constructor(a,g,b,x){this.ifControlStateService=a,this.layoutService=g,this.controlClassService=b,this.ngControlService=x,this.subscriptions=[],this._dynamic=!1,this.subscriptions.push(this.ifControlStateService.statusChanges.subscribe($=>{this.state=$,this.updateHelpers()})),this.subscriptions.push(this.ngControlService.controlChanges.subscribe($=>{this.control=$}))}get showHelper(){return!!this.controlHelperComponent&&(!!this.controlHelperComponent&&(!this.touched||this.state===Di.NONE)||!this.controlSuccessComponent&&this.state===Di.VALID||!this.controlErrorComponent&&this.state===Di.INVALID)}get showValid(){return this.touched&&this.state===Di.VALID&&!!this.controlSuccessComponent}get showInvalid(){return this.touched&&this.state===Di.INVALID&&!!this.controlErrorComponent}ngAfterContentInit(){this.updateHelpers()}ngOnDestroy(){this.subscriptions.forEach(a=>a.unsubscribe())}controlClass(){return this.controlClassService.controlClass(!this.controlSuccessComponent&&this.state===Di.VALID||!this.touched?Di.NONE:this.state,this.addGrid())}addGrid(){return this.layoutService&&!this.layoutService.isVertical()}updateHelpers(){this.ngControlService&&this.ngControlService.setHelpers({show:this.showInvalid||this.showHelper||this.showValid,showInvalid:this.showInvalid,showHelper:this.showHelper,showValid:this.showValid})}get touched(){return this.control?.touched}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(Ys),l.Y36(yo,8),l.Y36(Zs),l.Y36(Ds))},c.\u0275dir=l.lG2({type:c,contentQueries:function(a,g,b){if(1&a&&(l.Suo(b,ci,5),l.Suo(b,ql,5),l.Suo(b,Hr,5),l.Suo(b,ef,5)),2&a){let x;l.iGM(x=l.CRH())&&(g.label=x.first),l.iGM(x=l.CRH())&&(g.controlSuccessComponent=x.first),l.iGM(x=l.CRH())&&(g.controlErrorComponent=x.first),l.iGM(x=l.CRH())&&(g.controlHelperComponent=x.first)}}}),c})();class tf{constructor(f,a,g=0){if(this.injector=a.injector,!this.injector.get(f,null)){const b=this.injector.get(l._Vd),x=this.injector.get(l.SBq);a.createComponent(b.resolveComponentFactory(pm));const $=b.resolveComponentFactory(f),le=[];le[g]=[x.nativeElement];const Se=a.createComponent($,void 0,void 0,le);a.remove(0),Se.instance._dynamic=!0,this.injector=Se.injector}}get(f,a){return this.injector.get(f,a)}}let Zc=(()=>{class c{constructor(){this._touched=new Ue.xQ}get touchedChange(){return this._touched.asObservable()}markAsTouched(){this._touched.next()}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})(),Wa=(()=>{class c{constructor(a,g,b,x,$,le){this.vcr=a,this.wrapperType=g,this.ngControl=x,this.subscriptions=[],this.index=0,this.renderer=$,this.el=le;try{this.ngControlService=b.get(Ds),this.ifControlStateService=b.get(Ys),this.controlClassService=b.get(Zs),this.markControlService=b.get(Zc)}catch{}this.controlClassService&&this.controlClassService.initControlClass($,le.nativeElement),this.markControlService&&this.subscriptions.push(this.markControlService.touchedChange.subscribe(()=>{this.markAsTouched()})),this.ngControlService&&this.subscriptions.push(this.ngControlService.helpersChange.subscribe(Se=>{this.setAriaDescribedBy(Se)}))}get id(){return this._id}set id(a){this._id=a,this.controlIdService&&(this.controlIdService.id=a)}triggerValidation(){this.ifControlStateService&&this.ifControlStateService.triggerStatusChange()}markAsTouched(){this.ngControl.control.markAsTouched(),this.ngControl.control.updateValueAndValidity()}getProviderFromContainer(a,g){try{return this._containerInjector.get(a,g)}catch{return g}}ngOnInit(){this._containerInjector=new tf(this.wrapperType,this.vcr,this.index),this.controlIdService=this._containerInjector.get(Gs);try{this.containerIdService=this._containerInjector.get(Ql)}catch{}this._id?this.controlIdService.id=this._id:this._id=this.controlIdService.id,this.ngControlService&&this.ngControlService.setControl(this.ngControl)}ngOnDestroy(){this.subscriptions.forEach(a=>a.unsubscribe())}setAriaDescribedBy(a){if(a.show){const g=this.getAriaDescribedById(a);if(null!==g)return void this.renderer.setAttribute(this.el.nativeElement,"aria-describedby",g)}this.renderer.removeAttribute(this.el.nativeElement,"aria-describedby")}getAriaDescribedById(a){let g="helper";return a.showInvalid?g="error":a.showValid&&(g="success"),this.containerIdService?this.containerIdService.id.concat("-",g):this.controlIdService?this.controlIdService.id.concat("-",g):null}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(l.s_b),l.Y36(l.DyG),l.Y36(l.zs3),l.Y36(ot.a5),l.Y36(l.Qsj),l.Y36(l.SBq))},c.\u0275dir=l.lG2({type:c,hostVars:1,hostBindings:function(a,g){1&a&&l.NdJ("blur",function(){return g.triggerValidation()}),2&a&&l.Ikx("id",g.id)},inputs:{id:"id"}}),c})(),BC=(()=>{class c{constructor(a,g){this.layoutService=a,this.markControlService=g}set labelSize(a){const g=parseInt(a,10)||2;this.layoutService.labelSize=g}markAsTouched(){this.markControlService.markAsTouched()}onFormSubmit(){this.markAsTouched()}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(yo),l.Y36(Zc))},c.\u0275dir=l.lG2({type:c,selectors:[["","clrForm",""]],contentQueries:function(a,g,b){if(1&a&&l.Suo(b,ci,5),2&a){let x;l.iGM(x=l.CRH())&&(g.labels=x)}},hostVars:6,hostBindings:function(a,g){1&a&&l.NdJ("submit",function(){return g.onFormSubmit()}),2&a&&l.ekj("clr-form",!0)("clr-form-horizontal",g.layoutService.isHorizontal())("clr-form-compact",g.layoutService.isCompact())},inputs:{labelSize:["clrLabelSize","labelSize"]},features:[l._Bn([yo,Zc])]}),c})(),Co=(()=>{class c{constructor(a){this.layoutService=a}ngOnInit(){this.layout&&this.layoutService.isValid(this.layout)&&(this.layoutService.layout=this.layout)}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(yo))},c.\u0275dir=l.lG2({type:c,selectors:[["","clrForm","","clrLayout",""]],inputs:{layout:["clrLayout","layout"]}}),c})(),jr=(()=>{class c{constructor(){Et.addIcons(rn,Mr)}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez,In]]}),c})();const id=new l.OlP("IS_TOGGLE"),zC={provide:id,useFactory:function jC(){return new Gn.X(!1)}};let sd=(()=>{class c{constructor(a){this._dynamic=!1,this.toggle=!1,this.subscriptions=[],this.subscriptions.push(a.subscribe(g=>{this.toggle=g}))}ngOnInit(){this.label&&this.label.disableGrid()}ngOnDestroy(){this.subscriptions.forEach(a=>a.unsubscribe())}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(id))},c.\u0275cmp=l.Xpm({type:c,selectors:[["clr-checkbox-wrapper"],["clr-toggle-wrapper"]],contentQueries:function(a,g,b){if(1&a&&l.Suo(b,ci,7),2&a){let x;l.iGM(x=l.CRH())&&(g.label=x.first)}},hostVars:4,hostBindings:function(a,g){2&a&&l.ekj("clr-checkbox-wrapper",!g.toggle)("clr-toggle-wrapper",g.toggle)},features:[l._Bn([Gs,zC])],ngContentSelectors:k_,decls:3,vars:1,consts:[[4,"ngIf"]],template:function(a,g){1&a&&(l.F$t(Pp),l.Hsn(0),l.Hsn(1,1),l.YNc(2,F_,1,0,"label",0)),2&a&&(l.xp6(2),l.Q6J("ngIf",!g.label))},dependencies:[M.O5,ci],encapsulation:2}),c})(),od=(()=>{class c extends Wa{constructor(a,g,b,x,$,le){super(a,sd,g,b,x,$),this.toggle=le}ngOnInit(){super.ngOnInit();const a=this.getProviderFromContainer(id,null);a&&null!==this.toggle&&a.next(!0)}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(l.s_b),l.Y36(l.zs3),l.Y36(ot.a5,10),l.Y36(l.Qsj),l.Y36(l.SBq),l.$8M("clrToggle"))},c.\u0275dir=l.lG2({type:c,selectors:[["","clrCheckbox",""],["","clrToggle",""]],features:[l.qOj]}),c})(),nf=(()=>{class c extends Yc{constructor(a,g,b,x){super(x,a,g,b),this.layoutService=a,this.controlClassService=g,this.ngControlService=b,this.ifControlStateService=x,this.inline=!1}set clrInline(a){this.inline="string"==typeof a?"false"!==a:!!a}get clrInline(){return this.inline}ngAfterContentInit(){this.setAriaRoles()}setAriaRoles(){this.role=this.checkboxes.length?"group":null}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(yo,8),l.Y36(Zs),l.Y36(Ds),l.Y36(Ys))},c.\u0275cmp=l.Xpm({type:c,selectors:[["clr-checkbox-container"],["clr-toggle-container"]],contentQueries:function(a,g,b){if(1&a&&l.Suo(b,od,5),2&a){let x;l.iGM(x=l.CRH())&&(g.checkboxes=x)}},hostVars:7,hostBindings:function(a,g){2&a&&(l.uIk("role",g.role),l.ekj("clr-form-control",!0)("clr-form-control-disabled",null==g.control?null:g.control.disabled)("clr-row",g.addGrid()))},inputs:{clrInline:"clrInline"},features:[l._Bn([Ys,Ds,Zs,Ql]),l.qOj],ngContentSelectors:R_,decls:10,vars:9,consts:[[4,"ngIf"],[1,"clr-control-container",3,"ngClass"],[1,"clr-subtext-wrapper"],["class","clr-validate-icon","shape","exclamation-circle","status","danger","aria-hidden","true",4,"ngIf"],["class","clr-validate-icon","shape","check-circle","status","success","aria-hidden","true",4,"ngIf"],["shape","exclamation-circle","status","danger","aria-hidden","true",1,"clr-validate-icon"],["shape","check-circle","status","success","aria-hidden","true",1,"clr-validate-icon"]],template:function(a,g){1&a&&(l.F$t(N_),l.Hsn(0),l.YNc(1,P_,1,0,"label",0),l.TgZ(2,"div",1),l.Hsn(3,1),l.TgZ(4,"div",2),l.YNc(5,Np,1,0,"ng-content",0),l.YNc(6,ch,1,0,"cds-icon",3),l.YNc(7,Pu,1,0,"cds-icon",4),l.YNc(8,uh,1,0,"ng-content",0),l.YNc(9,al,1,0,"ng-content",0),l.qZA()()),2&a&&(l.xp6(1),l.Q6J("ngIf",!g.label&&g.addGrid()),l.xp6(1),l.ekj("clr-control-inline",g.clrInline),l.Q6J("ngClass",g.controlClass()),l.xp6(3),l.Q6J("ngIf",g.showHelper),l.xp6(1),l.Q6J("ngIf",g.showInvalid),l.xp6(1),l.Q6J("ngIf",g.showValid),l.xp6(1),l.Q6J("ngIf",g.showInvalid),l.xp6(1),l.Q6J("ngIf",g.showValid))},dependencies:[M.O5,ci,M.mk,Jt],encapsulation:2}),c})(),Wc=(()=>{class c{constructor(){Et.addIcons(rn,Mr)}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez,In,jr,Gc],jr]}),c})();function Ws(c){return null!==c&&("string"==typeof c?c.length>=0:"boolean"==typeof c&&c)}let Jl=(()=>{class c{get spinnerClass(){return!0}get inlineClass(){return this._inline}set clrInline(a){this._inline=Ws(a)}get inverseClass(){return this._inverse}set clrInverse(a){this._inverse=Ws(a)}get smallClass(){return this._small}set clrSmall(a){this._small=Ws(a)}get mediumClass(){return!this._small&&this._medium}set clrMedium(a){this._medium=Ws(a)}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275cmp=l.Xpm({type:c,selectors:[["clr-spinner"]],hostVars:11,hostBindings:function(a,g){2&a&&(l.uIk("aria-busy",!0),l.ekj("spinner",g.spinnerClass)("spinner-inline",g.inlineClass)("spinner-inverse",g.inverseClass)("spinner-sm",g.smallClass)("spinner-md",g.mediumClass))},inputs:{clrInline:"clrInline",clrInverse:"clrInverse",clrSmall:"clrSmall",clrMedium:"clrMedium"},ngContentSelectors:Dt,decls:1,vars:0,template:function(a,g){1&a&&(l.F$t(),l.Hsn(0))},encapsulation:2}),c})(),Kl=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez]]}),c})(),qc=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez]]}),c})();const ya=new l.OlP("POPOVER_HOST_ANCHOR");class Jc{}function rf(c){return[c,{provide:Jc,useExisting:c}]}class Cm extends class ym{containsItem(f){return this.model===f}select(f){this.model=f}unselect(f){this.containsItem(f)&&(this.model=null)}isEmpty(){return!this.model}pop(){const f=this.model;return this.model=null,f}toString(f){return this.model?f&&this.model[f]?this.model[f]:this.model.toString():""}}{constructor(){super(...arguments),this._focusChanged=new Gn.X(null)}get focusChanged(){return this._focusChanged.asObservable()}select(f){this.model!==f&&(this.model=f,this._focusChanged.next(f))}}let YC=(()=>{class c{constructor(){this.loading=!1,this._currentInput="",this._inputChanged=new Gn.X(""),this.inputChanged=this._inputChanged.asObservable(),this._selectionChanged=new Zr(1)}get currentInput(){return this._currentInput}set currentInput(a){""===a&&!this.multiselectable&&this.setSelectionValue(null),this._currentInput=a,this._inputChanged.next(a)}get selectionChanged(){return this._selectionChanged.asObservable()}select(a){null==a||this.selectionModel.containsItem(a)||(this.selectionModel.select(a),this._selectionChanged.next(this.selectionModel))}toggle(a){null!=a&&(this.selectionModel.containsItem(a)?this.selectionModel.unselect(a):this.selectionModel.select(a),this._selectionChanged.next(this.selectionModel))}unselect(a){null==a||!this.selectionModel.containsItem(a)||(this.selectionModel.unselect(a),this._selectionChanged.next(this.selectionModel))}get multiselectable(){return this.selectionModel instanceof class _m{containsItem(f){return!!this.model&&this.model.includes(f)}select(f){this.addItem(f)}unselect(f){this.removeItem(f)}isEmpty(){return!(this.model&&this.model.length>0)}pop(){let f;return this.model&&this.model.length>0&&(f=this.model[this.model.length-1],this.removeItem(f)),f}toString(f,a=-1){let g="";return this.model&&(a>-1?this.model[a]&&(g+=f&&this.model[a][f]?this.model[a][f]:this.model[a].toString()):this.model.forEach(b=>{g+=f&&b[f]?b[f]:b.toString(),g+=" "})),g.trim()}addItem(f){this.containsItem(f)||(this.model=this.model||[],this.model.push(f))}removeItem(f){if(null==this.model)return;const a=this.model.indexOf(f);a>-1&&this.model.splice(a,1),0===this.model.length&&(this.model=null)}}}setSelectionValue(a){!this.selectionModel||this.selectionModel.model===a||!this.selectionModel.model&&!a||(this.selectionModel.model=a,this._selectionChanged.next(this.selectionModel))}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})();rf((()=>{class c{constructor(a,g,b,x){this.toggleService=g,this.selectionService=b,this.platformId=x,this.pseudoFocus=new Cm,this.optionData=[],this.handleFocusSubscription(),this.renderer=a.createRenderer(null,null)}handleFocusSubscription(){this.toggleService.openChange.subscribe(a=>{a||(this.pseudoFocus.model=null)})}get trigger(){return this._trigger}set trigger(a){this._trigger=a,this.addFocusOnBlurListener(a)}get listbox(){return this._listbox}set listbox(a){this._listbox=a,this.addFocusOnBlurListener(a)}get textInput(){return this._textInput}set textInput(a){this._textInput=a,this.renderer.listen(a,"keydown",g=>!this.handleTextInput(g)),this.addFocusOnBlurListener(a)}moveFocusTo(a){let g=this.optionData.findIndex(b=>b.equals(this.pseudoFocus.model));a===qi.UP?-1===g||0===g?g=this.optionData.length-1:g--:a===qi.DOWN&&(-1===g||g===this.optionData.length-1?g=0:g++),this.pseudoFocus.select(this.optionData[g]),this.scrollIntoSelectedModel()}openAndMoveTo(a){this.toggleService.open?this.moveFocusTo(a):(this.toggleService.openChange.pipe((0,Oo.q)(1)).subscribe(g=>{g&&this.moveFocusTo(a)}),this.toggleService.open=!0)}handleTextInput(a){let g=!1;const b=mo(a.key);if(a)switch(b){case ht.Enter:this.toggleService.open&&this.pseudoFocus.model&&(this.selectionService.multiselectable?this.selectionService.toggle(this.pseudoFocus.model.value):this.selectionService.select(this.pseudoFocus.model.value),g=!0);break;case ht.Space:this.toggleService.open||(this.toggleService.open=!0,g=!0);break;case ht.ArrowUp:this.preventViewportScrolling(a),this.openAndMoveTo(qi.UP),g=!0;break;case ht.ArrowDown:this.preventViewportScrolling(a),this.openAndMoveTo(qi.DOWN),g=!0;break;default:a.key!==ht.Tab&&(!this.selectionService.multiselectable||a.key!==ht.Backspace)&&a.key!==ht.Escape&&!this.toggleService.open&&(this.toggleService.open=!0)}return g}scrollIntoSelectedModel(a="smooth"){this.pseudoFocus.model&&this.pseudoFocus.model.el&&this.pseudoFocus.model.el.scrollIntoView({behavior:a,block:"center",inline:"nearest"})}preventViewportScrolling(a){a.preventDefault(),a.stopImmediatePropagation()}focusInput(){this.textInput&&(0,M.NF)(this.platformId)&&this.textInput.focus()}addFocusOnBlurListener(a){(0,M.NF)(this.platformId)&&this.renderer.listen(a,"blur",g=>{this.focusOutOfComponent(g)&&(this.toggleService.open=!1,this.componentCdRef&&this.componentCdRef.detectChanges())})}focusOutOfComponent(a){const g=a.relatedTarget||document.activeElement;return!(this.textInput.contains(g)||this.trigger.contains(g)||this.listbox.contains(g))}focusFirstActive(){if(this.optionData.length>0)if(this.selectionService.selectionModel.isEmpty())this.pseudoFocus.select(this.optionData[0]);else{let a;a=this.selectionService.multiselectable?this.selectionService.selectionModel.model[0]:this.selectionService.selectionModel.model;const g=this.optionData.find(b=>b.value===a);this.pseudoFocus.select(g||this.optionData[0]),this.scrollIntoSelectedModel("auto")}}addOptionValues(a){this.optionData=a}}return c.\u0275fac=function(a){return new(a||c)(l.LFG(l.FYo),l.LFG(Sn),l.LFG(YC),l.LFG(l.Lbi))},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})());let ZC=(()=>{class c{constructor(){Et.addIcons(rn,Mr,$n,xs)}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez,ot.u5,In,qc,jr,Ss,Nc,Kl],jr,Ss]}),c})(),bm=(()=>{class c extends Yc{}return c.\u0275fac=function(){let f;return function(g){return(f||(f=l.n5z(c)))(g||c)}}(),c.\u0275cmp=l.Xpm({type:c,selectors:[["clr-input-container"]],hostVars:6,hostBindings:function(a,g){2&a&&l.ekj("clr-form-control",!0)("clr-form-control-disabled",null==g.control?null:g.control.disabled)("clr-row",g.addGrid())},features:[l._Bn([Ys,Ds,Gs,Zs]),l.qOj],ngContentSelectors:Z_,decls:10,vars:7,consts:[[4,"ngIf"],[1,"clr-control-container",3,"ngClass"],[1,"clr-input-wrapper"],["class","clr-validate-icon","shape","exclamation-circle","status","danger","aria-hidden","true",4,"ngIf"],["class","clr-validate-icon","shape","check-circle","status","success","aria-hidden","true",4,"ngIf"],["shape","exclamation-circle","status","danger","aria-hidden","true",1,"clr-validate-icon"],["shape","check-circle","status","success","aria-hidden","true",1,"clr-validate-icon"]],template:function(a,g){1&a&&(l.F$t(Y_),l.Hsn(0),l.YNc(1,J0,1,0,"label",0),l.TgZ(2,"div",1)(3,"div",2),l.Hsn(4,1),l.YNc(5,K0,1,0,"cds-icon",3),l.YNc(6,X0,1,0,"cds-icon",4),l.qZA(),l.YNc(7,Vp,1,0,"ng-content",0),l.YNc(8,$_,1,0,"ng-content",0),l.YNc(9,G_,1,0,"ng-content",0),l.qZA()),2&a&&(l.xp6(1),l.Q6J("ngIf",!g.label&&g.addGrid()),l.xp6(1),l.Q6J("ngClass",g.controlClass()),l.xp6(3),l.Q6J("ngIf",g.showInvalid),l.xp6(1),l.Q6J("ngIf",g.showValid),l.xp6(1),l.Q6J("ngIf",g.showHelper),l.xp6(1),l.Q6J("ngIf",g.showInvalid),l.xp6(1),l.Q6J("ngIf",g.showValid))},dependencies:[M.O5,ci,M.mk,Jt],encapsulation:2}),c})(),WC=(()=>{class c extends Wa{constructor(a,g,b,x,$){super(a,bm,g,b,x,$),this.index=1}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(l.s_b),l.Y36(l.zs3),l.Y36(ot.a5,10),l.Y36(l.Qsj),l.Y36(l.SBq))},c.\u0275dir=l.lG2({type:c,selectors:[["","clrInput",""]],hostVars:2,hostBindings:function(a,g){2&a&&l.ekj("clr-input",!0)},features:[l.qOj]}),c})(),Sm=(()=>{class c{constructor(){Et.addIcons(rn,Mr)}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez,ot.u5,In,jr],jr]}),c})(),Dm=(()=>{class c{constructor(){Et.addIcons(rn,Mr)}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez,Sm,In]]}),c})(),ru=(()=>{class c{constructor(){Et.addIcons(rn,Mr,$n,Io,Ms)}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez,Gc,Ss,Nc,In,$c,jr]]}),c})();new l.OlP(void 0);let Nm=(()=>{class c{constructor(){Et.addIcons(Os,ei,rn,Mr)}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez,ot.u5,In,jr],jr]}),c})(),Rm=(()=>{class c{constructor(){this._dynamic=!1}ngOnInit(){this.label&&this.label.disableGrid()}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275cmp=l.Xpm({type:c,selectors:[["clr-radio-wrapper"]],contentQueries:function(a,g,b){if(1&a&&l.Suo(b,ci,7),2&a){let x;l.iGM(x=l.CRH())&&(g.label=x.first)}},hostVars:2,hostBindings:function(a,g){2&a&&l.ekj("clr-radio-wrapper",!0)},features:[l._Bn([Gs])],ngContentSelectors:$p,decls:3,vars:1,consts:[[4,"ngIf"]],template:function(a,g){1&a&&(l.F$t(Up),l.Hsn(0),l.Hsn(1,1),l.YNc(2,mh,1,0,"label",0)),2&a&&(l.xp6(2),l.Q6J("ngIf",!g.label))},dependencies:[M.O5,ci],encapsulation:2}),c})(),ob=(()=>{class c extends Wa{constructor(a,g,b,x,$){super(a,Rm,g,b,x,$)}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(l.s_b),l.Y36(l.zs3),l.Y36(ot.a5,10),l.Y36(l.Qsj),l.Y36(l.SBq))},c.\u0275dir=l.lG2({type:c,selectors:[["","clrRadio",""]],features:[l.qOj]}),c})(),lb=(()=>{class c{constructor(){Et.addIcons(rn,Mr)}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez,jr,Gc,In],jr]}),c})(),Lm=(()=>{class c extends Yc{constructor(a,g,b,x,$,le){super(le,a,g,b),this.renderer=x,this.idService=$,this.ifControlStateService=le,this._hasProgress=!1}set hasProgress(a){const g=!!a;g!==this._hasProgress&&(this._hasProgress=g)}get hasProgress(){return this._hasProgress}getRangeProgressFillWidth(){const a=this.renderer.selectRootElement("[clrRange]#"+this.idService.id),b=+a.min;let x=+a.max;return 0===b&&0===x&&(x=100),100*((this.control&&void 0!==this.control.value?this.control.value:(b+x)/2)-b)/(x-b)*a.offsetWidth/100+"px"}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(yo,8),l.Y36(Zs),l.Y36(Ds),l.Y36(l.Qsj),l.Y36(Gs),l.Y36(Ys))},c.\u0275cmp=l.Xpm({type:c,selectors:[["clr-range-container"]],hostVars:6,hostBindings:function(a,g){2&a&&l.ekj("clr-form-control",!0)("clr-form-control-disabled",null==g.control?null:g.control.disabled)("clr-row",g.addGrid())},inputs:{hasProgress:["clrRangeHasProgress","hasProgress"]},features:[l._Bn([Ys,Ds,Gs,Zs]),l.qOj],ngContentSelectors:Bu,decls:11,vars:10,consts:[[4,"ngIf"],[1,"clr-control-container",3,"ngClass"],[1,"clr-range-wrapper"],["class","fill-input",3,"width",4,"ngIf"],["class","clr-validate-icon","shape","exclamation-circle","status","danger","aria-hidden","true",4,"ngIf"],["class","clr-validate-icon","shape","check-circle","status","success","aria-hidden","true",4,"ngIf"],[1,"fill-input"],["shape","exclamation-circle","status","danger","aria-hidden","true",1,"clr-validate-icon"],["shape","check-circle","status","success","aria-hidden","true",1,"clr-validate-icon"]],template:function(a,g){1&a&&(l.F$t(_h),l.Hsn(0),l.YNc(1,Zp,1,0,"label",0),l.TgZ(2,"div",1)(3,"div",2),l.Hsn(4,1),l.YNc(5,Wp,1,2,"span",3),l.YNc(6,ll,1,0,"cds-icon",4),l.YNc(7,ly,1,0,"cds-icon",5),l.qZA(),l.YNc(8,vh,1,0,"ng-content",0),l.YNc(9,Vu,1,0,"ng-content",0),l.YNc(10,cy,1,0,"ng-content",0),l.qZA()),2&a&&(l.xp6(1),l.Q6J("ngIf",!g.label&&g.addGrid()),l.xp6(1),l.Q6J("ngClass",g.controlClass()),l.xp6(1),l.ekj("progress-fill",g.hasProgress),l.xp6(2),l.Q6J("ngIf",g.hasProgress),l.xp6(1),l.Q6J("ngIf",g.showInvalid),l.xp6(1),l.Q6J("ngIf",g.showValid),l.xp6(1),l.Q6J("ngIf",g.showHelper),l.xp6(1),l.Q6J("ngIf",g.showInvalid),l.xp6(1),l.Q6J("ngIf",g.showValid))},dependencies:[M.O5,ci,M.mk,Jt],encapsulation:2}),c})(),pD=(()=>{class c extends Wa{constructor(a,g,b,x,$){super(a,Lm,g,b,x,$)}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(l.s_b),l.Y36(l.zs3),l.Y36(ot.a5,10),l.Y36(l.Qsj),l.Y36(l.SBq))},c.\u0275dir=l.lG2({type:c,selectors:[["","clrRange",""]],hostVars:2,hostBindings:function(a,g){2&a&&l.ekj("clr-range",!0)},features:[l.qOj]}),c})(),gD=(()=>{class c{constructor(){Et.addIcons(rn,Mr)}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez,jr,Gc,In],jr]}),c})(),cb=(()=>{class c extends Yc{constructor(a,g,b,x){super(x,a,g,b),this.layoutService=a,this.controlClassService=g,this.ngControlService=b,this.ifControlStateService=x,this.multi=!1}ngOnInit(){this.subscriptions.push(this.ngControlService.controlChanges.subscribe(a=>{a&&(this.multi=a.valueAccessor instanceof ot.K7,this.control=a)}))}wrapperClass(){return this.multi?"clr-multiselect-wrapper":"clr-select-wrapper"}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(yo,8),l.Y36(Zs),l.Y36(Ds),l.Y36(Ys))},c.\u0275cmp=l.Xpm({type:c,selectors:[["clr-select-container"]],contentQueries:function(a,g,b){if(1&a&&l.Suo(b,ot.K7,5),2&a){let x;l.iGM(x=l.CRH())&&(g.multiple=x.first)}},hostVars:6,hostBindings:function(a,g){2&a&&l.ekj("clr-form-control",!0)("clr-form-control-disabled",null==g.control?null:g.control.disabled)("clr-row",g.addGrid())},features:[l._Bn([Ys,Ds,Gs,Zs]),l.qOj],ngContentSelectors:hy,decls:10,vars:8,consts:[[4,"ngIf"],[1,"clr-control-container",3,"ngClass"],[3,"ngClass"],["class","clr-validate-icon","shape","exclamation-circle","status","danger","aria-hidden","true",4,"ngIf"],["class","clr-validate-icon","shape","check-circle","status","success","aria-hidden","true",4,"ngIf"],["shape","exclamation-circle","status","danger","aria-hidden","true",1,"clr-validate-icon"],["shape","check-circle","status","success","aria-hidden","true",1,"clr-validate-icon"]],template:function(a,g){1&a&&(l.F$t(Pl),l.Hsn(0),l.YNc(1,cl,1,0,"label",0),l.TgZ(2,"div",1)(3,"div",2),l.Hsn(4,1),l.YNc(5,Qp,1,0,"cds-icon",3),l.YNc(6,yh,1,0,"cds-icon",4),l.qZA(),l.YNc(7,uy,1,0,"ng-content",0),l.YNc(8,dy,1,0,"ng-content",0),l.YNc(9,qp,1,0,"ng-content",0),l.qZA()),2&a&&(l.xp6(1),l.Q6J("ngIf",!g.label&&g.addGrid()),l.xp6(1),l.Q6J("ngClass",g.controlClass()),l.xp6(1),l.Q6J("ngClass",g.wrapperClass()),l.xp6(2),l.Q6J("ngIf",g.showInvalid),l.xp6(1),l.Q6J("ngIf",g.showValid),l.xp6(1),l.Q6J("ngIf",g.showHelper),l.xp6(1),l.Q6J("ngIf",g.showInvalid),l.xp6(1),l.Q6J("ngIf",g.showValid))},dependencies:[M.O5,ci,M.mk,Jt],encapsulation:2}),c})(),mD=(()=>{class c extends Wa{constructor(a,g,b,x,$){super(a,cb,g,b,x,$),this.index=1}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(l.s_b),l.Y36(l.zs3),l.Y36(ot.a5,10),l.Y36(l.Qsj),l.Y36(l.SBq))},c.\u0275dir=l.lG2({type:c,selectors:[["","clrSelect",""]],hostVars:2,hostBindings:function(a,g){2&a&&l.ekj("clr-select",!0)},features:[l.qOj]}),c})(),Vm=(()=>{class c{constructor(){Et.addIcons(rn,Mr)}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez,ot.u5,In,jr],jr]}),c})(),ub=(()=>{class c{constructor(){Et.addIcons(rn,Mr)}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez,ot.u5,In,jr],jr]}),c})(),hf=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez],jr,Wc,ZC,ru,Sm,Nm,lb,Vm,ub,gD,Dm]}),c})(),rc=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez]]}),c})(),db=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez]]}),c})();class fd{}let su=(()=>{class c{constructor(){this._change=new Ue.xQ,this.nbChanges=0}get change(){return this._change.asObservable()}changeStart(){this.nbChanges++}changeDone(){0==--this.nbChanges&&this._change.next()}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})(),Sa=(()=>{class c{constructor(a){this.stateDebouncer=a,this.preventEmit=!1,this.activated=!1,this._size=0,this._change=new Ue.xQ,this._sizeChange=new Ue.xQ,this._current=1}get size(){return this._size}set size(a){const g=this._size;a!==g&&(this.preventEmit||this.stateDebouncer.changeStart(),this._size=a,this._current=0===a?1:Math.floor(g/a*(this._current-1))+1,this.preventEmit||(this._change.next(this._current),this._sizeChange.next(this._size),this.stateDebouncer.changeDone())),this.preventEmit=!1}get totalItems(){return this._totalItems||0}set totalItems(a){this._totalItems=a,this.current>this.last&&(this.current=this.last)}get last(){return this._last?this._last:this.size>0&&this.totalItems?Math.ceil(this.totalItems/this.size):1}set last(a){this._last=a}get change(){return this._change.asObservable()}get sizeChange(){return this._sizeChange.asObservable()}get current(){return this._current}set current(a){a!==this._current&&(this.stateDebouncer.changeStart(),this._current=a,this._change.next(a),this.stateDebouncer.changeDone())}previous(){this.current>1&&this.current--}next(){this.current{class c{constructor(a,g){this._page=a,this.stateDebouncer=g,this._change=new Ue.xQ,this._all=[]}get change(){return this._change.asObservable()}hasActiveFilters(){for(const{filter:a}of this._all)if(a&&a.isActive())return!0;return!1}getActiveFilters(){const a=[];for(const{filter:g}of this._all)g&&g.isActive()&&a.push(g);return a}add(a){const g=a.changes.subscribe(()=>this.resetPageAndEmitFilterChange([a]));let b=!1;const x=new pd(a,()=>{if(b)return;g.unsubscribe();const $=this._all.findIndex(le=>le.filter===a);$>=0&&this._all.splice($,1),a.isActive()&&this.resetPageAndEmitFilterChange([]),b=!0});return this._all.push(x),a.isActive()&&this.resetPageAndEmitFilterChange([a]),x}accepts(a){for(const{filter:g}of this._all)if(g&&g.isActive()&&!g.accepts(a))return!1;return!0}resetPageAndEmitFilterChange(a){this.stateDebouncer.changeStart(),this._page.current=1,this._change.next(a),this.stateDebouncer.changeDone()}}return c.\u0275fac=function(a){return new(a||c)(l.LFG(Sa),l.LFG(su))},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})();class pd{constructor(f,a){this.filter=f,this.unregister=a}}let Qa=(()=>{class c{constructor(a){this.filters=a}get filter(){return this.registered&&this.registered.filter}setFilter(a){this.deleteFilter(),a instanceof pd?this.registered=a:a&&(this.registered=this.filters.add(a))}deleteFilter(){this.registered&&(this.registered.unregister(),delete this.registered)}ngOnDestroy(){this.deleteFilter()}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(Da))},c.\u0275dir=l.lG2({type:c}),c})(),ou=(()=>{class c extends Qa{constructor(a,g,b,x,$){super(a),this.commonStrings=g,this.smartToggleService=b,this.platformId=x,this.elementRef=$,this.subs=[],this.ariaExpanded=!1,this.popoverId=Vr(),this.smartPosition={axis:li.VERTICAL,side:bi.AFTER,anchor:ln.END,content:ln.END},this._open=!1,this.openChange=new l.vpe(!1),this.subs.push(b.openChange.subscribe(le=>{this.open=le,this.ariaExpanded=le}))}get open(){return this._open}set open(a){this.open!==(a=!!a)&&(this.smartToggleService.open=a,this.openChange.emit(a),!a&&(0,M.NF)(this.platformId)&&this.anchor.nativeElement.focus(),this._open=a)}set customFilter(a){this.setFilter(a)}get active(){return!!this.filter&&this.filter.isActive()}ngOnChanges(){this.setToggleButtonAriaLabel()}ngOnDestroy(){super.ngOnDestroy(),this.subs.forEach(a=>a.unsubscribe())}setToggleButtonAriaLabel(){const b=this.elementRef.nativeElement?.closest("clr-dg-column")?.querySelector(".datagrid-column-title")?.textContent.trim().toLocaleLowerCase();this.toggleButtonAriaLabel=this.commonStrings.parse(this.commonStrings.keys.datagridFilterAriaLabel,{COLUMN:b||""})}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(Da),l.Y36(an),l.Y36(Sn),l.Y36(l.Lbi),l.Y36(l.SBq))},c.\u0275cmp=l.Xpm({type:c,selectors:[["clr-dg-filter"]],viewQuery:function(a,g){if(1&a&&l.Gf(gS,5,l.SBq),2&a){let b;l.iGM(b=l.CRH())&&(g.anchor=b.first)}},inputs:{open:["clrDgFilterOpen","open"],customFilter:["clrDgFilter","customFilter"]},outputs:{openChange:"clrDgFilterOpenChange"},features:[l._Bn([{provide:fd,useExisting:c}]),l.qOj,l.TTD],ngContentSelectors:Dt,decls:4,vars:13,consts:[["type","button","clrPopoverAnchor","","clrPopoverOpenCloseButton","",1,"datagrid-filter-toggle"],["anchor",""],["solid",""],["class","datagrid-filter","clrFocusTrap","","role","dialog",3,"id",4,"clrPopoverContent","clrPopoverContentAt","clrPopoverContentOutsideClickToClose","clrPopoverContentScrollToClose"],["clrFocusTrap","","role","dialog",1,"datagrid-filter",3,"id"],[1,"datagrid-filter-close-wrapper"],["type","button","clrPopoverCloseButton","",1,"close"],["shape","window-close"]],template:function(a,g){1&a&&(l.F$t(),l.TgZ(0,"button",0,1),l._UZ(2,"cds-icon",2),l.qZA(),l.YNc(3,gy,5,3,"div",3)),2&a&&(l.ekj("datagrid-filter-open",g.open)("datagrid-filtered",g.active),l.uIk("aria-label",g.toggleButtonAriaLabel)("aria-expanded",g.ariaExpanded)("aria-controls",g.popoverId),l.xp6(2),l.uIk("status",g.active?"info":null)("shape",g.active?"filter-grid-circle":"filter-grid"),l.xp6(1),l.Q6J("clrPopoverContent",g.open)("clrPopoverContentAt",g.smartPosition)("clrPopoverContentOutsideClickToClose",!0)("clrPopoverContentScrollToClose",!0))},dependencies:[fa,Pc,Jt,kc,Uo,qg],encapsulation:2}),c})();class gd{constructor(f){this.prop=f,f.indexOf(".")>=0&&(this.splitProp=f.split("."))}getPropValue(f){if(this.splitProp){let a=f;for(const g of this.splitProp){if(null===a||typeof a>"u"||typeof a[g]>"u")return;a=a[g]}return a}return f[this.prop]}}class md{constructor(f,a=!1){this.prop=f,this.exact=a,this.nestedProp=new gd(f)}accepts(f,a,g){const b=this.nestedProp.getPropValue(f);return!(void 0===b||null!==a&&("number"!=typeof b||bg))}}class qa{constructor(f){this.filterFn=f,this._changes=new Ue.xQ,this._low=null,this._high=null}get changes(){return this._changes.asObservable()}get value(){return[this._low,this._high]}set value(f){const a=f[0],g=f[1];(a!==this._low||g!==this._high)&&(this._low=a,this._high=g,this._changes.next([this._low,this._high]))}get low(){return this._low}set low(f){f!==this._low&&(this._low=f,this._changes.next([this._low,this._high]))}get high(){return this._high}set high(f){f!==this._high&&(this._high=f,this._changes.next([this._low,this._high]))}isActive(){return null!==this._low||null!==this.high}accepts(f){return this.filterFn.accepts(f,this._low,this._high)}get state(){return this.filterFn instanceof md?{property:this.filterFn.prop,low:this._low,high:this._high}:this}equals(f){return f instanceof qa&&(f.filterFn instanceof md?this.filterFn instanceof md&&f.filterFn.prop===this.filterFn.prop&&f.low===this._low&&f.high===this._high:f===this)}}let Bm=(()=>{class c extends Qa{constructor(a,g,b,x,$){super(a),this.domAdapter=g,this.commonStrings=b,this.popoverToggleService=x,this.ngZone=$,this.subscriptions=[],this.open=!1,this.filterValueChange=new l.vpe}ngOnDestroy(){super.ngOnDestroy(),this.subscriptions.forEach(a=>{a.unsubscribe()})}get maxPlaceholderValue(){return this.maxPlaceholder||this.commonStrings.keys.maxValue}get minPlaceholderValue(){return this.minPlaceholder||this.commonStrings.keys.minValue}set customNumericFilter(a){this.setFilter(a instanceof pd?a:new qa(a)),this.initFilterValues&&(this.value=this.initFilterValues,delete this.initFilterValues)}ngAfterViewInit(){this.subscriptions.push(this.popoverToggleService.openChange.subscribe(a=>{this.open=a,this.ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this.domAdapter.focus(this.input.nativeElement)})})}))}get value(){return[this.filter.low,this.filter.high]}set value(a){this.filter&&Array.isArray(a)?a&&(a[0]!==this.filter.low||a[1]!==this.filter.high)&&(this.filter.low="number"==typeof a[0]?a[0]:null,this.filter.high="number"==typeof a[1]?a[1]:null,this.filterValueChange.emit(a)):this.initFilterValues=a}get low(){return"number"==typeof this.filter.low&&isFinite(this.filter.low)?this.filter.low:null}set low(a){"number"==typeof a&&a!==this.filter.low?(this.filter.low=a,this.filterValueChange.emit([this.filter.low,this.filter.high])):"number"!=typeof a&&(this.filter.low=null,this.filterValueChange.emit([this.filter.low,this.filter.high]))}get high(){return"number"==typeof this.filter.high&&isFinite(this.filter.high)?this.filter.high:null}set high(a){"number"==typeof a&&a!==this.filter.high?(this.filter.high=a,this.filterValueChange.emit([this.filter.low,this.filter.high])):"number"!=typeof a&&(this.filter.high=null,this.filterValueChange.emit([this.filter.low,this.filter.high]))}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(Da),l.Y36(Br),l.Y36(an),l.Y36(Sn),l.Y36(l.R0b))},c.\u0275cmp=l.Xpm({type:c,selectors:[["clr-dg-numeric-filter"]],viewQuery:function(a,g){if(1&a&&(l.Gf(Tc,5),l.Gf(ou,5)),2&a){let b;l.iGM(b=l.CRH())&&(g.input=b.first),l.iGM(b=l.CRH())&&(g.filterContainer=b.first)}},inputs:{maxPlaceholder:["clrFilterMaxPlaceholder","maxPlaceholder"],minPlaceholder:["clrFilterMinPlaceholder","minPlaceholder"],customNumericFilter:["clrDgNumericFilter","customNumericFilter"],value:["clrFilterValue","value"]},outputs:{filterValueChange:"clrFilterValueChange"},features:[l._Bn([{provide:fd,useExisting:c}]),l.qOj],decls:6,vars:8,consts:[[3,"clrDgFilter","clrDgFilterOpen","clrDgFilterOpenChange"],["type","number","autocomplete","off","name","low",1,"datagrid-numeric-filter-input",3,"ngModel","placeholder","ngModelChange"],["input_low",""],[1,"datagrid-filter-input-spacer"],["type","number","autocomplete","off","name","high",1,"datagrid-numeric-filter-input",3,"ngModel","placeholder","ngModelChange"],["input_high",""]],template:function(a,g){1&a&&(l.TgZ(0,"clr-dg-filter",0),l.NdJ("clrDgFilterOpenChange",function(x){return g.open=x}),l.TgZ(1,"input",1,2),l.NdJ("ngModelChange",function(x){return g.low=x}),l.qZA(),l._UZ(3,"span",3),l.TgZ(4,"input",4,5),l.NdJ("ngModelChange",function(x){return g.high=x}),l.qZA()()),2&a&&(l.Q6J("clrDgFilter",g.registered)("clrDgFilterOpen",g.open),l.xp6(1),l.Q6J("ngModel",g.low)("placeholder",g.minPlaceholderValue),l.uIk("aria-label",g.minPlaceholderValue),l.xp6(3),l.Q6J("ngModel",g.high)("placeholder",g.maxPlaceholderValue),l.uIk("aria-label",g.maxPlaceholderValue))},dependencies:[ou,ot.wV,ot.Fj,ot.JJ,ot.On],encapsulation:2}),c})();class au{constructor(f,a=!1){this.prop=f,this.exact=a,this.nestedProp=new gd(f)}accepts(f,a){const g=this.nestedProp.getPropValue(f);return!(typeof g>"u")&&(this.exact?(""+g).toLowerCase()===a:(""+g).toLowerCase().indexOf(a)>=0)}}class pl{constructor(f){this.filterFn=f,this._changes=new Ue.xQ,this._lowerCaseValue="",this._rawValue=""}get changes(){return this._changes.asObservable()}get lowerCaseValue(){return this._lowerCaseValue}get value(){return this._rawValue}set value(f){f||(f=""),f!==this._rawValue&&(this._rawValue=f,this._lowerCaseValue=f.toLowerCase().trim(),this._changes.next(f))}isActive(){return!!this.value}accepts(f){return this.filterFn.accepts(f,this.lowerCaseValue)}get state(){return this.filterFn instanceof au?{property:this.filterFn.prop,value:this.value}:this}equals(f){return f instanceof pl&&(f.filterFn instanceof au?this.filterFn instanceof au&&f.filterFn.prop===this.filterFn.prop&&f.value===this.value:f===this)}}let vd=(()=>{class c extends Qa{constructor(a,g,b,x,$){super(a),this.domAdapter=g,this.commonStrings=b,this.smartToggleService=x,this.ngZone=$,this.subs=[],this.open=!1,this.filterValueChange=new l.vpe}get placeholderValue(){return this.placeholder||this.commonStrings.keys.filterItems}set customStringFilter(a){this.setFilter(a instanceof pd?a:new pl(a)),this.initFilterValue&&(this.value=this.initFilterValue,delete this.initFilterValue)}ngAfterViewInit(){this.subs.push(this.smartToggleService.openChange.subscribe(a=>{this.open=a,this.ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this.domAdapter.focus(this.input.nativeElement)})})}))}ngOnDestroy(){super.ngOnDestroy(),this.subs.forEach(a=>a.unsubscribe())}get value(){return this.filter.value}set value(a){this.filter&&"string"==typeof a?(a||(a=""),a!==this.filter.value&&(this.filter.value=a,this.filterValueChange.emit(a))):this.initFilterValue=a}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(Da),l.Y36(Br),l.Y36(an),l.Y36(Sn),l.Y36(l.R0b))},c.\u0275cmp=l.Xpm({type:c,selectors:[["clr-dg-string-filter"]],viewQuery:function(a,g){if(1&a&&(l.Gf(my,5),l.Gf(ou,5)),2&a){let b;l.iGM(b=l.CRH())&&(g.input=b.first),l.iGM(b=l.CRH())&&(g.filterContainer=b.first)}},inputs:{placeholder:["clrFilterPlaceholder","placeholder"],customStringFilter:["clrDgStringFilter","customStringFilter"],value:["clrFilterValue","value"]},outputs:{filterValueChange:"clrFilterValueChange"},features:[l._Bn([{provide:fd,useExisting:c}]),l.qOj],decls:3,vars:5,consts:[[3,"clrDgFilter","clrDgFilterOpen","clrDgFilterOpenChange"],["type","text","autocomplete","off","name","search",1,"clr-input",3,"ngModel","placeholder","ngModelChange"],["input",""]],template:function(a,g){1&a&&(l.TgZ(0,"clr-dg-filter",0),l.NdJ("clrDgFilterOpenChange",function(x){return g.open=x}),l.TgZ(1,"input",1,2),l.NdJ("ngModelChange",function(x){return g.value=x}),l.qZA()()),2&a&&(l.Q6J("clrDgFilter",g.registered)("clrDgFilterOpen",g.open),l.xp6(1),l.Q6J("ngModel",g.value)("placeholder",g.placeholderValue),l.uIk("aria-label",g.placeholderValue))},dependencies:[ou,ot.Fj,ot.JJ,ot.On],encapsulation:2}),c})(),_d=(()=>{class c extends jl{}return c.\u0275fac=function(){let f;return function(g){return(f||(f=l.n5z(c)))(g||c)}}(),c.\u0275dir=l.lG2({type:c,selectors:[["clr-datagrid"]],features:[l.qOj]}),c})(),gl=(()=>{class c{constructor(){this.actionableCount=0}register(){this.actionableCount++}unregister(){this.actionableCount--}get hasActionableRow(){return this.actionableCount>0}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})(),ff=(()=>{class c extends zl{constructor(a,g,b){if(!g)throw new Error("clr-dg-row should only be used inside of a clr-datagrid");super(a,g),this.rowActions=b}get flavor(){return this.rowActions.hasActionableRow}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(l.sBO),l.Y36(_d,8),l.Y36(gl))},c.\u0275dir=l.lG2({type:c,selectors:[["clr-datagrid"],["clr-dg-row"]],features:[l.qOj]}),c})(),Do=(()=>{class c{constructor(){this.toggleState=!1,this._state=new Gn.X(this.toggleState),this._enabled=!1}get enabled(){return this._enabled}set enabled(a){this._enabled=a}get stateChange(){return this._state.asObservable()}close(){this.toggleState=!1,this._state.next(this.toggleState),this.button&&(this.button.focus(),this.button=null)}open(a,g){this.cache=a,this.button=g,this.toggleState=!0,this._state.next(this.toggleState)}toggle(a,g){this.isRowOpen(a)||!a?this.close():this.open(a,g)}get state(){return this.cache}isRowOpen(a){return!(!this.toggleState||this.cache!==a)}get isOpen(){return!0===this.toggleState}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})(),ic=(()=>{class c{constructor(a){this.detailService=a,this.expandableCount=0}register(){this.expandableCount++}unregister(){this.expandableCount--}get hasExpandableRow(){return!this.detailService.enabled&&this.expandableCount>0}}return c.\u0275fac=function(a){return new(a||c)(l.LFG(Do))},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})(),Hm=(()=>{class c extends zl{constructor(a,g,b){if(!g)throw new Error("clr-dg-row should only be used inside of a clr-datagrid");super(a,g),this.expandableCount=b}get flavor(){return this.expandableCount.hasExpandableRow}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(l.sBO),l.Y36(_d,8),l.Y36(ic))},c.\u0275dir=l.lG2({type:c,selectors:[["clr-datagrid"],["clr-dg-row"]],features:[l.qOj]}),c})();class sc{constructor(f){this.prop=f,this.nestedProp=new gd(f)}compare(f,a){let g=this.nestedProp.getPropValue(f),b=this.nestedProp.getPropValue(a);return"string"==typeof g&&(g=g.toLowerCase()),"string"==typeof b&&(b=b.toLowerCase()),typeof g>"u"||null===g?typeof b>"u"||null===b?0:1:typeof b>"u"||null===b||gb?1:0}}var wi=(()=>(function(c){c[c.UNSORTED=0]="UNSORTED",c[c.ASC=1]="ASC",c[c.DESC=-1]="DESC"}(wi||(wi={})),wi))();let yd=(()=>{class c{constructor(){this._dynamic=!1}ngAfterViewInit(){this.columnView=this.templateRef.createEmbeddedView(null)}ngOnDestroy(){this.columnView.destroy()}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275cmp=l.Xpm({type:c,selectors:[["dg-wrapped-column"]],viewQuery:function(a,g){if(1&a&&l.Gf(Nl,5),2&a){let b;l.iGM(b=l.CRH())&&(g.templateRef=b.first)}},ngContentSelectors:Dt,decls:2,vars:0,consts:[["columnPortal",""]],template:function(a,g){1&a&&(l.F$t(),l.YNc(0,Ac,1,0,"ng-template",null,0,l.W1O))},encapsulation:2}),c})(),Cd=(()=>{class c{constructor(a){this.stateDebouncer=a,this._reverse=!1,this._change=new Ue.xQ}get comparator(){return this._comparator}set comparator(a){this.stateDebouncer.changeStart(),this._comparator=a,this.emitChange(),this.stateDebouncer.changeDone()}get reverse(){return this._reverse}set reverse(a){this.stateDebouncer.changeStart(),this._reverse=a,this.emitChange(),this.stateDebouncer.changeDone()}emitChange(){this._change.next(this)}get change(){return this._change.asObservable()}toggle(a,g){this.stateDebouncer.changeStart(),this.comparator===a?this._reverse=typeof g<"u"&&g||!this._reverse:(this._comparator=a,this._reverse=typeof g<"u"&&g),this.emitChange(),this.stateDebouncer.changeDone()}clear(){this.comparator=null}compare(a,g){return(this.reverse?-1:1)*this.comparator.compare(a,g)}}return c.\u0275fac=function(a){return new(a||c)(l.LFG(su))},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})();var Es=(()=>(function(c){c[c.ALIGN_COLUMNS=0]="ALIGN_COLUMNS",c[c.CALCULATE_MODE_ON=1]="CALCULATE_MODE_ON",c[c.CALCULATE_MODE_OFF=2]="CALCULATE_MODE_OFF",c[c.CLEAR_WIDTHS=3]="CLEAR_WIDTHS",c[c.COMPUTE_COLUMN_WIDTHS=4]="COMPUTE_COLUMN_WIDTHS"}(Es||(Es={})),Es))();let ml=(()=>{class c{constructor(){this._renderStep=new Ue.xQ,this.alreadySized=!1}get renderStep(){return this._renderStep.asObservable()}filterRenderSteps(a){return this.renderStep.pipe((0,or.h)(g=>a===g))}resize(){this._renderStep.next(Es.CALCULATE_MODE_ON),this.alreadySized&&this._renderStep.next(Es.CLEAR_WIDTHS),this._renderStep.next(Es.COMPUTE_COLUMN_WIDTHS),this._renderStep.next(Es.ALIGN_COLUMNS),this.alreadySized=!0,this._renderStep.next(Es.CALCULATE_MODE_OFF)}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})(),pf=(()=>{class c{constructor(a,g,b){this.el=a,this.domAdapter=g,this.organizer=b,this._resizedBy=0}get resizedBy(){return this._resizedBy}get minColumnWidth(){return this.domAdapter.minWidth(this.el.nativeElement)||96}get maxResizeRange(){return this.widthBeforeResize-this.minColumnWidth}startResize(){this._resizedBy=0,this.isWithinMaxResizeRange=!0,this.widthBeforeResize=this.domAdapter.clientRect(this.el.nativeElement).width}endResize(){this.organizer.resize()}get widthAfterResize(){return this.widthBeforeResize+this._resizedBy}calculateResize(a){a<-this.maxResizeRange?(this._resizedBy=-this.maxResizeRange,this.isWithinMaxResizeRange=!1):(this._resizedBy=a,this.isWithinMaxResizeRange=!0)}}return c.\u0275fac=function(a){return new(a||c)(l.LFG(l.SBq),l.LFG(Br),l.LFG(ml))},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})(),gf=(()=>{class c{constructor(a){this.platformId=a}get tableRef(){return this._tableRef}set tableRef(a){this._tableRef=a}set table(a){(0,M.NF)(this.platformId)&&a.nativeElement&&(this.tableRef=a.nativeElement.querySelector(".datagrid-table"))}getColumnDragHeight(){return this.tableRef?`${this.tableRef.clientHeight}px`:null}}return c.\u0275fac=function(a){return new(a||c)(l.LFG(l.Lbi))},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})(),zm=(()=>{class c{constructor(a,g,b,x,$,le){this.columnResizerService=a,this.renderer=g,this.ngZone=b,this.tableSizeService=x,this.commonString=$,this.document=le,this.columnSeparatorId=Vr(),this.resizeStartedOnKeyDown=!1,this.unlisteners=[]}get resizeTrackerEl(){return this.resizeTrackerRef.nativeElement}get columnHandleEl(){return this.columnHandleRef.nativeElement}ngAfterViewInit(){this.ngZone.runOutsideAngular(()=>{this.unlisteners.push(this.renderer.listen(this.columnHandleEl,"keydown",a=>{this.showTrackerOnFirstKeyDown(a),this.moveTrackerOnKeyDown(a)})),this.unlisteners.push(this.renderer.listen(this.columnHandleEl,"keyup",a=>{this.hideTrackerOnKeyUp(a)}))})}get descriptionId(){return`${this.columnSeparatorId}-aria-describedby`}showTracker(){this.columnResizerService.startResize();const a=this.tableSizeService.getColumnDragHeight();this.renderer.setStyle(this.resizeTrackerEl,"height",a),this.renderer.setStyle(this.resizeTrackerEl,"display","block")}moveTracker(a){this.columnResizerService.calculateResize(a),this.renderer.setStyle(this.resizeTrackerEl,"transform",`translateX(${this.columnResizerService.resizedBy}px)`),this.renderer.setStyle(this.document.body,"cursor","col-resize"),this.redFlagTracker()}hideTracker(){this.columnResizerService.endResize(),this.renderer.setStyle(this.resizeTrackerEl,"display","none"),this.renderer.setStyle(this.resizeTrackerEl,"transform","translateX(0px)"),this.renderer.setStyle(this.document.body,"cursor","auto")}showTrackerOnFirstKeyDown(a){!this.resizeStartedOnKeyDown&&(this.isArrowLeftKeyEvent(a)||this.isArrowRightKeyEvent(a))&&(this.resizeStartedOnKeyDown=!0,this.renderer.addClass(this.resizeTrackerEl,"on-arrow-key-resize"),this.showTracker())}moveTrackerOnKeyDown(a){this.isArrowLeftKeyEvent(a)?this.moveTracker(this.columnResizerService.resizedBy-12):this.isArrowRightKeyEvent(a)&&this.moveTracker(this.columnResizerService.resizedBy+12)}hideTrackerOnKeyUp(a){this.resizeStartedOnKeyDown&&(this.isArrowLeftKeyEvent(a)||this.isArrowRightKeyEvent(a))&&(this.resizeStartedOnKeyDown=!1,this.renderer.removeClass(this.resizeTrackerEl,"on-arrow-key-resize"),this.hideTracker(),this.columnHandleEl.focus())}redFlagTracker(){this.isWithinMaxResizeRange!==this.columnResizerService.isWithinMaxResizeRange&&(this.isWithinMaxResizeRange=this.columnResizerService.isWithinMaxResizeRange,this.isWithinMaxResizeRange?this.renderer.removeClass(this.resizeTrackerEl,"exceeded-max"):this.renderer.addClass(this.resizeTrackerEl,"exceeded-max"))}isArrowLeftKeyEvent(a){return mo(a.key)===ht.ArrowLeft}isArrowRightKeyEvent(a){return mo(a.key)===ht.ArrowRight}ngOnDestroy(){this.unlisteners.forEach(a=>a())}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(pf),l.Y36(l.Qsj),l.Y36(l.R0b),l.Y36(gf),l.Y36(an),l.Y36(M.K0))},c.\u0275cmp=l.Xpm({type:c,selectors:[["clr-dg-column-separator"]],viewQuery:function(a,g){if(1&a&&(l.Gf(vy,5),l.Gf(mS,5)),2&a){let b;l.iGM(b=l.CRH())&&(g.resizeTrackerRef=b.first),l.iGM(b=l.CRH())&&(g.columnHandleRef=b.first)}},hostVars:2,hostBindings:function(a,g){2&a&&l.ekj("datagrid-column-separator",!0)},decls:6,vars:5,consts:[["type","button","clrDraggable","",1,"datagrid-column-handle",3,"clrGroup","clrDragStart","clrDragMove","clrDragEnd"],["columnHandle",""],[1,"clr-sr-only"],[1,"datagrid-column-resize-tracker"],["resizeTracker",""]],template:function(a,g){1&a&&(l.TgZ(0,"button",0,1),l.NdJ("clrDragStart",function(){return g.showTracker()})("clrDragMove",function(x){return g.moveTracker(x.dragPosition.moveX)})("clrDragEnd",function(){return g.hideTracker()}),l.qZA(),l.TgZ(2,"span",2),l._uU(3),l.qZA(),l._UZ(4,"div",3,4)),2&a&&(l.Q6J("clrGroup",g.columnSeparatorId),l.uIk("aria-label",g.commonString.keys.columnSeparatorAriaLabel)("aria-describedby",g.descriptionId),l.xp6(2),l.uIk("id",g.descriptionId),l.xp6(1),l.hij(" ",g.commonString.keys.columnSeparatorDescription," "))},dependencies:[jc],encapsulation:2}),c})(),bd=(()=>{class c extends Qa{constructor(a,g,b,x,$){super(g),this._sort=a,this.vcr=b,this.detailService=x,this.changeDetectorRef=$,this.showSeparator=!0,this.subscriptions=[],this._colType="string",this._sorted=!1,this.sortedChange=new l.vpe,this._sortOrder=wi.UNSORTED,this.sortOrderChange=new l.vpe,this.customFilter=!1,this.filterValueChange=new l.vpe,this.subscriptions.push(this.listenForSortingChanges()),this.subscriptions.push(this.listenForDetailPaneChanges())}ngOnDestroy(){super.ngOnDestroy(),this.subscriptions.forEach(a=>a.unsubscribe())}listenForDetailPaneChanges(){return this.detailService.stateChange.subscribe(a=>{this.showSeparator!==!a&&(this.showSeparator=!a,this.changeDetectorRef.markForCheck())})}listenForSortingChanges(){return this._sort.change.subscribe(a=>{this.changeDetectorRef.markForCheck(),this.sortOrder!==wi.UNSORTED&&a.comparator!==this._sortBy&&(this._sortOrder=wi.UNSORTED,this.sortOrderChange.emit(this._sortOrder),this.sortIcon=null,this._sortDirection=null),this.sorted&&a.comparator!==this._sortBy&&(this._sorted=!1,this.sortedChange.emit(!1))})}get colType(){return this._colType}set colType(a){this._colType=a}get field(){return this._field}set field(a){"string"==typeof a&&(this._field=a,this._sortBy||(this._sortBy=new sc(a)))}setupDefaultFilter(a,g){"number"===g?this.setFilter(new qa(new md(a))):"string"===g&&this.setFilter(new pl(new au(a))),this.filter&&this.initFilterValue&&(this.updateFilterValue=this.initFilterValue,delete this.initFilterValue)}ngOnChanges(a){a.colType&&a.colType.currentValue&&a.colType.currentValue!==a.colType.previousValue&&!this.customFilter&&!this.filter&&this.colType&&this.field&&this.setupDefaultFilter(this.field,this.colType),a.field&&a.field.currentValue&&a.field.currentValue!==a.field.previousValue&&!this.customFilter&&this.colType&&this.setupDefaultFilter(this.field,this.colType)}get sortBy(){return this._sortBy}set sortBy(a){"string"==typeof a?this._sortBy=new sc(a):a?this._sortBy=a:this.field?this._sortBy=new sc(this.field):delete this._sortBy}get sortable(){return!!this._sortBy}get sorted(){return this._sorted}set sorted(a){!a&&this.sorted?(this._sorted=!1,this._sort.clear()):a&&!this.sorted&&this.sort()}get sortOrder(){return this._sortOrder}set sortOrder(a){if(!(typeof a>"u")&&this._sortOrder!==a)switch(a){default:case wi.UNSORTED:this._sort.clear();break;case wi.ASC:this.sort(!1);break;case wi.DESC:this.sort(!0)}}get ariaSort(){switch(this._sortOrder){default:case wi.UNSORTED:return"none";case wi.ASC:return"ascending";case wi.DESC:return"descending"}}get sortDirection(){return this._sortDirection}sort(a){!this.sortable||(this._sort.toggle(this._sortBy,a),this._sortOrder=this._sort.reverse?wi.DESC:wi.ASC,this._sortDirection=this._sortOrder===wi.DESC?"down":"up",this.sortIcon=this._sortOrder===wi.DESC?"arrow down":"arrow",this.sortOrderChange.emit(this._sortOrder),this._sorted=!0,this.sortedChange.emit(!0))}set projectedFilter(a){a&&(this.deleteFilter(),this.customFilter=!0)}set updateFilterValue(a){this.filter?this.filter instanceof pl?((!a||"string"!=typeof a)&&(a=""),a!==this.filter.value&&(this.filter.value=a)):this.filter instanceof qa&&((!a||!(a instanceof Array))&&(a=[null,null]),2===a.length&&(a[0]!==this.filter.value[0]||a[1]!==this.filter.value[1])&&(this.filter.value=a)):this.initFilterValue=a}get filterValue(){return this.filter instanceof pl||this.filter instanceof qa?this.filter.value:null}set filterValue(a){(this.filter instanceof pl||this.filter instanceof qa)&&(this.updateFilterValue=a,this.filterValueChange.emit(this.filter.value))}ngOnInit(){this.wrappedInjector=new tf(yd,this.vcr)}get _view(){return this.wrappedInjector.get(yd,this.vcr).columnView}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(Cd),l.Y36(Da),l.Y36(l.s_b),l.Y36(Do),l.Y36(l.sBO))},c.\u0275cmp=l.Xpm({type:c,selectors:[["clr-dg-column"]],contentQueries:function(a,g,b){if(1&a&&l.Suo(b,fd,5),2&a){let x;l.iGM(x=l.CRH())&&(g.projectedFilter=x.first)}},hostAttrs:["role","columnheader"],hostVars:3,hostBindings:function(a,g){2&a&&(l.uIk("aria-sort",g.ariaSort),l.ekj("datagrid-column",!0))},inputs:{colType:["clrDgColType","colType"],field:["clrDgField","field"],sortBy:["clrDgSortBy","sortBy"],sorted:["clrDgSorted","sorted"],sortOrder:["clrDgSortOrder","sortOrder"],filterStringPlaceholder:["clrFilterStringPlaceholder","filterStringPlaceholder"],filterNumberMaxPlaceholder:["clrFilterNumberMaxPlaceholder","filterNumberMaxPlaceholder"],filterNumberMinPlaceholder:["clrFilterNumberMinPlaceholder","filterNumberMinPlaceholder"],updateFilterValue:["clrFilterValue","updateFilterValue"]},outputs:{sortedChange:"clrDgSortedChange",sortOrderChange:"clrDgSortOrderChange",filterValueChange:"clrFilterValueChange"},features:[l._Bn([$l,ha,Sn]),l.qOj,l.TTD],ngContentSelectors:Ic,decls:9,vars:5,consts:[[1,"datagrid-column-flex"],["class","datagrid-column-title","type","button",3,"click",4,"ngIf"],[3,"clrFilterPlaceholder","clrDgStringFilter","clrFilterValue","clrFilterValueChange",4,"ngIf"],[3,"clrFilterMaxPlaceholder","clrFilterMinPlaceholder","clrDgNumericFilter","clrFilterValue","clrFilterValueChange",4,"ngIf"],["columnTitle",""],["class","datagrid-column-title",4,"ngIf"],[4,"ngIf"],["type","button",1,"datagrid-column-title",3,"click"],[4,"ngTemplateOutlet"],["shape","arrow","aria-hidden","true","class","sort-icon",4,"ngIf"],["shape","arrow","aria-hidden","true",1,"sort-icon"],[3,"clrFilterPlaceholder","clrDgStringFilter","clrFilterValue","clrFilterValueChange"],[3,"clrFilterMaxPlaceholder","clrFilterMinPlaceholder","clrDgNumericFilter","clrFilterValue","clrFilterValueChange"],[1,"datagrid-column-title"]],template:function(a,g){1&a&&(l.F$t(Sh),l.TgZ(0,"div",0),l.YNc(1,yy,3,2,"button",1),l.Hsn(2),l.YNc(3,Cy,1,3,"clr-dg-string-filter",2),l.YNc(4,Xp,1,4,"clr-dg-numeric-filter",3),l.YNc(5,by,1,0,"ng-template",null,4,l.W1O),l.YNc(7,bh,2,1,"span",5),l.YNc(8,Sy,1,0,"clr-dg-column-separator",6),l.qZA()),2&a&&(l.xp6(1),l.Q6J("ngIf",g.sortable),l.xp6(2),l.Q6J("ngIf",g.field&&!g.customFilter&&"string"==g.colType),l.xp6(1),l.Q6J("ngIf",g.field&&!g.customFilter&&"number"==g.colType),l.xp6(3),l.Q6J("ngIf",!g.sortable),l.xp6(1),l.Q6J("ngIf",g.showSeparator))},dependencies:[vd,Bm,zm,M.O5,M.tP,Jt],encapsulation:2,changeDetection:0}),c})(),wa=(()=>{class c{constructor(a,g,b){this._filters=a,this._sort=g,this._page=b,this.loading=!1,this.iteratorTrackBy=(x,$)=>$,this._smart=!1,this._displayed=[],this._change=new Ue.xQ,this._allChanges=new Ue.xQ}destroy(){this._filtersSub&&this._filtersSub.unsubscribe(),this._sortSub&&this._sortSub.unsubscribe(),this._pageSub&&this._pageSub.unsubscribe()}get smart(){return this._smart}smartenUp(){this._smart=!0,this._filtersSub=this._filters.change.subscribe(()=>this._filterItems()),this._sortSub=this._sort.change.subscribe(()=>{this._sort.comparator?this._sortItems():this._filterItems()}),this._pageSub=this._page.change.subscribe(()=>this._changePage())}get all(){return this._all}set all(a){this._all=a,this.emitAllChanges(a),this.smart?this._filterItems():(this._displayed=a,this.emitChange())}refresh(){this.smart&&this._filterItems()}canTrackBy(){return!!this.datagridTrackBy||Array.isArray(this.all)}trackBy(a,g){if(this.datagridTrackBy)return this.datagridTrackBy(a);if(Array.isArray(this.all))return g=g??this.all.indexOf(a),this.iteratorTrackBy(g,a);throw new Error("improper call to Items#trackBy")}get displayed(){return this._displayed}emitChange(){this._change.next(this.displayed)}get change(){return this._change.asObservable()}emitAllChanges(a){this._allChanges.next(a)}get allChanges(){return this._allChanges.asObservable()}get uninitialized(){return!this._all}_filterItems(){this.uninitialized||(this._filtered=this._filters.hasActiveFilters()?this._all.filter(a=>this._filters.accepts(a)):this._all.slice(),this._page.totalItems=this._filtered.length,this._sortItems())}_sortItems(){this.uninitialized||(this._sort.comparator&&this._filtered.sort((a,g)=>this._sort.compare(a,g)),this._changePage())}_changePage(){this.uninitialized||this._page.activated&&0===this._page.size||(this._displayed=this._page.size>0?this._filtered.slice(this._page.firstItem,this._page.lastItem+1):this._filtered,this.emitChange())}}return c.\u0275fac=function(a){return new(a||c)(l.LFG(Da),l.LFG(Cd),l.LFG(Sa))},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})(),Um=(()=>{class c{constructor(a,g,b,x){this.template=a,this.differs=g,this.items=b,this.vcr=x,this.differ=null,this.subscriptions=[],b.smartenUp(),this.iterableProxy=new M.sg(this.vcr,this.template,this.differs),this.subscriptions.push(b.change.subscribe($=>{this.iterableProxy.ngForOf=$,this.iterableProxy.ngDoCheck()}))}set rawItems(a){this._rawItems=a||[]}set trackBy(a){this.items.iteratorTrackBy=a,this.iterableProxy.ngForTrackBy=a}static ngTemplateContextGuard(a,g){return!0}ngDoCheck(){this.differ||(this.differ=this.differs.find(this._rawItems).create(this.iterableProxy.ngForTrackBy)),this.differ&&this.differ.diff(this._rawItems)&&(this.items.all=this._rawItems)}ngOnDestroy(){this.subscriptions.forEach(a=>a.unsubscribe())}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(l.Rgc),l.Y36(l.ZZ4),l.Y36(wa),l.Y36(l.s_b))},c.\u0275dir=l.lG2({type:c,selectors:[["","clrDgItems","","clrDgItemsOf",""]],inputs:{rawItems:["clrDgItemsOf","rawItems"],trackBy:["clrDgItemsTrackBy","trackBy"]}}),c})(),mf=(()=>{class c{constructor(a){this.items=a}get emptyDatagrid(){return!(this.items.loading||this.items.displayed&&0!==this.items.displayed.length)}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(wa))},c.\u0275cmp=l.Xpm({type:c,selectors:[["clr-dg-placeholder"]],hostVars:2,hostBindings:function(a,g){2&a&&l.ekj("datagrid-placeholder-container",!0)},ngContentSelectors:Dt,decls:4,vars:4,consts:[["role","row",1,"datagrid-placeholder"],["class","datagrid-placeholder-image",4,"ngIf"],["role","gridcell",1,"datagrid-placeholder-content"],[4,"ngIf"],[1,"datagrid-placeholder-image"]],template:function(a,g){1&a&&(l.F$t(),l.TgZ(0,"div",0),l.YNc(1,Dy,1,0,"div",1),l.TgZ(2,"span",2),l.YNc(3,wy,1,0,"ng-content",3),l.qZA()()),2&a&&(l.ekj("datagrid-empty",g.emptyDatagrid),l.xp6(1),l.Q6J("ngIf",g.emptyDatagrid),l.xp6(2),l.Q6J("ngIf",g.emptyDatagrid))},dependencies:[M.O5],encapsulation:2}),c})(),Sd=(()=>{class c{set triggerEl(a){this._triggerEl=a}focusTrigger(){this._triggerEl&&this._triggerEl.focus()}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})(),vf=(()=>{class c{constructor(){this._id=new Ue.xQ}setId(a){this._id.next(a)}get id(){return this._id.asObservable()}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})(),_f=(()=>{class c{constructor(a,g,b,x,$,le,Se){this.toggleService=a,this.el=g,this.commonStrings=b,this.signpostIdService=x,this.signpostFocusManager=$,this.platformId=Se,this.subscriptions=[],this.document=le}ngOnInit(){this.signpostFocusManager.triggerEl=this.el.nativeElement,this.subscriptions.push(this.toggleService.openChange.subscribe(a=>{this.ariaExpanded=a;const g=this.isOpen;this.isOpen=a,!this.isOpen&&g&&this.focusOnClose()}),this.signpostIdService.id.subscribe(a=>this.ariaControl=a)),this.addDefaultAriaLabel(this.el.nativeElement)}addDefaultAriaLabel(a){a.hasAttribute("aria-label")||a.setAttribute("aria-label",this.commonStrings.keys.signpostToggle)}focusOnClose(){!(0,M.NF)(this.platformId)||!this.isOpen&&this.document.activeElement===this.document.body&&this.signpostFocusManager.focusTrigger()}ngOnDestroy(){this.subscriptions.forEach(a=>a.unsubscribe())}onSignpostTriggerClick(a){this.toggleService.toggleWithEvent(a)}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(Sn),l.Y36(l.SBq),l.Y36(an),l.Y36(vf),l.Y36(Sd),l.Y36(M.K0),l.Y36(l.Lbi))},c.\u0275dir=l.lG2({type:c,selectors:[["","clrSignpostTrigger",""]],hostAttrs:[1,"signpost-trigger"],hostVars:4,hostBindings:function(a,g){1&a&&l.NdJ("click",function(x){return g.onSignpostTriggerClick(x)}),2&a&&(l.uIk("aria-expanded",g.ariaExpanded)("aria-controls",g.ariaControl),l.ekj("active",g.isOpen))}}),c})(),yf=(()=>{class c{constructor(a){this.commonStrings=a,this.useCustomTrigger=!1}set customTrigger(a){this.useCustomTrigger=!!a}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(an))},c.\u0275cmp=l.Xpm({type:c,selectors:[["clr-signpost"]],contentQueries:function(a,g,b){if(1&a&&l.Suo(b,_f,5),2&a){let x;l.iGM(x=l.CRH())&&(g.customTrigger=x.first)}},hostVars:2,hostBindings:function(a,g){2&a&&l.ekj("signpost",!0)},features:[l._Bn([Sn,Sd,{provide:ya,useExisting:l.SBq},vf])],ngContentSelectors:Dt,decls:2,vars:1,consts:[[4,"ngIf"],["type","button","clrSignpostTrigger","",1,"signpost-action","btn","btn-small","btn-link"],["shape","info-circle"]],template:function(a,g){1&a&&(l.F$t(),l.YNc(0,Ey,3,1,"ng-container",0),l.Hsn(1)),2&a&&l.Q6J("ngIf",!g.useCustomTrigger)},dependencies:[M.O5,_f,Jt],encapsulation:2}),c})(),lu=(()=>{class c{constructor(){this._dynamic=!1}ngAfterViewInit(){this.cellView=this.templateRef.createEmbeddedView(null)}ngOnDestroy(){this.cellView.destroy()}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275cmp=l.Xpm({type:c,selectors:[["dg-wrapped-cell"]],viewQuery:function(a,g){if(1&a&&l.Gf(Ty,5),2&a){let b;l.iGM(b=l.CRH())&&(g.templateRef=b.first)}},ngContentSelectors:Dt,decls:2,vars:0,consts:[["cellPortal",""]],template:function(a,g){1&a&&(l.F$t(),l.YNc(0,eg,1,0,"ng-template",null,0,l.W1O))},encapsulation:2}),c})(),oc=(()=>{class c{constructor(a){this.vcr=a}ngOnInit(){this.wrappedInjector=new tf(lu,this.vcr)}get _view(){return this.wrappedInjector.get(lu,this.vcr).cellView}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(l.s_b))},c.\u0275cmp=l.Xpm({type:c,selectors:[["clr-dg-cell"]],contentQueries:function(a,g,b){if(1&a&&l.Suo(b,yf,4),2&a){let x;l.iGM(x=l.CRH())&&(g.signpost=x)}},hostAttrs:["role","gridcell"],hostVars:4,hostBindings:function(a,g){2&a&&l.ekj("datagrid-cell",!0)("datagrid-signpost-trigger",g.signpost.length>0)},ngContentSelectors:Dt,decls:1,vars:0,template:function(a,g){1&a&&(l.F$t(),l.Hsn(0))},encapsulation:2}),c})(),Cf=0,vl=(()=>{class c extends Ci{constructor(){super(),this.expandableId="",this._replace=new Gn.X(!1),this._animate=new Ue.xQ,Cf++,this.expandableId="clr-dg-expandable-row-"+Cf}get expanded(){return this._expanded}set expanded(a){(a=!!a)!==this._expanded&&(this._expanded=a,this._animate.next(),this._expandChange.next(a))}loadingStateChange(a){super.loadingStateChange(a),a!==ai.LOADING&&this._animate.next()}get replace(){return this._replace.asObservable()}setReplace(a){this._replace.next(a)}get animate(){return this._animate.asObservable()}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})();var Ja=(()=>(function(c){c[c.DISPLAY=0]="DISPLAY",c[c.CALCULATE=1]="CALCULATE"}(Ja||(Ja={})),Ja))(),_n=(()=>(function(c){c[c.None=0]="None",c[c.Single=1]="Single",c[c.Multi=2]="Multi"}(_n||(_n={})),_n))();let cu=(()=>{class c{constructor(){this._dynamic=!1}ngAfterViewInit(){this.rowView=this.templateRef.createEmbeddedView(null)}ngOnDestroy(){this.rowView.destroy()}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275cmp=l.Xpm({type:c,selectors:[["dg-wrapped-row"]],viewQuery:function(a,g){if(1&a&&l.Gf(tg,5),2&a){let b;l.iGM(b=l.CRH())&&(g.templateRef=b.first)}},ngContentSelectors:Dt,decls:2,vars:0,consts:[["rowPortal",""]],template:function(a,g){1&a&&(l.F$t(),l.YNc(0,ng,1,0,"ng-template",null,0,l.W1O))},encapsulation:2}),c})(),fb=0,_l=(()=>{class c{constructor(a,g){this._items=a,this._filters=g,this.preserveSelection=!1,this.prevSelectionRefs=[],this.lockedRefs=[],this._selectionType=_n.None,this.rowSelectionMode=!1,this.subscriptions=[],this.shiftPressed=!1,this.valueCollector=new Ue.xQ,this._change=new Ue.xQ,this.id="clr-dg-selection"+fb++,this.subscriptions.push(this._filters.change.subscribe(()=>{!this._selectable||this.preserveSelection||this.clearSelection()})),this.subscriptions.push(this._items.allChanges.subscribe(b=>{const x=[];switch(this.selectionType){case _n.None:break;case _n.Single:{let $,le=!1;this.currentSingle&&!this.prevSingleSelectionRef&&this._items.canTrackBy()&&(this.prevSingleSelectionRef=this._items.trackBy(this.currentSingle)),b.forEach((Se,Pe)=>{const nt=this._items.trackBy(Se,Pe);this.prevSingleSelectionRef===nt&&($=Se,le=!0),this.lockedRefs.indexOf(nt)>-1&&x.push(nt)}),this._items.smart&&!$&&(le=!0),setTimeout(()=>{le&&(this.currentSingle=$)},0);break}case _n.Multi:{let $=this.current.slice(),le=!1;this.current.length>0&&this.prevSelectionRefs.length!==this.current.length&&this._items.canTrackBy()&&(this.prevSelectionRefs=[],this.current.forEach(Se=>{this.prevSelectionRefs.push(this._items.trackBy(Se))})),b.forEach((Se,Pe)=>{const nt=this._items.trackBy(Se,Pe);this.lockedRefs.indexOf(nt)>-1&&x.push(nt)}),$.length>0&&(b.forEach((Se,Pe)=>{const nt=this._items.trackBy(Se,Pe),Pt=this.prevSelectionRefs.indexOf(nt);Pt>-1&&($[Pt]=Se,le=!0)}),this._items.smart&&($=$.filter(Se=>b.indexOf(Se)>-1),this.current.length!==$.length&&(le=!0)),setTimeout(()=>{le&&(this.current=$)},0));break}}this.lockedRefs=x})),this.subscriptions.push(this.valueCollector.pipe((0,_i.b)(0)).subscribe(()=>this.emitChange()))}clearSelection(){this._current=[],this.prevSelectionRefs=[],this.prevSingleSelectionRef=null,this._currentSingle=null,this.emitChange()}get selectionType(){return this._selectionType}set selectionType(a){a!==this.selectionType&&(this._selectionType=a,a===_n.None?delete this.current:this.updateCurrent([],!1))}get _selectable(){return this._selectionType===_n.Multi||this._selectionType===_n.Single}destroy(){this.subscriptions.forEach(a=>a.unsubscribe())}get currentSingle(){return this._currentSingle}set currentSingle(a){a!==this._currentSingle&&(this._currentSingle=a,this._items.canTrackBy()&&a&&(this.prevSingleSelectionRef=this._items.trackBy(a)),this.emitChange())}get current(){return this._current}set current(a){this.updateCurrent(a,!0)}updateCurrent(a,g){this._current=a,g&&this.valueCollector.next(a)}emitChange(){this._selectionType===_n.Single?this._change.next(this.currentSingle):this._selectionType===_n.Multi&&this._change.next(this.current)}get change(){return this._change.asObservable()}isSelected(a){return this._selectionType===_n.Single?this.currentSingle===a:this._selectionType===_n.Multi&&this.current.indexOf(a)>=0}selectItem(a){this.current=this.current.concat(a),this._items.canTrackBy()&&this.prevSelectionRefs.push(this._items.trackBy(a))}deselectItem(a){if(this.current=this.current.slice(0,a).concat(this.current.slice(a+1)),ab!==g[0])}}setSelected(a,g){const b=this.current?this.current.indexOf(a):-1;switch(this._selectionType){case _n.None:case _n.Single:break;case _n.Multi:b>=0&&!g?this.deselectItem(b):b<0&&g&&this.selectItem(a)}}isAllSelected(){if(this._selectionType!==_n.Multi||!this._items.displayed)return!1;const a=this._items.displayed.filter(x=>!1===this.isLocked(x));return!(a.length<1)&&a.filter(x=>this.current.indexOf(x)>-1).length===a.length}canItBeLocked(){return this._selectionType!==_n.None&&this._items.canTrackBy()}lockItem(a,g){if(this.canItBeLocked()){const b=this._items.trackBy(a);!0===g?this.lockedRefs.push(b):this.lockedRefs=this.lockedRefs.filter(x=>b!==x)}}isLocked(a){if(this.canItBeLocked()){const g=this._items.trackBy(a);return this.lockedRefs.indexOf(g)>-1}return!1}toggleAll(){this._selectionType===_n.None||this._selectionType===_n.Single||(this.isAllSelected()?this._items.displayed.forEach(a=>{const g=this.current.indexOf(a);g>-1&&!1===this.isLocked(a)&&this.deselectItem(g)}):this._items.displayed.forEach(a=>{this.current.indexOf(a)<0&&!1===this.isLocked(a)&&this.selectItem(a)}))}}return c.\u0275fac=function(a){return new(a||c)(l.LFG(wa),l.LFG(Da))},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})(),Ka=(()=>{class c{constructor(a){this.subscriptions=[],this._view=new Gn.X(Ja.DISPLAY),this.subscriptions.push(a.filterRenderSteps(Es.CALCULATE_MODE_ON).subscribe(()=>this._view.next(Ja.CALCULATE))),this.subscriptions.push(a.filterRenderSteps(Es.CALCULATE_MODE_OFF).subscribe(()=>this._view.next(Ja.DISPLAY)))}get view(){return this._view.asObservable()}ngOnDestroy(){this.subscriptions.forEach(a=>a.unsubscribe())}}return c.\u0275fac=function(a){return new(a||c)(l.LFG(ml))},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})(),Dd=(()=>{class c{constructor(a){this.selection=a}onSelectionCellClick(a){this.selection.rowSelectionMode||"LABEL"!==a.target.tagName&&"INPUT"!==a.target.tagName&&a.target.querySelector("input").click()}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(_l))},c.\u0275dir=l.lG2({type:c,selectors:[["",8,"datagrid-select"]],hostBindings:function(a,g){1&a&&l.NdJ("click",function(x){return g.onSelectionCellClick(x)})}}),c})(),wd=0,$m=(()=>{class c{constructor(a,g,b,x,$,le,Se,Pe,nt,Pt,Nt,yn){this.selection=a,this.rowActionService=g,this.globalExpandable=b,this.expand=x,this.detailService=$,this.displayMode=le,this.vcr=Se,this.renderer=Pe,this.el=nt,this.commonStrings=Pt,this.items=Nt,this.document=yn,this.SELECTION_TYPE=_n,this.expandAnimationTrigger=!1,this._selected=!1,this._selectable=!0,this.selectedChanged=new l.vpe(!1),this.expandedChange=new l.vpe(!1),this._detailOpenLabel="",this._detailCloseLabel="",this._rowAriaLabel="",this.subscriptions=[],this.displayCells=!1,wd++,this.id="clr-dg-row"+wd,this.radioId="clr-dg-row-rd"+wd,this.checkboxId="clr-dg-row-cb"+wd,this.expandableId=x.expandableId,this.subscriptions.push((0,Ns.aj)(this.expand.replace,this.expand.expandChange).subscribe(([fr,qr])=>{fr&&qr?(this.replaced=!0,this.renderer.addClass(this.el.nativeElement,"datagrid-row-replaced")):(this.replaced=!1,this.renderer.removeClass(this.el.nativeElement,"datagrid-row-replaced"))}))}set item(a){this._item=a,this.clrDgSelectable=this._selectable}get item(){return this._item}clearRanges(a){a.shiftKey&&(this.document.getSelection().removeAllRanges(),-1!==window.navigator.userAgent.indexOf("Firefox")&&(a.preventDefault(),this.toggle(!0)))}get selected(){return this.selection.selectionType===_n.None?this._selected:this.selection.isSelected(this.item)}set selected(a){this.selection.selectionType===_n.None?this._selected=a:(a&&this.selection.selectionType===_n.Multi?this.rangeSelect():this.selection.rangeStart=null,this.selection.setSelected(this.item,a))}set clrDgSelectable(a){this.item&&this.selection.lockItem(this.item,"false"===a||!1===a),this._selectable=a}get clrDgSelectable(){return!this.selection.isLocked(this.item)}toggle(a=!this.selected){a!==this.selected&&(this.selected=a,this.selectedChanged.emit(a))}selectRow(a=!this.selected){this.selection.selectionType===this.SELECTION_TYPE.Single?this.selection.currentSingle=this.item:this.toggle(a)}get expanded(){return this.expand.expanded}set expanded(a){this.expand.expanded=a}toggleExpand(){this.expand.expandable&&(this.expandAnimation.updateStartHeight(),this.expanded=!this.expanded,this.expandedChange.emit(this.expanded))}set clrDgDetailOpenLabel(a){this._detailOpenLabel=a}get clrDgDetailOpenLabel(){return this._detailOpenLabel?this._detailOpenLabel:this.commonStrings.keys.open}set clrDgDetailCloseLabel(a){this._detailCloseLabel=a}get clrDgDetailCloseLabel(){return this._detailCloseLabel?this._detailCloseLabel:this.commonStrings.keys.close}set clrDgRowAriaLabel(a){this._rowAriaLabel=a}get clrDgRowAriaLabel(){return this._rowAriaLabel?this._rowAriaLabel:this.commonStrings.keys.select}ngAfterContentInit(){this.dgCells.changes.subscribe(()=>{this.dgCells.forEach(a=>{a._view.destroyed||this._scrollableCells.insert(a._view)})})}ngAfterViewInit(){this.subscriptions.push(this.displayMode.view.subscribe(a=>{for(let g=this._scrollableCells.length;g>0;g--)this._scrollableCells.detach();for(let g=this._calculatedCells.length;g>0;g--)this._calculatedCells.detach();a===Ja.CALCULATE?(this.displayCells=!1,this.dgCells.forEach(g=>{g._view.destroyed||this._calculatedCells.insert(g._view)})):(this.displayCells=!0,this.dgCells.forEach(g=>{g._view.destroyed||this._scrollableCells.insert(g._view)}))}),this.expand.animate.subscribe(()=>{this.expandAnimationTrigger=!this.expandAnimationTrigger}))}rangeSelect(){const a=this.items.displayed;if(!a)return;const g=a.indexOf(this.selection.rangeStart);if(this.selection.rangeStart&&this.selection.current.includes(this.selection.rangeStart)&&this.selection.shiftPressed&&-1!==g){const b=a.indexOf(this.item),x=new Set(this.selection.current.concat(a.slice(Math.min(g,b),Math.max(g,b)+1)));this.selection.clearSelection(),this.selection.current.push(...x)}else this.selection.rangeStart=this.item}ngOnDestroy(){this.subscriptions.forEach(a=>a.unsubscribe())}ngOnInit(){this.wrappedInjector=new tf(cu,this.vcr),this.selection.lockItem(this.item,!1===this.clrDgSelectable)}get _view(){return this.wrappedInjector.get(cu,this.vcr).rowView}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(_l),l.Y36(gl),l.Y36(ic),l.Y36(vl),l.Y36(Do),l.Y36(Ka),l.Y36(l.s_b),l.Y36(l.Qsj),l.Y36(l.SBq),l.Y36(an),l.Y36(wa),l.Y36(M.K0))},c.\u0275cmp=l.Xpm({type:c,selectors:[["clr-dg-row"]],contentQueries:function(a,g,b){if(1&a&&l.Suo(b,oc,4),2&a){let x;l.iGM(x=l.CRH())&&(g.dgCells=x)}},viewQuery:function(a,g){if(1&a&&(l.Gf(hl,5),l.Gf(Rl,5),l.Gf(ua,5,l.s_b),l.Gf(Ay,5,l.s_b),l.Gf(Iy,5,l.s_b)),2&a){let b;l.iGM(b=l.CRH())&&(g.expandAnimation=b.first),l.iGM(b=l.CRH())&&(g.detailButton=b.first),l.iGM(b=l.CRH())&&(g._stickyCells=b.first),l.iGM(b=l.CRH())&&(g._scrollableCells=b.first),l.iGM(b=l.CRH())&&(g._calculatedCells=b.first)}},hostAttrs:["role","rowgroup"],hostVars:5,hostBindings:function(a,g){2&a&&(l.uIk("aria-owns",g.id),l.ekj("datagrid-row",!0)("datagrid-selected",g.selected))},inputs:{item:["clrDgItem","item"],selected:["clrDgSelected","selected"],clrDgSelectable:"clrDgSelectable",expanded:["clrDgExpanded","expanded"],clrDgDetailOpenLabel:"clrDgDetailOpenLabel",clrDgDetailCloseLabel:"clrDgDetailCloseLabel",clrDgRowAriaLabel:"clrDgRowAriaLabel"},outputs:{selectedChanged:"clrDgSelectedChange",expandedChange:"clrDgExpandedChange"},features:[l._Bn([vl,{provide:Ci,useExisting:vl},{provide:Yu,useExisting:vl}])],ngContentSelectors:By,decls:9,vars:3,consts:[["class","datagrid-row-clickable",3,"mousedown","click",4,"ngIf"],[3,"clrExpandTrigger",4,"ngIf"],[4,"ngIf"],["detail",""],["rowContent",""],["calculatedCells",""],[1,"datagrid-row-clickable",3,"mousedown","click"],[3,"clrExpandTrigger"],[3,"ngTemplateOutlet"],["role","row",1,"datagrid-row-master","datagrid-row-flex",3,"id"],[1,"datagrid-row-sticky"],["stickyCells",""],["class","datagrid-select datagrid-fixed-column datagrid-cell","role","gridcell",3,"ngClass",4,"ngIf"],["class","datagrid-row-actions datagrid-fixed-column datagrid-cell","role","gridcell",4,"ngIf"],["class","datagrid-expandable-caret datagrid-fixed-column datagrid-cell","role","gridcell",4,"ngIf"],["class","datagrid-detail-caret datagrid-fixed-column datagrid-cell",4,"ngIf"],[1,"datagrid-row-scrollable",3,"ngClass"],[1,"datagrid-scrolling-cells"],["scrollableCells",""],["role","gridcell",1,"datagrid-select","datagrid-fixed-column","datagrid-cell",3,"ngClass"],[1,"clr-checkbox-wrapper"],["type","checkbox",3,"ngModel","id","disabled","ngModelChange"],[1,"clr-control-label","clr-col-null",3,"for","click"],[1,"clr-sr-only"],["type","radio","clrRadio","",3,"id","name","value","ngModel","checked","disabled","ngModelChange"],["role","gridcell",1,"datagrid-row-actions","datagrid-fixed-column","datagrid-cell"],["role","gridcell",1,"datagrid-expandable-caret","datagrid-fixed-column","datagrid-cell"],["type","button","class","datagrid-expandable-caret-button",3,"click",4,"ngIf"],["clrSmall","",4,"ngIf"],["type","button",1,"datagrid-expandable-caret-button",3,"click"],["shape","angle",1,"datagrid-expandable-caret-icon"],["clrSmall",""],[1,"datagrid-detail-caret","datagrid-fixed-column","datagrid-cell"],["type","button","aria-haspopup","dialog",1,"datagrid-detail-caret-button",3,"click"],["detailButton",""],["shape","angle-double",1,"datagrid-detail-caret-icon"]],template:function(a,g){1&a&&(l.F$t(hg),l.YNc(0,ig,3,2,"div",0),l.YNc(1,sg,2,2,"clr-expandable-animation",1),l.YNc(2,og,1,1,null,2),l.YNc(3,My,1,0,"ng-template",null,3,l.W1O),l.YNc(5,dg,16,13,"ng-template",null,4,l.W1O),l.GkF(7,null,5)),2&a&&(l.Q6J("ngIf",g.selection.rowSelectionMode),l.xp6(1),l.Q6J("ngIf",!g.selection.rowSelectionMode&&g.expand.expandable),l.xp6(1),l.Q6J("ngIf",!g.selection.rowSelectionMode&&!g.expand.expandable))},dependencies:[hl,Jl,M.O5,M.tP,Dd,M.mk,ot.Wl,ot.JJ,ot.On,ci,ot._,ot.Fj,ob,Jt],encapsulation:2}),c})();var ui=(()=>(function(c){c[c.WIDTH=0]="WIDTH",c[c.HIDDEN=1]="HIDDEN"}(ui||(ui={})),ui))();const Ed=Object.keys(ui).map(c=>ui[c]).filter(c=>c===parseInt(c,10));let Ea=(()=>{class c{constructor(){this.columns=[],this._cache=[]}cache(){this._cache=this.columns.map(a=>{const g={...a.value};return delete g.changes,g})}hasCache(){return!!this._cache.length}resetToLastCache(){this._cache.forEach((a,g)=>{this.columns[g].next({...a,changes:Ed})}),this._cache=[]}get columnStates(){return this.columns.map(a=>a.value)}get hasHideableColumns(){return this.columnStates.filter(a=>a.hideable).length>0}emitStateChangeAt(a,g){!this.columns[a]||this.emitStateChange(this.columns[a],g)}emitStateChange(a,g){a.next({...a.value,...g})}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})(),Td=(()=>{class c{constructor(a,g,b,x){this.filters=a,this.sort=g,this.page=b,this.debouncer=x,this.change=this.debouncer.change.pipe((0,mn.U)(()=>this.state))}get state(){const a={};this.page.size>0&&(a.page={from:this.page.firstItem,to:this.page.lastItem,size:this.page.size,current:this.page.current}),this.sort.comparator&&(a.sort=this.sort.comparator instanceof sc?{by:this.sort.comparator.prop,reverse:this.sort.reverse}:{by:this.sort.comparator,reverse:this.sort.reverse});const g=this.filters.getActiveFilters();if(g.length>0){a.filters=[];for(const b of g)a.filters.push(b.state?b.state:b)}return a}}return c.\u0275fac=function(a){return new(a||c)(l.LFG(Da),l.LFG(Cd),l.LFG(Sa),l.LFG(su))},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})(),bf=(()=>{class c{constructor(a){this.zone=a,this.listenersAdded=!1,this.destroy$=new Ue.xQ,this.config={keyGridRows:"[role=row]:not(.datagrid-placeholder)",keyGridCells:"[role=gridcell]:not(.datagrid-hidden-column):not(.datagrid-placeholder-content), [role=columnheader]:not(.datagrid-hidden-column):not(.datagrid-placeholder-content), .datagrid-detail-caret",keyGrid:"[role=grid]"}}get grid(){return this.host?.querySelector(this.config.keyGrid)}get rows(){return this.host?.querySelectorAll(this.config.keyGridRows)}get cells(){return this.host?.querySelectorAll(this.config.keyGridCells)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}addListeners(){this.listenersAdded||(this.zone.runOutsideAngular(()=>{(0,Cn.R)(this.grid,"mousedown").pipe((0,$i.R)(this.destroy$)).subscribe(a=>{if(1===a.buttons&&!a.ctrlKey){const g=this.cells?Array.from(this.cells).find(b=>b===a.target||b===a.target.closest(this.config.keyGridCells)):null;g&&this.setActiveCell(g)}}),(0,Cn.R)(this.grid,"keydown").pipe((0,$i.R)(this.destroy$)).subscribe(a=>{if((!a.target.classList.contains("drag-handle")||"ArrowLeft"!==a.code&&"ArrowRight"!==a.code)&&("ArrowUp"===a.code||"ArrowDown"===a.code||"ArrowLeft"===a.code||"ArrowRight"===a.code||"End"===a.code||"Home"===a.code||"PageUp"===a.code||"PageDown"===a.code)){const{x:g,y:b}=this.getNextItemCoordinate(a),x=this.rows?Array.from(this.rows[b].querySelectorAll(this.config.keyGridCells))[g]:null;x&&this.setActiveCell(x),a.preventDefault()}})}),this.listenersAdded=!0)}initializeKeyGrid(a){this.host=a,this.addListeners(),this.resetKeyGrid()}resetKeyGrid(){this.cells?.forEach(g=>g.setAttribute("tabindex","-1")),(this.cells?this.cells[0]:null)?.setAttribute("tabindex","0")}setActiveCell(a){const g=this.cells?Array.from(this.cells).find($=>"0"===$.getAttribute("tabindex")):null;g&&g.setAttribute("tabindex","-1"),a.setAttribute("tabindex","0");const b=function pb(c){const f=["a[href]","area[href]","input:not([disabled])","button:not([disabled])","select:not([disabled])","textarea:not([disabled])","iframe","object","embed","*[tabindex]","*[contenteditable=true]","[role=button]:not([disabled])"].join(",");return Array.from(c.querySelectorAll(f))}(a);("columnheader"!==a.getAttribute("role")&&b[0]?b[0]:a).focus()}getNextItemCoordinate(a){let g=this.cells?Array.from(this.cells).find(yn=>"0"===yn.getAttribute("tabindex")):null;"Tab"===a.code&&(g=document.activeElement);const b=this.rows&&g?Array.from(this.rows).find(yn=>yn.contains(g)):null,x=this.rows?this.rows.length-1:0,$=this.cells?this.cells.length/this.rows.length-1:0;let le=b&&g?Array.from(b.querySelectorAll(this.config.keyGridCells)).indexOf(g):0,Se=b&&g&&this.rows?Array.from(this.rows).indexOf(b):0;const Pe=this.host.dir,nt="rtl"===Pe?"ArrowRight":"ArrowLeft",Pt="rtl"===Pe?"ArrowLeft":"ArrowRight",Nt=Math.floor(this.host?.querySelector(".datagrid").clientHeight/this.rows[0].clientHeight)-1||0;return"ArrowUp"===a.code&&0!==Se?Se-=1:"ArrowDown"===a.code&&Se0?Se-Nt:0:"PageDown"===a.code&&(Se=Se+Nt{class c{constructor(a,g,b,x,$,le,Se,Pe,nt,Pt,Nt,yn,fr,qr,zD,UD){this.organizer=a,this.items=g,this.expandableRows=b,this.selection=x,this.rowActionService=$,this.stateProvider=le,this.displayMode=Se,this.renderer=Pe,this.detailService=nt,this.document=Pt,this.el=Nt,this.page=yn,this.commonStrings=fr,this.columnsService=qr,this.keyNavigation=zD,this.zone=UD,this.SELECTION_TYPE=_n,this.refresh=new l.vpe(!1),this.selectedChanged=new l.vpe(!1),this.singleSelectedChanged=new l.vpe(!1),this.clrDgSingleSelectionAriaLabel=this.commonStrings.keys.singleSelectionAriaLabel,this.clrDgSingleActionableAriaLabel=this.commonStrings.keys.singleActionableAriaLabel,this.clrDetailExpandableAriaLabel=this.commonStrings.keys.detailExpandableAriaLabel,this.clrDgDisablePageFocus=!1,this._subscriptions=[];const l0=Vr();this.selectAllId="clr-dg-select-all-"+l0,this.detailService.id=l0}get loading(){return this.items.loading}set loading(a){this.items.loading=a}dataChanged(){this.items.refresh()}set selected(a){this.selection.selectionType=a?_n.Multi:_n.None,this.selection.updateCurrent(a,!1)}set singleSelected(a){this.selection.selectionType=_n.Single,a?this.selection.currentSingle=a:this.selection.currentSingle&&(this.selection.currentSingle=null)}set clrDgPreserveSelection(a){this.selection.preserveSelection=a}set rowSelectionMode(a){this.selection.rowSelectionMode=a}set trackBy(a){this.items.datagridTrackBy=a}get allSelected(){return this.selection.isAllSelected()}set allSelected(a){this.selection.toggleAll()}ngAfterContentInit(){this.items.smart||(this.items.all=this.rows.map(a=>a.item)),this._subscriptions.push(this.rows.changes.subscribe(()=>{this.items.smart||(this.items.all=this.rows.map(a=>a.item));for(let a=this._displayedRows.length-1;a>=0;a--)this._displayedRows.get(a).destroyed&&this._displayedRows.remove(a);if(this.rows.forEach(a=>{this._displayedRows.insert(a._view)}),this.detailService.state&&this.detailService.isOpen){const a=this.items.canTrackBy()?this.rows.find(g=>this.items.trackBy(g.item)===this.items.trackBy(this.detailService.state)):void 0;a?this.detailService.open(a.item,a.detailButton.nativeElement):this.detailService.close()}}))}ngAfterViewInit(){this.keyNavigation.initializeKeyGrid(this.el.nativeElement),this.refresh.emit(this.stateProvider.state),this._subscriptions.push(this.stateProvider.change.subscribe(a=>this.refresh.emit(a)),this.selection.change.subscribe(a=>{this.selection.selectionType===_n.Single?this.singleSelectedChanged.emit(a):this.selection.selectionType===_n.Multi&&this.selectedChanged.emit(a)}),this.page.change.subscribe(()=>{this.keyNavigation.resetKeyGrid(),this.clrDgDisablePageFocus||this.datagridTable.nativeElement.focus()}),(0,Ns.aj)(this.columnsService.columns).subscribe(()=>this.keyNavigation?.resetKeyGrid()),this.displayMode.view.subscribe(a=>{for(let g=this._projectedDisplayColumns.length;g>0;g--)this._projectedDisplayColumns.detach();for(let g=this._projectedCalculationColumns.length;g>0;g--)this._projectedCalculationColumns.detach();for(let g=this._calculationRows.length;g>0;g--)this._calculationRows.detach();for(let g=this._displayedRows.length;g>0;g--)this._displayedRows.detach();a===Ja.DISPLAY?(this.renderer.removeClass(this.el.nativeElement,"datagrid-calculate-mode"),this.columns.forEach(g=>{this._projectedDisplayColumns.insert(g._view)}),this.rows.forEach(g=>{this._displayedRows.insert(g._view)})):(this.renderer.addClass(this.el.nativeElement,"datagrid-calculate-mode"),this.columns.forEach(g=>{this._projectedCalculationColumns.insert(g._view)}),this.rows.forEach(g=>{this._calculationRows.insert(g._view)}))})),this.zone.runOutsideAngular(()=>{this._subscriptions.push((0,Cn.R)(this.document.body,"keydown").subscribe(a=>{"Shift"===a.key&&(this.selection.shiftPressed=!0)}),(0,Cn.R)(this.document.body,"keyup").subscribe(a=>{"Shift"===a.key&&(this.selection.shiftPressed=!1)}))})}ngOnDestroy(){this._subscriptions.forEach(a=>a.unsubscribe())}resize(){this.organizer.resize()}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(ml),l.Y36(wa),l.Y36(ic),l.Y36(_l),l.Y36(gl),l.Y36(Td),l.Y36(Ka),l.Y36(l.Qsj),l.Y36(Do),l.Y36(M.K0),l.Y36(l.SBq),l.Y36(Sa),l.Y36(an),l.Y36(Ea),l.Y36(bf),l.Y36(l.R0b))},c.\u0275cmp=l.Xpm({type:c,selectors:[["clr-datagrid"]],contentQueries:function(a,g,b){if(1&a&&(l.Suo(b,Um,5),l.Suo(b,mf,5),l.Suo(b,bd,4),l.Suo(b,$m,4)),2&a){let x;l.iGM(x=l.CRH())&&(g.iterator=x.first),l.iGM(x=l.CRH())&&(g.placeholder=x.first),l.iGM(x=l.CRH())&&(g.columns=x),l.iGM(x=l.CRH())&&(g.rows=x)}},viewQuery:function(a,g){if(1&a&&(l.Gf(Hy,5,l.s_b),l.Gf(fg,5,l.SBq),l.Gf(jy,5,l.s_b),l.Gf(pg,5,l.s_b),l.Gf(zy,5,l.s_b),l.Gf(Uy,5,l.s_b)),2&a){let b;l.iGM(b=l.CRH())&&(g.scrollableColumns=b.first),l.iGM(b=l.CRH())&&(g.datagridTable=b.first),l.iGM(b=l.CRH())&&(g._projectedDisplayColumns=b.first),l.iGM(b=l.CRH())&&(g._projectedCalculationColumns=b.first),l.iGM(b=l.CRH())&&(g._displayedRows=b.first),l.iGM(b=l.CRH())&&(g._calculationRows=b.first)}},hostVars:4,hostBindings:function(a,g){2&a&&l.ekj("datagrid-host",!0)("datagrid-detail-open",g.detailService.isOpen)},inputs:{loading:["clrDgLoading","loading"],selected:["clrDgSelected","selected"],singleSelected:["clrDgSingleSelected","singleSelected"],clrDgSingleSelectionAriaLabel:"clrDgSingleSelectionAriaLabel",clrDgSingleActionableAriaLabel:"clrDgSingleActionableAriaLabel",clrDetailExpandableAriaLabel:"clrDetailExpandableAriaLabel",clrDgDisablePageFocus:"clrDgDisablePageFocus",clrDgPreserveSelection:"clrDgPreserveSelection",rowSelectionMode:["clrDgRowSelection","rowSelectionMode"],trackBy:["clrDgItemsTrackBy","trackBy"]},outputs:{refresh:"clrDgRefresh",selectedChanged:"clrDgSelectedChange",singleSelectedChanged:"clrDgSingleSelectedChange"},features:[l._Bn([_l,Cd,Da,Sa,wa,ml,gl,ic,su,Do,Td,gf,Ea,Ka,bf])],ngContentSelectors:Gy,decls:32,vars:7,consts:[[1,"datagrid-outer-wrapper"],[1,"datagrid-inner-wrapper"],[1,"datagrid"],["datagrid",""],[1,"datagrid-table-wrapper"],["role","grid","tabindex","-1",1,"datagrid-table"],["datagridTable",""],["role","rowgroup",1,"datagrid-header"],["role","row",1,"datagrid-row"],[1,"datagrid-row-master","datagrid-row-flex"],[1,"datagrid-row-sticky"],["role","columnheader","class","datagrid-column datagrid-select datagrid-fixed-column",3,"keydown.space",4,"ngIf"],["role","columnheader","class","datagrid-column datagrid-select datagrid-fixed-column",4,"ngIf"],["role","columnheader","class","datagrid-column datagrid-row-actions datagrid-fixed-column",4,"ngIf"],["role","columnheader","class","datagrid-column datagrid-expandable-caret datagrid-fixed-column",4,"ngIf"],[1,"datagrid-row-scrollable"],["projectedDisplayColumns",""],["displayedRows",""],[4,"ngIf"],["class","datagrid-spinner",4,"ngIf"],[1,"datagrid-calculation-table"],[1,"datagrid-calculation-header"],["projectedCalculationColumns",""],["calculationRows",""],["role","columnheader",1,"datagrid-column","datagrid-select","datagrid-fixed-column",3,"keydown.space"],[1,"clr-checkbox-wrapper"],["type","checkbox","tabindex","-1",3,"id","ngModel","ngModelChange"],[1,"clr-control-label","clr-col-null",3,"for"],[1,"clr-sr-only"],[1,"datagrid-column-separator"],["role","columnheader",1,"datagrid-column","datagrid-select","datagrid-fixed-column"],["role","columnheader",1,"datagrid-column","datagrid-row-actions","datagrid-fixed-column"],["role","columnheader",1,"datagrid-column","datagrid-expandable-caret","datagrid-fixed-column"],[1,"datagrid-spinner"],["clrMedium",""]],template:function(a,g){1&a&&(l.F$t(wh),l.Hsn(0),l.TgZ(1,"div",0)(2,"div",1)(3,"div",2,3)(5,"div",4)(6,"div",5,6)(8,"div",7)(9,"div",8)(10,"div",9)(11,"div",10),l.YNc(12,bS,7,5,"div",11),l.YNc(13,gg,2,1,"div",12),l.YNc(14,mg,2,1,"div",13),l.YNc(15,ul,2,1,"div",14),l.qZA(),l.TgZ(16,"div",15),l.GkF(17,null,16),l.qZA()()()(),l.GkF(19,null,17),l.Hsn(21,1),l.YNc(22,$y,1,0,"clr-dg-placeholder",18),l.qZA()()(),l.Hsn(23,2),l.YNc(24,Dh,3,0,"div",19),l.qZA(),l.Hsn(25,3),l.qZA(),l.TgZ(26,"div",20)(27,"div",21),l.GkF(28,null,22),l.qZA(),l.GkF(30,null,23),l.qZA()),2&a&&(l.xp6(3),l.uIk("aria-hidden",!!g.detailService.isOpen||null),l.xp6(9),l.Q6J("ngIf",g.selection.selectionType===g.SELECTION_TYPE.Multi),l.xp6(1),l.Q6J("ngIf",g.selection.selectionType===g.SELECTION_TYPE.Single),l.xp6(1),l.Q6J("ngIf",g.rowActionService.hasActionableRow),l.xp6(1),l.Q6J("ngIf",g.expandableRows.hasExpandableRow||g.detailService.enabled),l.xp6(7),l.Q6J("ngIf",!g.placeholder),l.xp6(2),l.Q6J("ngIf",g.loading))},dependencies:[mf,Jl,M.O5,Dd,ot.Wl,ot.JJ,ot.On,ci],encapsulation:2}),c})(),Id=(()=>{class c{constructor(a){this.columnsService=a,this.allSelected=new l.vpe}get clrAllSelected(){return this.allSelected.asObservable()}hideableColumns(){return this.columnsService.columns.filter(a=>a.value.hideable)}get allHideablesVisible(){return 0===this.hideableColumns().filter(a=>a.value.hidden).length}selectAll(){this.hideableColumns().forEach(a=>this.columnsService.emitStateChange(a,{hidden:!1,changes:[ui.HIDDEN]})),this.allSelected.next(!0)}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(Ea))},c.\u0275cmp=l.Xpm({type:c,selectors:[["clr-dg-column-toggle-button"]],outputs:{clrAllSelected:"clrAllSelected"},ngContentSelectors:Dt,decls:2,vars:1,consts:[["type","button",1,"btn","btn-sm","btn-link","switch-button",3,"disabled","click"]],template:function(a,g){1&a&&(l.F$t(),l.TgZ(0,"button",0),l.NdJ("click",function(){return g.selectAll()}),l.Hsn(1),l.qZA()),2&a&&l.Q6J("disabled",g.allHideablesVisible)},encapsulation:2}),c})(),Wm=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275cmp=l.Xpm({type:c,selectors:[["clr-dg-column-toggle-title"]],ngContentSelectors:Dt,decls:1,vars:0,template:function(a,g){1&a&&(l.F$t(),l.Hsn(0))},encapsulation:2}),c})();const Qm=c=>c;let qm=(()=>{class c{constructor(a){this._items=a}set trackBy(a){a!==Qm&&this._items&&(this._items.iteratorTrackBy=a)}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(wa,8))},c.\u0275dir=l.lG2({type:c,selectors:[["","ngForTrackBy",""]],inputs:{trackBy:["ngForTrackBy","trackBy"]}}),c})(),Sf=(()=>{class c{constructor(a,g,b){this.commonStrings=a,this.columnsService=g,this.popoverId=Vr(),this.smartPosition={axis:li.VERTICAL,side:bi.BEFORE,anchor:ln.START,content:ln.START},this.trackByFn=Qm,this.subscription=b.openChange.subscribe(x=>this.openState=x)}get allColumnsVisible(){return this._allColumnsVisible}set allColumnsVisible(a){this._allColumnsVisible=a}ngOnDestroy(){this.subscription.unsubscribe()}get hideableColumnStates(){return this.columnsService.columns.filter(g=>g.value.hideable).map(g=>g.value)}get hasOnlyOneVisibleColumn(){return this.columnsService.columns.length-this.hideableColumnStates.length==0&&1===this.hideableColumnStates.filter(g=>!g.hidden).length}toggleColumnState(a,g){const b=this.columnsService.columns.filter(x=>x.value===a)[0];this.columnsService.emitStateChange(b,{hidden:g,changes:[ui.HIDDEN]})}toggleSwitchPanel(){this.openState=!this.openState}allColumnsSelected(){this.allSelectedElement.nativeElement.focus()}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(an),l.Y36(Ea),l.Y36(Sn))},c.\u0275cmp=l.Xpm({type:c,selectors:[["clr-dg-column-toggle"]],contentQueries:function(a,g,b){if(1&a&&(l.Suo(b,Wm,5),l.Suo(b,Id,5)),2&a){let x;l.iGM(x=l.CRH())&&(g.customToggleTitle=x.first),l.iGM(x=l.CRH())&&(g.customToggleButton=x.first)}},viewQuery:function(a,g){if(1&a&&l.Gf(DS,5,l.SBq),2&a){let b;l.iGM(b=l.CRH())&&(g.allSelectedElement=b.first)}},hostVars:4,hostBindings:function(a,g){2&a&&l.ekj("column-switch-wrapper",!0)("active",g.openState)},features:[l._Bn([ha,$l,Sn])],ngContentSelectors:Wy,decls:3,vars:8,consts:[["role","button","type","button","clrPopoverAnchor","","clrPopoverOpenCloseButton","",1,"btn","btn-sm","column-toggle--action"],["class","column-switch","role","dialog","clrFocusTrap","",3,"id",4,"clrPopoverContent","clrPopoverContentAt","clrPopoverContentOutsideClickToClose","clrPopoverContentScrollToClose"],["role","dialog","clrFocusTrap","",1,"column-switch",3,"id"],[1,"switch-header"],["tabindex","-1",1,"clr-sr-only"],["allSelected",""],[4,"ngIf"],["clrPopoverCloseButton","","type","button",1,"btn","btn-sm","btn-link","toggle-switch-close-button"],["shape","window-close","aria-hidden","true"],[1,"clr-sr-only"],[1,"switch-content","list-unstyled"],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"switch-footer"],[3,"clrAllSelected",4,"ngIf"],["clrCheckbox","","type","checkbox",3,"disabled","ngModel","ngModelChange"],[3,"ngTemplateOutlet"],[3,"clrAllSelected"]],template:function(a,g){1&a&&(l.F$t(Ll),l.TgZ(0,"button",0),l._uU(1),l.qZA(),l.YNc(2,Zy,16,10,"div",1)),2&a&&(l.uIk("aria-controls",g.popoverId)("aria-owns",g.popoverId)("aria-expanded",g.openState),l.xp6(1),l.hij(" ",g.commonStrings.keys.pickColumns," "),l.xp6(1),l.Q6J("clrPopoverContent",g.openState)("clrPopoverContentAt",g.smartPosition)("clrPopoverContentOutsideClickToClose",!0)("clrPopoverContentScrollToClose",!0))},dependencies:[sd,Id,fa,Pc,kc,Uo,M.O5,qg,Jt,M.sg,qm,ot.Wl,od,ot.JJ,ot.On,ci,M.tP],encapsulation:2}),c})(),Km=(()=>{class c{constructor(a,g,b,x){this.selection=a,this.detailService=g,this.columnsService=b,this.commonStrings=x,this.SELECTION_TYPE=_n}get hasHideableColumns(){return this.columnsService.hasHideableColumns}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(_l),l.Y36(Do),l.Y36(Ea),l.Y36(an))},c.\u0275cmp=l.Xpm({type:c,selectors:[["clr-dg-footer"]],contentQueries:function(a,g,b){if(1&a&&l.Suo(b,Sf,5),2&a){let x;l.iGM(x=l.CRH())&&(g.toggle=x.first)}},hostVars:2,hostBindings:function(a,g){2&a&&l.ekj("datagrid-footer",!0)},ngContentSelectors:Ky,decls:3,vars:2,consts:[[4,"ngIf"],[1,"clr-form-control-disabled"],[1,"datagrid-footer-select"],["clrCheckbox","","type","checkbox","checked","checked","disabled",""],[1,"clr-sr-only"],[1,"datagrid-footer-description"]],template:function(a,g){1&a&&(l.F$t(Jy),l.YNc(0,Qy,8,2,"ng-container",0),l.YNc(1,qy,5,1,"ng-container",0),l.Hsn(2)),2&a&&(l.Q6J("ngIf",g.selection.selectionType===g.SELECTION_TYPE.Multi&&g.selection.current.length>0),l.xp6(1),l.Q6J("ngIf",!g.detailService.isOpen))},dependencies:[sd,Sf,M.O5,od,ci],encapsulation:2}),c})();const Xm=new l.OlP("COLUMN_STATE"),mb={provide:Xm,useFactory:function bD(){return new Gn.X({changes:[]})}},ac="datagrid-fixed-width",xd="datagrid-hidden-column";let Ef=(()=>{class c{constructor(a,g,b){this.el=a,this.renderer=g,this.subscriptions=[],this.subscriptions.push(b.filterRenderSteps(Es.CLEAR_WIDTHS).subscribe(()=>this.clearWidth()))}set columnState(a){this.stateSubscription&&this.stateSubscription.unsubscribe(),this.runAllChanges=Ed,this.stateSubscription=a.subscribe(g=>this.stateChanges(g))}ngOnDestroy(){this.subscriptions.forEach(a=>a.unsubscribe()),this.stateSubscription&&this.stateSubscription.unsubscribe()}stateChanges(a){this.runAllChanges&&(a.changes=this.runAllChanges,delete this.runAllChanges),a.changes&&a.changes.length&&a.changes.forEach(g=>{switch(g){case ui.WIDTH:this.setWidth(a);break;case ui.HIDDEN:this.setHidden(a)}})}clearWidth(){this.renderer.removeClass(this.el.nativeElement,ac),this.renderer.setStyle(this.el.nativeElement,"width",null)}setWidth(a){a.strictWidth?this.renderer.addClass(this.el.nativeElement,ac):this.renderer.removeClass(this.el.nativeElement,ac),this.renderer.setStyle(this.el.nativeElement,"width",a.width+"px")}setHidden(a){a.hidden?this.renderer.addClass(this.el.nativeElement,xd):this.renderer.removeClass(this.el.nativeElement,xd)}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(l.SBq),l.Y36(l.Qsj),l.Y36(ml))},c.\u0275dir=l.lG2({type:c,selectors:[["clr-dg-cell"]]}),c})(),Tf=(()=>{class c{constructor(a,g,b,x,$,le,Se){this.el=a,this.renderer=g,this.organizer=b,this.domAdapter=x,this.columnResizerService=$,this.columnsService=le,this.columnState=Se,this.resizeEmitter=new l.vpe,this.widthSet=!1,this.autoSet=!1,this.subscriptions=[],this.subscriptions.push(this.organizer.filterRenderSteps(Es.CLEAR_WIDTHS).subscribe(()=>this.clearWidth())),this.subscriptions.push(Se.subscribe(Pe=>this.stateChanges(Pe)))}ngOnDestroy(){this.subscriptions.forEach(a=>a.unsubscribe())}stateChanges(a){a.changes&&a.changes.length&&a.changes.forEach(g=>{switch(g){case ui.WIDTH:this.setWidth(a);break;case ui.HIDDEN:this.setHidden(a)}})}clearWidth(){this.widthSet&&!this.columnResizerService.resizedBy&&this.renderer.setStyle(this.el.nativeElement,"width",null),this.autoSet&&this.renderer.removeClass(this.el.nativeElement,ac)}detectStrictWidth(){return this.columnResizerService.resizedBy?this.columnResizerService.widthAfterResize:this.autoSet?0:this.domAdapter.userDefinedWidth(this.el.nativeElement)}computeWidth(a){let g=a;return g||(g=this.domAdapter.scrollWidth(this.el.nativeElement)),g}getColumnWidthState(){const a=this.detectStrictWidth();return{width:this.computeWidth(a),strictWidth:a}}setColumnState(a){this.columnsService.columns[a]=this.columnState}setWidth(a){a.strictWidth?(this.columnResizerService.resizedBy&&(this.resizeEmitter.emit(a.width),this.renderer.setStyle(this.el.nativeElement,"width",a.width+"px"),this.widthSet=!1),this.renderer.addClass(this.el.nativeElement,ac),this.autoSet=!1):(this.renderer.removeClass(this.el.nativeElement,ac),this.renderer.setStyle(this.el.nativeElement,"width",a.width+"px"),this.widthSet=!0,this.autoSet=!0)}setHidden(a){a.hidden?this.renderer.addClass(this.el.nativeElement,xd):this.renderer.removeClass(this.el.nativeElement,xd)}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(l.SBq),l.Y36(l.Qsj),l.Y36(ml),l.Y36(Br),l.Y36(pf),l.Y36(Ea),l.Y36(Xm))},c.\u0275dir=l.lG2({type:c,selectors:[["clr-dg-column"]],outputs:{resizeEmitter:"clrDgColumnResize"},features:[l._Bn([pf,mb])]}),c})(),uu=(()=>{class c{userDefinedWidth(a){return 0}scrollBarWidth(a){return 0}scrollWidth(a){return 0}computedHeight(a){return 0}clientRect(a){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}minWidth(a){return 0}focus(a){}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})(),Md=(()=>{class c{constructor(a){this.columnsService=a,this.subscriptions=[]}ngAfterContentInit(){this.setColumnState(),this.subscriptions.push(this.cells.changes.subscribe(()=>{this.setColumnState()}))}ngOnDestroy(){this.subscriptions.forEach(a=>a.unsubscribe())}setColumnState(){this.cells.length===this.columnsService.columns.length&&this.cells.forEach((a,g)=>{this.columnsService.columns[g]&&(a.columnState=this.columnsService.columns[g])})}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(Ea))},c.\u0275dir=l.lG2({type:c,selectors:[["clr-dg-row"],["clr-dg-row-detail"]],contentQueries:function(a,g,b){if(1&a&&l.Suo(b,Ef,4),2&a){let x;l.iGM(x=l.CRH())&&(g.cells=x)}}}),c})();const tv=c=>(0,M.NF)(c)?new Br:new uu;let Af=(()=>{class c{constructor(a,g,b,x,$,le,Se,Pe,nt,Pt){this.organizer=a,this.items=g,this.page=b,this.domAdapter=x,this.el=$,this.renderer=le,this.detailService=Se,this.tableSizeService=Pe,this.columnsService=nt,this.ngZone=Pt,this._heightSet=!1,this.subscriptions=[],this.columnsSizesStable=!1,this.shouldStabilizeColumns=!0,this.subscriptions.push(this.organizer.filterRenderSteps(Es.COMPUTE_COLUMN_WIDTHS).subscribe(()=>this.computeHeadersWidth())),this.subscriptions.push(this.page.sizeChange.subscribe(()=>{this._heightSet&&this.resetDatagridHeight()})),this.subscriptions.push(this.detailService.stateChange.subscribe(Nt=>this.toggleDetailPane(Nt))),this.subscriptions.push(this.items.change.subscribe(()=>this.shouldStabilizeColumns=!0))}ngAfterContentInit(){this.setupColumns(),this.subscriptions.push(this.headers.changes.subscribe(()=>{this.setupColumns(),this.columnsSizesStable=!1,this.stabilizeColumns()}))}ngAfterViewInit(){this.tableSizeService.table=this.el}ngAfterViewChecked(){this.shouldStabilizeColumns&&this.stabilizeColumns(),this.shouldComputeHeight()&&this.ngZone.runOutsideAngular(()=>{setTimeout(()=>{this.computeDatagridHeight()})})}setupColumns(){this.headers.forEach((a,g)=>a.setColumnState(g)),this.columnsService.columns.splice(this.headers.length),this.rows.forEach(a=>a.setColumnState())}shouldComputeHeight(){return!this._heightSet&&this.page.size>0&&this.items.displayed.length===this.page.size}toggleDetailPane(a){this.headers&&(a&&!this.columnsService.hasCache()?(this.columnsService.cache(),this.headers.forEach((g,b)=>{b>0&&this.columnsService.emitStateChangeAt(b,{changes:[ui.HIDDEN],hidden:a})})):a||this.columnsService.resetToLastCache())}computeDatagridHeight(){const a=this.domAdapter.clientRect(this.el.nativeElement).height;this.renderer.setStyle(this.el.nativeElement,"height",a+"px"),this._heightSet=!0}resetDatagridHeight(){this.renderer.setStyle(this.el.nativeElement,"height",""),this._heightSet=!1}ngOnDestroy(){this.subscriptions.forEach(a=>a.unsubscribe())}computeHeadersWidth(){const a=this.headers.length;let g=!0;this.headers.forEach((b,x)=>{const $={changes:[ui.WIDTH],...b.getColumnWidthState()};$.strictWidth||(g=!1),a===x+1&&g&&($.strictWidth=0),this.columnsService.emitStateChangeAt(x,$)})}stabilizeColumns(){this.shouldStabilizeColumns=!1,!this.columnsSizesStable&&this.items.displayed.length>0&&(this.organizer.resize(),this.columnsSizesStable=!0)}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(ml),l.Y36(wa),l.Y36(Sa),l.Y36(Br),l.Y36(l.SBq),l.Y36(l.Qsj),l.Y36(Do),l.Y36(gf),l.Y36(Ea),l.Y36(l.R0b))},c.\u0275dir=l.lG2({type:c,selectors:[["clr-datagrid"]],contentQueries:function(a,g,b){if(1&a&&(l.Suo(b,Tf,4),l.Suo(b,Md,5)),2&a){let x;l.iGM(x=l.CRH())&&(g.headers=x),l.iGM(x=l.CRH())&&(g.rows=x)}},features:[l._Bn([{provide:Br,useFactory:tv,deps:[l.Lbi]}])]}),c})(),nv=(()=>{class c{constructor(){Et.addIcons(Ks,$r,xs,gi,Lr,Or,to,Ko,ns)}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez,In,hf,ot.u5,Ya,Ss,db,rc,zc,Kl,Nc,qc,$c,Za]]}),c})(),If=(()=>{class c{constructor(){Et.addIcons($n)}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez,ot.u5,In,rc]]}),c})();new l.FiY,new l.tp0;let xD=(()=>{class c{constructor(){Et.addIcons($n)}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez,In,Ya]]}),c})(),kf=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[nv,If,xD]}),c})();function Pd(c,f,a){return ro.y.create(g=>{f(g);const b=c.subscribe(g);return()=>{b.unsubscribe(),a&&a(g)}})}let Nd=(()=>{class c{constructor(a,g,b,x,$){this.renderer=a,this.parent=g,this.toggleService=b,this.focusService=x,this.platformId=$,this.id=Vr(),this._unlistenFuncs=[],this.focusBackOnTrigger=!1,this.resetChildren(),this.moveToFirstItemWhenOpen(),this.parent||this.handleRootFocus()}moveToFirstItemWhenOpen(){const a=this.toggleService.openChange.subscribe(g=>{g&&this.toggleService.originalEvent&&setTimeout(()=>{this.focusService.moveTo(this),this.focusService.move(this.parent?qi.RIGHT:qi.DOWN)})});this._unlistenFuncs.push(()=>a.unsubscribe())}handleRootFocus(){const a=this.toggleService.openChange.subscribe(g=>{g||(this.focusService.reset(this),this.focusBackOnTrigger&&this.focus()),this.focusBackOnTrigger=g});this._unlistenFuncs.push(()=>a.unsubscribe())}get trigger(){return this._trigger}set trigger(a){this._trigger=a,this.parent?this._unlistenFuncs.push(this.renderer.listen(a,"keydown.arrowright",g=>this.toggleService.toggleWithEvent(g))):(this._unlistenFuncs.push(this.renderer.listen(a,"keydown.arrowup",g=>this.toggleService.toggleWithEvent(g))),this._unlistenFuncs.push(this.renderer.listen(a,"keydown.arrowdown",g=>this.toggleService.toggleWithEvent(g))),this.focusService.listenToArrowKeys(a))}get container(){return this._container}set container(a){this._container=a,this._unlistenFuncs.push(this.renderer.listen(a,"keydown.tab",g=>this.toggleService.toggleWithEvent(g))),this.parent?this._unlistenFuncs.push(this.renderer.listen(a,"keydown.escape",g=>{this.focusService.move(qi.LEFT),g.stopPropagation()})):(this.focusService.registerContainer(a),this._unlistenFuncs.push(this.renderer.listen(a,"keydown.escape",g=>this.toggleService.toggleWithEvent(g))),this._unlistenFuncs.push(this.renderer.listen(a,"blur",g=>{this.children.pipe((0,Oo.q)(1)).subscribe(x=>x.forEach($=>$.blur()));const b=g.relatedTarget||document.activeElement;b&&(0,M.NF)(this.platformId)&&(a.contains(b)||b===this.trigger)||(this.focusBackOnTrigger=!1,this.toggleService.open=!1)})))}focus(){this.trigger&&(0,M.NF)(this.platformId)&&this.trigger.focus()}blur(){this.trigger&&(0,M.NF)(this.platformId)&&this.trigger.blur()}activate(){(0,M.NF)(this.platformId)&&this.trigger.click()}openAndGetChildren(){return Pd(this.children,()=>this.toggleService.open=!0)}closeAndGetThis(){return Pd((0,N.of)(this),()=>this.toggleService.open=!1)}resetChildren(){this.children=new Zr(1),this.parent?this.right=this.openAndGetChildren().pipe((0,mn.U)(a=>a[0])):(this.down=this.openAndGetChildren().pipe((0,mn.U)(a=>a[0])),this.up=this.openAndGetChildren().pipe((0,mn.U)(a=>a[a.length-1])))}addChildren(a){zs.linkVertical(a),this.parent&&zs.linkParent(a,this.closeAndGetThis(),qi.LEFT),this.children.next(a)}ngOnDestroy(){this._unlistenFuncs.forEach(a=>a()),this.focusService.detachListeners()}}return c.\u0275fac=function(a){return new(a||c)(l.LFG(l.Qsj),l.LFG(c,12),l.LFG(Sn),l.LFG(ga),l.LFG(l.Lbi))},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})();rf(Nd);new l.FiY,new l.tp0;var He=(()=>(function(c){c[c.RIGHT_CENTER=0]="RIGHT_CENTER",c[c.RIGHT_TOP=1]="RIGHT_TOP",c[c.RIGHT_BOTTOM=2]="RIGHT_BOTTOM",c[c.TOP_CENTER=3]="TOP_CENTER",c[c.TOP_RIGHT=4]="TOP_RIGHT",c[c.TOP_LEFT=5]="TOP_LEFT",c[c.BOTTOM_CENTER=6]="BOTTOM_CENTER",c[c.BOTTOM_RIGHT=7]="BOTTOM_RIGHT",c[c.BOTTOM_LEFT=8]="BOTTOM_LEFT",c[c.LEFT_CENTER=9]="LEFT_CENTER",c[c.LEFT_TOP=10]="LEFT_TOP",c[c.LEFT_BOTTOM=11]="LEFT_BOTTOM"}(He||(He={})),He))();const Lf="absolute";class fv{constructor(f){this.element=f,this.scrollableElements=[],this.boundOnScrollListener=this.emitScrollEvent.bind(this),f.style.position=Lf,f.style.top=0,f.style.bottom="auto",f.style.left=0,f.style.right="auto"}anchor(f,a,g,{offsetX:b=0,offsetY:x=0,useAnchorParent:$=!1}={}){this.addScrollEventListeners(f),$&&(f=f.parentNode),f.style.position="static";const le=f.getBoundingClientRect(),Se=this.element.getBoundingClientRect();let Pe=le.left-Se.left+b,nt=le.top-Se.top+x;switch(a){case He.LEFT_TOP:case He.TOP_LEFT:break;case He.TOP_CENTER:Pe+=le.width/2;break;case He.TOP_RIGHT:case He.RIGHT_TOP:Pe+=le.width;break;case He.LEFT_BOTTOM:case He.BOTTOM_LEFT:nt+=le.height;break;case He.BOTTOM_CENTER:nt+=le.height,Pe+=le.width/2;break;case He.BOTTOM_RIGHT:case He.RIGHT_BOTTOM:nt+=le.height,Pe+=le.width;break;case He.LEFT_CENTER:nt+=le.height/2;break;case He.RIGHT_CENTER:nt+=le.height/2,Pe+=le.width}switch(g){case He.LEFT_TOP:case He.TOP_LEFT:break;case He.TOP_CENTER:Pe-=Se.width/2;break;case He.TOP_RIGHT:case He.RIGHT_TOP:Pe-=Se.width;break;case He.LEFT_BOTTOM:case He.BOTTOM_LEFT:nt-=Se.height;break;case He.BOTTOM_CENTER:nt-=Se.height,Pe-=Se.width/2;break;case He.BOTTOM_RIGHT:case He.RIGHT_BOTTOM:nt-=Se.height,Pe-=Se.width;break;case He.LEFT_CENTER:nt-=Se.height/2;break;case He.RIGHT_CENTER:nt-=Se.height/2,Pe-=Se.width}const Pt=getComputedStyle(this.element),Nt=parseInt(Pt.marginLeft,10),yn=parseInt(Pt.marginRight,10),fr=parseInt(Pt.marginTop,10),qr=parseInt(Pt.marginBottom,10);switch(a){case He.LEFT_TOP:case He.TOP_LEFT:case He.TOP_RIGHT:case He.RIGHT_TOP:(g===He.BOTTOM_RIGHT||g===He.RIGHT_BOTTOM)&&(nt-=qr,Pe-=yn),(g===He.BOTTOM_LEFT||g===He.LEFT_BOTTOM)&&(nt-=fr,Pe+=Nt),(g===He.TOP_LEFT||g===He.LEFT_TOP)&&(nt+=fr,Pe+=Nt),(g===He.TOP_RIGHT||g===He.RIGHT_TOP)&&(nt+=fr,Pe-=yn);break;case He.LEFT_BOTTOM:case He.BOTTOM_LEFT:case He.BOTTOM_RIGHT:case He.RIGHT_BOTTOM:(g===He.BOTTOM_LEFT||g===He.LEFT_BOTTOM)&&(nt-=qr,Pe+=Nt),(g===He.BOTTOM_RIGHT||g===He.RIGHT_BOTTOM)&&(nt-=qr,Pe-=yn),(g===He.TOP_LEFT||g===He.LEFT_TOP)&&(nt+=fr,Pe+=Nt),(g===He.TOP_RIGHT||g===He.RIGHT_TOP)&&(nt+=fr,Pe-=yn);break;case He.TOP_CENTER:nt-=qr,Pe+=Nt,Pe-=yn;break;case He.BOTTOM_CENTER:nt+=fr,Pe+=Nt,Pe-=yn;break;case He.LEFT_CENTER:nt+=fr,nt-=qr,Pe-=yn;break;case He.RIGHT_CENTER:nt+=fr,nt-=qr,Pe+=Nt}return this.element.style.transform=`translateX(${Math.round(Pe)}px) translateY(${Math.round(nt)}px)`,this._scroll.asObservable()}release(){this.element.style.transform="",this.removeScrollEventListeners()}isPositioned(f){const a=getComputedStyle(f).position;return"relative"===a||a===Lf||"fixed"===a}emitScrollEvent(){this._scroll.next()}addScrollEventListeners(f){this._scroll=new Ue.xQ;const a=f;let g=f;for(;g&&g!==document&&(this.scrolls(g)&&(g.addEventListener("scroll",this.boundOnScrollListener),this.scrollableElements.push(g)),g===a||!this.isPositioned(g));)g=g.parentNode}removeScrollEventListeners(){for(const f of this.scrollableElements)f.removeEventListener("scroll",this.boundOnScrollListener);this.scrollableElements.length=0,this._scroll&&(this._scroll.complete(),delete this._scroll)}scrolls(f){const a=getComputedStyle(f);return"scroll"===a.overflowX||"auto"===a.overflowX||"scroll"===a.overflowY||"auto"===a.overflowY}}let Bf=(()=>{class c{constructor(a,g){this.parentHost=g,this.updateAnchor=!1,this.popoverOptions={},this.closeOnOutsideClick=!1,this.documentESCListener=null,this.closeOnOutsideClickCallback=b=>{this.anchorElem.contains(b.target)||(this.toggleService.open=!1)},this.el=a.get(l.SBq),this.toggleService=a.get(Sn),this.renderer=a.get(l.Qsj),this.ngZone=a.get(l.R0b),this.ref=a.get(l.sBO),this.anchorElem=g.nativeElement,this.popoverInstance=new fv(this.el.nativeElement),this.subscription=this.toggleService.openChange.subscribe(b=>{b?(this.anchor(),this.attachESCListener()):(this.release(),this.detachESCListener())}),this.toggleService.open&&(this.anchor(),this.attachESCListener())}anchor(){this.updateAnchor=!0}release(){this.detachOutsideClickListener(),this.popoverInstance.release()}ngAfterViewChecked(){this.updateAnchor&&(this.updateAnchor=!1,this.popoverInstance.anchor(this.anchorElem,this.anchorPoint,this.popoverPoint,this.popoverOptions).subscribe(()=>{this.toggleService.open=!1}),this.attachOutsideClickListener())}ngOnDestroy(){this.release(),this.detachESCListener(),this.subscription.unsubscribe()}get isOffScreen(){return!this.toggleService.open}attachESCListener(){this.popoverOptions.ignoreGlobalESCListener||this.ngZone.runOutsideAngular(()=>{this.documentESCListener=this.renderer.listen("document","keydown",a=>{a&&a.key&&mo(a.key)===ht.Escape&&this.ngZone.run(()=>{this.toggleService.open=!1,this.ref.markForCheck()})})})}detachESCListener(){this.documentESCListener&&(this.documentESCListener(),this.documentESCListener=null)}attachOutsideClickListener(){this.closeOnOutsideClick&&this.toggleService.open&&document&&document.addEventListener&&document.addEventListener("click",this.closeOnOutsideClickCallback,!0)}detachOutsideClickListener(){this.closeOnOutsideClick&&document&&document.removeEventListener&&document.removeEventListener("click",this.closeOnOutsideClickCallback,!0)}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(l.zs3),l.Y36(l.SBq,4))},c.\u0275dir=l.lG2({type:c,hostVars:2,hostBindings:function(a,g){2&a&&l.ekj("is-off-screen",g.isOffScreen)}}),c})(),Xa=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez],Ss,In]}),c})(),zf=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275dir=l.lG2({type:c,selectors:[["",8,"alert-text"]]}),c})(),mv=(()=>{class c{constructor(){Et.addIcons(Mr,ji,rn,is,xs)}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez,In,Xa]]}),c})(),vv=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[mv]}),c})(),Dn=(()=>{class c{}return c.NAV_LEVEL_1=1,c.NAV_LEVEL_2=2,c.NAV_CLOSE_ALL="NAV_CLOSE_ALL",c.NAV_OPEN="NAV_OPEN",c.NAV_CLOSE="NAV_CLOSE",c.NAV_TOGGLE="NAV_TOGGLE",c.NAV_CLASS_HAMBURGER_MENU="open-hamburger-menu",c.NAV_CLASS_OVERFLOW_MENU="open-overflow-menu",c.NAV_CLASS_TRIGGER_1="header-hamburger-trigger",c.NAV_CLASS_TRIGGER_2="header-overflow-trigger",c.NAV_CLASS_LEVEL_1="clr-nav-level-1",c.NAV_CLASS_LEVEL_2="clr-nav-level-2",c})();class _v{constructor(f,a){this._controlCode=f,this._navLevel=a}get controlCode(){return this._controlCode}get navLevel(){return this._navLevel}}let Rd=(()=>{class c{constructor(){this.responsiveNavList=[],this.registerNavSubject=new Zr,this.controlNavSubject=new Ue.xQ,this.closeAllNavs()}get registeredNavs(){return this.registerNavSubject.asObservable()}get navControl(){return this.controlNavSubject.asObservable()}registerNav(a){!a||this.isNavRegistered(a)||(this.responsiveNavList.push(a),this.registerNavSubject.next(this.responsiveNavList))}isNavRegistered(a){return this.responsiveNavList.indexOf(a)>-1&&(console.error("Multiple clr-nav-level "+a+" attributes found. Please make sure that only one exists"),!0)}unregisterNav(a){const g=this.responsiveNavList.indexOf(a);g>-1&&(this.responsiveNavList.splice(g,1),this.registerNavSubject.next(this.responsiveNavList))}sendControlMessage(a,g){const b=new _v(a,g);this.controlNavSubject.next(b)}closeAllNavs(){const a=new _v(Dn.NAV_CLOSE_ALL,-999);this.controlNavSubject.next(a)}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"}),c})(),Ld=(()=>{class c{constructor(a,g){this.elRef=a,this.responsiveNavService=g}ngOnInit(){this._classList=this.elRef.nativeElement.classList,this._subscription=this.responsiveNavService.navControl.subscribe({next:a=>{this.processMessage(a)}})}processMessage(a){let g=Dn.NAV_CLASS_HAMBURGER_MENU;a.controlCode===Dn.NAV_CLOSE_ALL?(this._classList.remove(Dn.NAV_CLASS_HAMBURGER_MENU),this._classList.remove(Dn.NAV_CLASS_OVERFLOW_MENU)):a.navLevel===Dn.NAV_LEVEL_1?this.controlNav(a.controlCode,g):a.navLevel===Dn.NAV_LEVEL_2&&(g=Dn.NAV_CLASS_OVERFLOW_MENU,this.controlNav(a.controlCode,g))}controlNav(a,g){a===Dn.NAV_OPEN?this._classList.add(g):a===Dn.NAV_CLOSE?this._classList.remove(g):a===Dn.NAV_TOGGLE&&this._classList.toggle(g)}ngOnDestroy(){this._subscription.unsubscribe()}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(l.SBq),l.Y36(Rd))},c.\u0275dir=l.lG2({type:c,selectors:[["clr-main-container"]],hostVars:2,hostBindings:function(a,g){2&a&&l.ekj("main-container",!0)}}),c})(),yv=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez,In]]}),c})(),du=(()=>{class c extends jl{}return c.\u0275fac=function(){let f;return function(g){return(f||(f=l.n5z(c)))(g||c)}}(),c.\u0275dir=l.lG2({type:c,selectors:[["clr-main-container"]],features:[l.qOj]}),c})(),Fb=(()=>{class c extends zl{constructor(a,g,b){if(!g)throw new Error("clr-header should only be used inside of a clr-main-container");super(a,g),this.responsiveNavService=b}get flavor(){return this.responsiveNavService.responsiveNavList.reduce((a,g)=>a+g,0)}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(l.sBO),l.Y36(du,8),l.Y36(Rd))},c.\u0275dir=l.lG2({type:c,selectors:[["clr-header"]],features:[l.qOj]}),c})(),Uf=(()=>{class c{constructor(a,g){this.responsiveNavService=a,this.commonStrings=g,this.isNavLevel1OnPage=!1,this.isNavLevel2OnPage=!1,this.openNavLevel=null,this.responsiveNavCodes=Dn,this._subscription=this.responsiveNavService.registeredNavs.subscribe({next:b=>{this.initializeNavTriggers(b)}}),this._subscription.add(this.responsiveNavService.navControl.pipe((0,or.h)(({controlCode:b})=>b===Dn.NAV_CLOSE||b===Dn.NAV_CLOSE_ALL)).subscribe(()=>{this.openNavLevel=null}))}get responsiveNavCommonString(){const a=this.commonStrings.keys;return this.openNavLevel!==this.responsiveNavCodes.NAV_LEVEL_1?a.responsiveNavToggleOpen:a.responsiveNavToggleClose}get responsiveOverflowCommonString(){const a=this.commonStrings.keys;return this.openNavLevel!==this.responsiveNavCodes.NAV_LEVEL_2?a.responsiveNavOverflowOpen:a.responsiveNavOverflowClose}resetNavTriggers(){this.isNavLevel1OnPage=!1,this.isNavLevel2OnPage=!1}initializeNavTriggers(a){this.resetNavTriggers(),a.length>2?console.error("More than 2 Nav Levels detected."):a.forEach(g=>{g===Dn.NAV_LEVEL_1?this.isNavLevel1OnPage=!0:g===Dn.NAV_LEVEL_2&&(this.isNavLevel2OnPage=!0)})}closeOpenNav(){this.responsiveNavService.closeAllNavs()}toggleNav(a){this.openNavLevel!==a?this.openNav(a):this.responsiveNavService.sendControlMessage(Dn.NAV_CLOSE,a)}openNav(a){this.openNavLevel=a,this.responsiveNavService.sendControlMessage(Dn.NAV_OPEN,a)}ngOnDestroy(){this._subscription.unsubscribe()}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(Rd),l.Y36(an))},c.\u0275cmp=l.Xpm({type:c,selectors:[["clr-header"]],hostVars:2,hostBindings:function(a,g){2&a&&l.ekj("header",!0)},ngContentSelectors:Dt,decls:4,vars:2,consts:[["type","button","class","header-hamburger-trigger",3,"click",4,"ngIf"],["type","button","class","header-overflow-trigger",3,"click",4,"ngIf"],[1,"header-backdrop",3,"click"],["type","button",1,"header-hamburger-trigger",3,"click"],["type","button",1,"header-overflow-trigger",3,"click"]],template:function(a,g){1&a&&(l.F$t(),l.YNc(0,cC,2,2,"button",0),l.Hsn(1),l.YNc(2,kh,2,2,"button",1),l.TgZ(3,"div",2),l.NdJ("click",function(){return g.closeOpenNav()}),l.qZA()),2&a&&(l.Q6J("ngIf",g.isNavLevel1OnPage),l.xp6(2),l.Q6J("ngIf",g.isNavLevel2OnPage))},dependencies:[M.O5],encapsulation:2}),c})();function bl(c){const f=c.createElement("span");return f.setAttribute("tabindex","0"),f.classList.add("offscreen-focus-rebounder"),f}let Rb=(()=>{class c extends class FD{constructor(f,a,g,b){this.renderer=f,this.active=!1,(0,M.NF)(g)&&(this._document=a.get(M.K0)),b.focusTrapId||(b.focusTrapId=function di(c="_"){return`${c}${Math.random().toString(36).substr(2,9)}`}()),this.focusTrapElement=b}enableFocusTrap(){const f=this.focusTrapElement,a=f.querySelector("[cds-first-focus]"),g=this._document.activeElement;if(Ro.getCurrent()===f)throw new Error("Focus trap is already enabled for this instance.");this.firstFocusElement=a||this.focusTrapElement,function Pb(c,f){if(f&&!f.topReboundElement&&!f.bottomReboundElement){f.topReboundElement=bl(c),f.bottomReboundElement=bl(c);const a=f.parentElement,g=f.nextSibling;a&&(a.insertBefore(f.topReboundElement,f),g?a.insertBefore(f.bottomReboundElement,g):a.appendChild(f.bottomReboundElement))}}(this._document,f),function O(c){switch(c.tagName.toLowerCase()){case"input":return"hidden"!==c.getAttribute("type")&&!c.hasAttribute("disabled")&&!c.hasAttribute("readonly");case"button":case"select":case"textarea":return!c.hasAttribute("disabled");case"iframe":case"embed":case"object":return!0;case"a":case"area":return c.hasAttribute("href");case"audio":case"video":return c.hasAttribute("controls");default:return c.hasAttribute("tabindex")||"true"===c.getAttribute("contenteditable")||"button"===c.getAttribute("role")&&!c.hasAttribute("disabled")}}(f)||f.setAttribute("tabindex","-1"),g&&function K(c){return!!c&&c instanceof HTMLElement}(g)&&(this.previousFocus=g),Ro.setCurrent(f);const b=setTimeout(()=>{this.firstFocusElement.focus(),clearTimeout(b)},10);this.onFocusInEvent=this.onFocusIn.bind(this),this.unlisten=this.renderer.listen(this._document,"focusin",this.onFocusInEvent),this.active=!0}removeFocusTrap(){this.unlisten&&this.unlisten(),function bv(c){if(c){const f=c.parentElement;if(f){const a=c.topReboundElement,g=c.bottomReboundElement;a&&f.removeChild(a),g&&f.removeChild(g)}delete c.topReboundElement,delete c.bottomReboundElement}}(this.focusTrapElement),this.renderer.removeAttribute(this.focusTrapElement,"tabindex"),Ro.activatePreviousCurrent(),this.active=!1,this.previousFocus&&this.previousFocus.focus()}onFocusIn(f){!function kb(c,f,a){const g=Ro.getCurrent()===f,b=function Cv(c,f){return c===f.topReboundElement||c===f.bottomReboundElement||!(f.contains(c)||null!==f&&f.contains(c))}(c,f);g&&b?(a=a||f).focus():c.focus()}(f.composedPath()[0],this.focusTrapElement,this.firstFocusElement)}}{constructor(a,g,b,x,$){super(x,$,a,b.nativeElement),this.responsiveNavService=g,this.elementRef=b,this._isOpen=!1,(0,M.NF)(a)&&(this._document=$.get(M.K0)),this._subscription=g.navControl.pipe((0,or.h)(le=>le.navLevel===this.level),(0,or.h)(({controlCode:le})=>le===Dn.NAV_OPEN&&!this.isOpen||le===Dn.NAV_CLOSE&&this.isOpen)).subscribe(({controlCode:le})=>{le!==Dn.NAV_OPEN?this.close():this.open()}),this._subscription.add(g.navControl.pipe((0,or.h)(({controlCode:le})=>le===Dn.NAV_CLOSE_ALL)).subscribe(()=>this.close()))}ngOnInit(){this.closeButtonAriaLabel||(this.closeButtonAriaLabel=this._level===Dn.NAV_LEVEL_1?Uh.responsiveNavToggleClose:Uh.responsiveNavOverflowClose),this.level===Dn.NAV_LEVEL_1||this.level===Dn.NAV_LEVEL_2?(this.responsiveNavService.registerNav(this.level),this.addNavClass(this.level)):console.error("Nav Level can only be 1 or 2")}ngAfterViewInit(){const a=((c,f)=>{const a=this._document.createElement("cds-internal-close-button");return a.setAttribute("icon-size","32"),a.setAttribute("aria-label",f),a.setAttribute("aria-hidden","true"),a.setAttribute("type","button"),a.setAttribute("hidden","true"),a.className="clr-nav-close",a})(0,this.closeButtonAriaLabel);this.renderer.listen(a,"click",this.close.bind(this)),this.renderer.insertBefore(this.elementRef.nativeElement,a,this.elementRef.nativeElement.firstChild),this._document.body.clientWidth<992&&this.close()}addNavClass(a){const g=this.elementRef.nativeElement.classList;a===Dn.NAV_LEVEL_1?g.add(Dn.NAV_CLASS_LEVEL_1):a===Dn.NAV_LEVEL_2&&g.add(Dn.NAV_CLASS_LEVEL_2)}get level(){return this._level}get responsiveNavCodes(){return Dn}get isOpen(){return this._isOpen}onResize(a){a.target.innerWidth<992&&this.isOpen?this.close():this.showNavigation()}open(){this._isOpen=!0,this.showNavigation(),this.enableFocusTrap(),this.showCloseButton(),this.responsiveNavService.sendControlMessage(Dn.NAV_OPEN,this.level)}close(){this._isOpen=!1,this.hideNavigation(),this.removeFocusTrap(),this.hideCloseButton(),this.responsiveNavService.sendControlMessage(Dn.NAV_CLOSE,this.level)}onMouseClick(a){let g=a;const b=this.elementRef.nativeElement;for(;g;){if(g===b)return;if(g.classList.contains("nav-link")&&this._document.body.clientWidth<992)return void this.close();g=g.parentNode}}hideNavigation(){this.renderer.setAttribute(this.elementRef.nativeElement,"aria-hidden","true"),this.renderer.setAttribute(this.elementRef.nativeElement,"hidden","true")}showNavigation(){this.renderer.setAttribute(this.elementRef.nativeElement,"aria-hidden","false"),this.renderer.removeAttribute(this.elementRef.nativeElement,"hidden")}hideCloseButton(){this.renderer.setAttribute(this.elementRef.nativeElement,"aria-hidden","true"),this.renderer.setAttribute(this.elementRef.nativeElement.querySelector(".clr-nav-close"),"hidden","true")}showCloseButton(){this.renderer.setAttribute(this.elementRef.nativeElement.querySelector(".clr-nav-close"),"aria-hidden","false"),this.renderer.removeAttribute(this.elementRef.nativeElement.querySelector(".clr-nav-close"),"hidden")}ngOnDestroy(){this.responsiveNavService.unregisterNav(this.level),this._subscription.unsubscribe()}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(l.Lbi),l.Y36(Rd),l.Y36(l.SBq),l.Y36(l.Qsj),l.Y36(l.zs3))},c.\u0275dir=l.lG2({type:c,selectors:[["","clr-nav-level",""]],hostBindings:function(a,g){1&a&&l.NdJ("resize",function(x){return g.onResize(x)},!1,l.Jf7)("click",function(x){return g.onMouseClick(x.target)})},inputs:{_level:["clr-nav-level","_level"],closeButtonAriaLabel:["closeAriaLabel","closeButtonAriaLabel"]},features:[l.qOj]}),c})(),Lb=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez,In,Xa]]}),c})(),wv=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez]]}),c})();new l.OlP("TABS_ID");let PD=(()=>{class c{constructor(){Et.addIcons(Aa)}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez,Ss,In,wv,qc],Ss]}),c})(),kv=(()=>{class c{constructor(){this.navGroupCount=0}registerNavGroup(){this.navGroupCount++}unregisterNavGroup(){this.navGroupCount--}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})(),Pv=(()=>{class c{constructor(){this._icons=0}get hasIcons(){return this._icons>0}registerIcon(){this._icons++}unregisterIcon(){this._icons--}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})(),Nv=(()=>{class c{constructor(){this._animateOnCollapsed=new Ue.xQ,this._collapsedChanged=new Ue.xQ,this._collapsed=!1,this._collapsible=!1}get animateOnCollapsed(){return this._animateOnCollapsed.asObservable()}get collapsedChanged(){return this._collapsedChanged.asObservable()}get collapsed(){return this._collapsed}set collapsed(a){a=!!a,this.collapsible&&this._collapsed!==a&&this.updateCollapseBehavior(a)}get collapsible(){return this._collapsible}set collapsible(a){this._collapsible!==(a=!!a)&&(!a&&this.collapsed&&this.updateCollapseBehavior(!1),this._collapsible=a)}updateCollapseBehavior(a){this._animateOnCollapsed.next(a),this._collapsed=a,this._collapsedChanged.next(a)}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})(),zb=(()=>{class c{constructor(a,g,b,x){this._navService=a,this._navIconService=g,this._navGroupRegistrationService=b,this.commonStrings=x,this._collapsedChanged=new l.vpe(!0),this._sub=this._navService.collapsedChanged.subscribe($=>{this._collapsedChanged.emit($)})}get collapsible(){return this._navService.collapsible}set collapsible(a){this._navService.collapsible=a}get collapsed(){return this._navService.collapsed}set collapsed(a){this._navService.collapsed=a}get hasNavGroups(){return this._navGroupRegistrationService.navGroupCount>0}get hasIcons(){return this._navIconService.hasIcons}get ariaExpanded(){return this.collapsible?this.collapsed?"false":"true":null}toggleByButton(){this.collapsed=!this.collapsed}ngOnDestroy(){this._sub.unsubscribe()}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(Nv),l.Y36(Pv),l.Y36(kv),l.Y36(an))},c.\u0275cmp=l.Xpm({type:c,selectors:[["clr-vertical-nav"]],hostAttrs:[1,"clr-vertical-nav"],hostVars:6,hostBindings:function(a,g){2&a&&l.ekj("is-collapsed",g.collapsed)("has-nav-groups",g.hasNavGroups)("has-icons",g.hasIcons)},inputs:{collapsible:["clrVerticalNavCollapsible","collapsible"],collapsed:["clrVerticalNavCollapsed","collapsed"]},outputs:{_collapsedChanged:"clrVerticalNavCollapsedChange"},features:[l._Bn([Nv,Pv,kv])],ngContentSelectors:Dt,decls:4,vars:2,consts:[["type","button","class","nav-trigger",3,"on-collapse","click",4,"ngIf"],[1,"nav-content"],["class","nav-btn","aria-hidden","true","tabindex","-1",3,"click",4,"ngIf"],["type","button",1,"nav-trigger",3,"click"],["shape","angle-double",1,"nav-trigger-icon"],["aria-hidden","true","tabindex","-1",1,"nav-btn",3,"click"]],template:function(a,g){1&a&&(l.F$t(),l.YNc(0,Ha,2,6,"button",0),l.TgZ(1,"div",1),l.Hsn(2),l.YNc(3,Ph,1,1,"button",2),l.qZA()),2&a&&(l.Q6J("ngIf",g.collapsible),l.xp6(3),l.Q6J("ngIf",g.collapsible&&g.collapsed))},dependencies:[M.O5,Jt],encapsulation:2}),c})(),Rv=(()=>{class c{constructor(){this._expandChange=new Ue.xQ}get expandChange(){return this._expandChange.asObservable()}expand(){this._expandChange.next(!0)}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=l.Yz7({token:c,factory:c.\u0275fac}),c})();const Hd="expanded",qs="collapsed";let Ub=(()=>{class c{constructor(a,g,b,x,$){this._itemExpand=a,this._navGroupRegistrationService=g,this._navGroupService=b,this._navService=x,this.commonStrings=$,this.wasExpanded=!1,this.groupLabel=this.commonStrings.keys.verticalNavGroupToggle,this.expandedChange=new l.vpe(!0),this._subscriptions=[],this._expandAnimationState=qs,this._navGroupRegistrationService.registerNavGroup(),this._subscriptions.push(this._itemExpand.expandChange.subscribe(le=>{le&&this.expandAnimationState===qs?(this._navService.collapsed&&(this._navService.collapsed=!1),this.expandAnimationState=Hd):!le&&this.expandAnimationState===Hd&&(this.expandAnimationState=qs)})),this._subscriptions.push(this._navService.animateOnCollapsed.subscribe(le=>{le&&this.expanded?(this.wasExpanded=!0,this.expandAnimationState=qs):!le&&this.wasExpanded&&(this.expandGroup(),this.wasExpanded=!1)})),this._subscriptions.push(this._navGroupService.expandChange.subscribe(le=>{le&&!this.expanded&&this.expandGroup()}))}get expanded(){return this._itemExpand.expanded}set expanded(a){this._itemExpand.expanded!==a&&(this._itemExpand.expanded=a,this.expandedChange.emit(a))}set userExpandedInput(a){this.expanded!==(a=!!a)&&this.toggleExpand()}expandGroup(){this.expanded=!0,this.expandAnimationState=Hd}collapseGroup(){this.expandAnimationState=qs}expandAnimationDone(a){a.toState===qs&&(this.expanded=!1)}get expandAnimationState(){return this._expandAnimationState}set expandAnimationState(a){a!==this._expandAnimationState&&(this._expandAnimationState=a)}toggleExpand(){this.expanded?this.collapseGroup():(this._navService.collapsed&&(this._navService.collapsed=!1),this.expandGroup())}ngAfterContentInit(){this._navService.collapsed&&this.expanded&&(this.wasExpanded=!0,this.expandAnimationState=qs)}ngOnDestroy(){this._subscriptions.forEach(a=>a.unsubscribe()),this._navGroupRegistrationService.unregisterNavGroup()}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(Ci),l.Y36(kv),l.Y36(Rv),l.Y36(Nv),l.Y36(an))},c.\u0275cmp=l.Xpm({type:c,selectors:[["clr-vertical-nav-group"]],hostAttrs:[1,"nav-group"],hostVars:2,hostBindings:function(a,g){2&a&&l.ekj("is-expanded",g.expanded)},inputs:{groupLabel:["clrVerticalNavGroupLabel","groupLabel"],userExpandedInput:["clrVerticalNavGroupExpanded","userExpandedInput"]},outputs:{expandedChange:"clrVerticalNavGroupExpandedChange"},features:[l._Bn([Ci,Rv])],ngContentSelectors:Og,decls:9,vars:5,consts:[[1,"nav-group-content"],["type","button",1,"nav-group-trigger",3,"click"],[1,"nav-group-text"],["shape","angle",1,"nav-group-trigger-icon"],[1,"nav-group-children"]],template:function(a,g){1&a&&(l.F$t(uC),l.TgZ(0,"div",0),l.Hsn(1),l.TgZ(2,"button",1),l.NdJ("click",function(){return g.toggleExpand()}),l.Hsn(3,1),l.TgZ(4,"div",2),l.Hsn(5,2),l.qZA(),l._UZ(6,"cds-icon",3),l.qZA()(),l.TgZ(7,"div",4),l.NdJ("@clrExpand.done",function(x){return g.expandAnimationDone(x)}),l.Hsn(8,3),l.qZA()),2&a&&(l.xp6(2),l.uIk("aria-expanded",g.expanded)("aria-label",g.groupLabel),l.xp6(4),l.uIk("direction",g.expanded?"down":"right")("title",g.expanded?g.commonStrings.keys.collapse:g.commonStrings.keys.expand),l.xp6(1),l.Q6J("@clrExpand",g.expandAnimationState))},dependencies:[Jt],encapsulation:2,data:{animation:[(0,Ye.X$)("clrExpand",[(0,Ye.SB)(Hd,(0,Ye.oB)({height:"*"})),(0,Ye.SB)(qs,(0,Ye.oB)({height:0,visibility:"hidden"})),(0,Ye.eR)(`${Hd} <=> ${qs}`,(0,Ye.jt)("0.2s ease-in-out"))])]}}),c})(),Gf=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275cmp=l.Xpm({type:c,selectors:[["clr-vertical-nav-group-children"]],ngContentSelectors:Dt,decls:1,vars:0,template:function(a,g){1&a&&(l.F$t(),l.Hsn(0))},encapsulation:2}),c})(),fu=(()=>{class c{constructor(a){this._verticalNavIconService=a,this._verticalNavIconService.registerIcon()}ngOnDestroy(){this._verticalNavIconService.unregisterIcon()}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(Pv))},c.\u0275dir=l.lG2({type:c,selectors:[["","clrVerticalNavIcon",""]],hostAttrs:[1,"nav-icon"]}),c})(),Yf=(()=>{class c{constructor(a,g,b){this.destroy$=new Ue.xQ,b&&(0,Cn.R)(a.nativeElement,"click").pipe((0,$i.R)(this.destroy$)).subscribe(()=>{b.expand(),g.markForCheck()})}ngOnDestroy(){this.destroy$.next()}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(l.SBq),l.Y36(l.sBO),l.Y36(Rv,8))},c.\u0275cmp=l.Xpm({type:c,selectors:[["","clrVerticalNavLink",""]],hostAttrs:[1,"nav-link"],attrs:Nh,ngContentSelectors:Rh,decls:3,vars:0,consts:[[1,"nav-text"]],template:function(a,g){1&a&&(l.F$t(Fg),l.Hsn(0),l.TgZ(1,"span",0),l.Hsn(2,1),l.qZA())},encapsulation:2}),c})(),ND=(()=>{class c{constructor(){Et.addIcons($n,to)}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez,In,Ss,Za],Ss,In,Za]}),c})(),Zf=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[yv,Lb,PD,ND]}),c})(),Vv=(()=>{class c{constructor(){Et.addIcons(xs)}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez,In,$c,Za],In,Za]}),c})();const Gb={"top-left":{anchorPoint:He.TOP_CENTER,popoverPoint:He.BOTTOM_RIGHT,offsetY:-10,offsetX:0},"top-middle":{anchorPoint:He.TOP_CENTER,popoverPoint:He.BOTTOM_CENTER,offsetY:-10,offsetX:0},"top-right":{anchorPoint:He.TOP_CENTER,popoverPoint:He.BOTTOM_LEFT,offsetY:-10,offsetX:0},"right-top":{anchorPoint:He.RIGHT_CENTER,popoverPoint:He.LEFT_BOTTOM,offsetY:2,offsetX:14},"right-middle":{anchorPoint:He.RIGHT_CENTER,popoverPoint:He.LEFT_CENTER,offsetY:6,offsetX:14},"right-bottom":{anchorPoint:He.RIGHT_CENTER,popoverPoint:He.LEFT_TOP,offsetY:-1,offsetX:14},"bottom-right":{anchorPoint:He.BOTTOM_CENTER,popoverPoint:He.TOP_LEFT,offsetY:9,offsetX:-1},"bottom-middle":{anchorPoint:He.BOTTOM_CENTER,popoverPoint:He.TOP_CENTER,offsetY:9,offsetX:12},"bottom-left":{anchorPoint:He.BOTTOM_CENTER,popoverPoint:He.TOP_RIGHT,offsetY:9,offsetX:0},"left-bottom":{anchorPoint:He.LEFT_CENTER,popoverPoint:He.RIGHT_TOP,offsetY:0,offsetX:-14},"left-middle":{anchorPoint:He.LEFT_CENTER,popoverPoint:He.RIGHT_CENTER,offsetY:4,offsetX:-14},"left-top":{anchorPoint:He.LEFT_CENTER,popoverPoint:He.RIGHT_BOTTOM,offsetY:0,offsetX:-14},default:{anchorPoint:He.RIGHT_CENTER,popoverPoint:He.LEFT_CENTER,offsetY:6,offsetX:14}},Yb=["top-left","top-middle","top-right","right-top","right-middle","right-bottom","bottom-right","bottom-middle","bottom-left","left-bottom","left-middle","left-top"];let pu=(()=>{class c extends Bf{constructor(a,g,b,x,$,le,Se){if(super(a,g),this.commonStrings=b,this.signpostIdService=x,this.signpostFocusManager=$,this.platformId=le,this.signpostContentId=Vr(),!g)throw new Error("clr-signpost-content should only be used inside of a clr-signpost");this.position="right-middle",this.closeOnOutsideClick=!0,this.signpostIdService.setId(this.signpostContentId),this.document=Se}close(){this.toggleService.open=!1}get position(){return this._position}set position(a){this.renderer.removeClass(this.el.nativeElement,this.position),this._position=a&&Yb.indexOf(a)>-1?a:"right-middle",this.renderer.addClass(this.el.nativeElement,this.position);const g=Gb[this.position];this.anchorPoint=g.anchorPoint,this.popoverPoint=g.popoverPoint,this.popoverOptions.offsetY=g.offsetY,this.popoverOptions.offsetX=g.offsetX}ngOnDestroy(){super.ngOnDestroy(),(0,M.NF)(this.platformId)&&this.el.nativeElement.contains(this.document.activeElement)&&this.signpostFocusManager.focusTrigger()}}return c.\u0275fac=function(a){return new(a||c)(l.Y36(l.zs3),l.Y36(ya,8),l.Y36(an),l.Y36(vf),l.Y36(Sd),l.Y36(l.Lbi),l.Y36(M.K0))},c.\u0275cmp=l.Xpm({type:c,selectors:[["clr-signpost-content"]],hostVars:3,hostBindings:function(a,g){2&a&&(l.Ikx("id",g.signpostContentId),l.ekj("signpost-content",!0))},inputs:{position:["clrPosition","position"]},features:[l.qOj],ngContentSelectors:Dt,decls:7,vars:3,consts:[[1,"signpost-wrap"],[1,"popover-pointer"],[1,"signpost-content-header"],["type","button",1,"signpost-action","close",3,"click"],["shape","window-close"],[1,"signpost-content-body"]],template:function(a,g){1&a&&(l.F$t(),l.TgZ(0,"div",0),l._UZ(1,"div",1),l.TgZ(2,"div",2)(3,"button",3),l.NdJ("click",function(){return g.close()}),l._UZ(4,"cds-icon",4),l.qZA()(),l.TgZ(5,"div",5),l.Hsn(6),l.qZA()()),2&a&&(l.xp6(3),l.uIk("aria-label",g.commonStrings.keys.signpostClose)("aria-controls",g.signpostContentId),l.xp6(1),l.uIk("title",g.commonStrings.keys.close))},dependencies:[Jt],encapsulation:2}),c})(),LD=(()=>{class c{constructor(){Et.addIcons(xs,ji)}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez,In,Za],Ss]}),c})(),Jb=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez],Ss,In]}),c})(),Jf=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[Xa,LD,Jb]}),c})(),Kb=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez]]}),c})(),n0=(()=>{class c{constructor(){Et.addIcons(Xo,zi,Ui,ss)}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez,In,Kl],In,Kl]}),c})(),Jv=(()=>{class c{constructor(){Et.addIcons(Ui)}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[M.ez,Vv,mv]]}),c})(),Kv=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[vv,kf,In,Vv,Ya,Ss,$c,Za,am,fm,hf,Zf,Jf,Jv,zc,Xu,Kl,Kb,Nc,n0]}),c})()},4697:(et,Ee,j)=>{function l(M){this.wrapped=M}j.d(Ee,{Z:()=>l})},8239:(et,Ee,j)=>{function l(ce,pe,de,J,he,X,ae){try{var q=ce[X](ae),ee=q.value}catch(se){return void de(se)}q.done?pe(ee):Promise.resolve(ee).then(J,he)}function M(ce){return function(){var pe=this,de=arguments;return new Promise(function(J,he){var X=ce.apply(pe,de);function ae(ee){l(X,J,he,ae,q,"next",ee)}function q(ee){l(X,J,he,ae,q,"throw",ee)}ae(void 0)})}}j.d(Ee,{Z:()=>M})},8817:(et,Ee,j)=>{j.d(Ee,{Z:()=>ce});var l=j(4697);function M(pe){var de,J;function X(q,ee){try{var se=pe[q](ee),ye=se.value,xe=ye instanceof l.Z;Promise.resolve(xe?ye.wrapped:ye).then(function(ge){xe?X("return"===q?"return":"next",ge):ae(se.done?"return":"normal",ge)},function(ge){X("throw",ge)})}catch(ge){ae("throw",ge)}}function ae(q,ee){switch(q){case"return":de.resolve({value:ee,done:!0});break;case"throw":de.reject(ee);break;default:de.resolve({value:ee,done:!1})}(de=de.next)?X(de.key,de.arg):J=null}this._invoke=function he(q,ee){return new Promise(function(se,ye){var xe={key:q,arg:ee,resolve:se,reject:ye,next:null};J?J=J.next=xe:(de=J=xe,X(q,ee))})},"function"!=typeof pe.return&&(this.return=void 0)}function ce(pe){return function(){return new M(pe.apply(this,arguments))}}M.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},M.prototype.next=function(pe){return this._invoke("next",pe)},M.prototype.throw=function(pe){return this._invoke("throw",pe)},M.prototype.return=function(pe){return this._invoke("return",pe)}}},et=>{et(et.s=7306)}]); \ No newline at end of file diff --git a/runtime.2b1dfdaee78b08ec.js b/runtime.2b1dfdaee78b08ec.js deleted file mode 100644 index b187f963c..000000000 --- a/runtime.2b1dfdaee78b08ec.js +++ /dev/null @@ -1 +0,0 @@ -(()=>{"use strict";var e,g={},h={};function r(e){var n=h[e];if(void 0!==n)return n.exports;var t=h[e]={id:e,loaded:!1,exports:{}};return g[e].call(t.exports,t,t.exports,r),t.loaded=!0,t.exports}r.m=g,e=[],r.O=(n,t,f,i)=>{if(!t){var a=1/0;for(o=0;o=i)&&Object.keys(r.O).every(u=>r.O[u](t[c]))?t.splice(c--,1):(b=!1,i0&&e[o-1][2]>i;o--)e[o]=e[o-1];e[o]=[t,f,i]},r.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return r.d(n,{a:n}),n},(()=>{var n,e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__;r.t=function(t,f){if(1&f&&(t=this(t)),8&f||"object"==typeof t&&t&&(4&f&&t.__esModule||16&f&&"function"==typeof t.then))return t;var i=Object.create(null);r.r(i);var o={};n=n||[null,e({}),e([]),e(e)];for(var a=2&f&&t;"object"==typeof a&&!~n.indexOf(a);a=e(a))Object.getOwnPropertyNames(a).forEach(b=>o[b]=()=>t[b]);return o.default=()=>t,r.d(i,o),i}})(),r.d=(e,n)=>{for(var t in n)r.o(n,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((n,t)=>(r.f[t](e,n),n),[])),r.u=e=>(592===e?"common":e)+"."+{68:"f0a0662026cd1f73",108:"d57e6995b86cb618",189:"6913738a7cf2b6df",230:"7445f0c99c900211",359:"edb0d8d7a6097daa",374:"e8169e61daf2984e",384:"4c673788092f6a18",408:"a9d8ddde76a45279",505:"1d6f66c272ae5471",514:"bb12769c9fa3529f",523:"32d5577cce945db9",537:"b52a2e28035fcde3",546:"4160194701ac154d",557:"a3ba9bbaf01e76a2",568:"1a58060eb9785b9f",592:"be678c79c5e0ab11",633:"a4374cec31366067",703:"8283936f3823ae0c",788:"e118ce280bc38581",839:"deab7edf51ba9868",861:"ba859543cb613d42",915:"6767803a0474bda3",928:"4618de1cf3d5ac82"}[e]+".js",r.miniCssF=e=>{},r.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),r.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{var e={},n="demo-maps:";r.l=(t,f,i,o)=>{if(e[t])e[t].push(f);else{var a,b;if(void 0!==i)for(var c=document.getElementsByTagName("script"),s=0;s{a.onerror=a.onload=null,clearTimeout(l);var _=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),_&&_.forEach(y=>y(u)),v)return v(u)},l=setTimeout(p.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=p.bind(null,a.onerror),a.onload=p.bind(null,a.onload),b&&document.head.appendChild(a)}}})(),r.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:n=>n},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="",(()=>{var e={666:0};r.f.j=(f,i)=>{var o=r.o(e,f)?e[f]:void 0;if(0!==o)if(o)i.push(o[2]);else if(666!=f){var a=new Promise((d,p)=>o=e[f]=[d,p]);i.push(o[2]=a);var b=r.p+r.u(f),c=new Error;r.l(b,d=>{if(r.o(e,f)&&(0!==(o=e[f])&&(e[f]=void 0),o)){var p=d&&("load"===d.type?"missing":d.type),l=d&&d.target&&d.target.src;c.message="Loading chunk "+f+" failed.\n("+p+": "+l+")",c.name="ChunkLoadError",c.type=p,c.request=l,o[1](c)}},"chunk-"+f,f)}else e[f]=0},r.O.j=f=>0===e[f];var n=(f,i)=>{var c,s,[o,a,b]=i,d=0;if(o.some(l=>0!==e[l])){for(c in a)r.o(a,c)&&(r.m[c]=a[c]);if(b)var p=b(r)}for(f&&f(i);d{"use strict";var e,g={},h={};function r(e){var n=h[e];if(void 0!==n)return n.exports;var t=h[e]={id:e,loaded:!1,exports:{}};return g[e].call(t.exports,t,t.exports,r),t.loaded=!0,t.exports}r.m=g,e=[],r.O=(n,t,f,o)=>{if(!t){var a=1/0;for(d=0;d=o)&&Object.keys(r.O).every(u=>r.O[u](t[i]))?t.splice(i--,1):(b=!1,o0&&e[d-1][2]>o;d--)e[d]=e[d-1];e[d]=[t,f,o]},r.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return r.d(n,{a:n}),n},(()=>{var n,e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__;r.t=function(t,f){if(1&f&&(t=this(t)),8&f||"object"==typeof t&&t&&(4&f&&t.__esModule||16&f&&"function"==typeof t.then))return t;var o=Object.create(null);r.r(o);var d={};n=n||[null,e({}),e([]),e(e)];for(var a=2&f&&t;"object"==typeof a&&!~n.indexOf(a);a=e(a))Object.getOwnPropertyNames(a).forEach(b=>d[b]=()=>t[b]);return d.default=()=>t,r.d(o,d),o}})(),r.d=(e,n)=>{for(var t in n)r.o(n,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((n,t)=>(r.f[t](e,n),n),[])),r.u=e=>(592===e?"common":e)+"."+{68:"f0a0662026cd1f73",108:"d57e6995b86cb618",151:"a22877e85c9a9400",189:"6913738a7cf2b6df",230:"7445f0c99c900211",270:"68b9da206dc51488",359:"edb0d8d7a6097daa",374:"e8169e61daf2984e",384:"4c673788092f6a18",408:"a9d8ddde76a45279",505:"1d6f66c272ae5471",514:"bb12769c9fa3529f",523:"32d5577cce945db9",537:"b52a2e28035fcde3",546:"4160194701ac154d",557:"a3ba9bbaf01e76a2",568:"1a58060eb9785b9f",592:"be678c79c5e0ab11",633:"a4374cec31366067",703:"8283936f3823ae0c",712:"ec49f870e3fd5199",861:"ba859543cb613d42",892:"a7be54076d6b55ba",899:"697f411c6548efc1",915:"6767803a0474bda3",928:"4618de1cf3d5ac82"}[e]+".js",r.miniCssF=e=>{},r.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),r.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{var e={},n="demo-maps:";r.l=(t,f,o,d)=>{if(e[t])e[t].push(f);else{var a,b;if(void 0!==o)for(var i=document.getElementsByTagName("script"),s=0;s{a.onerror=a.onload=null,clearTimeout(l);var _=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),_&&_.forEach(y=>y(u)),v)return v(u)},l=setTimeout(p.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=p.bind(null,a.onerror),a.onload=p.bind(null,a.onload),b&&document.head.appendChild(a)}}})(),r.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:n=>n},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="",(()=>{var e={666:0};r.f.j=(f,o)=>{var d=r.o(e,f)?e[f]:void 0;if(0!==d)if(d)o.push(d[2]);else if(666!=f){var a=new Promise((c,p)=>d=e[f]=[c,p]);o.push(d[2]=a);var b=r.p+r.u(f),i=new Error;r.l(b,c=>{if(r.o(e,f)&&(0!==(d=e[f])&&(e[f]=void 0),d)){var p=c&&("load"===c.type?"missing":c.type),l=c&&c.target&&c.target.src;i.message="Loading chunk "+f+" failed.\n("+p+": "+l+")",i.name="ChunkLoadError",i.type=p,i.request=l,d[1](i)}},"chunk-"+f,f)}else e[f]=0},r.O.j=f=>0===e[f];var n=(f,o)=>{var i,s,[d,a,b]=o,c=0;if(d.some(l=>0!==e[l])){for(i in a)r.o(a,i)&&(r.m[i]=a[i]);if(b)var p=b(r)}for(f&&f(o);c