google.maps.__gjsload__('geometry', function(_){var Ama=function(a,b){return Math.abs(_.vl(b-a,-180,180))},Bma=function(a,b,c,d,e){if(!d){c=Ama(a.lng(),c)/Ama(a.lng(),b.lng());if(!e)return e=Math.sin(_.Bk(a.lat())),e=Math.log((1+e)/(1-e))/2,b=Math.sin(_.Bk(b.lat())),_.Ck(2*Math.atan(Math.exp(e+c*(Math.log((1+b)/(1-b))/2-e)))-Math.PI/2);a=e.fromLatLngToPoint(a);b=e.fromLatLngToPoint(b);return e.fromPointToLatLng(new _.Sn(a.x+c*(b.x-a.x),a.y+c*(b.y-a.y))).lat()}e=_.Bk(a.lat());a=_.Bk(a.lng());d=_.Bk(b.lat());b=_.Bk(b.lng());c=_.Bk(c);return _.vl(_.Ck(Math.atan2(Math.sin(e)* Math.cos(d)*Math.sin(c-b)-Math.sin(d)*Math.cos(e)*Math.sin(c-a),Math.cos(e)*Math.cos(d)*Math.sin(a-b))),-90,90)},Cma=function(a,b){a=new _.sm(a,!1);b=new _.sm(b,!1);return a.equals(b)},Dma=function(a,b,c){a=_.ym(a);c=c||1E-9;const d=_.vl(a.lng(),-180,180),e=b instanceof _.Wv,f=!!b.get("geodesic"),g=b.get("latLngs");b=b.get("map");b=!f&&b?b.getProjection():null;for(let r=0,u=g.getLength();r=n&&l<=p}if(l)return!0;if(L-K>180?d+c>=L||d-c<=K:d+c>=K&&d-c<=L)if(h=Bma(h,I,d,f,b),Math.abs(h-a.lat())180?c>=D||c=h)&&Bma(w,x,c,d,f)Math.PI*b)throw _.Yl("Invalid path passed to computeArea(): Circle must not cover more than 100% of the sphere.");return 2*Math.PI*b**2*(1-Math.cos(a.getRadius()/b))}if(a instanceof _.zn){if(b<0)throw _.Yl("Invalid radiusOfSphere passed to computeArea(): radiusOfSphere must be non-negative.");if(a.ni.lo>a.ni.hi)throw _.Yl("Invalid path passed to computeArea(): the southern LatLng of a LatLngBounds cannot be more north than the northern LatLng.");let c=2*Math.PI*b**2*(1-Math.cos((a.ni.lo- 90)*Math.PI/180));c-=2*Math.PI*b**2*(1-Math.cos((a.ni.hi-90)*Math.PI/180));return c*Math.abs(a.Lh.hi-a.Lh.lo)/360}return Math.abs(Ima(a,b))};PE.computeLength=function(a,b){b=b||6378137;let c=0;a instanceof _.Mo&&(a=a.getArray());for(let d=0,e=a.length-1;dMath.PI/2)g=e*c-Math.sqrt(f),g=Math.atan2(h,g/(d*d+e*e));if(g<-Math.PI/2||g>Math.PI/2)return null;a=_.vm(a)-Math.atan2(b,d*Math.cos(g)-e*Math.sin(g));return new _.sm(_.Ck(g),_.Ck(a))}; PE.computeOffset=function(a,b,c,d){a=_.ym(a);b/=d||6378137;c=_.Bk(c);var e=_.um(a);a=_.vm(a);d=Math.cos(b);b=Math.sin(b);const f=Math.sin(e);e=Math.cos(e);const g=d*f+b*e*Math.cos(c);return new _.sm(_.Ck(Math.asin(g)),_.Ck(a+Math.atan2(b*e*Math.sin(c),d-f*g)))};PE.computeHeading=function(a,b){a=_.ym(a);b=_.ym(b);const c=_.um(a),d=_.vm(a);a=_.um(b);b=_.vm(b)-d;return _.vl(_.Ck(Math.atan2(Math.sin(b)*Math.cos(a),Math.cos(c)*Math.sin(a)-Math.sin(c)*Math.cos(a)*Math.cos(b))),-180,180)};var Kma={encoding:_.sw,spherical:PE,poly:OE};_.oa.google.maps.geometry=Kma;_.Yk("geometry",Kma);});