google.maps.__gjsload__('geometry', function(_){var sta=function(a,b){return Math.abs(_.Bk(b-a,-180,180))},tta=function(a,b,c,d,e){if(!d){c=sta(a.lng(),c)/sta(a.lng(),b.lng());if(!e)return e=Math.sin(_.Oj(a.lat())),e=Math.log((1+e)/(1-e))/2,b=Math.sin(_.Oj(b.lat())),_.Pj(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 _.Dm(a.x+c*(b.x-a.x),a.y+c*(b.y-a.y))).lat()}e=_.Oj(a.lat());a=_.Oj(a.lng());d=_.Oj(b.lat());b=_.Oj(b.lng());c=_.Oj(c);return _.Bk(_.Pj(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)},uta=function(a,b){a=new _.nl(a,!1);b=new _.nl(b,!1);return a.equals(b)},vta=function(a,b){var c=_.ol(a);a=_.pl(a);var d=_.ol(b);b=_.pl(b);return 2*Math.asin(Math.sqrt(Math.pow(Math.sin((c-d)/2),2)+Math.cos(c)*Math.cos(d)*Math.pow(Math.sin((a-b)/2),2)))},AA=function(a,b,c){a=_.rl(a);b=_.rl(b);c=c||6378137;return vta(a,b)*c},yta=function(a,b){b=b||6378137;a instanceof _.an&&(a=a.getArray()); a=(0,_.Iq)(a);if(a.length===0)return 0;var c=Array(4),d=Array(3),e=[1,0,0,0],f=Array(3);wta(a[a.length-1],f);for(let w=0;w=n&&k<=p}if(k)return!0;if(T-R>180?d+c>=T||d-c<=R:d+c>=R&&d-c<=T)if(h=tta(h,M,d,f,b),Math.abs(h-a.lat())Math.PI*b)throw _.Uk("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 _.mm){if(b<0)throw _.Uk("Invalid radiusOfSphere passed to computeArea(): radiusOfSphere must be non-negative.");if(a.lat.lo>a.lat.hi)throw _.Uk("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.lat.lo- 90)*Math.PI/180));c-=2*Math.PI*b**2*(1-Math.cos((a.lat.hi-90)*Math.PI/180));return c*Math.abs(a.lng.hi-a.lng.lo)/360}return Math.abs(yta(a,b))};CA.computeLength=function(a,b){b=b||6378137;var c=0;a instanceof _.an&&(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=_.pl(a)-Math.atan2(b,d*Math.cos(g)-e*Math.sin(g));return new _.nl(_.Pj(g),_.Pj(a))}; CA.computeOffset=function(a,b,c,d){a=_.rl(a);b/=d||6378137;c=_.Oj(c);var e=_.ol(a);a=_.pl(a);d=Math.cos(b);b=Math.sin(b);var f=Math.sin(e);e=Math.cos(e);var g=d*f+b*e*Math.cos(c);return new _.nl(_.Pj(Math.asin(g)),_.Pj(a+Math.atan2(b*e*Math.sin(c),d-f*g)))};CA.computeHeading=function(a,b){a=_.rl(a);b=_.rl(b);var c=_.ol(a),d=_.pl(a);a=_.ol(b);b=_.pl(b)-d;return _.Bk(_.Pj(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 DA=class{};DA.isLocationOnEdge=Ata; DA.containsLocation=function(a,b){a=_.rl(a);if(!(b instanceof _.Vr)){if(b instanceof _.hn){var c=b.getCenter();var d=b.getRadius()}else try{var e=(0,_.js)(b);c=e.center;d=e.radius}catch(k){throw _.Uk("Invalid polygon or circle passed to containsLocation()",k);}if(!c)throw _.Uk("Invalid polygon or circle passed to containsLocation(): Circle is missing center.");if(d==null)throw _.Uk("Invalid polygon or circle passed to containsLocation(): Circle is missing radius.");if(d<0)throw _.Uk("Invalid polygon or circle passed to containsLocation(): Circle must have non-negative radius."); return AA(a,c)<=d}c=_.Bk(a.lng(),-180,180);d=!!b.get("geodesic");e=b.get("latLngs");var f=b.get("map");f=!d&&f?f.getProjection():null;var g=!1;for(let k=0,n=e.getLength();k180?c>=J||c=h)&&tta(w,y,c,d,f)