(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[4445],{11198:function(t,e,r){"use strict";var n=r(64836);e.Z=void 0;var i=n(r(45045)),o=r(46417),a=(0,i.default)((0,o.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");e.Z=a},44453:function(t,e){var r=function(){},n="+",i="0",o="23456789CFGHJMPQRVWX",a=o.length,u=90,l=180,h=10,f=[20,1,.05,.0025,125e-6],d=125e-6;r.prototype.isValid=function(t){if(!t)return!1;if(-1==t.indexOf(n))return!1;if(t.indexOf(n)!=t.lastIndexOf(n))return!1;if(1==t.length)return!1;if(t.indexOf(n)>8||t.indexOf(n)%2==1)return!1;if(t.indexOf(i)>-1){if(0==t.indexOf(i))return!1;var e=t.match(new RegExp("(0+)","g"));if(e.length>1||e[0].length%2==1||e[0].length>6)return!1;if(t.charAt(t.length-1)!=n)return!1}if(t.length-t.indexOf(n)-1==1)return!1;for(var r=0,a=(t=t.replace(new RegExp("\\++"),"").replace(new RegExp("0+"),"")).length;r<a;r++){var u=t.charAt(r).toUpperCase();if(u!=n&&-1==o.indexOf(u))return!1}return!0},r.prototype.isShort=function(t){return!!this.isValid(t)&&(t.indexOf(n)>=0&&t.indexOf(n)<8)},r.prototype.isFull=function(t){if(!this.isValid(t))return!1;if(this.isShort(t))return!1;if(o.indexOf(t.charAt(0).toUpperCase())*a>=180)return!1;if(t.length>1&&o.indexOf(t.charAt(1).toUpperCase())*a>=360)return!1;return!0},r.prototype.encode=function(t,e,r){if("undefined"==typeof r&&(r=h),r<2||r<8&&r%2==1)throw"IllegalArgumentException: Invalid Open Location Code length";t=s(t),e=p(e),90==t&&(t-=c(r));var n=g(t,e,Math.min(r,h));return r>h&&(n+=v(t,e,r-h)),n},r.prototype.decode=function(t){if(!this.isFull(t))throw"IllegalArgumentException: Passed Open Location Code is not a valid full code: "+t;t=(t=(t=t.replace(n,"")).replace(new RegExp("0+"),"")).toUpperCase();var e=C(t.substring(0,h));if(t.length<=h)return e;var r=M(t.substring(h));return O(e.latitudeLo+r.latitudeLo,e.longitudeLo+r.longitudeLo,e.latitudeLo+r.latitudeHi,e.longitudeLo+r.longitudeHi,e.codeLength+r.codeLength)},r.prototype.recoverNearest=function(t,e,r){if(!this.isShort(t)){if(this.isFull(t))return t;throw"ValueError: Passed short code is not valid: "+t}e=s(e),r=p(r);var i=8-(t=t.toUpperCase()).indexOf(n),o=Math.pow(20,2-i/2),a=o/2,u=Math.floor(e/o)*o,l=Math.floor(r/o)*o,h=this.decode(this.encode(u,l).substr(0,i)+t),f=h.latitudeCenter-e;return f>a?h.latitudeCenter-=o:f<-a&&(h.latitudeCenter+=o),(f=h.longitudeCenter-r)>a?h.longitudeCenter-=o:f<-a&&(h.longitudeCenter+=o),this.encode(h.latitudeCenter,h.longitudeCenter,h.codeLength)},r.prototype.shorten=function(t,e,r){if(!this.isFull(t))throw"ValueError: Passed code is not valid and full: "+t;if(-1!=t.indexOf(i))throw"ValueError: Cannot shorten padded codes: "+t;t=t.toUpperCase();var n=this.decode(t);if(n.codeLength<6)throw"ValueError: Code length must be at least 6";e=s(e),r=p(r);for(var o=Math.max(Math.abs(n.latitudeCenter-e),Math.abs(n.longitudeCenter-r)),a=f.length-2;a>=1;a--)if(o<.3*f[a])return t.substring(2*(a+1));return t};var s=function(t){return Math.min(90,Math.max(-90,t))},c=function(t){return t<=10?Math.pow(20,Math.floor(t/-2+2)):Math.pow(20,-3)/Math.pow(5,t-10)},p=function(t){for(;t<-180;)t+=360;for(;t>=180;)t-=360;return t},g=function(t,e,r){for(var a="",h=t+u,d=e+l,s=0;s<r;){var c=f[Math.floor(s/2)],p=Math.floor(h/c);h-=p*c,a+=o.charAt(p),s+=1,d-=(p=Math.floor(d/c))*c,a+=o.charAt(p),8==(s+=1)&&s<r&&(a+=n)}return a.length<8&&(a+=Array(8-a.length+1).join(i)),8==a.length&&(a+=n),a},v=function(t,e,r){for(var n="",i=d,a=d,h=(t+u)%i,f=(e+l)%a,s=0;s<r;s++){var c=Math.floor(h/(i/5)),p=Math.floor(f/(a/4));h-=c*(i/=5),f-=p*(a/=4),n+=o.charAt(4*c+p)}return n},C=function(t){var e=x(t,0),r=x(t,1);return new O(e[0]-u,r[0]-l,e[1]-u,r[1]-l,t.length)},x=function(t,e){for(var r=0,n=0;2*r+e<t.length;)n+=o.indexOf(t.charAt(2*r+e))*f[r],r+=1;return[n,n+f[r-1]]},M=function(t){for(var e=0,r=0,n=d,i=d,a=0;a<t.length;){var u=o.indexOf(t.charAt(a));e+=Math.floor(u/4)*(n/=5),r+=u%4*(i/=4),a+=1}return O(e,r,e+n,r+i,t.length)},O=r.prototype.CodeArea=function(t,e,r,n,i){return new w.init(t,e,r,n,i)},w={init:function(t,e,r,n,i){this.latitudeLo=t,this.longitudeLo=e,this.latitudeHi=r,this.longitudeHi=n,this.codeLength=i,this.latitudeCenter=Math.min(t+(r-t)/2,u),this.longitudeCenter=Math.min(e+(n-e)/2,l)}};e.Z=r}}]);