google.maps.__gjsload__('geometry', function(_){var Tu=function(a,b){return Math.abs(_.je(b-a,-180,180))},Uu=function(a,b,c,d,e){if(!d){c=Tu(a.lng(),c)/Tu(a.lng(),b.lng());if(!e)return e=Math.sin(_.Oc(a.lat())),e=Math.log((1+e)/(1-e))/2,b=Math.sin(_.Oc(b.lat())),_.Pc(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 _.O(a.x+c*(b.x-a.x),a.y+c*(b.y-a.y))).lat()}e=_.Oc(a.lat());a=_.Oc(a.lng());d=_.Oc(b.lat());b=_.Oc(b.lng());c=_.Oc(c);return _.je(_.Pc(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)},Vu=_.n(),Wu={containsLocation:function(a,b){var c=_.je(a.lng(),-180,180),d=!!b.get("geodesic"),e=b.get("latLngs"),f=b.get("map");f=!d&&f?f.getProjection():null;for(var g=!1,h=0,k=e.getLength();h<k;++h)for(var l=e.getAt(h),m=0,q=l.getLength();m<q;++m){var t=l.getAt(m),u=l.getAt((m+1)%q),v=_.je(t.lng(),-180,180),x=_.je(u.lng(),-180,180),w=Math.max(v,x);v=Math.min(v,x);(180<w-v?c>=w||c<v:
c<w&&c>=v)&&Uu(t,u,c,d,f)<a.lat()&&(g=!g)}return g||Wu.isLocationOnEdge(a,b)}};_.Wa("PolyGeometry.containsLocation",Wu.containsLocation);
Wu.isLocationOnEdge=function(a,b,c){c=c||1E-9;var d=_.je(a.lng(),-180,180),e=b instanceof _.ej,f=!!b.get("geodesic"),g=b.get("latLngs");b=b.get("map");b=!f&&b?b.getProjection():null;for(var h=0,k=g.getLength();h<k;++h)for(var l=g.getAt(h),m=l.getLength(),q=e?m:m-1,t=0;t<q;++t){var u=l.getAt(t),v=l.getAt((t+1)%m),x=_.je(u.lng(),-180,180),w=_.je(v.lng(),-180,180),E=Math.max(x,w),J=Math.min(x,w);if(x=1E-9>=Math.abs(_.je(x-w,-180,180))&&(Math.abs(_.je(x-d,-180,180))<=c||Math.abs(_.je(w-d,-180,180))<=
c)){x=a.lat();w=Math.min(u.lat(),v.lat())-c;var N=Math.max(u.lat(),v.lat())+c;x=x>=w&&x<=N}if(x)return!0;if(180<E-J?d+c>=E||d-c<=J:d+c>=J&&d-c<=E)if(u=Uu(u,v,d,f,b),Math.abs(u-a.lat())<c)return!0}return!1};_.Wa("PolyGeometry.isLocationOnEdge",Wu.isLocationOnEdge);var Xu={computeHeading:function(a,b){var c=_.Je(a),d=_.Ke(a);a=_.Je(b);b=_.Ke(b)-d;return _.je(_.Pc(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)}};_.Wa("Spherical.computeHeading",Xu.computeHeading);
Xu.computeOffset=function(a,b,c,d){b/=d||6378137;c=_.Oc(c);var e=_.Je(a);a=_.Ke(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 _.I(_.Pc(Math.asin(g)),_.Pc(a+Math.atan2(b*e*Math.sin(c),d-f*g)))};_.Wa("Spherical.computeOffset",Xu.computeOffset);
Xu.computeOffsetOrigin=function(a,b,c,d){c=_.Oc(c);b/=d||6378137;d=Math.cos(b);var e=Math.sin(b)*Math.cos(c);b=Math.sin(b)*Math.sin(c);c=Math.sin(_.Je(a));var f=e*e*d*d+d*d*d*d-d*d*c*c;if(0>f)return null;var g=e*c+Math.sqrt(f);g/=d*d+e*e;var h=(c-e*g)/d;g=Math.atan2(h,g);if(g<-Math.PI/2||g>Math.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=_.Ke(a)-Math.atan2(b,d*Math.cos(g)-e*Math.sin(g));return new _.I(_.Pc(g),_.Pc(a))};
_.Wa("Spherical.computeOffsetOrigin",Xu.computeOffsetOrigin);Xu.interpolate=function(a,b,c){var d=_.Je(a),e=_.Ke(a),f=_.Je(b),g=_.Ke(b),h=Math.cos(d),k=Math.cos(f);b=Xu.qg(a,b);var l=Math.sin(b);if(1E-6>l)return new _.I(a.lat(),a.lng());a=Math.sin((1-c)*b)/l;c=Math.sin(c*b)/l;b=a*h*Math.cos(e)+c*k*Math.cos(g);e=a*h*Math.sin(e)+c*k*Math.sin(g);return new _.I(_.Pc(Math.atan2(a*Math.sin(d)+c*Math.sin(f),Math.sqrt(b*b+e*e))),_.Pc(Math.atan2(e,b)))};_.Wa("Spherical.interpolate",Xu.interpolate);
Xu.qg=function(a,b){var c=_.Je(a);a=_.Ke(a);var d=_.Je(b);b=_.Ke(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)))};Xu.computeDistanceBetween=function(a,b,c){c=c||6378137;return Xu.qg(a,b)*c};_.Wa("Spherical.computeDistanceBetween",Xu.computeDistanceBetween);Xu.computeLength=function(a,b){b=b||6378137;var c=0;a instanceof _.mg&&(a=a.getArray());for(var d=0,e=a.length-1;d<e;++d)c+=Xu.computeDistanceBetween(a[d],a[d+1],b);return c};
_.Wa("Spherical.computeLength",Xu.computeLength);Xu.computeArea=function(a,b){return Math.abs(Xu.computeSignedArea(a,b))};_.Wa("Spherical.computeArea",Xu.computeArea);Xu.computeSignedArea=function(a,b){b=b||6378137;a instanceof _.mg&&(a=a.getArray());for(var c=a[0],d=0,e=1,f=a.length-1;e<f;++e)d+=Xu.zk(c,a[e],a[e+1]);return d*b*b};_.Wa("Spherical.computeSignedArea",Xu.computeSignedArea);Xu.zk=function(a,b,c){return Xu.Ak(a,b,c)*Xu.tl(a,b,c)};
Xu.Ak=function(a,b,c){var d=[a,b,c,a];a=[];for(c=b=0;3>c;++c)a[c]=Xu.qg(d[c],d[c+1]),b+=a[c];b/=2;d=Math.tan(b/2);for(c=0;3>c;++c)d*=Math.tan((b-a[c])/2);return 4*Math.atan(Math.sqrt(Math.abs(d)))};
Xu.tl=function(a,b,c){a=[a,b,c];b=[];for(c=0;3>c;++c){var d=a[c],e=_.Je(d);d=_.Ke(d);var f=b[c]=[];f[0]=Math.cos(e)*Math.cos(d);f[1]=Math.cos(e)*Math.sin(d);f[2]=Math.sin(e)}return 0<b[0][0]*b[1][1]*b[2][2]+b[1][0]*b[2][1]*b[0][2]+b[2][0]*b[0][1]*b[1][2]-b[0][0]*b[2][1]*b[1][2]-b[1][0]*b[0][1]*b[2][2]-b[2][0]*b[1][1]*b[0][2]?1:-1};var Yu={decodePath:function(a){for(var b=_.fe(a),c=Array(Math.floor(a.length/2)),d=0,e=0,f=0,g=0;d<b;++g){var h=1,k=0;do{var l=a.charCodeAt(d++)-63-1;h+=l<<k;k+=5}while(31<=l);e+=h&1?~(h>>1):h>>1;h=1;k=0;do l=a.charCodeAt(d++)-63-1,h+=l<<k,k+=5;while(31<=l);f+=h&1?~(h>>1):h>>1;c[g]=new _.I(1E-5*e,1E-5*f,!0)}c.length=g;return c}};_.Wa("PolylineCodec.decodePath",Yu.decodePath);
Yu.encodePath=function(a){a instanceof _.mg&&(a=a.getArray());return Yu.fn(a,function(b){return[Math.round(1E5*b.lat()),Math.round(1E5*b.lng())]})};_.Wa("PolylineCodec.encodePath",Yu.encodePath);Yu.fn=function(a,b){for(var c=[],d=[0,0],e,f=0,g=_.fe(a);f<g;++f)e=b?b(a[f]):a[f],Yu.Wi(e[0]-d[0],c),Yu.Wi(e[1]-d[1],c),d=e;return c.join("")};Yu.Wi=function(a,b){Yu.hn(0>a?~(a<<1):a<<1,b)};Yu.hn=function(a,b){for(;32<=a;)b.push(String.fromCharCode((32|a&31)+63)),a>>=5;b.push(String.fromCharCode(a+63))};_.z.google.maps.geometry={encoding:Yu,spherical:Xu,poly:Wu};_.r=Vu.prototype;_.r.decodePath=Yu.decodePath;_.r.encodePath=Yu.encodePath;_.r.computeDistanceBetween=Xu.computeDistanceBetween;_.r.interpolate=Xu.interpolate;_.r.computeHeading=Xu.computeHeading;_.r.computeOffset=Xu.computeOffset;_.r.computeOffsetOrigin=Xu.computeOffsetOrigin;_.ef("geometry",new Vu);});
